[go: up one dir, main page]

CN107482724B - Charging control method and device and computer readable storage medium - Google Patents

Charging control method and device and computer readable storage medium Download PDF

Info

Publication number
CN107482724B
CN107482724B CN201710758332.XA CN201710758332A CN107482724B CN 107482724 B CN107482724 B CN 107482724B CN 201710758332 A CN201710758332 A CN 201710758332A CN 107482724 B CN107482724 B CN 107482724B
Authority
CN
China
Prior art keywords
current
charging
temperature
time period
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.)
Expired - Fee Related
Application number
CN201710758332.XA
Other languages
Chinese (zh)
Other versions
CN107482724A (en
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.)
TP Link Technologies Co Ltd
Original Assignee
TP Link 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 TP Link Technologies Co Ltd filed Critical TP Link Technologies Co Ltd
Priority to CN201710758332.XA priority Critical patent/CN107482724B/en
Publication of CN107482724A publication Critical patent/CN107482724A/en
Application granted granted Critical
Publication of CN107482724B publication Critical patent/CN107482724B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • H02J7/0091

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention discloses a charging control method, a charging control device and a computer readable storage medium, wherein the charging control method comprises the steps of detecting the current temperature corresponding to a charging chip in the current time period; calculating a linear control term, an integral control term and a differential control term corresponding to the current time period according to the current temperature and the target temperature, and calculating a charging current according to the linear control term, the integral control term and the differential control term; and controlling a rechargeable battery to be charged by the charging current through the charging chip so as to keep the temperature of the charging chip at the target temperature. The charging control method is suitable for a large-current quick-charging mobile terminal, can improve the accuracy of charging current control, and keeps the temperature of the mobile terminal at the target temperature in the charging process, so that the problems of serious temperature rise and poor temperature rise experience of a user of the mobile terminal in the charging process are solved.

Description

Charging control method and device and computer readable storage medium
Technical Field
The invention relates to the technical field of charging control, in particular to a charging control method and device and a computer readable storage medium.
Background
With the development of communication technology and mobile terminals, mobile terminals have become an indispensable part of people's work and life by virtue of their advantages of various functions and wide application range. At present, due to the design that the screen of a mobile terminal such as a mobile phone and a tablet computer is larger, the peripheral devices are diversified, the functions are more comprehensive and the like, the power consumption rate of the mobile terminal is increased in the using process, and therefore the mobile terminal is charged more frequently. In the prior art, the temperature near the CPU is usually detected during the charging process of the mobile terminal, and a sectional charging current control strategy is executed according to the temperature near the CPU, so as to reduce the temperature near the CPU and control the temperature rise during the charging process of the mobile terminal.
However, with the popularization and application of the large-current quick-charging technology of the mobile terminal, the position of the mobile terminal with the most serious heat generation is changed from the original CPU area to the charging chip area, and the temperature of the CPU area is different from the temperature of the charging chip area to a certain extent, so that when the large-current quick-charging mobile terminal adopts the existing charging control method, the charging current control precision of the mobile terminal is reduced, and the temperature rise of the mobile terminal is serious, and meanwhile, the charging current fluctuates greatly due to the sectional charging current control strategy, so that the temperature fluctuation of the mobile terminal is also large, and the temperature rise of a user is poor for physical examination.
Disclosure of Invention
The invention aims to provide a charging control method, a charging control device and a computer readable storage medium, which are suitable for a large-current quick-charging mobile terminal and can improve the accuracy of charging current control so as to solve the problem of serious temperature rise of the mobile terminal in the charging process.
In order to solve the above technical problem, an embodiment of the present invention provides a charging control method, including the following steps:
detecting the current temperature corresponding to the charging chip in the current time period;
calculating a linear control item corresponding to the current time period according to the current temperature and the target temperature;
calculating an integral control term corresponding to the current time period according to the current temperature, the target temperature and the linear control term;
calculating a differential control item corresponding to the current time period according to the current temperature, the target temperature and the linear control item;
calculating a charging current according to the linear control term, the integral control term and the derivative control term;
and controlling a rechargeable battery to be charged by the charging current through the charging chip so as to keep the temperature of the charging chip at the target temperature.
Preferably, the detecting a current temperature corresponding to the charging chip in a current time period specifically includes:
and detecting the temperature corresponding to the negative temperature coefficient thermistor positioned at the set distance of the charging chip in the current time period as the current temperature corresponding to the charging chip.
Preferably, the calculating a linear control item corresponding to the current time period according to the current temperature and the target temperature specifically includes:
and calculating the difference value between the target temperature and the current temperature as the linear control item.
Preferably, the calculating an integral control term corresponding to the current time period according to the current temperature, the target temperature and the linear control term specifically includes:
accumulating the linear control item corresponding to the first time period to the linear control item corresponding to the current time period to obtain an accumulated value;
setting the integral control term to zero when the accumulated value satisfies an integral control term zero setting condition;
setting the integral control term to the accumulated value when the accumulated value does not satisfy the integral control term zero condition;
wherein the integral control term zero setting condition is that the current temperature is less than the target temperature and the accumulated value is less than zero, or the current temperature is greater than the target temperature and the accumulated value is greater than zero.
Preferably, the calculating a differential control term corresponding to the current time period according to the current temperature, the target temperature, and the linear control term specifically includes:
setting the differential control term to zero when the differential control term satisfies a differential control term zero condition;
when the differential control item does not meet the condition of setting zero of the differential control item, calculating the difference value between the linear control item corresponding to the current time period and the linear control item corresponding to the last time period as the differential control item;
the condition that the differential control item is set to zero is that the current temperature is less than the target temperature and the current temperature is less than the temperature corresponding to the last time period, or that the current temperature is greater than the target temperature and the current temperature is greater than the temperature corresponding to the last time period.
Preferably, the calculating a charging current according to the linear control term, the integral control term and the derivative control term specifically includes:
calculating the charging current according to Delta & ltPterm/Kp + Iterm/Ki + Dterm/Kd;
where Delta is the charging current, Pterm is the linear control term, Kp is a linear constant, Iterm is the integral control term, Ki is an integral constant, Dterm is the derivative control term, and Kd is a derivative constant.
Preferably, the charge control method further includes:
judging the magnitude of the charging current and the hysteresis current;
and when the charging current is smaller than the hysteresis current, resetting the current value of the charging current to the current value corresponding to the hysteresis current.
Preferably, the charge control method further includes:
judging whether the charging current is within a preset current range or not;
and if so, determining the charging input current of the rechargeable battery as the charging current.
The invention also provides a charging control device, which comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein the processor realizes the charging control method when executing the computer program.
The invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program runs, the device where the computer-readable storage medium is located is controlled to execute the charging control method.
Compared with the prior art, the charging control method, the charging control device and the computer-readable storage medium provided by the embodiment of the invention have the beneficial effects that: the charging control method comprises the following steps: detecting the current temperature corresponding to the charging chip in the current time period; calculating a linear control item corresponding to the current time period according to the current temperature and the target temperature; calculating an integral control term corresponding to the current time period according to the current temperature, the target temperature and the linear control term; calculating a differential control item corresponding to the current time period according to the current temperature, the target temperature and the linear control item; calculating a charging current according to the linear control term, the integral control term and the derivative control term; and controlling a rechargeable battery to be charged by the charging current through the charging chip so as to keep the temperature of the charging chip at the target temperature. The charging control method is suitable for a large-current quick-charging mobile terminal, can improve the accuracy of charging current control, and keeps the temperature of the mobile terminal at the target temperature in the charging process, so that the problems of serious temperature rise and poor temperature rise experience of a user of the mobile terminal in the charging process are solved.
Drawings
Fig. 1 is a flowchart of a charging control method according to an embodiment of the present invention;
fig. 2 is a flowchart of another embodiment of a charging control method according to an embodiment of the present invention;
fig. 3 is a block diagram of a charging control apparatus according to an embodiment of the present invention;
fig. 4 is a block diagram of another embodiment of a charging control apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Please refer to fig. 1, which is a flowchart illustrating a charging control method according to an embodiment of the present invention, wherein the charging control method is suitable for a large-current fast charging mobile terminal, such as a flash-charging smart phone, a tablet computer, and the like, and is also suitable for a general mobile terminal.
The charging control method specifically comprises the following steps:
s100: detecting the current temperature corresponding to the charging chip in the current time period;
preferably, the time period is 1 s. In the charging process of the mobile terminal, the charging chip which generates heat most seriously in the mobile terminal is subjected to temperature detection every 1s, so that the error between the whole temperature of the mobile terminal and the detected temperature can be reduced, and the accuracy of temperature rise control of the mobile terminal in the charging process is improved.
S200: calculating a linear control item corresponding to the current time period according to the current temperature and the target temperature;
s300: calculating an integral control term corresponding to the current time period according to the current temperature, the target temperature and the linear control term;
s400: calculating a differential control item corresponding to the current time period according to the current temperature, the target temperature and the linear control item;
s500: calculating a charging current according to the linear control term, the integral control term and the derivative control term;
s600: and controlling a rechargeable battery to be charged by the charging current through the charging chip so as to keep the temperature of the charging chip at the target temperature.
The charging current is obtained by performing linear, integral and differential calculation on the current temperature and the target temperature and performing combined calculation on the linear control item, the integral control item and the differential control item, so that the charging of the charging battery of the mobile terminal by the charging current can ensure that the temperature rise of the mobile terminal is reduced while the mobile terminal is rapidly charged, and the temperature of the mobile terminal is more accurately adjusted to the target temperature, so that the temperature of the mobile terminal is kept consistent in the charging process, and the temperature rise experience of a user is improved.
In an alternative embodiment, S100: the detecting of the current temperature corresponding to the charging chip in the current time period specifically includes:
and detecting the temperature corresponding to the negative temperature coefficient thermistor positioned at the set distance of the charging chip in the current time period as the current temperature corresponding to the charging chip.
Wherein the set distance is any value between 5mm and 10 mm. The resistance value of the negative temperature coefficient thermistor at normal temperature is 100K, the negative temperature coefficient thermistor has the characteristics of small size and high sensitivity, and the temperature of the charging chip can be accurately sensed by adopting the negative temperature coefficient thermistor. In other embodiments, a positive temperature coefficient thermistor, a thermal resistor (copper or platinum), or a thermocouple may be used instead of the negative temperature coefficient thermistor to detect the temperature of the charging chip.
In an alternative embodiment, S200: the calculating a linear control item corresponding to the current time period according to the current temperature and the target temperature specifically includes:
and calculating the difference value between the target temperature and the current temperature as the linear control item.
Specifically, the linear control term is calculated according to Pterm ═ Ttarget-Tcurr, where Pterm is the linear control term, Ttarget is the target temperature, and Tcurr is the current temperature.
In an alternative embodiment, S300: the calculating an integral control term corresponding to the current time period according to the current temperature, the target temperature and the linear control term specifically includes:
accumulating the linear control item corresponding to the first time period to the linear control item corresponding to the current time period to obtain an accumulated value;
specifically, the accumulated value is calculated according to Sum — Pterm1+ … + Pterm N, where Sum is the accumulated value, Pterm1 is the linear control term corresponding to the first time period, and Pterm N is the linear control term corresponding to the current time period.
Setting the integral control term Iterm to zero when the accumulated value Sum satisfies an integral control term zero setting condition;
setting the integral control term Iterm to the accumulated value Sum when the accumulated value Sum does not satisfy the integral control term zero condition;
wherein the integral control term zero setting condition is that the current temperature is less than the target temperature and the accumulated value Sum is less than zero, or the current temperature is greater than the target temperature and the accumulated value Sum is greater than zero.
In an alternative embodiment, S400: the calculating a differential control term corresponding to the current time period according to the current temperature, the target temperature and the linear control term specifically includes:
setting the differential control term to zero when the differential control term satisfies a differential control term zero condition;
when the differential control item does not meet the condition of setting zero of the differential control item, calculating the difference value between the linear control item corresponding to the current time period and the linear control item corresponding to the last time period as the differential control item;
specifically, the differential control term is calculated according to Dterm ═ PtermN-Pterm (N-1), where Dterm is the differential control term, PtermN is a linear control term corresponding to the current time period, and PtermN is a linear control term corresponding to the last time period of Pterm (N-1).
The condition that the differential control item is set to zero is that the current temperature is less than the target temperature and the current temperature is less than the temperature corresponding to the last time period, or that the current temperature is greater than the target temperature and the current temperature is greater than the temperature corresponding to the last time period.
In an alternative embodiment, S500: the calculating a charging current according to the linear control term, the integral control term, and the derivative control term specifically includes:
calculating the charging current according to Delta & ltPterm/Kp + Iterm/Ki + Dterm/Kd;
where Delta is the charging current, Pterm is the linear control term, Kp is a linear constant, Iterm is the integral control term, Ki is an integral constant, Dterm is the derivative control term, and Kd is a derivative constant.
Because the input signal and the output signal of the charging controller integrated with the charging control chip have error signals and the error signals are in proportional relation, if only the linear control term is introduced to calculate the charging current, a steady-state error exists in the output current of the charging controller (it can be understood that the output current of the charging controller is the input current of the rechargeable battery). The present embodiment therefore introduces the integral control term and the derivative control term on the basis of the linear control term to calculate the charging current. The integral control term may eliminate steady state errors caused by the linear control term. Since the integral control term increases with time, even if the steady-state error is small, the integral control term increases with time and pushes the output of the charge controller to increase, thereby reducing the steady-state error until the steady-state error equals zero. The derivative control term may suppress the steady-state error. Because the change of the differential control item lags behind the steady-state error, the change trend of the steady-state error can be predicted according to the change trend of the differential control item, so that the oscillation and even instability of the steady-state error in the adjusting process can be overcome.
And performing linear, integral and differential calculation according to the temperature of the charging chip and the target temperature, and combining the linear control term, the integral control term and the differential control term obtained by calculation to obtain the charging current, so that the error of the output current of a charging controller of the mobile terminal can be effectively reduced, and the accuracy of charging control is improved. The charging current of the charging battery of the mobile terminal can ensure that the temperature rise is reduced while the mobile terminal is rapidly charged, and the temperature of the mobile terminal is more accurately adjusted to be close to the target temperature, so that the temperature of the mobile terminal is maintained to be close to the target temperature in the charging process, and the frequent fluctuation of the surface temperature of the mobile terminal in the charging process is avoided. Because the temperature of the mobile terminal is not changed greatly in the charging process, the charging current is not amplified or reduced greatly, and the stability of the charging current is improved.
Referring to fig. 2, in an alternative embodiment, the charging control method further includes: s700: and judging the magnitude of the charging current and the hysteresis current.
When the charging current is smaller than the hysteresis current, resetting the current value of the charging current to the current value corresponding to the hysteresis current; .
Preferably, the hysteresis current is 50 mA. When the rechargeable battery is charged with the charging current less than 50mA, the temperature rise of the mobile terminal cannot be effectively controlled, and the energy loss is increased. Therefore, in this embodiment, when the charging current is less than 50mA, the current value of the charging current is adjusted to 50mA, and the rechargeable battery is controlled to be charged at 50mA, so that frequent unnecessary actions in the charging control process can be reduced, the response rate of charging the mobile terminal can be improved, and the load of the charging controller can be reduced, thereby reducing the energy loss of the mobile terminal.
Referring to fig. 2, in an alternative embodiment, the charging control method further includes: s800: judging whether the charging current is within a preset current range or not; and if so, determining the charging input current of the rechargeable battery as the charging current.
In this embodiment, the preset current range is greater than the minimum current value allowed by the rechargeable battery and less than the maximum current value allowed by the rechargeable battery. Charging current is in when predetermineeing the current range just control rechargeable battery with charging current charges, can guarantee when rechargeable battery normally works avoid charging current leads to too big rechargeable battery damages. Preferably, the current minimum value is 0mA, and the current maximum value is 3000 mA.
Referring to fig. 3, a block diagram of a charging control device according to an embodiment of the present invention is shown, where the charging control device includes:
and the temperature detection module 1 is used for detecting the current temperature corresponding to the charging chip in the current time period.
Preferably, the time period is 1 s. In the charging process of the mobile terminal, the charging chip which generates heat most seriously in the mobile terminal is subjected to temperature detection every 1s, so that the error between the whole temperature of the mobile terminal and the detected temperature can be reduced, and the accuracy of temperature rise control of the mobile terminal in the charging process is improved.
In an optional embodiment, the temperature detecting module 1 is specifically configured to detect a temperature corresponding to the negative temperature coefficient thermistor located at a set distance from the charging chip in the current time period, as the current temperature corresponding to the charging chip.
Wherein the set distance is any value between 5mm and 10 mm. The resistance value of the negative temperature coefficient thermistor at normal temperature is 100K, the negative temperature coefficient thermistor has the characteristics of small size and high sensitivity, and the temperature of the charging chip can be accurately sensed by adopting the negative temperature coefficient thermistor. In other embodiments, a positive temperature coefficient thermistor, a thermal resistor (copper or platinum), or a thermocouple may be used instead of the negative temperature coefficient thermistor to detect the temperature of the charging chip.
And the first calculating module 2 is used for calculating a linear control item corresponding to the current time period according to the current temperature and the target temperature.
In an optional embodiment, the first calculating module is specifically configured to calculate a difference between the target temperature and the current temperature as the linear control term.
And the second calculating module 3 is configured to calculate an integral control term corresponding to the current time period according to the current temperature, the target temperature, and the linear control term.
In an optional embodiment, the second calculating module 3 is specifically configured to accumulate the linear control item corresponding to the first time period to the linear control item corresponding to the current time period to obtain an accumulated value; setting the integral control term to zero when the accumulated value satisfies an integral control term zero setting condition; setting the integral control term to the accumulated value when the accumulated value does not satisfy the integral control term zero condition.
Wherein the integral control term zero setting condition is that the current temperature is less than the target temperature and the accumulated value is less than zero, or the current temperature is greater than the target temperature and the accumulated value is greater than zero.
And the third calculating module 4 is configured to calculate a differential control term corresponding to the current time period according to the current temperature, the target temperature, and the linear control term.
In an alternative embodiment, the third calculation module 4 is specifically configured to set the differential control term to zero when the differential control term satisfies a differential control term zero condition; and when the differential control item does not meet the condition of setting zero of the differential control item, calculating the difference value between the linear control item corresponding to the current time period and the linear control item corresponding to the last time period as the differential control item.
The condition that the differential control item is set to zero is that the current temperature is less than the target temperature and the current temperature is less than the temperature corresponding to the last time period, or that the current temperature is greater than the target temperature and the current temperature is greater than the temperature corresponding to the last time period.
And a fourth calculating module 5, configured to calculate a charging current according to the linear control term, the integral control term, and the derivative control term.
In an alternative embodiment, the fourth calculation module 5 is specifically configured to calculate the charging current from Delta-Pterm/Kp + Iterm/Ki + Dterm/Kd.
Where Delta is the charging current, Pterm is the linear control term, Kp is a linear constant, Iterm is the integral control term, Ki is an integral constant, Dterm is the derivative control term, and Kd is a derivative constant.
And the charging control module 6 is used for controlling the charging input current of the rechargeable battery to be the charging current through the charging chip so as to keep the temperature of the charging chip at the target temperature.
Because the input signal and the output signal of the charging controller integrated with the charging control chip have error signals and the error signals are in proportional relation, if only the linear control term is introduced to calculate the charging current, a steady-state error exists in the output current of the charging controller (it can be understood that the output current of the charging controller is the input current of the rechargeable battery). The present embodiment adds the integral control term and the derivative control term to the linear control term to calculate the charging current. The integral control term may eliminate steady state errors caused by the linear control term. Since the integral control term increases with time, even if the steady-state error is small, the integral control term increases with time and pushes the output of the charge controller to increase, thereby reducing the steady-state error until the steady-state error equals zero. The derivative control term may suppress the steady-state error. Because the change of the differential control item lags behind the steady-state error, the change trend of the steady-state error can be predicted according to the change trend of the differential control item, so that the oscillation and even instability of the steady-state error in the adjusting process can be overcome.
And performing linear, integral and differential calculation according to the temperature of the charging chip and the target temperature, and combining the linear control term, the integral control term and the differential control term obtained by calculation to obtain the charging current, so that the error of the output current of a charging controller of the mobile terminal can be effectively reduced, and the accuracy of charging control is improved. The charging current of the charging battery of the mobile terminal can ensure that the temperature rise is reduced while the mobile terminal is rapidly charged, and the temperature of the mobile terminal is more accurately adjusted to be close to the target temperature, so that the temperature of the mobile terminal is maintained to be close to the target temperature in the charging process, and the frequent fluctuation of the surface temperature of the mobile terminal in the charging process is avoided. Because the temperature of the mobile terminal is not changed greatly in the charging process, the charging current is not amplified or reduced greatly, and the stability of the charging current is improved.
The charging current is obtained by performing linear, integral and differential calculations on the current temperature and the target temperature and performing combined calculation on the linear control item, the integral control item and the differential control item, and the charging battery of the mobile terminal is charged by the charging current, so that the temperature rise of the mobile terminal can be reduced while the mobile terminal is rapidly charged, and the temperature of the mobile terminal can be more accurately adjusted to the target temperature, so that the temperature of the mobile terminal is kept consistent in the charging process, and the temperature rise experience of a user is improved.
Referring to fig. 4, in an alternative embodiment, the charging control apparatus further includes:
the first judging module 7 is used for judging the magnitude of the charging current and the hysteresis current; and when the charging current is smaller than the hysteresis current, resetting the current value of the charging current to the current value corresponding to the hysteresis current.
Preferably, the hysteresis current is 50 mA. When the rechargeable battery is charged with the charging current less than 50mA, the temperature rise of the mobile terminal cannot be effectively controlled, and the energy loss is increased. Therefore, in this embodiment, when the charging current is less than 50mA, the current value of the charging current is adjusted to 50mA, and the rechargeable battery is controlled to be charged at 50mA, so that frequent unnecessary actions in the charging control process can be reduced, the response rate of charging is improved, and the load of the charging controller is reduced, thereby reducing the energy loss of the mobile terminal.
Referring to fig. 4, in an alternative embodiment, the charging control apparatus further includes:
the second judging module 8 is used for judging whether the charging current is within a preset current range; and if so, determining the charging input current of the rechargeable battery as the charging current.
In this embodiment, the preset current range is greater than the minimum current value allowed by the rechargeable battery and less than the maximum current value allowed by the rechargeable battery. Charging current is in when predetermineeing the current range just control rechargeable battery with charging current charges, can guarantee when rechargeable battery normally works avoid charging current leads to too big rechargeable battery damages. Preferably, the current minimum value is 0mA, and the current maximum value is 3000 mA.
An embodiment of the present invention provides a charging control apparatus including: a processor, a memory, and a computer program, such as a charging control program, stored in the memory and executable on the processor. The processor implements the steps in the above-described respective charging control method embodiments, such as steps S100 to S600 shown in fig. 1, when executing the computer program. Alternatively, the processor implements the functions of the modules/units in the above device embodiments when executing the computer program.
Illustratively, the computer program may be partitioned into one or more modules/units that are stored in the memory and executed by the processor to implement the invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program in the charge control device. For example, the computer program may be divided into a temperature detection module, a first calculation module, a second calculation module, a third calculation module, a fourth calculation module, and a charging control module, and each module has the following specific functions: the temperature detection module is used for detecting the current temperature corresponding to the charging chip in the current time period; the first calculation module is used for calculating a linear control item corresponding to the current time period according to the current temperature and the target temperature; the second calculation module is configured to calculate an integral control term corresponding to the current time period according to the current temperature, the target temperature, and the linear control term; the third calculating module is configured to calculate a differential control term corresponding to the current time period according to the current temperature, the target temperature, and the linear control term; the fourth calculation module is used for calculating the charging current according to the linear control term, the integral control term and the derivative control term; the charging control module is used for controlling the charging input current of the rechargeable battery to be the charging current through the charging chip so as to enable the temperature of the charging chip to be kept at the target temperature.
The charging control device can be a mobile phone, a desktop computer, a notebook computer, a palm computer, a cloud server and other computing equipment. The charge control device may include, but is not limited to, a processor, a memory. For example, the charging control device may further include an input/output device, a network access device, a bus, and the like.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor is a control center of the charging control device, and various interfaces and lines are used to connect various parts of the entire charging control device.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the charging control apparatus by running or executing the computer programs and/or modules stored in the memory and calling data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program runs, the device where the computer-readable storage medium is located is controlled to execute the charging control method.
The module/unit integrated with the charging control device may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
Compared with the prior art, the charging control method, the charging control device and the computer-readable storage medium provided by the embodiment of the invention have the beneficial effects that: the charging control method comprises the following steps: detecting the current temperature corresponding to the charging chip in the current time period; calculating a linear control item corresponding to the current time period according to the current temperature and the target temperature; calculating an integral control term corresponding to the current time period according to the current temperature, the target temperature and the linear control term; calculating a differential control item corresponding to the current time period according to the current temperature, the target temperature and the linear control item; calculating a charging current according to the linear control term, the integral control term and the derivative control term; and controlling a rechargeable battery to be charged by the charging current through the charging chip so as to keep the temperature of the charging chip at the target temperature. The charging control method is suitable for a large-current quick-charging mobile terminal, can improve the accuracy of charging current control, and keeps the temperature of the mobile terminal at the target temperature in the charging process, so that the problems of serious temperature rise and poor temperature rise experience of a user of the mobile terminal in the charging process are solved.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
The foregoing is a preferred embodiment of the present invention, and it should be noted that it would be apparent to those skilled in the art that various modifications and enhancements can be made without departing from the principles of the invention, and such modifications and enhancements are also considered to be within the scope of the invention.

Claims (10)

1. A charging control method is characterized by comprising the following steps:
detecting the current temperature corresponding to the charging chip in the current time period;
calculating a linear control item corresponding to the current time period according to the current temperature and the target temperature;
calculating an integral control term corresponding to the current time period according to the current temperature, the target temperature and the linear control term;
calculating a differential control item corresponding to the current time period according to the current temperature, the target temperature and the linear control item;
calculating a charging current according to the linear control term, the integral control term and the derivative control term;
and controlling a rechargeable battery to be charged by the charging current through the charging chip so as to keep the temperature of the charging chip at the target temperature.
2. The method according to claim 1, wherein the detecting a current temperature of the charging chip in a current time period specifically includes:
and detecting the temperature corresponding to the negative temperature coefficient thermistor positioned at the set distance of the charging chip in the current time period as the current temperature corresponding to the charging chip.
3. The charge control method according to claim 1, wherein the calculating a linear control item corresponding to the current time period according to the current temperature and the target temperature specifically includes:
and calculating the difference value between the target temperature and the current temperature as the linear control item.
4. The charge control method according to claim 1 or 3, wherein the calculating an integral control term corresponding to the current time period according to the current temperature, the target temperature, and the linear control term specifically includes:
accumulating the linear control item corresponding to the first time period to the linear control item corresponding to the current time period to obtain an accumulated value;
setting the integral control term to zero when the accumulated value satisfies an integral control term zero setting condition;
setting the integral control term to the accumulated value when the accumulated value does not satisfy the integral control term zero condition;
wherein the integral control term zero setting condition is that the current temperature is less than the target temperature and the accumulated value is less than zero, or the current temperature is greater than the target temperature and the accumulated value is greater than zero.
5. The charge control method according to claim 1 or 3, wherein the calculating a differential control term corresponding to the current time period according to the current temperature, the target temperature, and the linear control term specifically includes:
setting the differential control term to zero when the differential control term satisfies a differential control term zero condition;
when the differential control item does not meet the condition of setting zero of the differential control item, calculating the difference value between the linear control item corresponding to the current time period and the linear control item corresponding to the last time period as the differential control item;
the condition that the differential control item is set to zero is that the current temperature is less than the target temperature and the current temperature is less than the temperature corresponding to the last time period, or that the current temperature is greater than the target temperature and the current temperature is greater than the temperature corresponding to the last time period.
6. The charge control method according to claim 1, wherein the calculating a charge current based on the linear control term, the integral control term, and the derivative control term specifically comprises:
calculating the charging current according to Delta & ltPterm/Kp + Iterm/Ki + Dterm/Kd;
where Delta is the charging current, Pterm is the linear control term, Kp is a linear constant, Iterm is the integral control term, Ki is an integral constant, Dterm is the derivative control term, and Kd is a derivative constant.
7. The charge control method according to claim 1, characterized by further comprising:
judging the magnitude of the charging current and the hysteresis current;
and when the charging current is smaller than the hysteresis current, resetting the current value of the charging current to the current value corresponding to the hysteresis current.
8. The charge control method according to claim 1 or 7, characterized by further comprising:
judging whether the charging current is within a preset current range or not;
and if so, determining the charging input current of the rechargeable battery as the charging current.
9. A charging control apparatus comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the charging control method according to any one of claims 1 to 8 when executing the computer program.
10. A computer-readable storage medium, comprising a stored computer program, wherein the computer program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform the charging control method according to any one of claims 1 to 8.
CN201710758332.XA 2017-08-29 2017-08-29 Charging control method and device and computer readable storage medium Expired - Fee Related CN107482724B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710758332.XA CN107482724B (en) 2017-08-29 2017-08-29 Charging control method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710758332.XA CN107482724B (en) 2017-08-29 2017-08-29 Charging control method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107482724A CN107482724A (en) 2017-12-15
CN107482724B true CN107482724B (en) 2020-05-19

Family

ID=60603060

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710758332.XA Expired - Fee Related CN107482724B (en) 2017-08-29 2017-08-29 Charging control method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107482724B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108482168B (en) * 2018-04-28 2020-05-19 北京新能源汽车股份有限公司 Method and device for adjusting internal temperature of battery pack and automobile

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002165380A (en) * 2000-11-24 2002-06-07 Tokyo R & D Co Ltd Battery charging system
US8135966B2 (en) * 2006-06-22 2012-03-13 Freescale Semiconductor, Inc. Method and device for power management
CN102545317B (en) * 2010-12-20 2015-08-05 株式会社电装 The system risen for causing battery temperature
CN104980561A (en) * 2014-04-02 2015-10-14 维沃移动通信有限公司 Mobile terminal for intelligently adjusting charging current and realizing method thereof
CN106230076B (en) * 2016-09-21 2019-03-01 维沃移动通信有限公司 A charging method and mobile terminal
CN106972370A (en) * 2017-04-19 2017-07-21 深圳市安特智能控制有限公司 A kind of intelligent semi-conductor thermostatic type distribution integrated water-proof power-supply system

Also Published As

Publication number Publication date
CN107482724A (en) 2017-12-15

Similar Documents

Publication Publication Date Title
JP6955092B2 (en) Methods for reducing terminal power consumption, and terminals
CN106772091B (en) Method and device for updating battery capacity value and terminal
CN111342159A (en) Charging control method and device, electronic equipment and computer readable storage medium
CN112505419B (en) Insulation resistance detection method and device for vehicle, terminal equipment and storage medium
CN106655388A (en) Charging control method and device and terminal
CN107221980B (en) Terminal device, temperature rise control method and device during charging of terminal device, and storage medium
CN116295902A (en) Method and device for detecting ambient temperature of electronic equipment
CN107423199A (en) Electronic equipment, temperature rise control method, control device, and storage medium
CN114062957A (en) Method and device for acquiring remaining battery capacity, electronic equipment and storage medium
CN105098871B (en) Portable device and control method of charging current thereof
CN107482724B (en) Charging control method and device and computer readable storage medium
CN113889680A (en) Battery charging method and device, and storage medium
CN111830394A (en) Charging circuit fault detection method, electronic device and computer readable storage medium
CN110767946B (en) A method, device and mobile terminal for controlling discharge of mobile terminal
CN106026220B (en) Charging sampling voltage compensation method and mobile terminal
CN108155693B (en) Charging control method and device of mobile terminal, storage medium and mobile terminal
EP3696938B1 (en) Method for charging battery and electronic device applying the method
CN110838740A (en) Charging current control method and device
CN118519491A (en) Current sharing control method, current sharing control device and current sharing control circuit
CN113543006B (en) Earphone testing method and device, electronic equipment and medium
CN108874107B (en) Control method and device for state of charge
CN118231876A (en) Battery temperature determination method, device, electronic device and storage medium
CN109728582A (en) Frequency control method and device based on multi-terminal direct current transmission system and storage medium
TW201430543A (en) Protection device, protection method thereof and electronic system thereof
CN117348710A (en) Equipment control method, device, medium, equipment and chip

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
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200519