CN114520528A - Charging control method and device, terminal equipment and storage medium - Google Patents

Charging control method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN114520528A
CN114520528A CN202011314556.XA CN202011314556A CN114520528A CN 114520528 A CN114520528 A CN 114520528A CN 202011314556 A CN202011314556 A CN 202011314556A CN 114520528 A CN114520528 A CN 114520528A
Authority
CN
China
Prior art keywords
charging
temperature
current
battery
charging control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011314556.XA
Other languages
Chinese (zh)
Inventor
邱德荣
崔瑞
彭建
徐强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202011314556.XA priority Critical patent/CN114520528A/en
Publication of CN114520528A publication Critical patent/CN114520528A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • H02J7/007188Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters
    • H02J7/007192Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters in response to temperature
    • H02J7/007194Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters in response to temperature of the battery
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Secondary Cells (AREA)

Abstract

The present application relates to the field of charging control technologies, and in particular, to a charging control method and apparatus, a terminal device, and a storage medium. The method is used in the terminal equipment, and comprises the following steps: acquiring the current battery capacity of the terminal equipment under the condition of charging through a charger; determining a corresponding temperature threshold according to the battery electric quantity, wherein the temperature threshold and the battery electric quantity form a negative correlation relationship; and controlling the charging current of the charger by adopting a charging control strategy according to the equipment temperature of the terminal equipment and the temperature threshold, wherein the charging control strategy is used for indicating that the equipment temperature is kept to be less than or equal to the temperature threshold in the charging process or the battery current of the terminal equipment is kept to be a preset lowest battery current threshold. According to the embodiment of the application, different temperature control strategies are implemented under different battery electric quantities, the relation between the charging speed and the charging heating degree is balanced, and therefore the charging effect of the terminal equipment is guaranteed.

Description

Charging control method and device, terminal equipment and storage medium
Technical Field
The present application relates to the field of charging control technologies, and in particular, to a charging control method and apparatus, a terminal device, and a storage medium.
Background
At present, the requirement of the terminal equipment on the charging speed is higher and higher. The problem of charging heat is also brought while the charging speed is improved.
In the related art, in order to balance the relationship between the charging speed and the charging heating degree, when the terminal device is charged, the device temperature of the terminal device is detected in real time, and if the device temperature is greater than a preset temperature threshold, the charging current is reduced, so that the problem of battery safety caused by the fact that the device temperature is too high for a long time is solved.
However, in some cases, the above charging control strategy may not meet the actual usage requirement of the terminal device, thereby affecting the charging effect of the terminal device.
Disclosure of Invention
In view of this, a charging control method, a charging control apparatus, a terminal device and a storage medium are provided, in which the terminal device may adopt different temperature thresholds according to different battery capacities during charging, and control the charging current based on the different temperature thresholds, thereby ensuring the charging effect of the terminal device.
In a first aspect, an embodiment of the present application provides a charging control method, which is used in a terminal device, and the method includes:
acquiring the current battery capacity of the terminal equipment under the condition of charging through the charger;
determining a corresponding temperature threshold according to the electric quantity of the battery, wherein the temperature threshold and the electric quantity of the battery are in a negative correlation relationship;
and controlling the charging current of the charger by adopting a charging control strategy according to the equipment temperature and the temperature threshold of the terminal equipment, wherein the charging control strategy is used for indicating that the equipment temperature is kept to be less than or equal to the temperature threshold in the charging process or the battery current of the terminal equipment is kept to be a preset lowest battery current threshold.
In the implementation mode, the terminal device determines a corresponding temperature threshold according to the current battery power in the charging process, and controls the charging current of the charger by adopting a charging control strategy according to the determined temperature threshold, so that the temperature of the terminal device is kept to be less than or equal to the temperature threshold in the charging process, or the battery current of the terminal device is kept to be a preset lowest battery current threshold; because the temperature threshold value and the battery electric quantity are in a negative correlation relationship, namely a higher temperature threshold value is determined when the battery electric quantity is low, the allowable charging heating degree is larger, the charging current is larger, and the charging speed is higher when the battery electric quantity is lower under the condition that the power consumption of foreground application is the same, so that the charging speed is preferentially ensured in the charging speed and the charging heating degree, and the battery electric quantity is separated from a low electric quantity area as soon as possible; and when the battery electric quantity is high, a lower temperature threshold value is determined, which means that the allowable charging heating degree is smaller, and the charging current is smaller, so that the charging heating degree is preferentially ensured, the equipment temperature rise of the terminal equipment is restrained, and the safety of the terminal equipment in the charging process is ensured. In the charging process, the terminal equipment can implement different temperature control strategies under different battery electric quantities, and the relation between the charging speed and the charging heating degree is balanced, so that the charging effect of the terminal equipment is ensured.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the determining a corresponding temperature threshold according to the battery power includes:
and inputting the electric quantity of the battery into a preset temperature control model, and outputting to obtain a corresponding temperature threshold value, wherein the preset temperature control model is used for indicating that the temperature threshold value and the electric quantity of the battery are in a negative correlation relationship.
In the implementation mode, the terminal device inputs the battery power into the preset temperature control model, and outputs the battery power to obtain the corresponding temperature threshold, wherein the preset temperature control model is used for indicating that the temperature threshold and the battery power are in a negative correlation relationship, namely, the terminal device can directly call the preset temperature control model to determine the temperature threshold corresponding to the current battery power, so that the temperature control efficiency of the terminal device in the charging process is improved, and the charging effect of the terminal device is further ensured.
With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect,
the preset temperature control model is used for indicating the corresponding relation between the electric quantity of the plurality of batteries and the plurality of temperature thresholds; alternatively, the first and second electrodes may be,
the preset temperature control model is used for indicating the corresponding relation between a multi-section battery electric quantity interval and a plurality of temperature thresholds, and the battery electric quantity interval comprises a plurality of battery electric quantities.
In the implementation mode, the preset temperature control model is set as a discrete function model, namely the preset temperature control model is used for indicating the corresponding relation between the multi-section battery electric quantity interval and the plurality of temperature threshold values, so that the plurality of battery electric quantities correspond to one temperature threshold value in a certain battery electric quantity interval, the temperature control strategy of the terminal equipment is simplified, and the charging control efficiency is improved. Or, the preset temperature control model is set as a continuous function model, namely the preset temperature control model is used for indicating the corresponding relation between the electric quantity of the plurality of batteries and the plurality of temperature thresholds, so that the adjustment granularity of the temperature thresholds is finer, the condition that the temperature thresholds change too fast is avoided, and the stability of charging control is ensured.
With reference to the first possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, before the inputting the battery power into the preset temperature control model and outputting the battery power to obtain the corresponding temperature threshold, the method further includes:
acquiring an application type of foreground application of the terminal equipment;
and acquiring a preset temperature control model corresponding to the application type according to the preset corresponding relation, wherein the preset corresponding relation comprises the corresponding relation between the application type and the preset temperature control model.
In this implementation, the terminal device acquires the preset temperature control model corresponding to the application type according to the application type and the preset corresponding relation of the foreground application, so that the terminal device can adopt different preset temperature control models according to different foreground application types, different temperature control strategies are realized, charging control is more intelligent, and the actual use requirements of the terminal device are met.
With reference to the first aspect or any one of the first to third possible implementation manners of the first aspect, in a fourth possible implementation manner of the first aspect, controlling a charging current of a charger by using a charging control strategy according to a device temperature and a temperature threshold of a terminal device includes:
and when the temperature of the equipment is less than or equal to the temperature threshold value, adopting a first charging control strategy to control the charging current of the charger, wherein the first charging control strategy is used for indicating that the temperature of the equipment is kept less than or equal to the temperature threshold value in the charging process.
In the implementation manner, the terminal device controls the charging current of the charger by adopting the first charging control strategy under the condition that the device temperature is less than or equal to the temperature threshold, so that the device temperature of the terminal device can be maintained within the temperature threshold in the charging process, and the safety of the terminal device in the charging process can be ensured while the charging current is ensured.
With reference to the first aspect or any one of the first to the third possible implementation manners of the first aspect, in a fifth possible implementation manner of the first aspect, controlling a charging current of a charger by using a charging control strategy according to a device temperature and a temperature threshold of a terminal device includes:
and when the temperature of the equipment is greater than the temperature threshold, adopting a second charging control strategy to control the charging current of the charger, wherein the second charging control strategy is used for indicating that the battery current of the terminal equipment is kept to be the lowest battery current threshold in the charging process.
In the implementation manner, when the device temperature is greater than the temperature threshold (i.e., in a high-temperature scene), the terminal device controls the charging current of the charger by using the second charging control strategy, so that the battery current of the terminal device is maintained at the minimum battery current threshold in the charging process, the most basic charging speed is ensured, and the charging effect of the terminal device is further ensured.
With reference to the first aspect or any one of the first to the third possible implementation manners of the first aspect, in a sixth possible implementation manner of the first aspect, controlling a charging current of a charger by using a charging control strategy according to a device temperature and a temperature threshold of a terminal device includes:
and when the equipment temperature is less than or equal to the temperature threshold and the battery current of the terminal equipment is greater than or equal to the lowest battery current threshold, adopting a first charging control strategy to control the charging current of the charger, wherein the first charging control strategy is used for indicating that the equipment temperature is kept less than or equal to the temperature threshold in the charging process.
In the implementation manner, the terminal device controls the charging current of the charger by adopting the first charging control strategy under the condition that the device temperature is less than or equal to the temperature threshold and the battery current of the terminal device is greater than or equal to the lowest battery current threshold, so that the device temperature of the terminal device can be maintained within the temperature threshold in the charging process, and the safety of the terminal device in the charging process can be ensured while the charging current is ensured.
With reference to the first aspect or any one of the first to third possible implementation manners of the first aspect, in a seventh possible implementation manner of the first aspect, controlling a charging current of a charger by using a charging control policy according to a device temperature and a temperature threshold of a terminal device includes:
and when the temperature of the equipment is greater than the temperature threshold value or the battery current of the terminal equipment is smaller than the lowest battery current threshold value, adjusting the charging current of the charger by adopting a second charging control strategy, wherein the second charging control strategy is used for indicating that the battery current of the terminal equipment is kept at the lowest battery current threshold value in the charging process.
In the implementation manner, the terminal device controls the charging current of the charger by using the second charging control strategy when the device temperature is greater than the temperature threshold (i.e. high temperature scene) or the battery current of the terminal device is less than the lowest battery current threshold (i.e. high power consumption scene), so that the battery current of the terminal device is maintained at the lowest battery current threshold in the charging process, the most basic charging speed is ensured, and the charging effect of the terminal device is further ensured.
With reference to the first aspect or any one of the first to third possible implementation manners of the first aspect, in an eighth possible implementation manner of the first aspect, acquiring a current battery level of the terminal device in a case of charging by a charger includes:
under the condition of charging through a charger, acquiring the current battery capacity of the terminal equipment in an ith control period, wherein i is a positive integer with an initial value of 1;
before controlling the charging current of the charger by adopting a charging control strategy according to the device temperature and the temperature threshold of the terminal device, the method further comprises the following steps:
and acquiring the current equipment temperature of the terminal equipment in the ith control period.
In this implementation manner, the terminal device executes the charging control method according to the control cycle after starting charging through the charger, so that the charging control method provided by the embodiment of the present application can be repeatedly executed for multiple times in the charging process.
With reference to the eighth possible implementation manner of the first aspect, in a ninth possible implementation manner of the first aspect, i is 1, and the controlling a charging current of the charger by using a charging control strategy according to a device temperature and a temperature threshold of the terminal device includes:
when the temperature of the equipment is less than or equal to the temperature threshold, adopting a first charging control strategy to control the charging current of the charger, wherein the first charging control strategy is used for indicating that the temperature of the equipment is kept less than or equal to the temperature threshold in the charging process;
and when the temperature of the equipment is greater than the temperature threshold, adopting a second charging control strategy to control the charging current of the charger, wherein the second charging control strategy is used for indicating that the battery current of the terminal equipment is kept to be a preset lowest battery current threshold in the charging process.
In the implementation mode, the current control period is the first control period after the terminal device starts to be charged through the charger, and the terminal device controls the charging current of the charger by adopting the first charging control strategy or the second charging control strategy according to the size relation between the device temperature and the temperature threshold value, so that different charging control strategies are implemented, and the charging effect of the terminal device is further ensured.
With reference to the ninth possible implementation manner of the first aspect, in a tenth possible implementation manner of the first aspect, i is greater than 1, and the method further includes:
under the condition that the current charging control strategy is a first charging control strategy, when the battery current of the terminal equipment is smaller than the lowest battery current threshold value, the charging control strategy is switched from the first charging control strategy to a second charging control strategy, and the charging current of the charger is controlled by adopting the second charging control strategy;
and when the battery current of the terminal equipment is greater than or equal to the lowest battery current threshold value, keeping the charging control strategy unchanged as the first charging control strategy, and controlling the charging current of the charger by adopting the first charging control strategy.
In the implementation manner, the current control period is a control period after the first control period after the charging is started, and under the condition that the current charging control strategy is the first charging control strategy, the terminal device determines whether to switch the current charging control strategy to control the charging current of the charger according to the magnitude relation between the battery current of the terminal device and the preset lowest battery current threshold, so that the charging control is more intelligent, and the actual use requirement of the terminal device is met.
With reference to the ninth possible implementation manner of the first aspect, in an eleventh possible implementation manner of the first aspect, i is greater than 1, and the method further includes:
under the condition that the current charging control strategy is a second charging control strategy, when the temperature of the equipment is less than or equal to a temperature threshold value, switching the charging control strategy from the second charging control strategy to a first charging control strategy, and controlling the charging current of the charger by adopting the first charging control strategy;
and when the temperature of the equipment is greater than the temperature threshold value, keeping the charging control strategy unchanged as a second charging control strategy, and controlling the charging current of the charger by adopting the second charging control strategy.
In the implementation manner, the current control cycle is a control cycle after the first control cycle after the charging is started, and under the condition that the current charging control strategy is the second charging control strategy, the terminal device determines whether to switch the current charging control strategy to control the charging current of the charger according to the size relationship between the device temperature and the temperature threshold, so that the charging control is more intelligent, and the actual use requirement of the terminal device is met.
In a second aspect, an embodiment of the present application provides a charging control apparatus, where the charging control apparatus includes at least one unit, and the at least one unit is configured to implement the charging control method provided in the first aspect or any one of the possible implementation manners of the first aspect.
In a third aspect, an embodiment of the present application provides a terminal device, where the terminal device includes: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to:
acquiring the current battery capacity of the terminal equipment under the condition of charging through the charger;
determining a corresponding temperature threshold according to the electric quantity of the battery, wherein the temperature threshold and the electric quantity of the battery are in a negative correlation relationship;
and controlling the charging current of the charger by adopting a charging control strategy according to the equipment temperature and the temperature threshold of the terminal equipment, wherein the charging control strategy is used for indicating that the equipment temperature is kept to be less than or equal to the temperature threshold in the charging process or the battery current of the terminal equipment is kept to be a preset lowest battery current threshold.
With reference to the third aspect, in a first possible implementation manner of the third aspect, the processor is further configured to:
and inputting the electric quantity of the battery into a preset temperature control model, and outputting to obtain a corresponding temperature threshold value, wherein the preset temperature control model is used for indicating that the temperature threshold value and the electric quantity of the battery are in a negative correlation relationship.
With reference to the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect,
the preset temperature control model is used for indicating the corresponding relation between the electric quantity of the plurality of batteries and the plurality of temperature thresholds; alternatively, the first and second electrodes may be,
the preset temperature control model is used for indicating the corresponding relation between a multi-section battery electric quantity interval and a plurality of temperature thresholds, and the battery electric quantity interval comprises a plurality of battery electric quantities.
With reference to the first possible implementation manner of the third aspect, the processor is further configured to:
acquiring an application type of foreground application of the terminal equipment;
and acquiring a preset temperature control model corresponding to the application type according to the preset corresponding relation, wherein the preset corresponding relation comprises the corresponding relation between the application type and the preset temperature control model.
With reference to the third aspect or any one of the first to third possible implementation manners of the third aspect, in a fourth possible implementation manner of the third aspect, the processor is further configured to:
and when the temperature of the equipment is less than or equal to the temperature threshold value, adopting a first charging control strategy to control the charging current of the charger, wherein the first charging control strategy is used for indicating that the temperature of the equipment is kept less than or equal to the temperature threshold value in the charging process.
With reference to the third aspect or any one of the first to third possible implementation manners of the third aspect, in a fifth possible implementation manner of the third aspect, the processor is further configured to:
and when the temperature of the equipment is greater than the temperature threshold, adopting a second charging control strategy to control the charging current of the charger, wherein the second charging control strategy is used for indicating that the battery current of the terminal equipment is kept to be the lowest battery current threshold in the charging process.
With reference to the third aspect or any one of the first to third possible implementation manners of the third aspect, in a sixth possible implementation manner of the third aspect, the processor is further configured to:
and when the equipment temperature is less than or equal to the temperature threshold and the battery current of the terminal equipment is greater than or equal to the lowest battery current threshold, adopting a first charging control strategy to control the charging current of the charger, wherein the first charging control strategy is used for indicating that the equipment temperature is kept less than or equal to the temperature threshold in the charging process.
With reference to the third aspect or any one of the first to third possible implementation manners of the third aspect, in a seventh possible implementation manner of the third aspect, the processor is further configured to:
and when the temperature of the equipment is greater than the temperature threshold value or the battery current of the terminal equipment is smaller than the lowest battery current threshold value, adjusting the charging current of the charger by adopting a second charging control strategy, wherein the second charging control strategy is used for indicating that the battery current of the terminal equipment is kept at the lowest battery current threshold value in the charging process.
With reference to the third aspect or any one of the first to third possible implementation manners of the third aspect, in an eighth possible implementation manner of the third aspect, the processor is further configured to: under the condition of charging through a charger, acquiring the current battery capacity of the terminal equipment in an ith control period, wherein i is a positive integer with an initial value of 1;
the processor is further configured to: and acquiring the current equipment temperature of the terminal equipment in the ith control period.
With reference to the eighth possible implementation manner of the third aspect, in a ninth possible implementation manner of the third aspect, i is 1, and the processor is further configured to:
when the temperature of the equipment is less than or equal to the temperature threshold, adopting a first charging control strategy to control the charging current of the charger, wherein the first charging control strategy is used for indicating that the temperature of the equipment is less than or equal to the temperature threshold in the charging process;
and when the temperature of the equipment is greater than the temperature threshold, adopting a second charging control strategy to control the charging current of the charger, wherein the second charging control strategy is used for indicating that the battery current of the terminal equipment is kept to be a preset lowest battery current threshold in the charging process.
With reference to the ninth possible implementation manner of the third aspect, in a tenth possible implementation manner of the third aspect, i is greater than 1, and the processor is further configured to:
under the condition that the current charging control strategy is a first charging control strategy, when the battery current of the terminal equipment is smaller than the lowest battery current threshold value, the charging control strategy is switched from the first charging control strategy to a second charging control strategy, and the charging current of the charger is controlled by adopting the second charging control strategy;
and when the battery current of the terminal equipment is greater than or equal to the lowest battery current threshold value, keeping the charging control strategy unchanged as the first charging control strategy, and controlling the charging current of the charger by adopting the first charging control strategy.
With reference to the ninth possible implementation manner of the third aspect, in an eleventh possible implementation manner of the third aspect, i is greater than 1, and the processor is further configured to:
under the condition that the current charging control strategy is a second charging control strategy, when the temperature of the equipment is less than or equal to a temperature threshold value, switching the charging control strategy from the second charging control strategy to a first charging control strategy, and controlling the charging current of the charger by adopting the first charging control strategy;
and when the temperature of the equipment is greater than the temperature threshold value, keeping the charging control strategy unchanged as a second charging control strategy, and controlling the charging current of the charger by adopting the second charging control strategy.
In a fourth aspect, an embodiment of the present application provides a computer program product, which includes computer readable code or a non-volatile computer readable storage medium carrying computer readable code, and when the computer readable code runs in an electronic device, a processor in the electronic device executes a charging control method provided in the first aspect or any one of the possible implementation manners of the first aspect.
In a fifth aspect, an embodiment of the present application provides a non-transitory computer-readable storage medium, on which computer program instructions are stored, and the computer program instructions, when executed by a processor, implement the charging control method provided in the first aspect or any one of the possible implementation manners of the first aspect.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments, features, and aspects of the application and, together with the description, serve to explain the principles of the application.
Fig. 1 shows a schematic structural diagram of a charging system according to an embodiment of the present application.
Fig. 2 shows a flowchart of a charging control method according to an exemplary embodiment of the present application.
Fig. 3 shows a flowchart of a charging control method according to another exemplary embodiment of the present application.
Fig. 4 is a schematic diagram illustrating a charging control method according to an exemplary embodiment of the present application, which relates to a correspondence relationship between a battery charge and a temperature threshold.
Fig. 5 is a schematic diagram illustrating a charging control method according to another exemplary embodiment of the present application, which relates to a correspondence relationship between a battery charge and a temperature threshold.
Fig. 6 shows a flowchart of a charging control method according to another exemplary embodiment of the present application.
Fig. 7 shows a flowchart of a charging control method according to another exemplary embodiment of the present application.
Fig. 8 shows a block diagram of a charging control apparatus according to an exemplary embodiment of the present application.
Fig. 9 shows a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
Various exemplary embodiments, features and aspects of the present application will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present application. It will be understood by those skilled in the art that the present application may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present application.
In the current temperature-based charging control technology, when a terminal device is charged, the device temperature of the terminal device is detected in real time, and if the device temperature is greater than a preset temperature threshold, the charging current is reduced. However, in this method, since the temperature threshold is a preset fixed value, the same temperature limit is adopted under different conditions, and the actual use requirement of the terminal device cannot be met, thereby affecting the charging effect of the terminal device.
The embodiment of the disclosure provides a charging control method and device, a terminal device and a storage medium, wherein the terminal device can adopt different temperature thresholds according to different battery electric quantities in a charging process, so that charging current is controlled, the relation between charging speed and charging heating degree is balanced, and the charging effect of the terminal device is ensured.
Please refer to fig. 1, which illustrates a schematic structural diagram of a charging system according to an embodiment of the present application. The charging system includes a charger 120 and a terminal device 140.
The charger 120 is used to provide power to the terminal device 140 during charging. The charger 120 supports wired charging or wireless charging. The charger 120 may be a stationary charger or a mobile charger.
Optionally, the charger 120 is a charging pile, a charger or other terminal device supporting charging to the terminal device 140, for example, the other terminal device is a mobile phone, a router, or the like. The embodiment of the present application does not limit the type of the charger 120.
The terminal device 140 is used to receive energy provided by the charger 120 during the charging process. The terminal device 140 supports wired charging or wireless charging. The terminal device 140 may be a fixed terminal device or a mobile terminal device. For example, the terminal device 140 is a mobile phone, a vehicle-mounted terminal, an unmanned aerial vehicle, a tablet computer, an electronic book reader, smart glasses, a smart watch, a Moving Picture Experts Group Audio Layer III (MP 3) player, a Moving Picture Experts Group Audio Layer IV (MP 4) player, a notebook computer, a laptop computer, a desktop computer, or the like. The embodiment of the present application does not limit the type of the terminal device 140.
Optionally, a communication connection is established between the charger 120 and the terminal device 140, which may be a wired network or a wireless network.
In the embodiment of the present application, the terminal device 140 is configured to obtain the current battery power of the terminal device when the terminal device is charged by the charger 120; determining a corresponding temperature threshold according to the electric quantity of the battery, wherein the temperature threshold and the electric quantity of the battery are in a negative correlation relationship; according to the device temperature and the temperature threshold of the terminal device, a charging control strategy is adopted to control the charging current of the charger 120, and the charging control strategy is used to instruct that the device temperature is kept less than or equal to the temperature threshold in the charging process, or the battery current of the terminal device is kept at a preset minimum battery current threshold.
In the following, several exemplary embodiments are used to describe the charging control method provided in the embodiments of the present application.
Referring to fig. 2, a flowchart of a charging control method provided in an exemplary embodiment of the present application is shown, where the method is used in the terminal device shown in fig. 1. The method includes, but is not limited to, the following steps.
Step 201, acquiring the current battery power of the terminal device under the condition of charging through the charger.
After the terminal equipment starts to be charged through the charger, the current battery electric quantity of the terminal equipment is obtained in the charging process. And the battery power is the current residual battery power of the terminal equipment.
Optionally, the terminal device obtains the current battery capacity of the terminal device in real time or according to a preset control cycle in the charging process.
Optionally, the control period is set by default or is set by a user, which is not limited in the embodiment of the present application.
Optionally, in the charging process, when the battery capacity of the terminal device changes, the terminal device receives the battery capacity actively reported.
Step 202, determining a corresponding temperature threshold according to the battery capacity, wherein the temperature threshold and the battery capacity are in a negative correlation relationship.
And the terminal equipment determines a temperature threshold corresponding to the battery electric quantity according to the battery electric quantity, and the temperature threshold is used for limiting the temperature during charging.
Wherein, the temperature threshold value and the battery capacity are in a negative correlation relationship. Illustratively, the larger the battery charge, the smaller the temperature threshold.
Optionally, the terminal device determines a temperature threshold corresponding to the battery power according to the battery power and the designated corresponding relationship. The designated corresponding relation comprises a negative correlation relation between preset battery electric quantity and a temperature threshold value.
Optionally, the specified correspondence includes a correspondence between a plurality of battery capacities and a plurality of temperature thresholds; or, the specified corresponding relation comprises corresponding relations between a plurality of sections of battery power intervals and a plurality of temperature thresholds, and each battery power interval comprises a plurality of battery powers. Illustratively, the correspondence relationship is a one-to-one correspondence relationship.
Step 203, controlling the charging current of the charger by using a charging control strategy according to the device temperature and the temperature threshold of the terminal device, wherein the charging control strategy is used for indicating that the device temperature is kept smaller than or equal to the temperature threshold in the charging process, or the battery current of the terminal device is kept at a preset minimum battery current threshold.
The terminal equipment obtains the current equipment temperature of the terminal equipment, and the charging current of the charger is adjusted or not adjusted by adopting a charging control strategy according to the equipment temperature and the temperature threshold.
Optionally, the charging control strategy includes one of a first charging control strategy and a second charging control strategy, the first charging control strategy is used for indicating that the temperature of the equipment is kept less than or equal to the temperature threshold value in the charging process, and the second charging control strategy is used for indicating that the battery current of the terminal equipment is kept at a preset minimum battery current threshold value. It should be noted that, the description of the first charging control strategy and the second charging control strategy may refer to the description of the following embodiments, which will not be described first.
The device temperature is used for indicating the heating degree of the terminal device, and the device temperature and the heating degree of the terminal device are in a positive correlation relationship, that is, the higher the device temperature is, the higher the heating degree of the terminal device is.
Optionally, the device temperature of the terminal device is a temperature of a detection position of a temperature sensor of the terminal device, or a temperature of a specified position in the terminal device, or a surface temperature of the terminal device. This is not limited in the examples of the present application.
Optionally, the controlling, by the terminal device, the charging current of the charger by using a charging control strategy according to the device temperature and the temperature threshold of the terminal device includes: and determining a control value of the charging current by adopting a charging control strategy according to the equipment temperature and the temperature threshold of the terminal equipment, and sending a control instruction carrying the control value to the charger, wherein the control instruction is used for instructing the charger to adjust the charging current to the control value or controlling the charging current to keep the control value unchanged.
Optionally, when the device temperature of the terminal device is less than or equal to the temperature threshold, the terminal device determines that the control value of the charging current is a first control value, and the first control value is greater than or equal to the current charging current; and when the equipment temperature of the terminal equipment is greater than the temperature threshold, determining that the control value of the charging current is a second control value, wherein the second control value is smaller than the current charging current.
It should be noted that the charging control method provided in the embodiment of the present application may be executed once in the charging process, or may be repeatedly executed multiple times in the charging process. Optionally, after the terminal device starts charging through the charger, the charging control method is executed according to a preset control cycle.
In summary, according to the charging control method provided by the embodiment of the application, the corresponding temperature threshold is determined according to the current battery power of the terminal device in the charging process, and the charging current of the charger is controlled according to the determined temperature threshold, so that different temperature control strategies are implemented under different battery powers, the relationship between the charging speed and the charging heating degree is balanced, and the charging effect of the terminal device is ensured.
In the related art, if the battery power of the terminal device is low during the charging process and the foreground application power consumption of the terminal device is high at this time, the device temperature of the terminal device is high, so that the charging current of the charger is adjusted to a small value, and the charging speed is slowed. Because the battery power is low at this time, if the foreground application is still running, the battery power of the terminal device may increase slowly, and the charging effect is not good. In addition, in a scene that the foreground application power consumption is high, the charging current is adjusted to a small value, and most of the charging current is supplied to the system for consumption, so that the current actually charged into the battery, namely the battery current, is further reduced. Therefore, under the condition of power consumption fluctuation, the battery current of the terminal device is unstable, so that the electric quantity increasing speed is not basically ensured, the electric quantity of the battery is not changed for a long time in the charging process, and the charging effect is further influenced. Therefore, the charging control method provided by the embodiment of the application also determines a higher temperature threshold value when the battery power is low, so that the charging speed is preferentially ensured in the charging speed and the charging heating degree, and the battery power is separated from the low power region as soon as possible; and determining a lower temperature threshold when the battery power is high so as to preferentially ensure the charging heating degree and inhibit the device temperature of the terminal device from rising. In addition, under the high-temperature and high-power-consumption scene, the terminal equipment adopts a second charging control strategy to control the charging current of the charger, namely, a lowest battery current threshold value is preset, the battery current of the terminal equipment is kept to be the preset lowest battery current threshold value in the charging process, and the most basic charging speed is ensured.
Referring to fig. 3, a flowchart of a charging control method provided in another exemplary embodiment of the present application is shown, where the method is used in the terminal device shown in fig. 1. The method includes, but is not limited to, the following steps.
Step 301, acquiring the current battery capacity of the terminal device under the condition of charging through the charger.
And the terminal equipment acquires the current battery power under the condition of charging through the charger. For details, reference may be made to the related descriptions in the above embodiments, which are not repeated herein.
Step 302, inputting the battery power into a preset temperature control model, and outputting to obtain a corresponding temperature threshold, where the preset temperature control model is used to indicate that the temperature threshold and the battery power are in a negative correlation relationship.
The terminal equipment obtains a preset temperature control model, inputs the electric quantity of the battery into the preset temperature control model and outputs the electric quantity of the battery to obtain a corresponding temperature threshold value.
The preset temperature control model is used for indicating that a negative correlation relationship exists between the temperature threshold and the electric quantity of the battery. Namely, the preset temperature control model is used for indicating that the following relation is satisfied between the temperature threshold and the battery capacity: if the corresponding temperature threshold value when the battery electric quantity is the first temperature threshold value, the corresponding temperature threshold value when the battery electric quantity is the second temperature threshold value, and the first battery electric quantity is larger than the second battery electric quantity, the first temperature threshold value is smaller than or equal to the second temperature threshold value.
The preset temperature control model is a preset mathematical model. Optionally, the preset temperature control model includes a discrete function model or a continuous function model.
Optionally, the preset temperature control model is used for indicating a corresponding relationship between a plurality of battery electric quantities and a plurality of temperature thresholds; or the preset temperature control model is used for indicating the corresponding relation between a multi-section battery electric quantity interval and a plurality of temperature thresholds, and the battery electric quantity interval comprises a plurality of battery electric quantities. Illustratively, the correspondence relationship is a one-to-one correspondence relationship.
In an exemplary example, as shown in fig. 4, the abscissa is the battery capacity, the ordinate is the temperature threshold, and the preset temperature control model is a discrete function model adopting a step design, and is used for indicating a one-to-one correspondence relationship between a multi-segment battery capacity interval and a plurality of temperature thresholds. Wherein, the corresponding temperature threshold value is "43 ℃ when the battery power interval is [ 0%, 20% ], the corresponding temperature threshold value is" 41 ℃ when the battery power interval is [ 20%, 60% ], the corresponding temperature threshold value is "39 ℃ when the battery power interval is [ 60%, 80% ], and the corresponding temperature threshold value is" 37 ℃ when the battery power interval is [ 80%, 100% ].
In another illustrative example, as shown in fig. 5, the abscissa is the battery power, the ordinate is the temperature threshold, and the preset temperature control model is a continuous function model for indicating a one-to-one correspondence relationship between a plurality of battery powers and a plurality of temperature thresholds, for example, when the battery power is "0%" corresponds to a temperature threshold of "43 ℃" and when the battery power is "100%" corresponds to a temperature threshold of "37 ℃".
Optionally, the terminal device inputs the battery power into the preset temperature control model, and further includes, before outputting the corresponding temperature threshold value: acquiring an application type of foreground application of the terminal equipment; and acquiring a preset temperature control model corresponding to the application type according to the preset corresponding relation, wherein the preset corresponding relation comprises the corresponding relation between the application type and the preset temperature control model.
Illustratively, the application type includes at least one of a game application type, an audio-video application type, a social application type, and a payment application type. The embodiments of the present disclosure do not limit this.
The preset corresponding relation comprises a corresponding relation between a plurality of application types and a plurality of preset temperature control models. Optionally, the preset temperature control models corresponding to at least two application types are different in the plurality of application types. Optionally, the preset temperature control models corresponding to at least two application types of the plurality of application types are the same.
And 303, acquiring the equipment temperature of the terminal equipment through the temperature sensor.
The terminal equipment acquires the current equipment temperature of the terminal equipment through the temperature sensor. For example, the Temperature sensor is a Negative Temperature Coefficient (NTC) Temperature sensor.
Optionally, the terminal device reads a temperature value currently detected by the temperature sensor, and takes the temperature value as the device temperature; or the terminal device performs fitting processing according to the temperature values currently detected by the plurality of temperature sensors to obtain a simulated temperature value, and the simulated temperature value is used as the device temperature. This is not limited in the examples of the present application.
It should be noted that, the processes for acquiring the temperature threshold described in step 301 and step 302 and the process for acquiring the device temperature described in step 303 may be executed in parallel, or may be executed in sequence, and the execution sequence is not limited in this embodiment of the present application.
At step 304, it is determined whether the device temperature is less than or equal to the temperature threshold.
The terminal device judges whether the device temperature is less than or equal to the temperature threshold. If the device temperature is less than or equal to the temperature threshold, the charging current of the charger is controlled by using the first charging control strategy, that is, step 305 is executed; if the device temperature is greater than the temperature threshold, the charging current of the charger is controlled using the second charging control strategy, i.e., step 306 is executed. Wherein the second charge control strategy is different from the first charge control strategy.
When the device temperature is less than or equal to the temperature threshold, a first charging control strategy is adopted to control the charging current of the charger, and the first charging control strategy is used for instructing to keep the device temperature less than or equal to the temperature threshold in the charging process, step 305.
When the device temperature is less than or equal to the temperature threshold, it indicates that the current device temperature of the terminal device is low, and the charging speed is preferentially ensured in the charging speed and the charging heating degree, that is, the terminal device adopts a first charging control strategy to control the charging current of the charger, and the first charging control strategy is used for indicating to increase the charging current or keep the charging current unchanged.
The first charging control strategy is also called a temperature-controlled charging control strategy, and is used for indicating that the temperature of the device is kept within a temperature threshold value in the charging process, namely, the temperature of the device is kept smaller than or equal to the temperature threshold value.
In one possible implementation manner, a terminal device controls a charging current of a charger by using a first charging control strategy, including: the terminal device continuously adjusts the charging current through a Proportional Integral Derivative (PID) control algorithm.
Optionally, the terminal device determines a control value of the charging current through a PID control algorithm, and sends a first control instruction carrying the control value to the charger, where the first control instruction is used to instruct the charger to adjust the charging current to the control value or control the charging current to keep the control value unchanged. Such that the device temperature is maintained less than or equal to the temperature threshold during charging.
Optionally, the determining, by the terminal device, the control value of the charging current through a PID control algorithm includes: the terminal equipment determines the difference between the temperature threshold and the equipment temperature as a temperature error; determining a proportional control value, an integral control value and a differential control value according to the temperature error; and determining a control value of the charging current according to the proportional control value, the integral control value and the derivative control value.
Illustratively, the terminal device is based on a temperature threshold T and a device temperature TtargetThe temperature error Δ T is calculated by the following formula: Δ T ═ Ttarget-T. According to the temperature error delta T, a proportional control value P is calculated by the following formula: p ═ kp × Δ T, where kp is the scaling factor. According to the temperature error delta T, an integral control value I is calculated by the following formula: k isi×ΔT+IlastWherein k isiIs the integral coefficient, IlastFor the integral control value of the preceding control period, IlastInitial value of (i.e. I of the first control cycle)last) The charging current of the first control period. According to the temperature error delta T, a differential control value D is calculated by the following formula: d ═ kd×(ΔT-ΔTlast) Wherein k isdIs the differential coefficient, Δ TlastIs the temperature error, Δ T, of the previous control cyclelastIs initially set (i.e. Δ T of the first control period)last) Is zero.
Optionally, the control period is preset, and the terminal device executes the charging control method provided by the embodiment of the present application according to the preset control period after starting charging through the charger.
It should be noted that the PID control algorithm can be alternatively implemented as other control algorithms, such as an integral separated PID control (english) algorithm, and a variable parameter PID control (VAPID) algorithm. This is not limited in the examples of the present application.
And step 306, when the temperature of the device is greater than the temperature threshold, controlling the charging current of the charger by using a second charging control strategy, wherein the second charging control strategy is used for indicating that the battery current of the terminal device is kept at a preset lowest battery current threshold in the charging process.
When the device temperature is higher than the temperature threshold, it indicates that the current device temperature of the terminal device is higher, and it is preferentially ensured that the charging heating degree is not too high in the charging speed and the charging heating degree, that is, the terminal device controls the charging current of the charger by using a second charging control strategy, and the second charging control strategy is used for instructing to reduce the charging current.
Alternatively, the charging current of the charger includes a current supplied to a battery of the terminal device, i.e., a battery current, and a current supplied to a load of the terminal device, i.e., a load current.
The second charging control strategy, also known as a constant battery current charging control strategy, is used to indicate that the battery current of the terminal device is maintained at a preset minimum battery current threshold during charging.
In one possible implementation manner, the method for controlling the charging current of the charger by the terminal device using the second charging control strategy includes: and the terminal equipment determines a control value of the charging current according to the lowest battery current threshold value, and sends a second control instruction carrying the control value to the charger, wherein the second control instruction is used for instructing the charger to adjust the charging current to the control value or controlling the charging current to keep the control value unchanged. So that the battery current of the terminal device is kept at the preset minimum battery current threshold value during the charging process.
Optionally, the determining, by the terminal device, the control value of the charging current according to the lowest battery current threshold includes: the terminal equipment determines a current error according to a preset lowest battery current threshold and a currently measured average current value, wherein the average current value is an average value of battery currents measured for multiple times in a preset time period, and the current error is a difference value of the lowest battery current threshold and the average current value; and determining a control value of the charging current according to the current error.
Illustratively, the terminal device obtains a preset minimum battery current threshold value and a battery current i obtained by multiple measurements within a preset time periodbattAverage value of (1), i.e. average current value ibatt_averCalculating the current error Δ ibatt:Δibatt=ibatt_th-ibatt_averThe calculated current error Δ ibattControl value i of charging current accumulated to chargeradap_set:iadap_set+=Δibatt
Optionally, a lowest battery current threshold is preset, where the lowest battery current threshold is a lower limit value of the battery current of the terminal device during charging, and the lowest battery current threshold is used to indicate the lowest allowable charge increase speed. In one possible implementation, the above steps 304 to 306 may be alternatively implemented as the following steps, as shown in fig. 6:
step 601, judging whether the device temperature is less than or equal to the temperature threshold value and whether the battery current of the terminal device is greater than or equal to the preset lowest battery current threshold value.
The terminal equipment judges whether the equipment temperature is less than or equal to the temperature threshold value or not, and whether the battery current of the terminal equipment is greater than or equal to a preset lowest battery current threshold value or not. If the device temperature is less than or equal to the temperature threshold and the battery current of the terminal device is greater than or equal to the lowest battery current threshold, the charging current of the charger is controlled by using a first charging control strategy, that is, step 602 is executed; if the above condition is not satisfied, that is, the device temperature is greater than the temperature threshold, or the battery current of the terminal device is less than the minimum battery current threshold, the charging current of the charger is controlled by using the second charging control strategy, that is, step 603 is executed. Wherein the second charge control strategy is different from the first charge control strategy.
Step 602, when the device temperature is less than or equal to the temperature threshold and the battery current of the terminal device is greater than or equal to the lowest battery current threshold, controlling the charging current of the charger by using a first charging control strategy, where the first charging control strategy is used to instruct to keep the device temperature less than or equal to the temperature threshold in the charging process.
And when the equipment temperature is less than or equal to the temperature threshold and the battery current of the terminal equipment is greater than or equal to the lowest battery current threshold, the terminal equipment controls the charging current of the charger by adopting a first charging control strategy.
It should be noted that, for details of controlling the charging current of the charger by the terminal device using the first charging control strategy, reference may be made to the relevant description in the foregoing embodiments, and details are not repeated herein.
Step 603, when the device temperature is greater than the temperature threshold, or the battery current of the terminal device is less than the lowest battery current threshold, controlling the charging current of the charger by using a second charging control strategy, where the second charging control strategy is used to instruct to keep the battery current of the terminal device at the lowest battery current threshold in the charging process.
And when the temperature of the equipment is greater than the temperature threshold value or the battery current of the terminal equipment is less than the lowest battery current threshold value, the terminal equipment controls the charging current of the charger by adopting a second charging control strategy.
It should be noted that, for details about controlling the charging current of the charger by the terminal device using the second charging control strategy, reference may be made to the relevant description in the foregoing embodiment, and details are not repeated herein.
The charging control method provided by the embodiment of the application can be executed once in the charging process, and can also be repeatedly executed for multiple times in the charging process. In a possible implementation manner, after the terminal device starts charging through the charger, the charging control method is executed according to a preset control cycle. Referring to fig. 7, a flowchart of a charging control method provided in another exemplary embodiment of the present application is shown, where the method is used in the terminal device shown in fig. 1. The method includes, but is not limited to, the following several steps.
In step 701, under the condition of charging through a charger, the current battery capacity of the terminal device is obtained in the ith control period, wherein i is a positive integer with an initial value of 1.
And under the condition that the terminal equipment is charged through the charger, acquiring the current battery capacity of the terminal equipment in the ith control period.
Step 702, inputting the battery power into a preset temperature control model, and outputting to obtain a corresponding temperature threshold, where the preset temperature control model is used to indicate that the temperature threshold and the battery power are in a negative correlation relationship.
And the terminal equipment inputs the electric quantity of the battery into a preset temperature control model and outputs the electric quantity to obtain a corresponding temperature threshold value.
And 703, acquiring the current equipment temperature of the terminal equipment through the temperature sensor in the ith control period.
It should be noted that, the processes of obtaining the temperature threshold value described in step 701 and step 702 and the process of obtaining the device temperature described in step 703 may be executed in parallel or in sequence, and the execution sequence is not limited in this embodiment of the present application. For details, reference may be made to the related descriptions in the above embodiments, which are not repeated herein.
In step 704, if i is 1, it is determined whether the device temperature is less than or equal to the temperature threshold.
If i is 1, that is, it indicates that the current control cycle is the first control cycle, the terminal device determines whether the device temperature is less than or equal to the temperature threshold, and if the device temperature is less than or equal to the temperature threshold, step 705 is executed; if the device temperature is greater than the temperature threshold, step 706 is performed.
Step 705, when the device temperature is less than or equal to the temperature threshold, a first charging control strategy is used to control the charging current of the charger.
And when the temperature of the equipment is less than or equal to the temperature threshold, the terminal equipment adopts a first charging control strategy to control the charging current of the charger in the ith control period.
Wherein the first charge control strategy is to instruct to maintain the device temperature less than or equal to a temperature threshold during charging.
And step 706, when the temperature of the equipment is greater than the temperature threshold value, controlling the charging current of the charger by adopting a second charging control strategy.
And when the temperature of the equipment is greater than the temperature threshold value, the terminal equipment controls the charging current of the charger by adopting a second charging control strategy in the ith control period.
And the second charging control strategy is used for indicating that the battery current of the terminal equipment is kept to be a preset minimum battery current threshold value in the charging process.
And step 707, if i is larger than 1, determining whether the current charging control strategy is the first charging control strategy.
If i is larger than 1, the current control period is the control period after the first control period, and the terminal equipment judges whether the charging control strategy is the first charging control strategy or not according to the designated state bit.
The designated status bit is used for indicating whether the charging control strategy is the first charging control strategy or not. Optionally, the designated status bit includes a first value and a second value, the first value is used to indicate that the charging control strategy is the first charging control strategy, and the second value is the charging control strategy is the second charging control strategy.
Optionally, the designated status bit further includes a third value, and the third value is a default value and is used to indicate that the charging control strategy is not set.
If the current charging control strategy is the first charging control strategy, go to step 708; if the current charging control strategy is the second charging control strategy, step 711 is performed.
At step 708, it is determined whether the battery current of the terminal device is less than the minimum battery current threshold when the charge control policy is the first charge control policy.
If the current charging control strategy is the first charging control strategy, indicating that the charging speed is preferentially ensured in the charging speed and the charging heating degree, the terminal equipment judges whether the battery current of the terminal equipment is smaller than the lowest battery current threshold, if so, indicating that the current charging control strategy needs to be switched, and executing step 709; if the battery current of the terminal device is greater than or equal to the preset minimum battery current threshold, it indicates that the current charging control strategy does not need to be switched, and step 710 is performed.
And step 709, when the battery current of the terminal device is smaller than the lowest battery current threshold, switching the charging control strategy from the first charging control strategy to a second charging control strategy, and controlling the charging current of the charger by adopting the second charging control strategy.
And when the battery current of the terminal equipment is smaller than the lowest battery current threshold value, the terminal equipment switches the charging control strategy from the first charging control strategy to a second charging control strategy, and the charging current of the charger is controlled by adopting the second charging control strategy in the ith control period.
Optionally, the switching, by the terminal device, the charging control policy from the first charging control policy to the second charging control policy includes: the terminal equipment adjusts the designated status bit from a first value to a second value, the first value is used for indicating that the charging control strategy is a first charging control strategy, and the second value is the charging control strategy which is a second charging control strategy.
Step 710, when the battery current of the terminal device is greater than or equal to the preset lowest battery current threshold, keeping the charging control strategy unchanged as the first charging control strategy, and controlling the charging current of the charger by using the first charging control strategy.
And when the battery current of the terminal equipment is greater than or equal to the preset lowest battery current threshold, the charging current of the charger is still controlled by adopting the first charging control strategy in the ith control period.
At step 711, it is determined whether the device temperature is less than or equal to the temperature threshold when the charge control strategy is the second charge control strategy.
And if the current charging control strategy is the second charging control strategy and indicates that the charging heating degree is preferentially ensured in the charging speed and the charging heating degree, the terminal equipment judges whether the equipment temperature is less than or equal to the temperature threshold value. If the device temperature is less than or equal to the temperature threshold, it indicates that the current charging control strategy needs to be switched, and step 712 is executed; if the device temperature is greater than the temperature threshold, it indicates that the current charging control strategy does not need to be switched, and step 713 is executed.
And 712, when the temperature of the device is less than or equal to the temperature threshold, switching the charging control strategy from the second charging control strategy to the first charging control strategy, and controlling the charging current of the charger by using the first charging control strategy.
And when the temperature of the equipment is less than or equal to the temperature threshold, the terminal equipment switches the charging control strategy from the second charging control strategy to the first charging control strategy, and controls the charging current of the charger by adopting the first charging control strategy in the ith control period.
Optionally, the switching, by the terminal device, the charging control policy from the second charging control policy to the first charging control policy includes: the terminal equipment adjusts the designated status bit from a second value to a first value, the first value is used for indicating that the charging control strategy is a first charging control strategy, and the second value is the charging control strategy which is a second charging control strategy.
And 713, when the temperature of the equipment is greater than the temperature threshold value, keeping the charging control strategy unchanged as a second charging control strategy, and controlling the charging current of the charger by adopting the second charging control strategy.
And when the temperature of the terminal equipment is higher than the temperature threshold value, keeping the charging control strategy unchanged as a second charging control strategy, and controlling the charging current of the charger by adopting the second charging control strategy in the ith control period.
It should be noted that, for details of controlling the charging current of the charger by the terminal device using the first charging control strategy or using the second charging control strategy, reference may be made to the related descriptions in the foregoing embodiments, and details are not repeated herein.
Referring to fig. 8, a block diagram of a charging control apparatus according to an exemplary embodiment of the present application is shown. The charge control device may be implemented by software, hardware, or a combination of both as all or part of the terminal device shown in fig. 1. The charge control device may include: an acquisition unit 810, a determination unit 820, and a control unit 830.
An obtaining unit 810, configured to implement at least one of the functions of step 201, step 301, step 303, step 701, and step 703, and an obtaining function of the terminal device side implied in each step;
a determining unit 820, configured to implement at least one of the functions of step 202, step 302, and step 702, and the determination function of the terminal device side implied in each step;
a control unit 830, configured to implement at least one of the functions of step 203, step 304 to step 306, step 601 to step 603, and step 704 to step 713, and the control function of the terminal device side implicit in each step.
The relevant details may be combined with the method embodiments described with reference to fig. 2-7.
Please refer to fig. 9, which illustrates a schematic structural diagram of a terminal device according to an embodiment of the present application. The terminal device includes a Central Processing Unit (CPU) 910, a memory 920, and a network interface 930.
The central processor 910 includes one or more processing cores. The central processor 910 is used for executing various functional applications of the terminal device and for data processing.
The terminal device typically includes a plurality of network interfaces 930.
The memory 920 is connected to the central processor 910 through a bus. The memory 920 is used for storing instructions, and the processor 910 implements the charging control method described above by executing the instructions stored in the memory 920.
The memory 920 may store an operating system 921 and an application module 922 required for at least one function. The operating system 921 includes at least one of a LINUX operating system, a Unix operating system, and a Windows operating system.
Optionally, the application module 922 includes an obtaining unit, a determining unit, a control unit, other units for implementing the charging control method, and the like.
And the acquisition unit is used for acquiring the current battery capacity of the terminal equipment under the condition of charging through the charger.
And the determining unit is used for determining a corresponding temperature threshold according to the battery electric quantity, and the temperature threshold and the battery electric quantity are in a negative correlation relationship.
And the control unit is used for controlling the charging current of the charger by adopting a charging control strategy according to the equipment temperature and the temperature threshold of the terminal equipment, wherein the charging control strategy is used for indicating that the equipment temperature is kept smaller than or equal to the temperature threshold in the charging process or the battery current of the terminal equipment is kept at a preset lowest battery current threshold.
Alternatively, the memory 920 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
An embodiment of the present application provides a terminal device, including: a processor and a memory for storing processor-executable instructions; wherein the processor is configured to implement the above method when executing the instructions.
Embodiments of the present application provide a computer program product comprising computer readable code, or a non-transitory computer readable storage medium carrying computer readable code, which when run in a processor of an electronic device, the processor in the electronic device performs the above-described method.
Embodiments of the present application provide a non-transitory computer-readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the above-described method.
The computer readable storage medium may be a tangible device that retains and stores instructions for use by an instruction execution device. For example, computer-readable storage media include, but are not limited to: an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an erasable Programmable Read-Only Memory (EPROM or flash Memory), a Static Random Access Memory (SRAM), a portable Compact Disc Read-Only Memory (CD-ROM), a Digital Versatile Disc (DVD), a Memory stick, a floppy disk, a mechanical coding device, a punch card or an in-groove protrusion structure, for example, having instructions stored thereon, and any suitable combination of the foregoing.
The computer readable program instructions or code described herein may be downloaded to the respective computing/processing device from a computer readable storage medium, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present application may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of Network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry can execute computer-readable program instructions to implement aspects of the present application by utilizing state information of the computer-readable program instructions to personalize custom electronic circuitry, such as Programmable Logic circuits, Field-Programmable Gate arrays (FPGAs), or Programmable Logic Arrays (PLAs).
Various aspects of the present application are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
It is also noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by hardware (e.g., a Circuit or an ASIC) for performing the corresponding function or action, or by combinations of hardware and software, such as firmware.
While the present application has been described in connection with various embodiments, other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed application, from a review of the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other elements or steps, and the word "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
Having described embodiments of the present application, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (18)

1. A charging control method is used in a terminal device, and comprises the following steps:
acquiring the current battery capacity of the terminal equipment under the condition of charging through a charger;
determining a corresponding temperature threshold according to the battery electric quantity, wherein the temperature threshold and the battery electric quantity are in a negative correlation relationship;
and controlling the charging current of the charger by adopting a charging control strategy according to the equipment temperature of the terminal equipment and the temperature threshold, wherein the charging control strategy is used for indicating that the equipment temperature is kept less than or equal to the temperature threshold in the charging process or the battery current of the terminal equipment is kept at a preset lowest battery current threshold.
2. The charging control method of claim 1, wherein determining the corresponding temperature threshold based on the battery charge level comprises:
and inputting the battery electric quantity into a preset temperature control model, and outputting to obtain the corresponding temperature threshold, wherein the preset temperature control model is used for indicating that the temperature threshold and the battery electric quantity are in a negative correlation relationship.
3. The charge control method according to claim 2,
the preset temperature control model is used for indicating the corresponding relation between the electric quantity of the plurality of batteries and the plurality of temperature thresholds; alternatively, the first and second electrodes may be,
the preset temperature control model is used for indicating the corresponding relation between a multi-section battery electric quantity interval and a plurality of temperature threshold values, and the battery electric quantity interval comprises a plurality of battery electric quantities.
4. The charging control method according to claim 2, wherein before the step of inputting the battery power into a preset temperature control model and outputting the battery power to obtain the corresponding temperature threshold, the method further comprises:
acquiring the application type of foreground application of the terminal equipment;
and acquiring the preset temperature control model corresponding to the application type according to a preset corresponding relation, wherein the preset corresponding relation comprises the corresponding relation between the application type and the preset temperature control model.
5. The charging control method according to any one of claims 1 to 4, wherein the controlling the charging current of the charger by using a charging control strategy according to the device temperature of the terminal device and the temperature threshold comprises:
and when the equipment temperature is less than or equal to the temperature threshold, adopting a first charging control strategy to control the charging current of the charger, wherein the first charging control strategy is used for indicating that the equipment temperature is kept less than or equal to the temperature threshold in the charging process.
6. The charging control method according to any one of claims 1 to 4, wherein the controlling the charging current of the charger by using a charging control strategy according to the device temperature of the terminal device and the temperature threshold comprises:
and when the temperature of the equipment is greater than the temperature threshold, adopting a second charging control strategy to control the charging current of the charger, wherein the second charging control strategy is used for indicating that the battery current of the terminal equipment is kept to be the lowest battery current threshold in the charging process.
7. The charging control method according to any one of claims 1 to 4, wherein the controlling the charging current of the charger by using a charging control strategy according to the device temperature of the terminal device and the temperature threshold comprises:
and when the equipment temperature is less than or equal to the temperature threshold and the battery current of the terminal equipment is greater than or equal to the lowest battery current threshold, adopting a first charging control strategy to control the charging current of the charger, wherein the first charging control strategy is used for indicating that the equipment temperature is kept less than or equal to the temperature threshold in the charging process.
8. The charging control method according to any one of claims 1 to 4, wherein the controlling the charging current of the charger by using a charging control strategy according to the device temperature of the terminal device and the temperature threshold comprises:
and when the equipment temperature is greater than the temperature threshold value or the battery current of the terminal equipment is less than the lowest battery current threshold value, adjusting the charging current of the charger by adopting a second charging control strategy, wherein the second charging control strategy is used for indicating that the battery current of the terminal equipment is kept at the lowest battery current threshold value in the charging process.
9. A charging control apparatus, characterized in that the charging control apparatus comprises at least one unit for implementing the method of any one of claims 1-8.
10. A terminal device, characterized in that the terminal device comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring the current battery capacity of the terminal equipment under the condition of charging through a charger;
determining a corresponding temperature threshold according to the battery electric quantity, wherein the temperature threshold and the battery electric quantity are in a negative correlation relationship;
and controlling the charging current of the charger by adopting a charging control strategy according to the equipment temperature of the terminal equipment and the temperature threshold, wherein the charging control strategy is used for indicating that the equipment temperature is kept to be less than or equal to the temperature threshold in the charging process or the battery current of the terminal equipment is kept to be a preset minimum battery current threshold.
11. The terminal device of claim 10, wherein the processor is further configured to:
and inputting the battery electric quantity into a preset temperature control model, and outputting to obtain the corresponding temperature threshold, wherein the preset temperature control model is used for indicating that the temperature threshold and the battery electric quantity are in a negative correlation relationship.
12. The terminal device of claim 11,
the preset temperature control model is used for indicating the corresponding relation between the electric quantity of the plurality of batteries and the plurality of temperature thresholds; alternatively, the first and second electrodes may be,
the preset temperature control model is used for indicating the corresponding relation between a multi-section battery electric quantity interval and a plurality of temperature threshold values, and the battery electric quantity interval comprises a plurality of battery electric quantities.
13. The terminal device of claim 11, wherein the processor is further configured to:
acquiring the application type of foreground application of the terminal equipment;
and acquiring the preset temperature control model corresponding to the application type according to a preset corresponding relation, wherein the preset corresponding relation comprises the corresponding relation between the application type and the preset temperature control model.
14. The terminal device of any of claims 10 to 13, wherein the processor is further configured to:
and when the equipment temperature is less than or equal to the temperature threshold, adopting a first charging control strategy to control the charging current of the charger, wherein the first charging control strategy is used for indicating that the equipment temperature is kept less than or equal to the temperature threshold in the charging process.
15. The terminal device of any of claims 10 to 13, wherein the processor is further configured to:
and when the temperature of the equipment is greater than the temperature threshold, adopting a second charging control strategy to control the charging current of the charger, wherein the second charging control strategy is used for indicating that the battery current of the terminal equipment is kept to be a preset lowest battery current threshold in the charging process.
16. The terminal device of any of claims 10 to 13, wherein the processor is further configured to:
and when the equipment temperature is less than or equal to the temperature threshold value and the battery current of the terminal equipment is greater than or equal to a preset lowest battery current threshold value, adopting a first charging control strategy to control the charging current of the charger, wherein the first charging control strategy is used for indicating that the equipment temperature is kept less than or equal to the temperature threshold value in the charging process.
17. The terminal device of any of claims 10 to 13, wherein the processor is further configured to:
and when the equipment temperature is greater than the temperature threshold value, or the battery current of the terminal equipment is smaller than a preset lowest battery current threshold value, adjusting the charging current of the charger by adopting a second charging control strategy, wherein the second charging control strategy is used for indicating that the battery current of the terminal equipment is kept at the lowest battery current threshold value in the charging process.
18. A non-transitory computer readable storage medium having computer program instructions stored thereon, wherein the computer program instructions, when executed by a processor, implement the method of any of claims 1-8.
CN202011314556.XA 2020-11-20 2020-11-20 Charging control method and device, terminal equipment and storage medium Pending CN114520528A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011314556.XA CN114520528A (en) 2020-11-20 2020-11-20 Charging control method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011314556.XA CN114520528A (en) 2020-11-20 2020-11-20 Charging control method and device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114520528A true CN114520528A (en) 2022-05-20

Family

ID=81595531

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011314556.XA Pending CN114520528A (en) 2020-11-20 2020-11-20 Charging control method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114520528A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115513571A (en) * 2022-11-23 2022-12-23 荣耀终端有限公司 Control method of battery temperature and terminal equipment
CN116094083A (en) * 2022-06-29 2023-05-09 荣耀终端有限公司 Charging method, device and storage medium
WO2024120034A1 (en) * 2022-12-09 2024-06-13 中兴通讯股份有限公司 Charging control method and apparatus

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116094083A (en) * 2022-06-29 2023-05-09 荣耀终端有限公司 Charging method, device and storage medium
CN116094083B (en) * 2022-06-29 2024-03-12 荣耀终端有限公司 Charging method, device and storage medium
CN115513571A (en) * 2022-11-23 2022-12-23 荣耀终端有限公司 Control method of battery temperature and terminal equipment
CN115513571B (en) * 2022-11-23 2023-06-13 荣耀终端有限公司 Control method of battery temperature and terminal equipment
WO2024120034A1 (en) * 2022-12-09 2024-06-13 中兴通讯股份有限公司 Charging control method and apparatus

Similar Documents

Publication Publication Date Title
CN114520528A (en) Charging control method and device, terminal equipment and storage medium
JP7249754B2 (en) Battery charging method and apparatus
EP3281274B1 (en) Systems, methods and devices for adaptable battery charging
CN109416390B (en) Battery management device and method thereof
RU2684416C2 (en) Loads scheduling in multi-battery devices
US9800073B2 (en) Modeling a change in battery degradation
EP2911232B1 (en) Charging method and charger
JP6500911B2 (en) Battery device, charge control device and charge control method
US10270337B2 (en) Dynamic integration based current limiting for power converters
CN107452997B (en) Model-based rapid charging method based on lithium surface concentration
CN106095022B (en) Control method and electronic equipment
CN110049896B (en) System and method for selecting energy storage cells for balancing an electrical energy storage pack
US20180321730A1 (en) Methods for adaptive battery charging and electronic device thereof
CN106992326B (en) Charging control method and device and electronic equipment
US9787123B2 (en) Charge/discharge control device and charge/discharge control method
CN107357392A (en) Mobile terminal temperature rise control method, mobile terminal and readable storage medium storing program for executing
CN113195291B (en) Improved method for controlling an energy storage system
CN107359380B (en) Charging method and device
CN116368707A (en) Intelligent battery management system and method
CN110416646B (en) Method and device for controlling charge and discharge of battery pack
CN107994650B (en) Charging control method, device and equipment
CN113507154B (en) Charging method and device, charger and electronic equipment
CN109638948A (en) A kind of method and device promoting power-efficient
CN115622173A (en) Control method, control device and control system for battery charging
CN109149676B (en) Method and device for controlling charging current

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination