Endurance control method and system applied to intelligent terminal
By obtaining dynamic adjustment information of the application's brightness, volume and content color, and combining with the ant colony algorithm to optimize the operation of the terminal, the battery life of the smart terminal in multi-screen display and folding screen split-screen scenarios is solved, achieving more efficient battery life control and battery saving.
Patent Information
- Application Number
- CN202510537228.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-27
- Publication Date
- 2025-07-04
AI Technical Summary
How to improve the battery life of smart terminals and reduce the power consumption of terminals when multiple applications are running, especially in split-screen application scenarios with multi-screen display and folding screens.
By obtaining dynamic adjustment information of the brightness, volume and content color of the application, establishing an association with the terminal's basic power consumption, generating a battery life scheduling unit, and using the ant colony algorithm to traverse the basic scheduling path, generating a battery life scheduling control plan, and optimizing the terminal's operation.
It improves the efficiency of application scheduling and control, effectively improves the battery life of smart terminals, and reduces the power consumption of terminals. It is suitable for split-screen application scenarios with multi-screen display and folding screens.
Smart Images

Figure CN120263897A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and particularly to a battery life control system applied to an intelligent terminal, a battery life control method applied to an intelligent terminal, an intelligent terminal, and a storage medium. Background Art
[0002] The influencing factors of intelligent mobile terminals can generally be divided into factors such as hardware, software, and usage habits. Hardware factors include screen brightness and refresh rate, resolution, energy efficiency ratio of the processor (SoC), battery capacity and aging degree, etc. In terms of software, it includes frequent unlocking and switching of applications with the screen on for a long time. When using Wi-Fi / mobile data with poor signal, the mobile phone will increase the power to search for the network. Using Bluetooth / NFC will increase the standby power consumption in the long term, especially when connecting to an intelligent watch or earphone. How to improve the battery life of the terminal when multiple application programs are running is an urgent problem to be solved. Summary of the Invention
[0003] In view of the above problems, embodiments of the present invention are proposed to provide a battery life control method applied to an intelligent terminal, a battery life control system applied to an intelligent terminal, an intelligent terminal, and a storage medium that overcome the above problems or at least partially solve the above problems.
[0004] To solve the above problems, embodiments of the present invention disclose a battery life control method applied to an intelligent terminal. The intelligent terminal runs multiple application programs, including:
[0005] Obtaining brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information of the application program;
[0006] Associating the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information with the basic power consumption of the intelligent terminal to obtain a battery life scheduling unit;
[0007] Generating a basic scheduling path of the battery life scheduling unit for multiple application programs;
[0008] Traversing the basic scheduling path based on the ant colony algorithm to obtain a battery life scheduling control scheme, and controlling the operation of the intelligent terminal according to the battery life scheduling control scheme.
[0009] Preferably, the obtaining the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information of the application program includes:
[0010] Extracting brightness adjustment records, volume adjustment records, and content color adjustment records from the log file of the application program;
[0011] The brightness adjustment record, volume adjustment record, and content color adjustment record are used to extract brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information, respectively; wherein the brightness dynamic adjustment information refers to the correlation information between the screen brightness and unit power consumption during the application running process, the volume dynamic adjustment information refers to the correlation information between the volume and unit power consumption during the application running process, and the content color dynamic adjustment information refers to the correlation information between the content color and unit power consumption during the application running process.
[0012] Preferably, the battery life scheduling unit includes a first scheduling unit, a second scheduling unit, a third scheduling unit, and an Nth scheduling unit; the step of associating the brightness dynamic adjustment information, the volume dynamic adjustment information, and the content color dynamic adjustment information with the basic power consumption of the smart terminal to obtain the battery life scheduling unit includes:
[0013] Selecting a background top application from among all the applications, and determining the background top application as a specific application;
[0014] Extracting brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information of the specific application;
[0015] The brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information of the specific application are associated with the preset basic power consumption to obtain a first scheduling unit, and the above steps of selecting the background top-layer application from all applications and determining the background top-layer application as a specific application are repeated, and the second scheduling unit, the third scheduling unit, and the Nth scheduling unit are obtained by repeating the cycle.
[0016] Preferably, the basic scheduling path of the battery life scheduling unit for generating multiple applications includes:
[0017] By combining different levels of brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information in the first scheduling unit, the second scheduling unit, the third scheduling unit, and the Nth scheduling unit, different basic scheduling paths are obtained, and the basic scheduling path composition is a matrix array table.
[0018] Preferably, the traversal of the basic scheduling path based on the ant colony algorithm to obtain a cruising range scheduling control scheme, and controlling the operation of the smart terminal according to the cruising range scheduling control scheme includes:
[0019] Set the ant colony size, pheromone parameters, and heuristic information value in the ant colony algorithm;
[0020] Traverse the ants and the endurance scheduling units to generate an initial solution. Calculate the row transfer probabilities for the endurance scheduling units that meet the preset conditions until all the endurance scheduling units are traversed. After traversing all the ants, update the pheromone parameters for the endurance scheduling units.
[0021] Calculate the scheduling values of all the preliminary endurance scheduling control solutions according to the constructed endurance scheduling objective function, and determine the endurance scheduling control solution in the initial solution through the scheduling values.
[0022] Control the operation of the intelligent terminal according to the endurance scheduling control solution.
[0023] Preferably, the method further includes:
[0024] Obtain the best energy consumption ratio for brightness adjustment, the best energy consumption ratio for volume adjustment, and the best energy consumption ratio for content color adjustment of the application.
[0025] Form an endurance scheduling objective function through the best energy consumption ratio for brightness adjustment, the best energy consumption ratio for volume adjustment, the best energy consumption ratio for content color adjustment, and the terminal power change curve.
[0026] An embodiment of the present invention discloses an endurance control system applied to an intelligent terminal. The intelligent terminal runs multiple applications, including:
[0027] A first acquisition module for acquiring the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information of the application.
[0028] An association module for associating the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information with the basic power consumption of the intelligent terminal to obtain endurance scheduling units; a generation module for generating the basic scheduling paths of the endurance scheduling units of multiple applications.
[0029] A traversal module for traversing the basic scheduling paths based on the ant colony algorithm to obtain an endurance scheduling control solution, and controlling the operation of the intelligent terminal according to the endurance scheduling control solution.
[0030] Preferably, the first acquisition module includes:
[0031] An extraction sub-module for extracting brightness adjustment records, volume adjustment records, and content color adjustment records from the log file of the application.
[0032] The first extraction sub-module is used to extract brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information through the brightness adjustment record, volume adjustment record, and content color adjustment record respectively; wherein, the brightness dynamic adjustment information refers to the correlation information between the screen brightness and the unit power consumption during the operation of the application program, the volume dynamic adjustment information refers to the correlation information between the volume and the unit power consumption during the operation of the application program, and the content color dynamic adjustment information refers to the correlation information between the content color and the unit power consumption during the operation of the application program.
[0033] An embodiment of the present invention also discloses an intelligent terminal, including a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the steps of the above-mentioned power consumption control applied to the intelligent terminal are implemented.
[0034] An embodiment of the present invention also discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned power consumption control applied to the intelligent terminal are implemented.
[0035] The embodiments of the present invention have the following advantages:
[0036] In the embodiments of the present invention, the power consumption control method applied to the intelligent terminal includes: obtaining the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information of the application program; associating the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information with the basic power consumption of the intelligent terminal to obtain a power consumption scheduling unit; generating a basic scheduling path of the power consumption scheduling unit for multiple application programs; traversing the basic scheduling path based on the ant colony algorithm to obtain a power consumption scheduling control scheme, and controlling the operation of the intelligent terminal according to the power consumption scheduling control scheme; providing strong global search ability and parallel processing ability, effectively avoiding the problem of falling into local optimal solutions, having high robustness, being applicable to the application scenario of multi-screen display, especially the split-screen application scenario of the folding screen, improving the scheduling control efficiency of the application program, effectively improving the power consumption of the intelligent terminal, and reducing the power consumption of the terminal. Description of the Drawings
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0038] Figure 1 It is a flowchart of the steps of an embodiment of a power consumption control method applied to an intelligent terminal according to an embodiment of the present invention;
[0039] Figure 2 It is a schematic diagram of a battery life scheduling unit according to an embodiment of the present invention;
[0040] Figure 3 It is a schematic diagram of a basic scheduling path according to an embodiment of the present invention;
[0041] Figure 4 It is a structural block diagram of an embodiment of a battery life control system applied to a smart terminal according to an embodiment of the present invention;
[0042] Figure 5 It is an internal structure diagram of a smart terminal according to an embodiment. Detailed implementation manners
[0043] In order to make the technical problems, technical solutions and beneficial effects solved by the embodiments of the present invention clearer and more understandable, the following further details the embodiments of the present invention in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0044] In the embodiments of the present invention, the operating parameters such as brightness, volume, and color of all application programs on the smart terminal are associated with the basic power consumption to form a battery life unit, and then different basic scheduling paths are formed according to the composition of the battery life units of different application programs. The ant colony algorithm is used to traverse all basic scheduling paths to output the optimal battery life scheduling scheme in the current scenario, which is applicable to the application scenario of multi-screen display, especially the split-screen application scenario of the folding screen, improves the scheduling control efficiency of the application program, effectively improves the battery life of the smart terminal, and reduces the power consumption of the terminal.
[0045] The battery life control method applied to a smart terminal provided by the embodiments of the present invention can be applied to an application environment including a smart terminal and a server. Among them, the smart terminal communicates with the server through a network. The method can also be applied to various different smart terminals such as personal computers, laptop computers, smart phones, and portable wearable devices. The embodiments of the present invention do not limit the specific type of the smart terminal. The operating system of the terminal can include Android, Harmony OS, IOS, Windows Phone, Windows, etc. The server can be implemented by an independent server or a server cluster composed of multiple servers. The embodiments of the present invention do not impose too many restrictions on this.
[0046] Refer to Figure 1 , which shows a step flowchart of an embodiment of a battery life control method applied to a smart terminal according to an embodiment of the present invention. The smart terminal runs multiple application programs, and specifically may include the following steps:
[0047] Step 101: Obtain the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information of the application program.
[0048] In the embodiments of the present invention, the application program includes background application programs and front-end application programs. In terms of the types of application programs, the application program may include game application programs, social application programs, shopping application programs, tool-type application programs, financial application programs, educational application programs, life service application programs, etc. The embodiments of the present invention do not impose excessive restrictions on this.
[0049] Game application programs refer to software tools for entertainment games and casual games; social application programs refer to social software tools for social network functions.
[0050] Shopping application programs refer to software tools for online shopping in the new e-commerce, which has become a daily consumption channel.
[0051] Tool-type application programs refer to software tools that provide various auxiliary functions, such as transportation tools, listening to music, watching movies, surfing the Internet, taking a taxi, etc.
[0052] Educational application programs refer to software tools for learning and education, which have functions such as online courses and learning management software.
[0053] Financial application programs refer to software tools for financial management such as banks and securities; life service application programs refer to software tools that cover aspects such as clothing, food, housing, and transportation and provide convenient life services for people. The above classification of application programs of different types is only an example of the embodiments of the present invention, and the application program can also be classified according to other classification methods. For example, according to the target users, such as children's application programs, elderly application programs, business application programs, ordinary consumer application programs, etc. The embodiments of the present invention do not impose excessive restrictions on this.
[0054] Specifically applied to the embodiments of the present invention, the log file of the application program is first obtained, and the brightness adjustment record, volume adjustment record, and content color adjustment record are extracted from the log file; then the brightness adjustment record, volume adjustment record, and content color adjustment record are processed through data to obtain the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information. Among them, the brightness dynamic adjustment information refers to the correlation information between the screen brightness and the unit power consumption during the operation of the application program, the volume dynamic adjustment information refers to the correlation information between the volume and the unit power consumption during the operation of the application program, and the content color dynamic adjustment information refers to the correlation information between the content color and the unit power consumption during the operation of the application program.
[0055] That is, in the embodiments of the present invention, obtaining the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information of the application program includes:
[0056] Extracting brightness adjustment records, volume adjustment records, and content color adjustment records from the log file of the application program;
[0057] Respectively extracting brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information through the brightness adjustment records, volume adjustment records, and content color adjustment records.
[0058] The brightness adjustment record refers to the record of the high and low of the screen brightness adjustment when the intelligent terminal runs a certain application program in the foreground. For example, during a certain period when a certain music or video application program runs, the brightness increases from x1 to x2; and the volume adjustment record refers to the record of the high and low of the volume adjustment when a certain application program runs in the foreground. For example, during a certain period when a certain music or video application program runs, the brightness decreases from B1 to B2; the content color adjustment record refers to the record of the change in RGB value when a certain application program runs in the foreground.
[0059] Correspondingly, the brightness dynamic adjustment information refers to the correlation information between the screen brightness and the unit power consumption during the running process of the application program; the volume dynamic adjustment information refers to the correlation information between the volume and the unit power consumption during the running process of the application program, and the content color dynamic adjustment information refers to the correlation information between the content color and the unit power consumption during the running process of the application program. The three can be calculated based on the change amount in the brightness adjustment record, volume adjustment record, and content color adjustment record and the power consumption of each application running alone. For example, the brightness dynamic adjustment information is L = r / d, where r represents the change amount of the screen brightness and d represents the power consumption of each application running alone.
[0060] It should be noted that the above brightness adjustment records, volume adjustment records, and content color adjustment records are only several examples in the embodiments of the present invention. Data processing can also be performed through other operating parameters (such as CPU operating efficiency, memory operating efficiency, etc.) to obtain a battery life scheduling control scheme. The embodiments of the present invention do not impose too many restrictions on this; in a preferred embodiment, when the operating parameters are CPU operating efficiency and memory operating efficiency, the application program can include background components of the system, such as Service components, Content components, Broadcast Receivers components, Notifications components, etc. The embodiments of the present invention do not impose too many restrictions on this.
[0061] Step 102, associating the brightness dynamic adjustment information, volume dynamic adjustment information, content color dynamic adjustment information with the basic power consumption of the smart terminal to obtain a battery life scheduling unit;
[0062] In an embodiment of the present invention, after obtaining the dynamic adjustment information of brightness, the dynamic adjustment information of volume, and the dynamic adjustment information of content color, the three can be associated with the basic power consumption of the smart terminal to obtain a battery life scheduling unit. It is worth noting that the basic power consumption refers to the unit power consumption of the smart terminal when the user-installed application is not running (i.e., in standby mode).
[0063] Specifically applied to the embodiment of the present invention, the battery life scheduling unit includes a first scheduling unit, a second scheduling unit, a third scheduling unit, and an Nth scheduling unit; the brightness dynamic adjustment information, the volume dynamic adjustment information, and the content color dynamic adjustment information are associated with the basic power consumption of the smart terminal to obtain the battery life scheduling unit, including:
[0064] Selecting a background top application from among all the applications, and determining the background top application as a specific application;
[0065] Extracting brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information of the specific application;
[0066] The brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information of the specific application are associated with the preset basic power consumption to obtain a first scheduling unit, and the above steps of selecting the background top-layer application from all applications and determining the background top-layer application as a specific application are repeated, and the second scheduling unit, the third scheduling unit, and the Nth scheduling unit are obtained by repeating the cycle.
[0067] like Figure 2 As shown, each scheduling unit includes a brightness dynamic adjustment information, a volume dynamic adjustment information, and a content color dynamic adjustment information. For example, the scheduling unit 1 includes brightness dynamic adjustment information 1, volume dynamic adjustment information 1, and content color dynamic adjustment information 1. The scheduling unit 2 includes brightness dynamic adjustment information 2, volume dynamic adjustment information 2, and content color dynamic adjustment information 2. Of course, each scheduling unit may also include other operating parameters, such as CPU operating efficiency, memory operating efficiency, etc. The embodiments of the present invention do not impose too many restrictions on this.
[0068] Step 103, generating a basic scheduling path of a battery life scheduling unit for multiple applications;
[0069] Further applied to the embodiment of the present invention, after obtaining multiple battery life scheduling units, basic scheduling paths of the multiple battery life scheduling units may be generated;
[0070] Specifically, the basic scheduling path of the battery life scheduling unit for generating multiple applications includes: by combining different levels of brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information in the first scheduling unit, second scheduling unit, third scheduling unit, ..., Nth scheduling unit, different basic scheduling paths are obtained, and the basic scheduling paths are composed of a matrix list.
[0071] Specifically, as Figure 3 shown, the brightness dynamic adjustment information 1 can be respectively connected to the volume dynamic adjustment information 1, volume dynamic adjustment information 2, volume dynamic adjustment information 3, and volume dynamic adjustment information 4, and the volume dynamic adjustment information 1 can also be respectively connected to the content color dynamic adjustment information 1, content color dynamic adjustment information 2, content color dynamic adjustment information 3, and content color dynamic adjustment information 4; in this way, different basic scheduling paths can be combined, such as a certain basic scheduling path being brightness dynamic adjustment information 1, volume dynamic adjustment information 1, content color dynamic adjustment information 1, or brightness dynamic adjustment information 1, volume dynamic adjustment information 2, content color dynamic adjustment information 3, or brightness dynamic adjustment information 1, volume dynamic adjustment information 2, content color dynamic adjustment information 4, or brightness dynamic adjustment information 4, volume dynamic adjustment information 2, content color dynamic adjustment information 3. In the embodiments of the present invention, it is ensured that each path contains the change information of each brightness, volume, and content color, providing a basis for the intelligent optimization of the ant colony algorithm and improving the accuracy of the output scheduling scheme.
[0072] Step 104, traverse the basic scheduling path based on the ant colony algorithm to obtain a battery life scheduling control scheme, and control the operation of the intelligent terminal according to the battery life scheduling control scheme.
[0073] In the embodiments of the present invention, by traversing the basic scheduling path based on the ant colony algorithm, a battery life scheduling control scheme is obtained. The ant colony algorithm is a swarm intelligence optimization algorithm that simulates the foraging behavior of ants in nature, provides strong global search capabilities and parallel data processing capabilities, effectively avoids the problem of local optimal solutions, has high robustness, is suitable for multi-screen display application scenarios, especially the split-screen application scenario of foldable screens, improves the scheduling control efficiency of applications, effectively improves the battery life of intelligent terminals, and reduces the power consumption of terminals.
[0074] Specifically applied to the embodiments of the present invention, the traversing the basic scheduling path based on the ant colony algorithm to obtain a battery life scheduling control scheme and controlling the operation of the intelligent terminal according to the battery life scheduling control scheme includes:
[0075] Set the ant colony size, pheromone parameter, and heuristic information value in the ant colony algorithm. Additionally, the initial parameters of other ant colony algorithms can also be set, and the embodiments of the present invention do not impose excessive restrictions on this.
[0076] Further, traverse the ants and the battery life scheduling unit to generate an initial solution. Calculate the row transfer probability for the battery life scheduling units that meet the preset conditions until the traversal of the battery life scheduling units is completed. After traversing all the ants, update the pheromone parameters for the battery life scheduling units.
[0077] Determine the scheduling values of all the preliminary solutions according to the constructed battery life scheduling objective function. Select the initial solution with the smallest scheduling value in the initial solutions as the battery life scheduling control solution. Control the operation of the intelligent terminal according to the battery life scheduling control solution.
[0078] Further applied to the embodiments of the present invention, the composition method of the battery life scheduling objective function includes: obtaining the best energy consumption ratio for brightness adjustment, the best energy consumption ratio for volume adjustment, and the best energy consumption ratio for content color adjustment of the application program.
[0079] Form the battery life scheduling objective function through the best energy consumption ratio for brightness adjustment, the best energy consumption ratio for volume adjustment, the best energy consumption ratio for content color adjustment, and the terminal battery power change curve. The best energy consumption ratio for brightness adjustment refers to the preset ratio of brightness to power consumption. The best energy consumption ratio for volume adjustment refers to the preset ratio of volume to power consumption. The best energy consumption ratio for volume adjustment refers to the preset ratio of volume to power consumption.
[0080] In the embodiments of the present invention, the minimum energy consumption of the application program can be used as the objective function, specifically as follows.
[0081]
[0082] Among them, T g represents the scheduling value of the battery life scheduling objective function; Ai represents the best energy consumption ratio for brightness adjustment of the i-th application program; h represents the initial point of the terminal battery power change curve; Bi represents the best energy consumption ratio for volume adjustment of the i-th application program; e represents the middle point of the terminal battery power change curve; Ci represents the best energy consumption ratio for content color adjustment of the i-th application program; o represents the end point of the terminal battery power change curve; U represents the basic power consumption of the intelligent terminal; N represents the number of application programs, i = 1, 2, 3, 4 · N, and i is a positive integer.
[0083] In a preferred embodiment, a battery life scheduling objective function can also be set according to the CPU energy efficiency or the user usage habits combined with energy consumption, and the embodiments of the present invention do not impose excessive restrictions on this.
[0084] Specifically, the battery life scheduling objective function combined with the CPU energy efficiency is as follows.
[0085]
[0086] Among them, Tgn represents the scheduling value of the battery life scheduling objective function combined with the CPU energy efficiency; r represents the coefficient corresponding to the CPU energy efficiency;
[0087] Furthermore, the battery life scheduling objective function combined with the user's usage habits is specifically as follows:
[0088]
[0089] Among them, Tgx represents the scheduling value of the battery life scheduling objective function combined with the user's usage habits; s represents the coefficient corresponding to the user's usage habits;
[0090] In an application scenario of an embodiment of the present invention, for example, a folding screen is in a three-screen state, and the corresponding application programs are specific application program 1, specific application program 2, and specific application program 3; according to the output battery life scheduling control scheme: brightness dynamic adjustment information 1, volume dynamic adjustment information 1, and content color dynamic adjustment information 1, control the adjustment of relevant parameters of the above-mentioned intelligent terminal, effectively improving the battery life of the intelligent terminal, or, taking the three initial schemes with the smallest scheduling values as the battery life scheduling control scheme, and controlling the operation of the above 3 specific application programs with these three battery life scheduling control schemes.
[0091] In an embodiment of the present invention, the battery life control method applied to an intelligent terminal includes: obtaining the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information of the application program; associating the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information with the basic power consumption of the intelligent terminal to obtain a battery life scheduling unit; generating a basic scheduling path of the battery life scheduling unit for multiple application programs; traversing the basic scheduling path based on the ant colony algorithm to obtain a battery life scheduling control scheme, and controlling the operation of the intelligent terminal according to the battery life scheduling control scheme; providing strong global search ability and parallel processing ability, effectively avoiding the problem of falling into local optimal solutions, having high robustness, being applicable to the application scenario of multi-screen display, especially the split-screen application scenario of folding screens, improving the scheduling control efficiency of application programs, effectively improving the battery life of the intelligent terminal, and reducing the power consumption of the terminal.
[0092] It should be noted that for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the embodiments of the present invention are not limited by the described action sequence, because according to the embodiments of the present invention, some steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily essential for the embodiments of the present invention.
[0093] Referring to Figure 4 , a structural block diagram of an embodiment of a battery life control system applied to a smart terminal according to an embodiment of the present invention is shown. The smart terminal runs multiple application programs, and specifically may include the following modules:
[0094] The first acquisition module 301 is used to acquire the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information of the application program;
[0095] The association module 302 is used to associate the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information with the basic power consumption of the smart terminal to obtain a battery life scheduling unit;
[0096] The generation module 303 is used to generate a basic scheduling path of the battery life scheduling unit for multiple application programs;
[0097] The traversal module 304 is used to traverse the basic scheduling path based on the ant colony algorithm to obtain a battery life scheduling control scheme, and control the operation of the smart terminal according to the battery life scheduling control scheme.
[0098] Preferably, the first acquisition module includes:
[0099] The extraction sub-module is used to extract the brightness adjustment record, volume adjustment record, and content color adjustment record from the log file of the application program;
[0100] The first extraction sub-module is used to respectively extract the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information through the brightness adjustment record, volume adjustment record, and content color adjustment record; wherein, the brightness dynamic adjustment information refers to the correlation information between the screen brightness and the unit power consumption during the operation of the application program, the volume dynamic adjustment information refers to the correlation information between the volume and the unit power consumption during the operation of the application program, and the content color dynamic adjustment information refers to the correlation information between the content color and the unit power consumption during the operation of the application program.
[0101] Preferably, the battery life scheduling unit includes a first scheduling unit, a second scheduling unit, a third scheduling unit... an Nth scheduling unit; the association module includes:
[0102] A determination submodule is used to select a background top application from among all the applications and determine the background top application as a specific application;
[0103] A second extraction submodule is used to extract the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information of the specific application;
[0104] The association relationship establishment submodule is used to establish an association relationship between the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information of the specific application and the preset basic power consumption, to obtain a first scheduling unit, repeat the above steps of selecting the background top-layer application from all applications and determining the background top-layer application as a specific application, and repeat the cycle to obtain a second scheduling unit, a third scheduling unit, and an Nth scheduling unit.
[0105] Preferably, the generating module comprises:
[0106] The combination submodule is used to obtain different basic scheduling paths by combining different levels of brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information in the first scheduling unit, the second scheduling unit, the third scheduling unit, and the Nth scheduling unit, wherein the basic scheduling path is composed of a matrix array table.
[0107] Preferably, the traversal module includes:
[0108] The setting submodule is used to set the ant colony size, pheromone parameters, and heuristic information value in the ant colony algorithm;
[0109] A traversal submodule is used to traverse the ants and the endurance scheduling units, generate an initial plan, and calculate the row transfer probability of the endurance scheduling units that meet the preset conditions until the endurance scheduling unit traversal is completed. After traversing all the ants, the pheromone parameters of the endurance scheduling unit are updated;
[0110] A calculation submodule is used to calculate the scheduling values of all the initial solutions of the range scheduling control according to the constructed range scheduling objective function, and determine the range scheduling control solution in the initial solution through the scheduling values;
[0111] The operation of the smart terminal is controlled according to the battery life scheduling control scheme.
[0112] Preferably, the system further comprises:
[0113] The second acquisition module is used to obtain the optimal energy consumption ratio of brightness adjustment, volume adjustment, and content color adjustment of the application;
[0114] A composition module is used to form a battery life scheduling objective function through the optimal energy consumption ratio of brightness adjustment, the optimal energy consumption ratio of volume adjustment, the optimal energy consumption ratio of content color adjustment, and the terminal power change curve.
[0115] For the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, please refer to the partial description of the method embodiment.
[0116] For the specific limitations of the battery life control system applied to the intelligent terminal, please refer to the limitations of the battery life control method applied to the intelligent terminal in the above text, which will not be elaborated here. Each module in the above battery life control system applied to the intelligent terminal can be implemented in whole or in part by software, hardware, and their combinations. The above-mentioned modules can be embedded in the processor of the intelligent terminal in hardware form or independent of it, or stored in the memory of the intelligent terminal in software form, so that the processor can call and execute the operations corresponding to the above modules.
[0117] The above-provided battery life control system applied to the intelligent terminal can be used to execute the battery life control method applied to the intelligent terminal provided in any of the above embodiments, and has the corresponding functions and beneficial effects.
[0118] In one embodiment, an intelligent terminal is provided, and its internal structure diagram can be as Figure 5 shown. The intelligent terminal includes a processor, a memory, a network interface, a display screen, and an input system connected through a system bus. Among them, the processor of the intelligent terminal is used to provide computing and control capabilities. The memory of the intelligent terminal includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the intelligent terminal is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it realizes a method for simulating the daylighting rate. The display screen of the intelligent terminal can be a liquid crystal display screen or an electronic ink display screen. The input system of the intelligent terminal can be a touch layer covered on the display screen, or a button, a trackball, or a touchpad set on the shell of the intelligent terminal, or an external keyboard, a touchpad, or a mouse, etc.
[0119] Those skilled in the art can understand that Figure 5 the structure shown in
[0120] In one embodiment, an intelligent terminal is provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0121] Obtain the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information of the application program;
[0122] Associate the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information with the basic power consumption of the intelligent terminal to obtain a battery life scheduling unit;
[0123] Generate the basic scheduling paths of the battery life scheduling units of multiple application programs;
[0124] Traverse the basic scheduling paths based on the ant colony algorithm to obtain a battery life scheduling control scheme, and control the operation of the intelligent terminal according to the battery life scheduling control scheme.
[0125] Preferably, the obtaining the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information of the application program includes:
[0126] Extract the brightness adjustment records, volume adjustment records, and content color adjustment records from the log file of the application program;
[0127] Respectively extract the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information through the brightness adjustment records, volume adjustment records, and content color adjustment records; wherein, the brightness dynamic adjustment information refers to the correlation information between the screen brightness and the unit power consumption during the operation of the application program, the volume dynamic adjustment information refers to the correlation information between the volume and the unit power consumption during the operation of the application program, and the content color dynamic adjustment information refers to the correlation information between the content color and the unit power consumption during the operation of the application program.
[0128] Preferably, the battery life scheduling unit includes a first scheduling unit, a second scheduling unit, a third scheduling unit... an Nth scheduling unit; the associating the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information with the basic power consumption of the intelligent terminal to obtain a battery life scheduling unit includes:
[0129] Select the topmost background application program among all application programs, and determine the background topmost application program as a specific application program;
[0130] Extract the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information of the specific application program;
[0131] Associate the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information of the specific application program with the preset basic power consumption to obtain the first scheduling unit. Repeat the above steps of selecting the topmost background application program from all application programs and determining the background topmost application program as the specific application program, and cycle back and forth to obtain the second scheduling unit, the third scheduling unit... the Nth scheduling unit.
[0132] Preferably, the basic scheduling path for generating the endurance scheduling units of multiple application programs includes:
[0133] By combining the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information at different levels in the first scheduling unit, the second scheduling unit, the third scheduling unit... the Nth scheduling unit, different basic scheduling paths are obtained, and the basic scheduling paths form a matrix list.
[0134] Preferably, traversing the basic scheduling path based on the ant colony algorithm to obtain an endurance scheduling control scheme, and controlling the operation of the intelligent terminal according to the endurance scheduling control scheme includes:
[0135] Set the ant colony size, pheromone parameter, and heuristic information value in the ant colony algorithm;
[0136] Traverse the ants and the endurance scheduling units to generate an initial scheme, calculate the row transfer probability for the endurance scheduling units that meet the preset conditions until the endurance scheduling units are traversed. After traversing all the ants, update the pheromone parameters of the endurance scheduling units;
[0137] Calculate the scheduling values of all the preliminary endurance scheduling control schemes according to the constructed endurance scheduling objective function, and determine the endurance scheduling control scheme in the initial scheme through the scheduling values;
[0138] Control the operation of the intelligent terminal according to the endurance scheduling control scheme.
[0139] Preferably, the method further includes:
[0140] Obtain the best energy consumption ratio for brightness adjustment, the best energy consumption ratio for volume adjustment, and the best energy consumption ratio for content color adjustment of the application program;
[0141] Form an endurance scheduling objective function through the best energy consumption ratio for brightness adjustment, the best energy consumption ratio for volume adjustment, the best energy consumption ratio for content color adjustment, and the terminal power change curve.
[0142] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented;
[0143] Obtain the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information of the application program;
[0144] Associate the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information with the basic power consumption of the intelligent terminal to obtain a battery life scheduling unit;
[0145] Generate the basic scheduling paths of the battery life scheduling units of multiple application programs;
[0146] Traverse the basic scheduling paths based on the ant colony algorithm to obtain a battery life scheduling control scheme, and control the operation of the intelligent terminal according to the battery life scheduling control scheme.
[0147] Preferably, the obtaining the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information of the application program includes:
[0148] Extract the brightness adjustment records, volume adjustment records, and content color adjustment records from the log file of the application program;
[0149] Extract the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information through the brightness adjustment records, volume adjustment records, and content color adjustment records respectively; wherein, the brightness dynamic adjustment information refers to the correlation information between the screen brightness and the unit power consumption during the operation of the application program, the volume dynamic adjustment information refers to the correlation information between the volume and the unit power consumption during the operation of the application program, and the content color dynamic adjustment information refers to the correlation information between the content color and the unit power consumption during the operation of the application program.
[0150] Preferably, the battery life scheduling unit includes a first scheduling unit, a second scheduling unit, a third scheduling unit... an Nth scheduling unit; the associating the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information with the basic power consumption of the intelligent terminal to obtain a battery life scheduling unit includes:
[0151] Select the topmost background application program among all application programs, and determine the background topmost application program as a specific application program;
[0152] Extract the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information of the specific application program;
[0153] Associate the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information of the specific application with the preset basic power consumption to obtain the first scheduling unit. Repeat the above steps of selecting the topmost background application among all applications and determining the background topmost application as the specific application, and cycle back and forth to obtain the second scheduling unit, the third scheduling unit, ···, the Nth scheduling unit.
[0154] Preferably, the basic scheduling path for generating the battery life scheduling units of multiple applications includes:
[0155] By combining the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information at different levels in the first scheduling unit, the second scheduling unit, the third scheduling unit, ···, the Nth scheduling unit, different basic scheduling paths are obtained, and the basic scheduling paths form a matrix list.
[0156] Preferably, traversing the basic scheduling paths based on the ant colony algorithm to obtain a battery life scheduling control scheme, and controlling the operation of the intelligent terminal according to the battery life scheduling control scheme includes:
[0157] Set the ant colony size, pheromone parameter, and heuristic information value in the ant colony algorithm;
[0158] Traverse the ants and the battery life scheduling units to generate an initial scheme, calculate the row transfer probability for the battery life scheduling units that meet the preset conditions until the battery life scheduling units are traversed. After traversing all the ants, update the pheromone parameter for the battery life scheduling units;
[0159] Calculate the scheduling values of all the preliminary battery life scheduling control schemes according to the constructed battery life scheduling objective function, and determine the battery life scheduling control scheme in the initial scheme through the scheduling values;
[0160] Control the operation of the intelligent terminal according to the battery life scheduling control scheme.
[0161] Preferably, the method further includes:
[0162] Obtain the best energy consumption ratio for brightness adjustment, the best energy consumption ratio for volume adjustment, and the best energy consumption ratio for content color adjustment of the application;
[0163] Form a battery life scheduling objective function through the best energy consumption ratio for brightness adjustment, the best energy consumption ratio for volume adjustment, the best energy consumption ratio for content color adjustment, and the terminal battery power change curve.
[0164] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the various embodiments provided in this application can include non-volatile and / or volatile memories. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and Rambus dynamic RAM (RDRAM), etc.
[0165] The various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. For the same or similar parts among the various embodiments, reference can be made to each other.
[0166] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, system, or computer program product. Therefore, the embodiments of the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0167] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of systems, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, and the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing terminal devices generate for implementing in the processFigure 1 one or more processes and / or blocks Figure 1 a system of the functions specified in one or more blocks
[0168] These computer program instructions can also be stored in a computer-readable memory capable of guiding a computer or other programmable data processing terminal device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured article including an instruction method, and the instruction method realizes the processes Figure 1 one or more processes and / or blocks Figure 1 the functions specified in one or more blocks
[0169] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device, so that a series of operation steps are executed on the computer or other programmable terminal device to generate a computer-implemented process. Thus, the instructions executed on the computer or other programmable terminal device provide for realizing the processes Figure 1 one or more processes and / or blocks Figure 1 the steps of the functions specified in one or more blocks
[0170] Although the preferred embodiments of the embodiments of the present invention have been described, those skilled in the art can make additional changes and modifications once they learn the basic creative concepts. Therefore, the appended claims are intended to be construed to include the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.
[0171] Finally, it should also be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, system, article or terminal device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, system, article or terminal device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of another identical element in the process, system, article or terminal device including the said element.
[0172] The above has introduced in detail a power consumption control method applied to a smart terminal, a power consumption control system applied to a smart terminal, a smart terminal, and a storage medium. In this article, specific examples are used to elaborate on the principle and implementation manner of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation on the present invention.
Claims
1. A battery life control method applied to a smart terminal, characterized in that, The intelligent terminal runs multiple application programs, including: Obtaining the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information of the application program; Associating the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information with the basic power consumption of the intelligent terminal to obtain a battery life scheduling unit; Generating the basic scheduling paths of the battery life scheduling units of multiple application programs; Traversing the basic scheduling paths based on the ant colony algorithm to obtain a battery life scheduling control scheme, and controlling the operation of the intelligent terminal according to the battery life scheduling control scheme.
2. The method according to claim 1, wherein The obtaining the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information of the application program includes: Extracting the brightness adjustment record, volume adjustment record, and content color adjustment record from the log file of the application program; Respectively extracting the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information through the brightness adjustment record, volume adjustment record, and content color adjustment record; wherein, the brightness dynamic adjustment information refers to the correlation information between the screen brightness and the unit power consumption during the operation of the application program, the volume dynamic adjustment information refers to the correlation information between the volume and the unit power consumption during the operation of the application program, and the content color dynamic adjustment information refers to the correlation information between the content color and the unit power consumption during the operation of the application program.
3. The method according to claim 1, wherein The battery life scheduling unit includes a first scheduling unit, a second scheduling unit, a third scheduling unit... an Nth scheduling unit; the associating the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information with the basic power consumption of the intelligent terminal to obtain a battery life scheduling unit includes: Selecting the topmost background application program among all application programs and determining the background topmost application program as a specific application program; Extracting the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information of the specific application program; Establishing an association relationship between the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information of the specific application program and the preset basic power consumption to obtain a first scheduling unit, and repeating the above steps of selecting the topmost background application program among all application programs and determining the background topmost application program as a specific application program, and looping back and forth to obtain a second scheduling unit, a third scheduling unit... an Nth scheduling unit.
4. The method according to claim 3, characterized in that, The generating the basic scheduling paths of the battery life scheduling units of multiple application programs includes: Combining the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information at different levels in the first scheduling unit, second scheduling unit, third scheduling unit... Nth scheduling unit to obtain different basic scheduling paths, and the basic scheduling paths are composed of a matrix list.
5. The method according to claim 1, characterized in that, The traversing the basic scheduling paths based on the ant colony algorithm to obtain a battery life scheduling control scheme, and controlling the operation of the intelligent terminal according to the battery life scheduling control scheme includes: Setting the ant colony size, pheromone parameter, and heuristic information value in the ant colony algorithm; Traverse the ants and the battery life scheduling units to generate an initial solution. Calculate the row transition probability for the battery life scheduling units that meet the preset conditions until all the battery life scheduling units are traversed. After traversing all the ants, update the pheromone parameters of the battery life scheduling units. Calculate the scheduling values of all the preliminary battery life scheduling control solutions according to the constructed battery life scheduling objective function, and determine the battery life scheduling control solution in the initial solution through the scheduling values. Control the operation of the intelligent terminal according to the battery life scheduling control solution.
6. The method according to claim 5, wherein The method further includes: Obtain the best energy consumption ratio for brightness adjustment, the best energy consumption ratio for volume adjustment, and the best energy consumption ratio for content color adjustment of the application program. Form a battery life scheduling objective function through the best energy consumption ratio for brightness adjustment, the best energy consumption ratio for volume adjustment, the best energy consumption ratio for content color adjustment, and the terminal battery power change curve.
7. A battery life control system applied to an intelligent terminal, characterized in that, Multiple application programs are running on the intelligent terminal, including: A first acquisition module for obtaining the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information of the application program. An association module for associating the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information with the basic power consumption of the intelligent terminal to obtain a battery life scheduling unit. A generation module for generating the basic scheduling paths of the battery life scheduling units of multiple application programs. A traversal module for traversing the basic scheduling paths based on the ant colony algorithm to obtain a battery life scheduling control solution, and controlling the operation of the intelligent terminal according to the battery life scheduling control solution.
8. The system according to claim 7, wherein The first acquisition module includes: An extraction sub-module for extracting brightness adjustment records, volume adjustment records, and content color adjustment records from the log file of the application program. A first extraction sub-module for respectively extracting the brightness dynamic adjustment information, volume dynamic adjustment information, and content color dynamic adjustment information through the brightness adjustment records, volume adjustment records, and content color adjustment records; wherein, the brightness dynamic adjustment information refers to the correlation information between the screen brightness and the unit power consumption during the operation of the application program, the volume dynamic adjustment information refers to the correlation information between the volume and the unit power consumption during the operation of the application program, and the content color dynamic adjustment information refers to the correlation information between the content color and the unit power consumption during the operation of the application program.
9. An intelligent terminal, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the battery life control method for an intelligent terminal according to any one of claims 1 to 6.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the battery life control method for an intelligent terminal according to any one of claims 1 to 6.