Standby battery charging control method and device, computer equipment and storage medium
By intelligently identifying the load type of the mobile terminal and adjusting the charging power in combination with the battery status, the problem of long charging time and low efficiency of the backup battery in the prior art is solved, and the reliability and safety of the backup battery are improved.
Patent Information
- Application Number
- CN202510071266.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-16
- Publication Date
- 2025-04-25
AI Technical Summary
The prior art When the main battery charges the backup battery, the charging time is too long, resulting in the low voltage of the backup battery, which makes it impossible to provide stable power support at critical moments, and the low charging efficiency may lead to abnormal backup battery, posing safety hazards.
Through the CPU usage and memory usage calculation components, intelligently identify the load type of the mobile terminal, and combine the current battery voltage and temperature of the backup battery to determine the target charging power of the charging management component to achieve comprehensive and intelligent adjustment of the charging power.
It improves the reliability of the backup battery, ensures stable power support can be provided at critical moments, reduces the risk of backup battery abnormalities caused by low charging efficiency, and enhances the battery life and safety.
Smart Images

Figure CN119891458A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of mobile device battery management, and in particular to a backup battery charging control method, device, computer equipment and storage medium. Background Art
[0002] Modern mobile devices, such as smartphones, are usually equipped with a main battery and a backup battery. The main battery is responsible for the main power supply of the device, while the backup battery provides temporary power when the main battery is removed or exhausted to maintain the basic operation of the system and prevent data loss caused by sudden shutdown. However, the existing technology has some defects and shortcomings in the process of charging the main battery to the backup battery.
[0003] Existing charging schemes usually use a simple constant voltage and current charging method. For example, when the backup battery voltage is lower than 3.8V, it is charged through a constant power supply of 5V and 50mA (i.e., 0.25W power) until the battery is fully charged and the charging is triggered to be cut off. The pain point of charging at rated voltage and current (i.e., at constant charging power) is that the charging time is too long, resulting in a low voltage of the backup battery and an inability to provide stable power support at critical moments; due to low charging efficiency, long-term charging may cause abnormal conditions such as bulging of the backup battery, posing a safety hazard; during the charging process, the motherboard temperature is not effectively monitored, which may cause overheating and reduce the service life of the backup battery. Therefore, how to control the charging power according to the real-time status of the backup battery and thereby improve the reliability of the backup battery has become a technical problem that needs to be solved urgently. Summary of the invention
[0004] The present application provides a backup battery charging control method, device, computer equipment and storage medium to control the charging power according to the real-time status of the backup battery, thereby improving the reliability of the backup battery.
[0005] In a first aspect, the present application provides a backup battery charging control method, the method comprising:
[0006] Determine the CPU usage and memory usage of the mobile terminal by using the CPU usage calculation component and the memory usage calculation component respectively, and determine the load type of the mobile terminal according to the CPU usage and the memory usage;
[0007] Detecting the current battery voltage of the backup battery, and determining the current battery temperature of the backup battery through the temperature detection component;
[0008] The target charging power of the charging management component is determined according to the current battery voltage, the load type and the current battery temperature, wherein the charging power is the charging power of the main battery to the backup battery.
[0009] In a second aspect, the present application further provides a backup battery charging control device, the device comprising:
[0010] a load type determination module, configured to determine the CPU usage and memory usage of the mobile terminal through the CPU usage calculation component and the memory usage calculation component respectively, and determine the load type of the mobile terminal according to the CPU usage and the memory usage;
[0011] a voltage and temperature determination module, used to detect the current battery voltage of the backup battery and determine the current battery temperature of the backup battery through the temperature detection component;
[0012] The target charging power determination module is used to determine the target charging power of the charging management component according to the current battery voltage, the load type and the current battery temperature, wherein the charging power is the charging power of the main battery to the backup battery.
[0013] In a third aspect, the present application also provides a computer device, which includes a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and implement the backup battery charging control method as described above when executing the computer program.
[0014] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the backup battery charging control method as described above.
[0015] The present application discloses a backup battery charging control method, device, computer equipment and storage medium, wherein the backup battery charging control method comprises determining the CPU usage and memory usage of the mobile terminal through the CPU usage calculation component and the memory usage calculation component, respectively, and determining the load type of the mobile terminal according to the CPU usage and the memory usage; detecting the current battery voltage of the backup battery, and determining the current battery temperature of the backup battery through the temperature detection component; determining the target charging power of the charging management component according to the current battery voltage, the load type and the current battery temperature, wherein the charging power is the charging power of the main battery to the backup battery. In the above manner, the present application intelligently identifies the load type of the mobile terminal through the CPU usage and memory usage calculation components, introduces the temperature detection component, monitors the temperature of the backup battery to realize comprehensive intelligent adjustment of the charging power, and improves the reliability of the backup battery. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0017] Figure 1 is a schematic flow chart of a backup battery charging control method provided by an embodiment of the present application;
[0018] Figure 2 A schematic block diagram of a backup battery charging control device provided in an embodiment of the present application;
[0019] Figure 3 A schematic block diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0020] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0021] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0022] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0023] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0024] The embodiments of the present application provide a backup battery charging control method, device, computer equipment and storage medium. The backup battery charging control method can be applied to a mobile terminal, and through the CPU usage and memory usage calculation components, the load type of the mobile terminal is intelligently identified, and a temperature detection component is introduced to monitor the temperature of the backup battery to achieve comprehensive intelligent adjustment of the charging power, thereby improving the reliability of the backup battery. The mobile terminal can be a smart phone, a portable computer or other mobile device that has a backup battery requirement.
[0025] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0026] See also Figure 1 , Figure 1 This is a schematic flow chart of a backup battery charging control method provided by an embodiment of the present application. The backup battery charging control method can be applied to a server, and is used to intelligently identify the load type of a mobile terminal through a CPU usage and memory usage calculation component, introduce a temperature detection component, monitor the temperature of the backup battery to achieve comprehensive intelligent adjustment of the charging power, and improve the reliability of the backup battery.
[0027] like Figure 1 As shown, the backup battery charging control method specifically includes steps S10 to S30.
[0028] Step S10: determining the CPU usage and memory usage of the mobile terminal by using the CPU usage calculation component and the memory usage calculation component respectively, and determining the load type of the mobile terminal according to the CPU usage and the memory usage;
[0029] Specifically, through the CPU usage calculation component, the total usage (tota l) and current usage (used) of the mobile terminal CPU are obtained, and the formula for calculating the CPU usage is as follows: CPU usage = used / tota l×100%; through the memory usage calculation component, the total capacity (tota l) and current used capacity (used) of the mobile terminal memory are obtained, and the formula for calculating the memory usage is as follows: memory usage = used / tota l×100%.
[0030] The load type of the current mobile terminal is determined based on the actual values of the memory usage rate and the CPU usage rate. The load type classification rule is the load size. For example, the load can be divided into a high load type, a medium load type, and a low load type based on the memory usage rate and the CPU usage rate. More specifically, the load type can be determined based on the load threshold set by the user and compared with the current usage rate of the current mobile terminal.
[0031] For example, when both the CPU usage and the memory usage are low (for example, the CPU usage is ≤30%, the memory usage is ≤30%), it is determined to be a low load type;
[0032] When the CPU usage or memory usage is at a medium level (for example, CPU usage > 30% and ≤ 60%, memory usage > 30% and ≤ 60%), it is determined to be a medium load type;
[0033] When both the CPU usage and the memory usage are high (for example, CPU usage>60%, memory usage>60%), it is determined to be a high load type, wherein the specific values are only examples and are not limiting.
[0034] Step S20, detecting the current battery voltage of the backup battery, and determining the current battery temperature of the backup battery through the temperature detection component;
[0035] Specifically, a voltage detection component is used to monitor the current voltage value of the backup battery in real time, and a temperature detection component (such as an NTC circuit) is used to obtain the current temperature value of the backup battery in real time.
[0036] Step S30: determining a target charging power of the charging management component according to the current battery voltage, the load type and the current battery temperature, wherein the charging power is the charging power of the main battery to the backup battery.
[0037] Specifically, when the load is low and the backup battery temperature is within a suitable range (e.g., 5°C-50°C), a higher charging power (e.g., 7V, 50mA) is selected according to the battery voltage for fast charging;
[0038] When the load is medium or the battery temperature is high (for example, 51°C-60°C), the charging power is appropriately reduced (such as 5V, 20mA) to balance charging efficiency and device safety.
[0039] When the load is high, or the battery temperature is too high (over 60°C) or too low (below 5°C), charging is stopped or a very low charging power (such as 5V, 20mA) is selected to protect the backup battery and the mobile terminal.
[0040] Specifically, the main battery in the mobile phone device is used to charge the backup battery more efficiently, safely and stably, ensuring that the backup battery can be fully charged for a long time as much as possible. In addition, the charging power is adjusted according to the load of the main battery to prevent the user from obviously feeling an abnormally rapid drop in power.
[0041] This embodiment discloses a backup battery charging control method, device, computer equipment and storage medium, the backup battery charging control method includes determining the CPU usage and memory usage of the mobile terminal through the CPU usage calculation component and the memory usage calculation component respectively, and determining the load type of the mobile terminal according to the CPU usage and the memory usage; detecting the current battery voltage of the backup battery, and determining the current battery temperature of the backup battery through the temperature detection component; determining the target charging power of the charging management component according to the current battery voltage, the load type and the current battery temperature, wherein the charging power is the charging power of the main battery to the backup battery. In the above manner, the present application intelligently identifies the load type of the mobile terminal through the CPU usage and memory usage calculation components, introduces the temperature detection component, monitors the temperature of the backup battery to achieve comprehensive intelligent adjustment of the charging power, and improves the reliability of the backup battery.
[0042] based on Figure 1 In the embodiment shown, in this embodiment, step S30 includes:
[0043] When the current battery voltage is greater than a preset battery voltage threshold, determining the target charging power to be 0;
[0044] When the current battery voltage is less than or equal to the preset battery voltage threshold, the target charging power of the charging management component is determined according to the load type and the current battery temperature.
[0045] Specifically, a voltage detection component is used to monitor the current voltage value of the backup battery in real time. According to the characteristics of the backup battery, a preset battery voltage threshold (for example, 4.2V) is set as a standard for judging whether the battery is close to a fully charged state. The detected current battery voltage is compared with the preset battery voltage threshold.
[0046] If the current battery voltage is greater than the preset battery voltage threshold, indicating that the backup battery is close to or has reached a fully charged state, the target charging power is determined to be 0, that is, charging is stopped. In this case, the target charging power of the charging management component is set to 0, and charging of the backup battery is stopped to prevent overcharging;
[0047] If the current battery voltage is less than or equal to the preset battery voltage threshold, it means that the backup battery is not fully charged and needs to be charged further.
[0048] When the load is low and the backup battery temperature is within a suitable range (e.g., 5°C-50°C), select a higher charging power (e.g., 7V, 50mA) for fast charging;
[0049] When the load is medium or the battery temperature is high (for example, 51°C-60°C), appropriately reduce the charging power (such as 5V, 30mA or 20mA) to balance charging efficiency and device safety;
[0050] When the load is high, or the battery temperature is too high (over 60°C) or too low (below 5°C), charging is stopped or a very low charging power (such as 5V, 20mA) is selected to protect the battery and the device.
[0051] Based on the above embodiment, in this embodiment, step S10 includes:
[0052] Determine a load type in which both the CPU usage rate and the memory usage rate are less than a preset first usage rate as a first load type;
[0053] Determine a load type in which the CPU usage rate or the memory usage rate is greater than the preset first usage rate and less than or equal to the preset second usage rate as a second load type;
[0054] The load type in which both the CPU usage rate and the memory usage rate are greater than the preset second usage rate is determined as a third load type.
[0055] Specifically, according to the performance and usage scenario of the mobile terminal, a preset first usage rate threshold (for example, 30%) is set as a standard for judging the low load state. Similarly, a preset second usage rate threshold (for example, 60%) is set as a dividing line for judging the medium load and high load states.
[0056] The calculated CPU usage and memory usage are compared with the preset first and second usage thresholds respectively.
[0057] If the CPU usage and the memory usage are both less than a preset first usage threshold (for example, both less than 30%), the current load type is determined as the first load type, indicating that the device is in a low load state;
[0058] If the CPU usage or the memory usage is greater than a preset first usage threshold and less than or equal to a preset second usage threshold (for example, greater than 30% and less than or equal to 60%), the current load type is determined as the second load type, indicating that the device is in a medium load state;
[0059] If both the CPU usage and the memory usage are greater than a preset second usage threshold (for example, both are greater than 60%), the current load type is determined as a third load type, indicating that the device is in a high load state.
[0060] Based on the above embodiment, in this embodiment, when the current battery voltage is less than or equal to the preset battery voltage threshold, determining the target charging power of the charging management component according to the load type and the current battery temperature includes:
[0061] Determining battery temperature gear information of the current battery temperature according to a preset battery temperature grouping rule and the current battery temperature;
[0062] The target charging power is determined according to the battery temperature gear information and the load type.
[0063] Based on the above embodiment, in this embodiment, determining the target charging power according to the battery temperature gear information and the load type includes:
[0064] When the battery temperature gear information is the first temperature gear information and the load type is the first load type, determining that the target charging power is a first gear charging power;
[0065] When the battery temperature gear information is the first temperature gear information and the load type is the second load type or the third load type, determining that the target charging power is the second gear charging power;
[0066] When the battery temperature gear information is the second temperature gear information and the load type is the first load type or the second load type, determining that the target charging power is the second gear charging power;
[0067] When the battery temperature level information is the second temperature level information and the load type is the third load type, the target charging power is determined to be the third level charging power.
[0068] In one embodiment, specifically, because the charging efficiency and safety of the battery may be affected in a low or high temperature environment, a lower charging power (such as 5V, 20mA) is selected or charging is stopped to prevent battery damage.
[0069] In the case of a first load type (i.e., low load), a higher charging power is determined for fast charging;
[0070] In the case of the second load type (i.e., medium load), a medium charging power is determined to balance the charging efficiency and the device load;
[0071] In the case of the third load type (ie, high load), a lower charging power is determined or charging is stopped to avoid excessive burden on the device.
[0072] Further, when the current battery voltage is less than or equal to the preset battery voltage threshold, determining the target charging power of the charging management component according to the load type and the current battery temperature includes:
[0073] When the CPU usage rate is greater than a preset usage rate threshold, the target charging power is determined to be 0.
[0074] Further, when the current battery voltage is less than or equal to the preset battery voltage threshold, determining the target charging power of the charging management component according to the load type and the current battery temperature includes:
[0075] When the current battery temperature exceeds a preset battery temperature threshold, the target charging power is determined to be 0.
[0076] In combination with the above embodiments, the present application is exemplarily described below in combination with different load types, different temperatures and different battery voltages, wherein the various numerical values involved are only examples without any limitation.
[0077] 1. When the backup battery voltage is less than or equal to 4.2V
[0078] 1. When the backup battery temperature is between 5-50 degrees Celsius
[0079] 1) When the CPU usage is less than or equal to 30%
[0080] A. When the memory usage rate is less than or equal to 30%, the charging management component is controlled to charge the backup battery at 7V === 50mA, i.e. 0.35w power, and the output is controlled to be 50mA;
[0081] B. When the memory usage rate is greater than 30% and less than or equal to 60%, the backup battery is charged at 7V===30mA, i.e. 0.21w power, and the output is controlled to be 30mA;
[0082] C. When the memory usage rate is greater than 60%, the backup battery is charged at 7V===20mA, i.e. 0.14w power, and the output is controlled to be 20mA;
[0083] 2) When the CPU usage is greater than 30% and less than or equal to 60%
[0084] A. When the memory usage rate is less than or equal to 30%, the charging management component is controlled to charge the backup battery at 5V === 50mA, i.e. 0.25w power, and the output is controlled to be 50mA;
[0085] B. When the memory usage rate is greater than 30% and less than or equal to 60%, the backup battery is charged at 5V===30mA, i.e. 0.15w power, and the output is controlled to be 30mA;
[0086] C. When the memory usage rate is greater than 60%, the backup battery is charged at 5V===20mA, i.e. 0.10w power, and the output is controlled to be 20mA;
[0087] 3) When CPU usage is greater than 60%
[0088] The main battery will be stopped to charge the backup battery.
[0089] 2. When the backup battery temperature is between 51-60 degrees Celsius
[0090] 1) When the CPU usage is less than or equal to 30%
[0091] A. When the memory usage rate is less than or equal to 30%, the charging management component is controlled to charge the backup battery at 5V === 50mA, i.e. 0.25w power, and the output is controlled to be 50mA;
[0092] B. When the memory usage rate is greater than 30% and less than or equal to 60%, the backup battery is charged at 5V===30mA, i.e. 0.15w power, and the output is controlled to be 30mA;
[0093] C. When the memory usage rate is greater than 60%, the backup battery is charged at 5V===20mA, i.e. 0.10w power, and the output is controlled to be 20mA;
[0094] 2) When CPU usage is greater than 30%
[0095] The main battery will be stopped to charge the backup battery.
[0096] 3. When the backup battery temperature is greater than 60 degrees Celsius or less than 5 degrees Celsius
[0097] The main battery will be stopped to charge the backup battery, and the user will be prompted.
[0098] 2. When the backup battery voltage is greater than 4.2V (the voltage is reduced at this time to avoid the backup battery voltage being too high when it is close to the full charge voltage, and the backup battery voltage cannot be fully charged)
[0099] 1. When the backup battery temperature is between 5-50 degrees Celsius
[0100] 1) When the CPU usage is less than or equal to 30%
[0101] A. When the memory usage rate is less than or equal to 30%, the charging management component is controlled to charge the backup battery at 5V === 50mA, i.e. 0.25w power, and the output is controlled to be 50mA;
[0102] B. When the memory usage rate is greater than 30% and less than or equal to 60%, the backup battery is charged at 5V===30mA, i.e. 0.15w power, and the output is controlled to be 30mA;
[0103] C. When the memory usage rate is greater than 60%, the backup battery is charged at 5V===20mA, i.e. 0.10w power, and the output is controlled to be 20mA;
[0104] 2) When CPU usage is greater than 30%
[0105] The main battery will be stopped to charge the backup battery.
[0106] 2. When the backup battery temperature is greater than 50 degrees Celsius or less than 5 degrees Celsius
[0107] The main battery will be stopped to charge the backup battery.
[0108] 3. When the backup battery voltage is less than or equal to 4.2V
[0109] 1. When the backup battery temperature is between 5-50 degrees Celsius
[0110] 1) When the CPU usage is less than or equal to 30%
[0111] A. When the memory usage rate is less than or equal to 30%, the charging management component is controlled to charge the backup battery at 9V === 50mA, i.e. 0.45w power, and the output is controlled to be 50mA;
[0112] B. When the memory usage rate is greater than 30% and less than or equal to 60%, the backup battery is charged at 9V===30mA, i.e. 0.27w power, and the output is controlled to be 50mA;
[0113] C. When the memory usage rate is greater than 60%, the backup battery is charged at 9V===20mA, i.e. 0.18w power, and the output is controlled to be 40mA;
[0114] 2) When the CPU usage is greater than 30% and less than or equal to 60%
[0115] A. When the memory usage rate is less than or equal to 30%, the charging management component is controlled to charge the backup battery at 7V === 50mA, i.e. 0.35w power, and the output is controlled to be 50mA;
[0116] B. When the memory usage rate is greater than 30% and less than or equal to 60%, the backup battery is charged at 7V===30mA, i.e. 0.21w power, and the output is controlled to be 40mA;
[0117] C. When the memory usage rate is greater than 60%, the backup battery is charged at 7V===20mA, i.e. 0.14w power, and the output is controlled to be 30mA;
[0118] 3) When CPU usage is greater than 60%
[0119] The main battery will be stopped to charge the backup battery.
[0120] 2. When the backup battery temperature is between 51-60 degrees Celsius.
[0121] 1) When the CPU usage is less than or equal to 30%
[0122] A. When the memory usage rate is less than or equal to 30%, the charging management component is controlled to charge the backup battery at 5V === 50mA, i.e. 0.25w power, and the output is controlled to be 50mA;
[0123] B. When the memory usage rate is greater than 30% and less than or equal to 60%, the backup battery is charged at 5V === 30mA, i.e. 0.15w power, and the output is controlled to 50mA;
[0124] C. When the memory usage rate is greater than 60%, the backup battery is charged at 5V===20mA, i.e. 0.10w power, and the output is controlled to be 40mA;
[0125] 2) When CPU usage is greater than 30%
[0126] The main battery will be stopped to charge the backup battery.
[0127] 4. When the backup battery voltage is greater than 4.2V
[0128] 1. When the backup battery temperature is between 5-50 degrees Celsius
[0129] 1) When the CPU usage is less than or equal to 30%
[0130] A. When the memory usage rate is less than or equal to 30%, the charging management component is controlled to charge the backup battery at 5V === 50mA, i.e. 0.25w power, and the output is controlled to be 50mA;
[0131] B. When the memory usage rate is greater than 30% and less than or equal to 60%, the backup battery is charged at 5V===30mA, i.e. 0.15w power, and the output is controlled to be 30mA;
[0132] C. When the memory usage rate is greater than 60%, the backup battery is charged at 5V===20mA, i.e. 0.10w power, and the output is controlled to be 20mA;
[0133] 2) When CPU usage is greater than 30%
[0134] The main battery will be stopped to charge the backup battery.
[0135] 2. When the backup battery temperature is greater than 50 degrees Celsius or less than 5 degrees Celsius
[0136] The main battery will be stopped to charge the backup battery.
[0137] See also Figure 2 , Figure 2 The embodiment of the present application provides a schematic block diagram of a backup battery charging control device, which is used to execute the aforementioned backup battery charging control method. The backup battery charging control device can be configured on a server.
[0138] like Figure 2 As shown, the backup battery charging control device 400 includes:
[0139] A load type determination module 410, configured to determine the CPU usage and the memory usage of the mobile terminal through the CPU usage calculation component and the memory usage calculation component respectively, and determine the load type of the mobile terminal according to the CPU usage and the memory usage;
[0140] A voltage and temperature determination module 420, configured to detect the current battery voltage of the backup battery and determine the current battery temperature of the backup battery through the temperature detection component;
[0141] The target charging power determination module 430 is used to determine the target charging power of the charging management component according to the current battery voltage, the load type and the current battery temperature, wherein the charging power is the charging power of the main battery to the backup battery.
[0142] Furthermore, the target charging power determination module 430 includes:
[0143] A battery high voltage submodule, configured to determine that the target charging power is 0 when the current battery voltage is greater than a preset battery voltage threshold;
[0144] The battery low voltage submodule is used to determine the target charging power of the charging management component according to the load type and the current battery temperature when the current battery voltage is less than or equal to the preset battery voltage threshold.
[0145] Furthermore, the load type determination module 410 includes:
[0146] A first load type determination submodule, configured to determine a load type in which both the CPU usage rate and the memory usage rate are less than a preset first usage rate as a first load type;
[0147] A second load type determination submodule, configured to determine a load type in which the CPU usage rate or the memory usage rate is greater than the preset first usage rate and is less than or equal to the preset second usage rate as a second load type;
[0148] The third load type determination submodule is used to determine the load type in which both the CPU usage rate and the memory usage rate are greater than the preset second usage rate as a third load type.
[0149] Furthermore, the battery low-voltage submodule includes:
[0150] A battery temperature gear information determining unit, configured to determine the battery temperature gear information of the current battery temperature according to a preset battery temperature grouping rule and the current battery temperature;
[0151] The target charging power determination unit is used to determine the target charging power according to the battery temperature gear information and the load type.
[0152] Furthermore, the target charging power determination unit includes:
[0153] A first-gear charging power determination subunit, configured to determine, when the battery temperature gear information is the first temperature gear information and the load type is the first load type, that the target charging power is a first-gear charging power;
[0154] A second-gear charging power determination subunit, configured to determine that the target charging power is a second-gear charging power when the battery temperature gear information is the first temperature gear information and the load type is the second load type or the third load type;
[0155] A second-gear charging power determination subunit, configured to determine that the target charging power is the second-gear charging power when the battery temperature gear information is the second temperature gear information and the load type is the first load type or the second load type;
[0156] The third-gear charging power determination subunit is used to determine that the target charging power is a third-gear charging power when the battery temperature gear information is the second temperature gear information and the load type is the third load type.
[0157] Furthermore, the battery low-voltage submodule includes:
[0158] The CPU overload unit is used to determine that the target charging power is 0 when the CPU usage rate is greater than a preset usage rate threshold.
[0159] Furthermore, the battery low-voltage submodule includes:
[0160] The battery high temperature unit is used to determine that the target charging power is 0 when the current battery temperature exceeds a preset battery temperature threshold.
[0161] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described device and each module can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0162] The above-mentioned device can be implemented in the form of a computer program. Figure 3 Runs on the computer device shown.
[0163] See also Figure 3 , Figure 3 1 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device may be a server.
[0164] See also Figure 3 The computer device includes a processor, a memory and a network interface connected through a system bus, wherein the memory may include a non-volatile storage medium and an internal memory.
[0165] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any backup battery charging control method.
[0166] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.
[0167] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any backup battery charging control method.
[0168] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0169] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0170] In one embodiment, the processor is used to run a computer program stored in the memory to implement the following steps:
[0171] Determine the CPU usage and memory usage of the mobile terminal by using the CPU usage calculation component and the memory usage calculation component respectively, and determine the load type of the mobile terminal according to the CPU usage and the memory usage;
[0172] Detecting the current battery voltage of the backup battery, and determining the current battery temperature of the backup battery through the temperature detection component;
[0173] The target charging power of the charging management component is determined according to the current battery voltage, the load type and the current battery temperature, wherein the charging power is the charging power of the main battery to the backup battery.
[0174] In one embodiment, the target charging power of the charging management component is determined according to the current battery voltage, the load type and the current battery temperature, so as to achieve:
[0175] When the current battery voltage is greater than a preset battery voltage threshold, determining the target charging power to be 0;
[0176] When the current battery voltage is less than or equal to the preset battery voltage threshold, the target charging power of the charging management component is determined according to the load type and the current battery temperature.
[0177] In one embodiment, the CPU usage calculation component and the memory usage calculation component are used to determine the CPU usage and the memory usage of the mobile terminal, respectively, and the load type of the mobile terminal is determined according to the CPU usage and the memory usage, so as to achieve:
[0178] Determine a load type in which both the CPU usage rate and the memory usage rate are less than a preset first usage rate as a first load type;
[0179] Determine a load type in which the CPU usage rate or the memory usage rate is greater than the preset first usage rate and less than or equal to the preset second usage rate as a second load type;
[0180] The load type in which both the CPU usage rate and the memory usage rate are greater than the preset second usage rate is determined as a third load type.
[0181] In one embodiment, when the current battery voltage is less than or equal to the preset battery voltage threshold, the target charging power of the charging management component is determined according to the load type and the current battery temperature, so as to achieve:
[0182] Determining battery temperature gear information of the current battery temperature according to a preset battery temperature grouping rule and the current battery temperature;
[0183] The target charging power is determined according to the battery temperature gear information and the load type.
[0184] In one embodiment, the target charging power is determined according to the battery temperature gear information and the load type, so as to achieve:
[0185] When the battery temperature gear information is the first temperature gear information and the load type is the first load type, determining that the target charging power is a first gear charging power;
[0186] When the battery temperature gear information is the first temperature gear information and the load type is the second load type or the third load type, determining that the target charging power is the second gear charging power;
[0187] When the battery temperature gear information is the second temperature gear information and the load type is the first load type or the second load type, determining that the target charging power is the second gear charging power;
[0188] When the battery temperature level information is the second temperature level information and the load type is the third load type, the target charging power is determined to be the third level charging power.
[0189] In one embodiment, when the current battery voltage is less than or equal to the preset battery voltage threshold, the target charging power of the charging management component is determined according to the load type and the current battery temperature, so as to achieve:
[0190] When the CPU usage rate is greater than a preset usage rate threshold, the target charging power is determined to be 0.
[0191] In one embodiment, when the current battery voltage is less than or equal to the preset battery voltage threshold, the target charging power of the charging management component is determined according to the load type and the current battery temperature, so as to achieve:
[0192] When the current battery temperature exceeds a preset battery temperature threshold, the target charging power is determined to be 0.
[0193] A computer-readable storage medium is also provided in an embodiment of the present application, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and the processor executes the program instructions to implement any backup battery charging control method provided in the embodiment of the present application.
[0194] The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (SmArt Medi a Card, SMC), a secure digital (Secure Digital, SD) card, a flash memory card (Flash Card), etc., provided on the computer device.
[0195] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A backup battery charging control method, characterized in that: The backup battery charging control method is applied to a mobile terminal, the mobile terminal includes a main battery, a backup battery, a charging management component, a temperature detection component, a central processing unit CPU usage calculation component and a memory usage calculation component, the backup battery charging control method includes: Determine the CPU usage and memory usage of the mobile terminal by using the CPU usage calculation component and the memory usage calculation component respectively, and determine the load type of the mobile terminal according to the CPU usage and the memory usage; Detecting the current battery voltage of the backup battery, and determining the current battery temperature of the backup battery through the temperature detection component; The target charging power of the charging management component is determined according to the current battery voltage, the load type and the current battery temperature, wherein the charging power is the charging power of the main battery to the backup battery.
2. The backup battery charging control method according to claim 1, characterized in that: The determining the target charging power of the charging management component according to the current battery voltage, the load type and the current battery temperature includes: When the current battery voltage is greater than a preset battery voltage threshold, determining the target charging power to be 0; When the current battery voltage is less than or equal to the preset battery voltage threshold, the target charging power of the charging management component is determined according to the load type and the current battery temperature.
3. The backup battery charging control method according to claim 2, characterized in that: The determining the CPU usage and the memory usage of the mobile terminal by the CPU usage calculation component and the memory usage calculation component respectively, and determining the load type of the mobile terminal according to the CPU usage and the memory usage, comprises: Determine a load type in which both the CPU usage rate and the memory usage rate are less than a preset first usage rate as a first load type; Determine a load type in which the CPU usage rate or the memory usage rate is greater than the preset first usage rate and less than or equal to the preset second usage rate as a second load type; The load type in which both the CPU usage rate and the memory usage rate are greater than the preset second usage rate is determined as a third load type.
4. The backup battery charging control method according to claim 3, characterized in that: The determining, when the current battery voltage is less than or equal to the preset battery voltage threshold, the target charging power of the charging management component according to the load type and the current battery temperature includes: Determining battery temperature gear information of the current battery temperature according to a preset battery temperature grouping rule and the current battery temperature; The target charging power is determined according to the battery temperature gear information and the load type.
5. The backup battery charging control method according to claim 4, characterized in that: The battery temperature gear information includes first temperature gear information and second temperature gear information, and determining the target charging power according to the battery temperature gear information and the load type includes: When the battery temperature gear information is the first temperature gear information and the load type is the first load type, determining that the target charging power is a first gear charging power; When the battery temperature gear information is the first temperature gear information and the load type is the second load type or the third load type, determining that the target charging power is the second gear charging power; When the battery temperature gear information is the second temperature gear information and the load type is the first load type or the second load type, determining that the target charging power is the second gear charging power; When the battery temperature level information is the second temperature level information and the load type is the third load type, the target charging power is determined to be the third level charging power.
6. The backup battery charging control method according to claim 2, characterized in that: The determining, when the current battery voltage is less than or equal to the preset battery voltage threshold, the target charging power of the charging management component according to the load type and the current battery temperature includes: When the CPU usage rate is greater than a preset usage rate threshold, the target charging power is determined to be 0.
7. The backup battery charging control method according to claim 2, characterized in that: The determining, when the current battery voltage is less than or equal to the preset battery voltage threshold, the target charging power of the charging management component according to the load type and the current battery temperature includes: When the current battery temperature exceeds a preset battery temperature threshold, the target charging power is determined to be 0.
8. A backup battery charging control device, characterized in that: include: a load type determination module, configured to determine the CPU usage and memory usage of the mobile terminal through the CPU usage calculation component and the memory usage calculation component respectively, and determine the load type of the mobile terminal according to the CPU usage and the memory usage; a voltage and temperature determination module, used to detect the current battery voltage of the backup battery and determine the current battery temperature of the backup battery through the temperature detection component; A target charging power determination module is used to determine the target charging power of the charging management component according to the current battery voltage, the load type and the current battery temperature, wherein the charging power is the charging power of the main battery to the backup battery.
9. A computer device, characterized in that: The computer device includes a memory and a processor; The memory is used to store computer programs; The processor is used to execute the computer program and implement the backup battery charging control method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the backup battery charging control method according to any one of claims 1 to 7.
Citation Information
Cited By
Charging efficiency optimization method and system based on W algorithm
CN121012173A