CN108810226A - A kind of electricity method for early warning and mobile terminal - Google Patents
A kind of electricity method for early warning and mobile terminal Download PDFInfo
- Publication number
- CN108810226A CN108810226A CN201810651432.7A CN201810651432A CN108810226A CN 108810226 A CN108810226 A CN 108810226A CN 201810651432 A CN201810651432 A CN 201810651432A CN 108810226 A CN108810226 A CN 108810226A
- Authority
- CN
- China
- Prior art keywords
- target application
- power
- mobile terminal
- power consumption
- consumption rate
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/24—Arrangements for testing
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R22/00—Arrangements for measuring time integral of electric power or current, e.g. electricity meters
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3058—Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72451—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Power Engineering (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明实施例提供了一种电量预警方法及移动终端。该方法包括:获取预设的程序使用信息中的目标应用程序的耗电率数据;根据所述目标应用程序的耗电率数据,确定目标电量;检测所述移动终端当前的第一电量;在所述第一电量与第二电量的差值为所述目标电量的情况下,显示电量预警信息;其中,所述第二电量为当前的第一时刻到所述目标应用程序的第二时刻的待机电量,所述第二时刻为所述目标应用程序的计划使用时间。能够根据用户设置的程序使用信息,及时准确地进行电量预警,从而实现基于电池电量精确有计划的使用移动终端。
Embodiments of the present invention provide a power warning method and a mobile terminal. The method includes: acquiring the power consumption rate data of the target application program in the preset program usage information; determining the target power according to the power consumption rate data of the target application program; detecting the current first power capacity of the mobile terminal; When the difference between the first electric quantity and the second electric quantity is the target electric quantity, display electric quantity warning information; wherein, the second electric quantity is the current first moment to the second moment of the target application program Standby power, the second moment is the planned usage time of the target application. According to the program usage information set by the user, it can timely and accurately perform power warning, so as to realize the accurate and planned use of the mobile terminal based on the battery power.
Description
技术领域technical field
本发明实施例涉及通信技术领域,尤其涉及一种电量预警方法及移动终端。The embodiments of the present invention relate to the technical field of communications, and in particular, to a battery warning method and a mobile terminal.
背景技术Background technique
随着计算机技术的快速发展,手机等移动终端的功能也越来越强大,在移动终端安装的应用程序也越来越多,因此移动终端在使用过程中的续航能力也越来越重要。但是受限于电池技术的缓慢发展,智能手机等移动终端的续航能力并没有获得大幅度的提升,36小时的续航能力几乎已经是极限了。With the rapid development of computer technology, the functions of mobile terminals such as mobile phones are becoming more and more powerful, and more and more applications are installed on the mobile terminals. Therefore, the battery life of the mobile terminals during use is also becoming more and more important. However, limited by the slow development of battery technology, the endurance of mobile terminals such as smart phones has not been greatly improved, and the endurance of 36 hours is almost the limit.
目前,绝大多数移动终端对于自身电池电量的处理方式都比较简单。例如,实时显示移动终端的当前电池电量并在电量低于20%时发出警告。但是,上述的移动终端对电量的处理方式并不能很好地实现用户与电池的交互,用户难以基于电池电量做到精确而有计划地使用移动终端。At present, most mobile terminals have relatively simple processing methods for their own battery power. For example, the current battery level of the mobile terminal is displayed in real time and a warning is issued when the battery level is lower than 20%. However, the above-mentioned manner of processing the battery by the mobile terminal cannot well realize the interaction between the user and the battery, and it is difficult for the user to use the mobile terminal accurately and in a planned manner based on the battery power.
发明内容Contents of the invention
本发明实施例提供一种电量预警方法及移动终端,以解决现有的移动终端电量预警方法精确度以及互动性不高的问题。Embodiments of the present invention provide a power warning method and a mobile terminal to solve the problems of low accuracy and low interactivity of the existing mobile terminal power warning method.
为了解决上述技术问题,本发明是这样实现的:In order to solve the problems of the technologies described above, the present invention is achieved in that:
第一方面,本发明实施例提供了一种电量预警方法,应用于移动终端,所述方法包括:In the first aspect, an embodiment of the present invention provides a power warning method, which is applied to a mobile terminal, and the method includes:
获取预设的程序使用信息中的目标应用程序的耗电率数据;Obtain the power consumption rate data of the target application in the preset program usage information;
根据所述目标应用程序的耗电率数据,确定目标电量;determining the target power according to the power consumption rate data of the target application;
检测所述移动终端当前的第一电量;Detecting the current first power level of the mobile terminal;
在所述第一电量与第二电量的差值为所述目标电量的情况下,显示电量预警信息;When the difference between the first electric quantity and the second electric quantity is the target electric quantity, display electric quantity warning information;
其中,所述第二电量为当前的第一时刻到所述目标应用程序的第二时刻的待机电量,所述第二时刻为所述目标应用程序的计划使用时间。Wherein, the second electric quantity is the standby electric quantity from the current first moment to the second moment of the target application, and the second moment is the planned usage time of the target application.
第二方面,本发明实施例还提供了一种移动终端,所述移动终端包括:In the second aspect, the embodiment of the present invention also provides a mobile terminal, the mobile terminal includes:
耗电率数据获取模块,用于获取预设的程序使用信息中的目标应用程序的耗电率数据;The power consumption rate data acquisition module is used to acquire the power consumption rate data of the target application program in the preset program usage information;
目标电量确定模块,用于根据所述目标应用程序的耗电率数据,确定目标电量;A target power determining module, configured to determine the target power according to the power consumption rate data of the target application;
第一电量检测模块,用于检测所述移动终端当前的第一电量;A first power detection module, configured to detect the current first power of the mobile terminal;
电量预警模块,用于在所述第一电量与第二电量的差值为所述目标电量的情况下,显示电量预警信息;A power warning module, configured to display power warning information when the difference between the first power and the second power is the target power;
其中,所述第二电量为当前的第一时刻到所述目标应用程序的第二时刻的待机电量,所述第二时刻为所述目标应用程序的计划使用时间。Wherein, the second electric quantity is the standby electric quantity from the current first moment to the second moment of the target application, and the second moment is the planned usage time of the target application.
第三方面,本发明实施例还提供了一种移动终端,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现所述的电量预警方法的步骤。In the third aspect, the embodiment of the present invention also provides a mobile terminal, including: a memory, a processor, and a computer program stored on the memory and operable on the processor, the computer program is processed by the processor The steps of implementing the power warning method when the device is executed.
第四方面,本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现所述的电量预警方法的步骤。In the fourth aspect, the embodiment of the present invention also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the power warning method are implemented .
在本发明实施例中,通过获取预设的程序使用信息中的目标应用程序的耗电率数据;根据所述目标应用程序的耗电率数据,确定目标电量;检测所述移动终端当前的第一电量;在所述第一电量与第二电量的差值为所述目标电量的情况下,显示电量预警信息;其中,所述第二电量为当前的第一时刻到所述目标应用程序的第二时刻的待机电量,所述第二时刻为所述目标应用程序的计划使用时间,能够实现根据用户设置的程序使用信息,及时准确地进行电量预警,从而实现基于电池电量精确有计划的使用移动终端的技术效果。In the embodiment of the present invention, by acquiring the power consumption rate data of the target application program in the preset program usage information; determining the target power according to the power consumption rate data of the target application program; detecting the current No. An electric quantity; when the difference between the first electric quantity and the second electric quantity is the target electric quantity, display electric quantity warning information; wherein, the second electric quantity is the current first moment to the target application The standby power at the second moment, the second moment being the planned usage time of the target application program, can realize timely and accurate power warning according to the program usage information set by the user, so as to realize accurate and planned use based on battery power Technical effects of mobile terminals.
附图说明Description of drawings
图1是本发明实施例中的一种电量预警方法的流程图之一;Fig. 1 is one of the flowcharts of a power warning method in an embodiment of the present invention;
图2是本发明实施例中的一种电量预警方法的流程图之二;Fig. 2 is the second flow chart of a power warning method in an embodiment of the present invention;
图3是本发明实施例中的一种电量预警方法的流程图之二;Fig. 3 is the second flow chart of a power warning method in an embodiment of the present invention;
图4是本发明实施例中的移动终端的框图之一;Fig. 4 is one of block diagrams of the mobile terminal in the embodiment of the present invention;
图5是本发明一个实施例的移动终端的硬件结构示意图。Fig. 5 is a schematic diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
参照图1,示出了本发明一个实施例的电量预警方法的流程图,应用于移动终端,所述方法具体可以包括如下步骤:Referring to FIG. 1 , it shows a flowchart of a power warning method according to an embodiment of the present invention, which is applied to a mobile terminal. The method may specifically include the following steps:
步骤110,获取预设的程序使用信息中的目标应用程序的耗电率数据。Step 110, acquiring the power consumption rate data of the target application program in the preset program usage information.
在本发明实施例中,为了控制移动终端能够根据用户的使用需求进行电量预警,可以在移动终端设置一程序使用信息设置接口,用于接收用户设置的程序使用信息。例如,可以在移动终端设置一程序使用信息添加界面,用户可以在该页面中添加所需的程序使用信息,具体可以包括计划使用的目标应用程序,目标应用程序的计划使用时间等等。而且,可以同时在一个程序使用信息中添加多个目标应用程序,各个目标应用程序的计划使用时间可以相同也可以不完全相同,对此本发明实施例不加以限定。当然,在本发明实施例中,用户也可通过其他任何可用方式在移动终端设置程序使用信息,对此本发明实施例不加以限定。In the embodiment of the present invention, in order to control the mobile terminal to perform power warning according to the user's usage requirements, a program usage information setting interface may be set on the mobile terminal to receive the program usage information set by the user. For example, an interface for adding program usage information can be set on the mobile terminal, and the user can add required program usage information on the page, specifically including the target application program to be used, the planned usage time of the target application program, and the like. Moreover, multiple target application programs may be added to one program usage information at the same time, and the planned usage time of each target application program may or may not be completely the same, which is not limited in this embodiment of the present invention. Certainly, in the embodiment of the present invention, the user may also set the program usage information on the mobile terminal in any other available manner, which is not limited in the embodiment of the present invention.
在本发明实施例中,程序使用信息中的目标应用程序的耗电率数据的单位可以是基于移动终端的电源总容量表征应用程序的耗电量,当然在本发明实施例中,还可以设置耗电率数据的单位为单位时间内消耗的电量数值等等任何可用形式,具体的可以根据需求进行自定义设置,对此本发明实施例不加以限定。In the embodiment of the present invention, the unit of the power consumption rate data of the target application program in the program usage information can be based on the total power capacity of the mobile terminal to represent the power consumption of the application program. Of course, in the embodiment of the present invention, it can also be set The unit of the power consumption rate data is any available form such as the value of power consumed per unit time, and can be customized according to requirements, which is not limited by the embodiment of the present invention.
而且,在本发明实施例中,可以在设置程序使用信息前先确定其包含的各目标应用程序的耗电率数据,当然如果时间允许也可以在设置程序使用信息时,或者是设置程序使用信息后再确定其包含的各目标应用程序的耗电率数据,对此本发明实施例不加以限定。在确定应用程序的耗电率数据时,可以控制移动终端将相应的目标应用程序启动预设时间段,然后检测在该预设时间段内该目标应用程序的耗电量,进而确定该目标应用程序在单位时间内的耗电量即为其耗电量数据。当然,在本发明实施例中,也可以采用其他任何可用方式确定目标应用程序的耗电率数据,对此本发明实施例不加以限定。Moreover, in the embodiment of the present invention, the power consumption rate data of each target application program contained in it can be determined before setting the program usage information. Of course, if time permits, it can also be set when the program usage information is set, or the program usage information can be set. Then determine the power consumption rate data of each target application program contained therein, which is not limited in this embodiment of the present invention. When determining the power consumption rate data of the application program, the mobile terminal can be controlled to start the corresponding target application program for a preset time period, and then detect the power consumption of the target application program within the preset time period, and then determine the target application program The power consumption of the program per unit time is its power consumption data. Of course, in this embodiment of the present invention, any other available manner may also be used to determine the power consumption rate data of the target application program, which is not limited in this embodiment of the present invention.
可选地,参照图2,在本发明实施例中,步骤110进一步可以包括:Optionally, referring to FIG. 2, in the embodiment of the present invention, step 110 may further include:
子步骤111,接收用户在N个目标应用程序上的第一输入。Sub-step 111, receiving first input from the user on N target application programs.
在本发明实施例中,还可以由移动终端用户自定义设置对移动终端的哪些应用程序进行耗电率统计。那么用户则可以针对其想要进行耗电率统计的目标应用程序,针对移动终端中的N个目标应用程序进行输入,以选定相应的目标应用程序,那么移动终端在接收到用户在N个目标应用程序上的第一输入,则可以响应于所述第一输入,统计所述N个目标应用程序的耗电率数据;其中,N为正整数。其中第一输入的具体内容以及输入方式可以根据需求进行预先设定,对此本发明实施例不加以限定。In the embodiment of the present invention, it is also possible for the user of the mobile terminal to customize which application programs of the mobile terminal are used for power consumption statistics. Then the user can input the N target application programs in the mobile terminal for the target application program that he wants to perform power consumption rate statistics to select the corresponding target application program. The first input on the target application program, in response to the first input, statistics of the power consumption rate data of the N target application programs; wherein, N is a positive integer. The specific content and input method of the first input can be preset according to requirements, which is not limited in this embodiment of the present invention.
例如,可以在移动终端设置一耗电监测设置界面,用户可以控制移动终端进入该耗电监测设置界面,在该耗电监测设置界面中可以显示移动终端所安装的全部应用程序,用户则可以在该耗电监测设置界面中针对N个目标应用程序上触发第一输入。当然,也可以设置如果未接收到用户对耗电监测设置界面中任何目标应用程序上的第一输入,则默认对移动终端的全部应用程序进行耗电统计,对此本发明实施例不加以限定。For example, a power consumption monitoring setting interface can be set on the mobile terminal, and the user can control the mobile terminal to enter the power consumption monitoring setting interface. In the power consumption monitoring setting interface, the first input is triggered on N target application programs. Of course, it can also be set that if the first input from the user on any target application program in the power consumption monitoring setting interface is not received, the power consumption statistics will be performed on all the application programs of the mobile terminal by default, which is not limited in this embodiment of the present invention .
子步骤112,响应于所述第一输入,统计所述N个目标应用程序的耗电率数据;其中,N为正整数。Sub-step 112, in response to the first input, collect statistics on the power consumption rate data of the N target application programs; wherein, N is a positive integer.
在确定了需要进行耗电统计的目标应用程序之后,则可以进一步统计所述目标应用程序的耗电率数据。如前述,本发明实施例中目标应用程序的耗电率数据可以理解为目标应用程序在单位时间内的耗电量,那么此时则可以检测目标应用程序在单位时间内的耗电量作为其耗电率数据。在本发明实施例中可以采用任何可用方法检测目标应用程序在单位时间内的耗电量,对此本发明实施例不加以限定。After determining the target application program that needs power consumption statistics, the power consumption rate data of the target application program can be further collected. As mentioned above, the power consumption rate data of the target application in the embodiment of the present invention can be understood as the power consumption of the target application in a unit time, then at this time, the power consumption of the target application in a unit time can be detected as its power consumption data. In the embodiment of the present invention, any available method may be used to detect the power consumption of the target application program per unit time, which is not limited in the embodiment of the present invention.
例如,可以在保持移动终端其他状态不变的条件下,监测移动终端在启动某一目标应用程序运行预设时间周期和未启动该目标应用程序运行预设时间周期的耗电量的差值,作为该目标应用程序在预设时间周期内的耗电量,进而以该耗电量与预设时间周期的比值作为该目标应用程序的耗电率数据。For example, under the condition of keeping other states of the mobile terminal unchanged, it is possible to monitor the difference in power consumption of the mobile terminal when a certain target application program is started to run for a preset time period and when the target application program is not started to run for a preset time period, As the power consumption of the target application within a preset time period, the ratio of the power consumption to the preset time period is used as the power consumption rate data of the target application.
其中的目标应用程序可以包括了用户在所述移动终端设置的程序使用信息中所包含的全部应用程序,也可以包括用户在所述移动终端设置的程序使用信息中所包含的部分应用程序,或者是完全不包括用户在所述移动终端设置的程序使用信息中所包含的应用程序,对此本发明实施例不加以限定。但是,对于上述的后两种情况,还需要进一步确定用户在所述移动终端设置的程序使用信息中所包含的应用程序的耗电率数据;而对于第一种情况,则无需另外确定用户在所述移动终端设置的程序使用信息中所包含的应用程序的耗电率数据,相对而言效率更高。The target application program may include all the application programs included in the program usage information set by the user on the mobile terminal, or may include some of the application programs included in the program usage information set by the user on the mobile terminal, or It does not include the application program included in the program usage information set by the user in the mobile terminal at all, and this embodiment of the present invention does not limit it. However, for the latter two cases above, it is necessary to further determine the power consumption rate data of the application program included in the program usage information set by the user in the mobile terminal; The power consumption rate data of the application program included in the program usage information set by the mobile terminal is relatively more efficient.
可选地,在本发明实施例中,子步骤112进一步可以包括:Optionally, in the embodiment of the present invention, substep 112 may further include:
子步骤1121,控制所述移动终端依次启动所述N个目标应用程序。Sub-step 1121, controlling the mobile terminal to start the N target application programs in sequence.
为了统计目标应用程序的耗电率数据,那么则相应的目标应用程序处于开启状态,而且为了相对精确地统计到每个目标应用程序的耗电率数据,可以控制移动终端每次只启动一个目标应用程序,在统计得到当前启动的目标应用程序的耗电率数据之后,再次启动下一目标应用程序,直至统计得到全部目标应用程序的耗电率数据。因此在本发明实施例中,可以控制移动终端依次启动N个目标应用程序。In order to count the power consumption rate data of the target application program, the corresponding target application program is in the open state, and in order to relatively accurately count the power consumption rate data of each target application program, the mobile terminal can be controlled to start only one target application program at a time. The application program starts the next target application program again after obtaining the statistics of the power consumption rate data of the currently started target application program until the statistics of the power consumption rate data of all the target application programs are obtained. Therefore, in the embodiment of the present invention, the mobile terminal can be controlled to start N target application programs in sequence.
其中N个目标应用程序的启动顺序可以根据需求进行预先设置,对此本发明实施例不加以限定。例如,可以按照用户对各目标应用程序的选定先后顺序确定各目标应用程序的启动顺序,或者是按照各目标应用程序的首字母先后顺序确定各目标应用程序的启动顺序,等等。The startup sequence of the N target application programs may be preset according to requirements, which is not limited in this embodiment of the present invention. For example, the startup sequence of the target application programs may be determined according to the order in which the target application programs are selected by the user, or the startup sequence of the target application programs may be determined according to the alphabetical order of the first letters of the target application programs, and so on.
而且在实际应用中,在控制所述移动终端依次启动所述目标应用程序之前,可能某一个或多个目标应用程序在移动终端已经处于启动状态,那么此时则可以优先统计该已启动的目标应用程序的耗电率数据。Moreover, in practical applications, before the mobile terminal is controlled to start the target application programs in turn, one or more target application programs may have been activated in the mobile terminal, so at this time, the activated target application programs can be counted preferentially. Application power consumption data.
子步骤1122,依次统计每个目标应用程序的耗电率数据,并在统计完成后关闭每个目标应用程序。Sub-step 1122, counting the power consumption rate data of each target application in turn, and closing each target application after the statistics are completed.
在实际应用中,目标应用程序如果一直处于启动状态,会导致移动终端的电量消耗较快,因此在检测并统计得到当前启动的目标应用程序的耗电率数据之后,则可以关闭当前启动的目标应用程序,同时可以控制移动终端启动下一目标应用程序,继续进行耗电率检测,直至统计得到全部目标应用程序的耗电率数据。In practical applications, if the target application is always on, the power consumption of the mobile terminal will be faster. Therefore, after detecting and counting the power consumption data of the currently activated target application, you can close the currently activated target application. The application program can control the mobile terminal to start the next target application program at the same time, and continue to detect the power consumption rate until the power consumption rate data of all the target application programs are statistically obtained.
在本发明实施例中,可以通过任何可用方法检测并统计目标应用程序的耗电率数据,对此本发明实施例不加以限定。例如,可以保持移动终端的其他状态条件不变,检测移动终端在启动一目标应用程序后的耗电率,进而以此时的耗电率与移动终端未启动该目标应用程序之前的耗电率的差值,作为该目标应用程序的耗电率数据。In the embodiment of the present invention, any available method may be used to detect and count the power consumption rate data of the target application program, which is not limited in the embodiment of the present invention. For example, it is possible to keep other state conditions of the mobile terminal unchanged, detect the power consumption rate of the mobile terminal after starting a target application program, and then use the power consumption rate at this time and the power consumption rate before the mobile terminal does not start the target application program The difference is used as the power consumption rate data of the target application.
可选地,在本发明实施例中,在所述步骤1122之后,进一步可以包括:Optionally, in the embodiment of the present invention, after the step 1122, it may further include:
当所述目标应用程序启动时,获取所述目标应用程序当前的耗电率数据的统计日期,判断所述统计日期到当前时间的时间差值是否超出预设的耗电率更新周期,如果所述时间差值超出所述耗电率更新周期,则重新统计并更新所述目标应用程序的耗电率数据。When the target application program is started, obtain the statistical date of the current power consumption rate data of the target application program, and judge whether the time difference between the statistical date and the current time exceeds the preset power consumption rate update cycle, if the If the time difference exceeds the update period of the power consumption rate, re-count and update the power consumption rate data of the target application.
在实际应用中,由于应用程序的版本更新等原因,导致同一应用程序的耗电率可能会发生变化,因此在本发明实施例中,为了保证各目标应用程序耗电率数据的准确性,还会对目标应用程序的耗电率数据进行周期性更新,具体的耗电率更新周期可以根据需求进行预先设定,而且还可以设置不同目标应用程序的耗电率更新周期完全相同,也可以设置不同目标应用程序的耗电率更新周期不完全相同,此本发明实施例均不加以限定,例如可以设置耗电率更新周期默认为一周。而且,耗电率更新周期可以与目标应用程序同时设置,也可以在选定目标应用程序后再设置各目标应用程序的耗电率更新周期,对此本发明实施例也不加以限定。In practical applications, the power consumption rate of the same application program may change due to reasons such as the version update of the application program, so in the embodiment of the present invention, in order to ensure the accuracy of the power consumption rate data of each target application program, The power consumption rate data of the target application will be updated periodically. The specific power consumption rate update period can be preset according to the needs, and the power consumption rate update period of different target applications can be set to be exactly the same, or can be set The update period of the power consumption rate of different target application programs is not completely the same, which is not limited in this embodiment of the present invention. For example, the update period of the power consumption rate may be set as one week by default. Moreover, the update period of the power consumption rate can be set simultaneously with the target application, or the update period of the power consumption rate of each target application can be set after the target application is selected, which is not limited in this embodiment of the present invention.
那么,为了提高目标应用程序的耗电率数据的准确性,可以在目标应用程序每次启动时,检测当前启动的目标应用程序的耗电率数据的统计日期距离当前时间的时间差值是否超出该目标应用程序的耗电率更新周期。如果时间差值超出了该目标应用程序的耗电率更新周期,则可以重新统计该目标应用程序的耗电率数据并替换更新原有的该目标应用程序的耗电率数据。Then, in order to improve the accuracy of the power consumption rate data of the target application, it is possible to detect whether the time difference between the statistical date of the power consumption rate data of the currently launched target application and the current time exceeds The power consumption rate update period for this target application. If the time difference exceeds the update period of the power consumption rate of the target application program, the power consumption rate data of the target application program may be re-stated and the original power consumption rate data of the target application program may be replaced and updated.
而且,在本发明实施例中,在统计得到耗电率数据时,还可以同时记录该耗电率数据的统计生成时间作为其统计时间,那么在各目标应用程序后续启动时,则可以获取相应目标应用程序当前的耗电率数据的统计日期。Moreover, in the embodiment of the present invention, when the power consumption rate data is obtained by statistics, the statistical generation time of the power consumption rate data can also be recorded as the statistical time, so that when each target application program is subsequently started, the corresponding data can be obtained. The statistics date of the target application's current power consumption rate data.
例如,当用户控制移动终端进入耗电监测设置界面,在该耗电监测设置界面中会显示移动终端安装的全部应用程序,分别为“通话”、“微信”、“拍照”、“qq”。用户可以选择对任意一个或多个应用程序进行耗电监测,默认监测全部应用程序,假设用户选择了监测全部应用。同时设置耗电率更新周期,具体的可任选耗电率更新周期,默认耗电率更新周期为一周,假设用户选择设置耗电率更新周期为一周。For example, when the user controls the mobile terminal to enter the power consumption monitoring setting interface, all applications installed on the mobile terminal will be displayed in the power consumption monitoring setting interface, namely "call", "WeChat", "photographing" and "qq". The user can choose to monitor the power consumption of any one or more applications, and all applications are monitored by default, assuming that the user chooses to monitor all applications. At the same time, the power consumption rate update cycle is set. The specific power consumption rate update cycle can be selected. The default power consumption rate update cycle is one week. Suppose the user chooses to set the power consumption rate update cycle to one week.
那么在开始测试并统计各个应用程序的耗电率数据时,则可以依次控制移动终端运行“通话”、“微信”、“拍照”、“qq”四个应用程序,精确确定出它们的耗电率数据后关闭相应的应用程序。Then when starting to test and count the power consumption data of each application program, you can control the mobile terminal to run the four application programs "call", "WeChat", "photograph" and "qq" in sequence to accurately determine their power consumption Close the corresponding application after reading the data.
而在各应用程序的耗电率数据生成一周内,无论用户再次打开上述四个应用程序的哪个应用程序,都不会开启监测更新相应应用程序的耗电率数据。但是在各应用程序的耗电率数据生成一周后,假设某天用户打开了“微信”进行聊天,此时移动终端便会自动开启监测,重新统计出“微信”的耗电率数据并替换更新原有的耗电率数据。并以此规律不断监测更新用户选定的各个应用程序的耗电率数据。However, within one week after the power consumption rate data of each application program is generated, no matter which application program of the above-mentioned four application programs is opened by the user again, the monitoring and update of the power consumption rate data of the corresponding application program will not be started. However, one week after the power consumption rate data of each application program is generated, assuming that the user opens "WeChat" for chatting on a certain day, the mobile terminal will automatically start monitoring at this time, and re-count the power consumption rate data of "WeChat" and replace it. The original power consumption rate data. And according to this rule, the power consumption rate data of each application program selected by the user is continuously monitored and updated.
步骤120,根据所述目标应用程序的耗电率数据,确定目标电量。Step 120, determine the target power according to the power consumption rate data of the target application.
在本发明实施例中,可以预先获取程序使用信息中的各目标应用程序的耗电率数据,进而根据所述目标应用程序的耗电率数据,确定相应程序使用信息的目标电量。其中,程序使用信息的目标电量可以理解为程序使用信息中的目标应用程序在其计划使用时间段内的耗电量总和。In the embodiment of the present invention, the power consumption rate data of each target application program in the program usage information may be acquired in advance, and then the target power consumption of the corresponding program usage information is determined according to the power consumption rate data of the target application program. Wherein, the target power consumption of the program usage information can be understood as the sum of the power consumption of the target application program in the program usage information within its planned usage time period.
例如,假设预设的程序使用信息如下:For example, suppose the preset program usage information is as follows:
包含的目标应用程序:应用程序A、应用程序B、应用程序C,Included target applications: AppA, AppB, AppC,
计划使用时间:2018年5月30日8:00至2018年6月01日8:00。Planned use time: from 8:00 on May 30, 2018 to 8:00 on June 01, 2018.
假设此时程序使用信息中的目标应用程序的耗电率数据的单位是基于移动终端的电源总容量表征应用程序的耗电量,且预先获取到应用程序A的耗电率数据为0.1%每小时,即每小时消耗移动终端电源总容量的0.1%,应用程序B的耗电率数据为0.5%每小时,应用程序C的耗电率数据为0.05%每小时,那么针对上述的程序使用信息,可以确定其对应的目标电量为48*(0.1%+0.5%+0.05%)=31.2%,即为移动终端电源总容量的31.2%。Assume that the unit of the power consumption rate data of the target application program in the program usage information at this time is to represent the power consumption of the application program based on the total power capacity of the mobile terminal, and the power consumption rate data of the application program A obtained in advance is 0.1% per Hours, that is, consume 0.1% of the total power capacity of the mobile terminal per hour, the power consumption rate data of application B is 0.5% per hour, and the power consumption rate data of application C is 0.05% per hour, then use information for the above programs , it can be determined that the corresponding target power is 48*(0.1%+0.5%+0.05%)=31.2%, which is 31.2% of the total power supply capacity of the mobile terminal.
步骤130,检测所述移动终端当前的第一电量。Step 130, detecting the current first power level of the mobile terminal.
在本发明实施例中,为了进行电量预警,则需要检测移动终端的实时电量,也即移动终端当前的第一电量。具体的可以采用任何可用方法或设备检测移动终端当前的第一电量,对此本发明实施例不加限定。而且,检测的移动终端当前的第一电量可以为移动终端电源当前的电量值,或者是可以为移动终端电源当前的电量值与电源总容量的比值等等,具体的可以根据需求进行设置,对此本发明实施例不加以限定。In the embodiment of the present invention, in order to perform power warning, it is necessary to detect the real-time power of the mobile terminal, that is, the current first power of the mobile terminal. Specifically, any available method or device may be used to detect the current first power level of the mobile terminal, which is not limited in this embodiment of the present invention. Moreover, the current first electric quantity of the detected mobile terminal may be the current electric quantity value of the mobile terminal power supply, or may be the ratio of the current electric quantity value of the mobile terminal power supply to the total capacity of the power supply, etc., which may be specifically set according to requirements. This embodiment of the invention is not limited.
步骤140,在所述第一电量与第二电量的差值为所述目标电量的情况下,显示电量预警信息;其中,所述第二电量为当前的第一时刻到所述目标应用程序的第二时刻的待机电量,所述第二时刻为所述目标应用程序的计划使用时间。Step 140, when the difference between the first battery and the second battery is the target battery, display battery warning information; wherein, the second battery is the current first moment to the target application The standby power at a second moment, where the second moment is the planned usage time of the target application.
在本发明实施例中,为了不影响移动终端用户根据自身需求设置的程序使用信息的正常执行,需要保证在程序使用信息开始执行时,移动终端的电量可以维持至相应的程序使用信息执行结束。但是在实际应用中,用户在使用移动终端时,很难自主精确控制移动终端的电量情况,因此需要控制移动终端发出电量预警。具体的在本发明实施例中,在所述第一电量与第二电量的差值为所述目标电量的情况下,显示电量预警信息;其中,所述第二电量为当前的第一时刻到所述目标应用程序的第二时刻的待机电量,所述第二时刻为所述目标应用程序的计划使用时间。当前的第一时刻到所述目标应用程序的第二时刻的待机电量可以理解为当前的第一时刻到所述目标应用程序的第二时刻的时间长度与移动终端的待机耗电率的乘积,而且在本发明实施例可以通过任何可用方法确定移动终端的待机耗电率,对此本发明实施例不加以限定。In the embodiment of the present invention, in order not to affect the normal execution of the program usage information set by the mobile terminal user according to their own needs, it is necessary to ensure that when the program usage information starts to be executed, the power of the mobile terminal can be maintained until the execution of the corresponding program usage information ends. However, in practical applications, when users use mobile terminals, it is difficult for users to independently and accurately control the power status of mobile terminals, so it is necessary to control mobile terminals to issue power warnings. Specifically, in the embodiment of the present invention, when the difference between the first electric quantity and the second electric quantity is the target electric quantity, electric quantity warning information is displayed; wherein, the second electric quantity is the current first moment to The standby power of the target application program at a second moment, where the second moment is the planned usage time of the target application program. The standby power from the current first moment to the second moment of the target application can be understood as the product of the time length from the current first moment to the second moment of the target application and the standby power consumption rate of the mobile terminal, Moreover, in the embodiment of the present invention, any available method may be used to determine the standby power consumption rate of the mobile terminal, which is not limited in the embodiment of the present invention.
另外,在本发明实施例中的第二时刻为目标应用程序的计划使用时间。而对于计划使用时间可以进一步包括计划启动时刻、计划关闭时刻。例如,对于前述的计划使用时间:2018年5月30日8:00至2018年6月01日8:00,其中的2018年5月30日8:00即为计划启动时刻,2018年6月01日8:00为计划关闭时刻。那么具体的本发明实施例中的第二时刻可以为目标应用程序的计划使用时间的中的计划启动时间。进一步地,如果在同一程序使用信息中设置的目标应用程序的计划使用时间中的计划启动时刻不一样,那么可以最早的一个计划启动时刻作为第二时刻。In addition, the second moment in the embodiment of the present invention is the planned use time of the target application program. The planned use time may further include a planned startup time and a planned shutdown time. For example, for the aforementioned planned use time: from 8:00 on May 30, 2018 to 8:00 on June 01, 2018, 8:00 on May 30, 2018 is the planned start time, June 2018 8:00 on the 1st is the scheduled closing time. Then, in the specific embodiment of the present invention, the second moment may be the planned startup time among the planned usage times of the target application program. Further, if the planned start time of the target application program's planned use time set in the same program usage information is different, then the earliest planned start time can be used as the second time.
例如,对于步骤120中所述的程序使用信息,假设在设置该程序使用信息时,移动终端的初始电量为90%,即为移动终端电源总容量的90%,而且移动终端的待机耗电率为1%。那么在设定了上述的程序使用信息之后,则可以实时检测移动终端当前的第一电量,此时用户可以继续使用移动终端而不受任何影响。当移动终端当前的第一电量满足下述条件时,则可以控制移动终端发出电量预警:For example, for the program usage information described in step 120, it is assumed that when the program usage information is set, the initial power of the mobile terminal is 90%, which is 90% of the total power capacity of the mobile terminal, and the standby power consumption rate of the mobile terminal is 90%. 1%. Then, after setting the above-mentioned program usage information, the current first power level of the mobile terminal can be detected in real time, and the user can continue to use the mobile terminal without any influence. When the current first power level of the mobile terminal satisfies the following conditions, the mobile terminal can be controlled to issue a power warning:
第一电量-当前的第一时刻到2018年5月30日8:00移动终端的待机电量=移动终端电源总容量的31.2%。The first power level - the standby power of the mobile terminal from the first moment to 8:00 on May 30, 2018 = 31.2% of the total power capacity of the mobile terminal.
又例如,某天移动终端用户甲有事外出,出门时移动终端的电量为100%,路途中不能给移动终端充电,而他下午两点有个重要电话要打且会持续10分钟。那么其可以进入程序使用信息添加界面,设置一程序使用信息,其中包含“通话”应用程序,并设置计划使用时间为当天下午2点到2点10分。那么则可以根据应用程序“通话”的耗电率数据计算出通话十分钟所需电量,作为目标电量,并开始监测移动终端当前的第一电量。此时用户甲仍可随心所欲玩移动终端无须关注剩余电量,而当移动终端当前的第一电量满足下列条件时就会自动发出警告,通知用户不要继续使用移动终端:For another example, one day mobile terminal user A has something to go out, and the power of the mobile terminal is 100% when going out, and the mobile terminal cannot be charged on the way, and he has an important call to make at two o'clock in the afternoon and it will last for 10 minutes. Then it can enter the program usage information adding interface, set a program usage information, which includes the "call" application, and set the planned usage time from 2:00 p.m. to 2:10 p.m. of the same day. Then, according to the power consumption rate data of the application program "call", the power required for a ten-minute call can be calculated as the target power, and the current first power of the mobile terminal can be monitored. At this time, user A can still play the mobile terminal as he likes without paying attention to the remaining power, and when the current first power of the mobile terminal meets the following conditions, a warning will be automatically issued to notify the user not to continue using the mobile terminal:
移动终端当前的第一电量-当前的第一时刻到下午2点移动终端的待机电量=打电话十分钟所需电量The current primary power of the mobile terminal - the standby power of the mobile terminal from the current first moment to 2:00 p.m. = the power required for making a ten-minute call
另外,在本发明实施例中,在确定各应用程序的耗电率数据之后,还可以监测移动终端后台运行的高耗电且又无用的应用程序的进程,以实时提醒移动终端用户杀死高耗电且无用的进程,进而提高移动终端电池的使用效率,提高移动终端的待机时长。In addition, in the embodiment of the present invention, after determining the power consumption rate data of each application program, it is also possible to monitor the process of the high power consumption and useless application program running in the background of the mobile terminal, so as to remind the mobile terminal user to kill the high-power application program in real time. Power-consuming and useless processes, thereby improving the battery usage efficiency of the mobile terminal and increasing the standby time of the mobile terminal.
可选地,参照图3,在本发明实施例中,还包括:Optionally, referring to FIG. 3 , in this embodiment of the present invention, it also includes:
步骤150,获取用户选择的目标应用程序。Step 150, acquiring the target application program selected by the user.
在本发明实施例中,为了在移动终端设置程序使用计划,可以分别获取用户选择的目标应用程序以及用户输入的各目标应用程序的计划使用时间。具体的,用户可以通过任何可用方法选择目标应用程序,以及输入各目标应用程序的计划使用时间。对此本发明实施例不加以限定。In the embodiment of the present invention, in order to set the program usage plan on the mobile terminal, the target application program selected by the user and the planned usage time of each target application program input by the user may be acquired respectively. Specifically, the user may select a target application program through any available method, and input the planned usage time of each target application program. This embodiment of the present invention is not limited.
步骤160,获取用户输入的所述目标应用程序的计划使用时间。Step 160, acquiring the planned usage time of the target application input by the user.
步骤170,基于所述目标应用程序和所述计划使用时间,生成程序使用信息。Step 170, generating program usage information based on the target application program and the planned usage time.
例如,可以在移动终端设置一程序使用信息设置页面。当用户控制移动终端显示该程序使用信息设置页面时,在该程序使用信息设置页面中可以显示移动终端安装的全部应用程序的程序图标,那么用户则可以通过点击程序图标进而选定其对应的应用程序为目标应用程序,同时设置各目标应用程序的计划使用时间。而当用户在该程序使用信息设置页面中点击确定控件时,则可以基于当前选定的目标应用程序和各目标应用程序的计划使用时间,生成程序使用信息。For example, a program usage information setting page can be set on the mobile terminal. When the user controls the mobile terminal to display the program usage information setting page, the program icons of all the application programs installed in the mobile terminal can be displayed on the program usage information setting page, and then the user can select the corresponding application by clicking the program icon The program is the target application, and the planned usage time of each target application is set at the same time. When the user clicks the OK control on the program usage information setting page, the program usage information can be generated based on the currently selected target application and the planned usage time of each target application.
步骤180,接收用户在所述目标应用程序上的第二输入。Step 180, receiving a second input from the user on the target application program.
在实际应用中,用户可能想要持续使用某一或某些应用程序一段时间,但是又担心移动终端的当前的第三电量无法满足上述需求,从而影响用户的使用。因此,在本发明实施例中,在确定了各应用程序的耗电率数据之后,则可以进一步根据目标应用程序的耗电率数据,以及移动终端当前的第三电量,确定第三电量支持相应目标应用程序运行的时长,以便于移动终端用户准确获知移动终端当前的第三电量能否满足自身需求。In practical applications, the user may want to continue using one or some application programs for a period of time, but is worried that the current third battery capacity of the mobile terminal cannot meet the above requirements, thereby affecting the use of the user. Therefore, in the embodiment of the present invention, after the power consumption rate data of each application program is determined, it can be further determined according to the power consumption rate data of the target application program and the current third power capacity of the mobile terminal to determine the third power capacity to support the corresponding The running time of the target application program, so that the mobile terminal user can accurately know whether the current third battery capacity of the mobile terminal can meet their own needs.
那么首先需要接收用户在目标应用程序上的第二输入,进而确定用户需要进行运行时长评估的目标应用程序。用户可以通过任何可用方式针对目标应用程序进行第二输入,而且第二输入的内容可以根据需求进行预先设定,例如可以为点击操作输入等等,对此本发明实施例不加以限定。例如,可以在移动终端设置一使用时间评估界面,当移动终端进入该使用时间评估界面时,在使用时间评估界面中可以显示移动终端所安装的全部应用程序,那么用户则可以进一步在使用时间评估界面中的至少一个应用程序上进行第二输入。Then firstly, it is necessary to receive the second input from the user on the target application program, and then determine the target application program for which the user needs to evaluate the running time. The user can make a second input for the target application program in any available manner, and the content of the second input can be preset according to requirements, for example, it can be a click operation input, etc., which is not limited in this embodiment of the present invention. For example, a usage time evaluation interface can be set in the mobile terminal, when the mobile terminal enters the usage time evaluation interface, all the application programs installed in the mobile terminal can be displayed in the usage time evaluation interface, so the user can further evaluate the usage time performing a second input on at least one application program in the interface.
步骤190,获取移动终端当前的第三电量。Step 190, acquiring the current third power level of the mobile terminal.
步骤1110,根据所述目标应用程序的耗电率数据和所述第三电量,确定目标时长并显示,所述目标时长为所述第三电量支持所述目标应用程序运行的时长。Step 1110, according to the power consumption rate data of the target application and the third power, determine and display a target duration, the target duration is the duration that the third power supports the operation of the target application.
在确定了需要进行运行时间评估的目标应用程序之后,则可以根据该目标应用程序的耗电率数据,以及所述移动终端当前的第三电量,确定该目标应用程序的确定目标时长并显示,所述目标时长即为所述第三电量支持该目标应用程序运行的时长。具体的可以移动终端当前的第三电量除以需要进行运行时间评估的目标应用程序的耗电率数据与移动终端的待机耗电率的和值,进而得到需要进行运行时间评估的目标应用程序的目标时长。After determining the target application program that needs to be evaluated for the running time, the determined target duration of the target application program can be determined and displayed according to the power consumption rate data of the target application program and the current third power of the mobile terminal, The target duration is the duration during which the third battery supports the running of the target application. Specifically, the current third power of the mobile terminal can be divided by the sum of the power consumption rate data of the target application program that needs to be evaluated for running time and the standby power consumption rate of the mobile terminal, and then the target application program that needs to be evaluated for running time can be obtained. target duration.
例如,假设用户甲的移动终端当前的第三电量为5%而又不能充电,此时其有一个非常重要的电话要打,大概持续10分钟,且在通话绝不能因断电而中断通话,因此用户甲想知道移动终端当前的第三电量是否足以支撑通话10分钟。For example, suppose user A's mobile terminal's current third power level is 5% and cannot be charged. At this time, he has a very important call to make, which lasts about 10 minutes, and the call must not be interrupted due to power failure. Therefore, user A wants to know whether the current third power of the mobile terminal is enough to support the call for 10 minutes.
那么此时用户甲可以控制移动终端进入使用时间评估界面,选择其中的“通话”应用程序作为待评估的目标应用程序,进而开启针对“通话”的目标时长的评估。假设当前“通话”的耗电率数据为每小时15%,而移动终端的待机耗电率为5%每小时,那么可以计算出以5%的电量可支撑“通话”的目标时长为5%/(15%+5%)=0.25小时,也即15分钟。进而可以在移动终端显示界面中显示“通话”的目标时长为15分钟。那么用户甲在获知评估结果后便可放心拨打电话了。At this time, user A can control the mobile terminal to enter the usage time evaluation interface, select the "call" application as the target application to be evaluated, and then start the evaluation of the target duration of "call". Assuming that the power consumption rate data of the current "call" is 15% per hour, and the standby power consumption rate of the mobile terminal is 5% per hour, then it can be calculated that the target duration of "call" that can be supported by 5% of the power is 5% /(15%+5%)=0.25 hours, that is, 15 minutes. Furthermore, the target duration of "call" may be displayed on the display interface of the mobile terminal as 15 minutes. Then user A can rest assured to make a call after learning the evaluation result.
在本发明实施例中,在本发明实施例中,通过获取预设的程序使用信息中的目标应用程序的耗电率数据;根据所述目标应用程序的耗电率数据,确定目标电量;检测所述移动终端当前的第一电量;在所述第一电量与第二电量的差值为所述目标电量的情况下,显示电量预警信息;其中,所述第二电量为当前的第一时刻到所述目标应用程序的第二时刻的待机电量,所述第二时刻为所述目标应用程序的计划使用时间,能够实现根据用户设置的程序使用信息,及时准确地进行电量预警,从而实现基于电池电量精确有计划的使用移动终端的技术效果。In the embodiment of the present invention, in the embodiment of the present invention, by obtaining the power consumption rate data of the target application program in the preset program usage information; according to the power consumption rate data of the target application program, the target power is determined; The current first electric quantity of the mobile terminal; when the difference between the first electric quantity and the second electric quantity is the target electric quantity, display electric quantity warning information; wherein, the second electric quantity is the current first moment The standby power until the second moment of the target application, the second moment being the planned use time of the target application, can realize timely and accurate power warning according to the program usage information set by the user, so as to realize the The technical effect of the accurate and planned use of the mobile terminal by battery power.
而且,在本发明实施例中,还可以接收用户在N个目标应用程序上的第一输入;响应于所述第一输入,统计所述N个目标应用程序的耗电率数据;其中,N为正整数。并且,控制所述移动终端依次启动所述N个目标应用程序;依次统计每个目标应用程序的耗电率数据,并在统计完成后关闭每个目标应用程序。从而可以提高获取得到的目标应用程序的耗电率数据的准确性,从而方便用户更加高效、精确、有计划地使用移动终端电池。Moreover, in the embodiment of the present invention, the user's first input on N target application programs may also be received; in response to the first input, the power consumption rate data of the N target application programs are counted; wherein, N is a positive integer. In addition, the mobile terminal is controlled to start the N target application programs sequentially; the power consumption rate data of each target application program is counted sequentially, and each target application program is closed after the statistics are completed. Therefore, the accuracy of the acquired power consumption rate data of the target application program can be improved, thereby facilitating the user to use the battery of the mobile terminal more efficiently, accurately and in a planned way.
另外,在本发明实施例中,还可以获取用户选择的目标应用程序;获取用户输入的所述目标应用程序的计划使用时间;基于所述目标应用程序和所述计划使用时间,生成程序使用信息。从而可以方便用户根据自身需求设置程序使用信息,进一步有计划地使用移动终端电池。In addition, in the embodiment of the present invention, it is also possible to acquire the target application program selected by the user; acquire the planned usage time of the target application program input by the user; and generate program usage information based on the target application program and the planned usage time . Therefore, it is convenient for the user to set the program usage information according to his own needs, and further use the battery of the mobile terminal in a planned way.
进一步地,在本发明实施例中,还可以接收用户在所述目标应用程序上的第二输入;根据所述目标应用程序的耗电率数据和所述第三电量,确定目标时长并显示,所述目标时长为所述第三电量支持所述目标应用程序运行的时长。从而对移动终端任一目标应用程序的目标时长进行评估,方便用户及时获知移动终端的实时电量是否满足自身的需求。Further, in the embodiment of the present invention, the second input from the user on the target application program may also be received; according to the power consumption rate data of the target application program and the third power quantity, the target duration is determined and displayed, The target duration is a duration during which the third electric quantity supports the operation of the target application program. Therefore, the target duration of any target application program of the mobile terminal is evaluated, and it is convenient for the user to know in time whether the real-time power of the mobile terminal satisfies his own needs.
参照图4,示出了本发明一个实施例的移动终端的框图。本发明实施例的移动终端能实现图1至图3所示的电量预警方法的细节,并达到相同的效果。图4所示移动终端200包括:Referring to FIG. 4, a block diagram of a mobile terminal according to an embodiment of the present invention is shown. The mobile terminal in the embodiment of the present invention can realize the details of the power warning method shown in FIG. 1 to FIG. 3 and achieve the same effect. The mobile terminal 200 shown in Figure 4 includes:
耗电率数据获取模块210,用于获取预设的程序使用信息中的目标应用程序的耗电率数据。The power consumption rate data acquisition module 210 is configured to acquire the power consumption rate data of the target application program in the preset program usage information.
目标电量确定模块220,用于根据所述目标应用程序的耗电率数据,确定目标电量。The target power determining module 220 is configured to determine the target power according to the power consumption rate data of the target application.
第一电量检测模块230,用于检测所述移动终端当前的第一电量。The first power detection module 230 is configured to detect the current first power of the mobile terminal.
电量预警模块240,用于在所述第一电量与第二电量的差值为所述目标电量的情况下,显示电量预警信息;其中,所述第二电量为当前的第一时刻到所述目标应用程序的第二时刻的待机电量,所述第二时刻为所述目标应用程序的计划使用时间。The power warning module 240 is configured to display power warning information when the difference between the first power and the second power is the target power; wherein, the second power is from the current first moment to the The standby power of the target application program at a second moment, where the second moment is the planned usage time of the target application program.
可选地,在本发明实施例中,所述耗电率数据获取模块210,进一步可以包括:Optionally, in the embodiment of the present invention, the power consumption rate data acquisition module 210 may further include:
第一输入接收子模块211,用于接收用户在N个目标应用程序上的第一输入。The first input receiving sub-module 211 is configured to receive the user's first input on the N target application programs.
耗电率数据统计子模块212,用于响应于所述第一输入,统计所述N个目标应用程序的耗电率数据;其中,N为正整数。The electricity consumption rate data statistics sub-module 212 is configured to, in response to the first input, collect electricity consumption rate data of the N target application programs; wherein, N is a positive integer.
其中,所述第一输入接收子模块211与所述耗电率数据统计子模块212相连接。Wherein, the first input receiving sub-module 211 is connected with the power consumption rate data statistics sub-module 212 .
可选地,在本发明实施例中,所述耗电率数据统计子模块212,进一步可以包括:Optionally, in the embodiment of the present invention, the power consumption rate data statistics sub-module 212 may further include:
应用程序启动单元,用于控制所述移动终端依次启动所述N个目标应用程序。An application program starting unit, configured to control the mobile terminal to start the N target application programs in sequence.
耗电率数据统计单元,用于依次统计每个目标应用程序的耗电率数据,并在统计完成后关闭每个目标应用程序。The power consumption rate data statistics unit is used to count the power consumption rate data of each target application program sequentially, and close each target application program after the statistics are completed.
其中,所述应用程序启动单元与所述耗电率数据统计单元相连接。Wherein, the application program starting unit is connected with the power consumption rate data statistics unit.
可选地,在本发明实施例中,所述移动终端200还包括:Optionally, in the embodiment of the present invention, the mobile terminal 200 further includes:
目标应用程序获取模块250,用于获取用户选择的目标应用程序。The target application acquisition module 250 is configured to acquire the target application selected by the user.
计划使用时间获取模块260,用于获取用户输入的所述目标应用程序的计划使用时间。The planned use time acquisition module 260 is configured to acquire the planned use time of the target application input by the user.
程序使用信息生成模块270,用于基于所述目标应用程序和所述计划使用时间,生成程序使用信息。The program usage information generating module 270 is configured to generate program usage information based on the target application program and the planned usage time.
其中,所述程序使用信息生成模块270与所述耗电率数据获取模块210相连接,所述计划使用时间获取模块260分别与所述程序使用信息生成模块270以及所述目标应用程序获取模块250相连接。Wherein, the program usage information generation module 270 is connected to the power consumption rate data acquisition module 210, and the planned usage time acquisition module 260 is connected to the program usage information generation module 270 and the target application program acquisition module 250 respectively. connected.
可选地,在本发明实施例中,所述移动终端200还包括:Optionally, in the embodiment of the present invention, the mobile terminal 200 further includes:
第二输入接收模块280,用于接收用户在所述目标应用程序上的第二输入。The second input receiving module 280 is configured to receive a second input from the user on the target application program.
第三电量获取模块290,用于获取移动终端当前的第三电量。The third power acquisition module 290 is configured to acquire the current third power of the mobile terminal.
目标时长评估模块2110,用于根据所述目标应用程序的耗电率数据和所述第三电量,确定目标时长并显示,所述目标时长为所述第三电量支持所述目标应用程序运行的时长。The target duration evaluation module 2110 is configured to determine and display a target duration according to the power consumption rate data of the target application program and the third power, and display that the target duration is the time required for the third power to support the operation of the target application duration.
其中,所述第二输入接收模块280可以与所述耗电率数据获取模块210相连接,所述第三电量获取模块290分别与所述第二输入接收模块280以及目标时长评估模块2110相连接。Wherein, the second input receiving module 280 may be connected to the power consumption rate data acquisition module 210, and the third power acquisition module 290 is connected to the second input receiving module 280 and the target duration evaluation module 2110 respectively. .
在本发明实施例中,在本发明实施例中,通过获取预设的程序使用信息中的目标应用程序的耗电率数据;根据所述目标应用程序的耗电率数据,确定目标电量;检测所述移动终端当前的第一电量;在所述第一电量与第二电量的差值为所述目标电量的情况下,显示电量预警信息;其中,所述第二电量为当前的第一时刻到所述目标应用程序的第二时刻的待机电量,所述第二时刻为所述目标应用程序的计划使用时间,能够实现根据用户设置的程序使用信息,及时准确地进行电量预警,从而实现基于电池电量精确有计划的使用移动终端的技术效果。In the embodiment of the present invention, in the embodiment of the present invention, by obtaining the power consumption rate data of the target application program in the preset program usage information; according to the power consumption rate data of the target application program, the target power is determined; The current first electric quantity of the mobile terminal; when the difference between the first electric quantity and the second electric quantity is the target electric quantity, display electric quantity warning information; wherein, the second electric quantity is the current first moment The standby power until the second moment of the target application, the second moment being the planned use time of the target application, can realize timely and accurate power warning according to the program usage information set by the user, so as to realize the The technical effect of the accurate and planned use of the mobile terminal by battery power.
而且,在本发明实施例中,还可以接收用户在N个目标应用程序上的第一输入;响应于所述第一输入,统计所述N个目标应用程序的耗电率数据;其中,N为正整数。并且,控制所述移动终端依次启动所述N个目标应用程序;依次统计每个目标应用程序的耗电率数据,并在统计完成后关闭每个目标应用程序。从而可以提高获取得到的目标应用程序的耗电率数据的准确性,从而方便用户更加高效、精确、有计划地使用移动终端电池。Moreover, in the embodiment of the present invention, the user's first input on N target application programs may also be received; in response to the first input, the power consumption rate data of the N target application programs are counted; wherein, N is a positive integer. In addition, the mobile terminal is controlled to start the N target application programs sequentially; the power consumption rate data of each target application program is counted sequentially, and each target application program is closed after the statistics are completed. Therefore, the accuracy of the acquired power consumption rate data of the target application program can be improved, thereby facilitating the user to use the battery of the mobile terminal more efficiently, accurately and in a planned way.
另外,在本发明实施例中,还可以获取用户选择的目标应用程序;获取用户输入的所述目标应用程序的计划使用时间;基于所述目标应用程序和所述计划使用时间,生成程序使用信息。从而可以方便用户根据自身需求设置程序使用信息,进一步有计划地使用移动终端电池。In addition, in the embodiment of the present invention, it is also possible to acquire the target application program selected by the user; acquire the planned usage time of the target application program input by the user; and generate program usage information based on the target application program and the planned usage time . Therefore, it is convenient for the user to set the program usage information according to his own needs, and further use the battery of the mobile terminal in a planned way.
进一步地,在本发明实施例中,还可以接收用户在所述目标应用程序上的第二输入;根据所述目标应用程序的耗电率数据和所述第三电量,确定目标时长并显示,所述目标时长为所述第三电量支持所述目标应用程序运行的时长。从而对移动终端任一目标应用程序的目标时长进行评估,方便用户及时获知移动终端的实时电量是否满足自身的需求。Further, in the embodiment of the present invention, the second input from the user on the target application program may also be received; according to the power consumption rate data of the target application program and the third power quantity, the target duration is determined and displayed, The target duration is a duration during which the third electric quantity supports the operation of the target application program. Therefore, the target duration of any target application program of the mobile terminal is evaluated, and it is convenient for the user to know in time whether the real-time power of the mobile terminal satisfies his own needs.
图5为实现本发明各个实施例的一种移动终端的硬件结构示意图,FIG. 5 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention,
该移动终端300包括但不限于:射频单元301、网络模块302、音频输出单元303、输入单元304、传感器305、显示单元306、用户输入单元307、接口单元308、存储器309、处理器310、以及电源311等部件。本领域技术人员可以理解,图5中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。The mobile terminal 300 includes, but is not limited to: a radio frequency unit 301, a network module 302, an audio output unit 303, an input unit 304, a sensor 305, a display unit 306, a user input unit 307, an interface unit 308, a memory 309, a processor 310, and Power supply 311 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in Figure 5 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than shown in the figure, or combine some components, or different components layout. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, and a pedometer.
其中,处理器310,用于获取预设的程序使用信息中的目标应用程序的耗电率数据;根据所述目标应用程序的耗电率数据,确定目标电量;在所述第一电量与第二电量的差值为所述目标电量的情况下,显示电量预警信息;其中,所述第二电量为当前的第一时刻到所述目标应用程序的第二时刻的待机电量,所述第二时刻为所述目标应用程序的计划使用时间。Wherein, the processor 310 is configured to obtain the power consumption rate data of the target application program in the preset program usage information; determine the target power according to the power consumption rate data of the target application program; When the difference between the two electric quantities is the target electric quantity, the electric quantity warning information is displayed; wherein, the second electric quantity is the standby electric quantity from the current first moment to the second moment of the target application program, and the second Time is the planned usage time of the target application.
借助于本发明上述实施例的技术方案,本发明实施例能够在本发明实施例中,在本发明实施例中,通过获取预设的程序使用信息中的目标应用程序的耗电率数据;根据所述目标应用程序的耗电率数据,确定目标电量;检测所述移动终端当前的第一电量;在所述第一电量与第二电量的差值为所述目标电量的情况下,显示电量预警信息;其中,所述第二电量为当前的第一时刻到所述目标应用程序的第二时刻的待机电量,所述第二时刻为所述目标应用程序的计划使用时间,能够实现根据用户设置的程序使用信息,及时准确地进行电量预警,从而实现基于电池电量精确有计划的使用移动终端的技术效果。With the help of the technical solutions of the above-mentioned embodiments of the present invention, the embodiments of the present invention can obtain the power consumption rate data of the target application program in the preset program usage information in the embodiments of the present invention; according to The power consumption rate data of the target application program determines the target power; detects the current first power of the mobile terminal; and displays the power when the difference between the first power and the second power is the target power Early warning information; wherein, the second power is the standby power from the current first moment to the second moment of the target application, and the second moment is the planned usage time of the target application, which can realize The set program uses information to timely and accurately perform power warning, so as to realize the technical effect of using the mobile terminal accurately and in a planned manner based on the battery power.
而且,在本发明实施例中,还可以接收用户在N个目标应用程序上的第一输入;响应于所述第一输入,统计所述N个目标应用程序的耗电率数据;其中,N为正整数。并且,控制所述移动终端依次启动所述N个目标应用程序;依次统计每个目标应用程序的耗电率数据,并在统计完成后关闭每个目标应用程序。从而可以提高获取得到的目标应用程序的耗电率数据的准确性,从而方便用户更加高效、精确、有计划地使用移动终端电池。Moreover, in the embodiment of the present invention, the user's first input on N target application programs may also be received; in response to the first input, the power consumption rate data of the N target application programs are counted; wherein, N is a positive integer. In addition, the mobile terminal is controlled to start the N target application programs sequentially; the power consumption rate data of each target application program is counted sequentially, and each target application program is closed after the statistics are completed. Therefore, the accuracy of the acquired power consumption rate data of the target application program can be improved, thereby facilitating the user to use the battery of the mobile terminal more efficiently, accurately and in a planned way.
另外,在本发明实施例中,还可以获取用户选择的目标应用程序;获取用户输入的所述目标应用程序的计划使用时间;基于所述目标应用程序和所述计划使用时间,生成程序使用信息。从而可以方便用户根据自身需求设置程序使用信息,进一步有计划地使用移动终端电池。In addition, in the embodiment of the present invention, it is also possible to acquire the target application program selected by the user; acquire the planned usage time of the target application program input by the user; and generate program usage information based on the target application program and the planned usage time . Therefore, it is convenient for the user to set the program usage information according to his own needs, and further use the battery of the mobile terminal in a planned way.
进一步地,在本发明实施例中,还可以接收用户在所述目标应用程序上的第二输入;根据所述目标应用程序的耗电率数据和所述第三电量,确定目标时长并显示,所述目标时长为所述第三电量支持所述目标应用程序运行的时长。从而对移动终端任一目标应用程序的目标时长进行评估,方便用户及时获知移动终端的实时电量是否满足自身的需求。Further, in the embodiment of the present invention, the second input from the user on the target application program may also be received; according to the power consumption rate data of the target application program and the third power quantity, the target duration is determined and displayed, The target duration is a duration during which the third electric quantity supports the operation of the target application program. Therefore, the target duration of any target application program of the mobile terminal is evaluated, and it is convenient for the user to know in time whether the real-time power of the mobile terminal satisfies his own needs.
应理解的是,本发明实施例中,射频单元301可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器310处理;另外,将上行的数据发送给基站。通常,射频单元301包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元301还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 301 can be used for receiving and sending signals during sending and receiving information or during a call. Specifically, the downlink data from the base station is received and processed by the processor 310; in addition, the Uplink data is sent to the base station. Generally, the radio frequency unit 301 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 301 can also communicate with the network and other devices through a wireless communication system.
移动终端通过网络模块302为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides users with wireless broadband Internet access through the network module 302, such as helping users to send and receive emails, browse web pages, and access streaming media.
音频输出单元303可以将射频单元301或网络模块302接收的或者在存储器309中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元303还可以提供与移动终端300执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元303包括扬声器、蜂鸣器以及受话器等。The audio output unit 303 may convert audio data received by the radio frequency unit 301 or the network module 302 or stored in the memory 309 into an audio signal and output as sound. Also, the audio output unit 303 can also provide audio output related to a specific function performed by the mobile terminal 300 (eg, call signal reception sound, message reception sound, etc.). The audio output unit 303 includes a speaker, a buzzer, a receiver and the like.
输入单元304用于接收音频或视频信号。输入单元304可以包括图形处理器(Graphics Processing Unit,GPU)3041和麦克风3042,图形处理器3041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元306上。经图形处理器3041处理后的图像帧可以存储在存储器309(或其它存储介质)中或者经由射频单元301或网络模块302进行发送。麦克风3042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元301发送到移动通信基站的格式输出。The input unit 304 is used for receiving audio or video signals. The input unit 304 may include a graphics processing unit (Graphics Processing Unit, GPU) 3041 and a microphone 3042, and the graphics processing unit 3041 is used for still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The data is processed. The processed image frames may be displayed on the display unit 306 . The image frames processed by the graphics processor 3041 may be stored in the memory 309 (or other storage medium) or sent via the radio frequency unit 301 or the network module 302 . The microphone 3042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 301 for output in the case of a phone call mode.
移动终端300还包括至少一种传感器305,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板3061的亮度,接近传感器可在移动终端300移动到耳边时,关闭显示面板3061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器305还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The mobile terminal 300 also includes at least one sensor 305, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 3061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 3061 and the display panel 3061 when the mobile terminal 300 moves to the ear / or backlighting. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is still, and can be used to identify the posture of mobile terminals (such as horizontal and vertical screen switching, related games, etc.) , magnetometer attitude calibration), vibration recognition related functions (such as pedometer, knocking), etc.; the sensor 305 can also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, Infrared sensors, etc., will not be repeated here.
显示单元306用于显示由用户输入的信息或提供给用户的信息。显示单元306可包括显示面板3061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板3061。The display unit 306 is used to display information input by the user or information provided to the user. The display unit 306 may include a display panel 3061, and the display panel 3061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.
用户输入单元307可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元307包括触控面板3071以及其他输入设备3072。触控面板3071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板3071上或在触控面板3071附近的操作)。触控面板3071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器310,接收处理器310发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板3071。除了触控面板3071,用户输入单元307还可以包括其他输入设备3072。具体地,其他输入设备3072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 307 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile terminal. Specifically, the user input unit 307 includes a touch panel 3071 and other input devices 3072 . The touch panel 3071, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 3071 or near the touch panel 3071). operate). The touch panel 3071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the For the processor 310, receive the command sent by the processor 310 and execute it. In addition, the touch panel 3071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 3071 , the user input unit 307 may also include other input devices 3072 . Specifically, other input devices 3072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
进一步的,触控面板3071可覆盖在显示面板3061上,当触控面板3071检测到在其上或附近的触摸操作后,传送给处理器310以确定触摸事件的类型,随后处理器310根据触摸事件的类型在显示面板3061上提供相应的视觉输出。虽然在图3中,触控面板3071与显示面板3061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板3071与显示面板3061集成而实现移动终端的输入和输出功能,具体此处不做限定。Furthermore, the touch panel 3071 can be covered on the display panel 3061, and when the touch panel 3071 detects a touch operation on or near it, it will be sent to the processor 310 to determine the type of the touch event, and then the processor 310 can The type of event provides a corresponding visual output on the display panel 3061 . Although in FIG. 3, the touch panel 3071 and the display panel 3061 are used as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 3071 and the display panel 3061 can be integrated. The implementation of the input and output functions of the mobile terminal is not specifically limited here.
接口单元308为外部装置与移动终端300连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元308可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端300内的一个或多个元件或者可以用于在移动终端300和外部装置之间传输数据。The interface unit 308 is an interface for connecting an external device to the mobile terminal 300 . For example, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 308 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.
存储器309可用于存储软件程序以及各种数据。存储器309可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器309可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 309 can be used to store software programs as well as various data. The memory 309 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 309 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
处理器310是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器309内的软件程序和/或模块,以及调用存储在存储器309内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器310可包括一个或多个处理单元;优选的,处理器310可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器310中。The processor 310 is the control center of the mobile terminal, and uses various interfaces and lines to connect various parts of the entire mobile terminal, by running or executing software programs and/or modules stored in the memory 309, and calling data stored in the memory 309 , execute various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 310 may include one or more processing units; preferably, the processor 310 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 310 .
移动终端300还可以包括给各个部件供电的电源311(比如电池),优选的,电源311可以通过电源管理系统与处理器310逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 300 can also include a power supply 311 (such as a battery) for supplying power to various components. Preferably, the power supply 311 can be logically connected to the processor 310 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. and other functions.
另外,移动终端300包括一些未示出的功能模块,在此不再赘述。In addition, the mobile terminal 300 includes some functional modules not shown, which will not be repeated here.
优选的,本发明实施例还提供一种移动终端,包括处理器310,存储器309,存储在存储器309上并可在所述处理器310上运行的计算机程序,该计算机程序被处理器310执行时实现上述电量预警方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, the embodiment of the present invention also provides a mobile terminal, including a processor 310, a memory 309, a computer program stored in the memory 309 and operable on the processor 310, when the computer program is executed by the processor 310 Each process of the above embodiment of the power warning method can achieve the same technical effect. To avoid repetition, details are not repeated here.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述电量预警方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-OnlyMemory,简称ROM)、随机存取存储器(RandomAccess Memory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned power warning method embodiment is realized, and the same technology can be achieved. Effect, in order to avoid repetition, will not repeat them here. Wherein, the computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。Embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementations, and the above-mentioned specific implementations are only illustrative, rather than restrictive. Those of ordinary skill in the art will Under the enlightenment of the present invention, many forms can also be made without departing from the gist of the present invention and the protection scope of the claims, all of which belong to the protection of the present invention.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810651432.7A CN108810226A (en) | 2018-06-22 | 2018-06-22 | A kind of electricity method for early warning and mobile terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810651432.7A CN108810226A (en) | 2018-06-22 | 2018-06-22 | A kind of electricity method for early warning and mobile terminal |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN108810226A true CN108810226A (en) | 2018-11-13 |
Family
ID=64085043
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810651432.7A Pending CN108810226A (en) | 2018-06-22 | 2018-06-22 | A kind of electricity method for early warning and mobile terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108810226A (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110191215A (en) * | 2019-01-18 | 2019-08-30 | 青岛海信移动通信技术股份有限公司 | Terminal and processing method |
| CN110687991A (en) * | 2019-09-04 | 2020-01-14 | Oppo(重庆)智能科技有限公司 | Power supply method, device, equipment and storage medium |
| CN112764513A (en) * | 2021-01-28 | 2021-05-07 | 维沃移动通信有限公司 | Prompting method and electronic equipment |
| CN112802230A (en) * | 2021-02-04 | 2021-05-14 | 江西江铃集团新能源汽车有限公司 | Power consumption rate calculation method and device, readable storage medium and vehicle-mounted system |
| CN113220106A (en) * | 2021-05-10 | 2021-08-06 | 维沃移动通信有限公司 | Power saving control method and power saving control device |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140068314A1 (en) * | 2012-08-31 | 2014-03-06 | Pantech Co., Ltd. | Portable electronic device and method for managing battery power consumption |
| CN106375604A (en) * | 2016-11-11 | 2017-02-01 | 北京小米移动软件有限公司 | Method and device for controlling terminal power |
| CN107819957A (en) * | 2017-11-24 | 2018-03-20 | 维沃移动通信有限公司 | A kind of electricity based reminding method, mobile terminal |
-
2018
- 2018-06-22 CN CN201810651432.7A patent/CN108810226A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140068314A1 (en) * | 2012-08-31 | 2014-03-06 | Pantech Co., Ltd. | Portable electronic device and method for managing battery power consumption |
| CN106375604A (en) * | 2016-11-11 | 2017-02-01 | 北京小米移动软件有限公司 | Method and device for controlling terminal power |
| CN107819957A (en) * | 2017-11-24 | 2018-03-20 | 维沃移动通信有限公司 | A kind of electricity based reminding method, mobile terminal |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110191215A (en) * | 2019-01-18 | 2019-08-30 | 青岛海信移动通信技术股份有限公司 | Terminal and processing method |
| CN110687991A (en) * | 2019-09-04 | 2020-01-14 | Oppo(重庆)智能科技有限公司 | Power supply method, device, equipment and storage medium |
| CN112764513A (en) * | 2021-01-28 | 2021-05-07 | 维沃移动通信有限公司 | Prompting method and electronic equipment |
| CN112802230A (en) * | 2021-02-04 | 2021-05-14 | 江西江铃集团新能源汽车有限公司 | Power consumption rate calculation method and device, readable storage medium and vehicle-mounted system |
| CN113220106A (en) * | 2021-05-10 | 2021-08-06 | 维沃移动通信有限公司 | Power saving control method and power saving control device |
| CN113220106B (en) * | 2021-05-10 | 2024-05-14 | 维沃移动通信有限公司 | Power saving control method and power saving control device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109388220B (en) | Power supply management method and mobile terminal | |
| CN109543099B (en) | Content recommendation method and terminal equipment | |
| CN108810226A (en) | A kind of electricity method for early warning and mobile terminal | |
| CN108174044B (en) | Alarm clock setting method and mobile terminal | |
| CN107613131A (en) | Method for avoiding disturbing application program and mobile terminal | |
| CN109995933B (en) | Method for controlling alarm clock of terminal device and terminal device | |
| CN108391008B (en) | Message reminding method and mobile terminal | |
| CN110795310A (en) | Information reminding method and electronic equipment | |
| CN110780940A (en) | Application program loading method, electronic device and storage medium | |
| CN108681498A (en) | Method, device and mobile terminal for monitoring CPU usage | |
| CN107566661A (en) | The reminding method and mobile terminal of a kind of notification message | |
| CN108196947A (en) | Application running state control method and mobile terminal | |
| CN111371705B (en) | Download task execution method and electronic device | |
| CN108174037A (en) | Prompt method for notification message and mobile terminal | |
| CN107809531A (en) | A kind of schedule creation method, mobile terminal | |
| CN108270870A (en) | Method and device for pushing prompt information | |
| CN108196757A (en) | The setting method and mobile terminal of a kind of icon | |
| CN108345474A (en) | Startup method, starter and the mobile terminal of application program | |
| CN107979697A (en) | A kind of based reminding method and mobile terminal | |
| CN107835495A (en) | A kind of message prompt method, device and mobile terminal | |
| CN107864378A (en) | A kind of frame rate detection method, device, mobile terminal and server | |
| CN107908527B (en) | Application icon display method and device | |
| CN108540649A (en) | A content display method and mobile terminal | |
| CN108810284A (en) | A kind of mode switching method and electronic equipment of camera | |
| CN108228357A (en) | A memory cleaning method 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: 20181113 |