[ summary of the invention ]
In view of this, embodiments of the present invention provide a charging control method, a charging control apparatus, and an electronic device, so as to solve the problem that a main charging circuit generates heat obviously during a fast charging process in the prior art.
In one aspect, an embodiment of the present invention provides a charging control method, including:
the method comprises the steps that in the process of charging a battery by using a first charging circuit and a second charging circuit simultaneously, the temperature of the first charging circuit and the temperature of the second charging circuit are collected, and the current of the first charging circuit is larger than that of the second charging circuit;
detecting whether the temperature of the first charging circuit and the temperature of the second charging circuit meet a specified switching condition;
when the temperature of the first charging circuit and the temperature of the second charging circuit meet a specified switching condition, the current of the first charging circuit is reduced, and the current of the second charging circuit is increased.
The above-described aspect and any possible implementation manner further provide an implementation manner, before detecting whether the temperature of the first charging circuit and the temperature of the second charging circuit satisfy a specified switching condition, further including: collecting the temperature of a mainboard in the electronic equipment where the battery is located;
detecting whether the temperature of the first charging circuit and the temperature of the second charging circuit satisfy a specified switching condition, including: and detecting whether the temperature of the mainboard, the temperature of the first charging circuit and the temperature of the second charging circuit meet specified switching conditions.
The above aspect and any possible implementation manner further provide an implementation manner, where detecting whether the temperature of the motherboard, the temperature of the first charging circuit, and the temperature of the second charging circuit satisfy a specified switching condition, includes:
calculating a difference value between the temperature of the first charging circuit and the temperature of the mainboard to serve as a first difference value;
calculating a difference value between the temperature of the second charging circuit and the temperature of the mainboard to serve as a second difference value;
comparing the first difference value with a preset first threshold value to obtain a first comparison result;
comparing the second difference value with a preset second threshold value to obtain a second comparison result;
and judging whether the temperature of the mainboard, the temperature of the first charging circuit and the temperature of the second charging circuit meet specified switching conditions or not according to the first difference, the second difference, the first comparison result and the second comparison result.
The foregoing aspect and any possible implementation manner further provide an implementation manner, wherein determining whether the temperature of the motherboard, the temperature of the first charging circuit, and the temperature of the second charging circuit satisfy a specified switching condition according to the first difference, the second difference, the first comparison result, and the second comparison result, includes:
and if the first difference is larger than the second difference and the second comparison result is that the second difference is smaller than the second threshold, judging that the temperature of the mainboard, the temperature of the first charging circuit and the temperature of the second charging circuit meet specified switching conditions.
The above-described aspects and any possible implementation further provide an implementation, further including:
and if the first difference is smaller than or equal to the second difference, or if the first difference is larger than the second difference and the second comparison result is that the second difference is larger than or equal to the second threshold, judging that the temperature of the mainboard, the temperature of the first charging circuit and the temperature of the second charging circuit do not meet specified switching conditions.
The above-described aspects and any possible implementation further provide an implementation, further including:
when the temperature of the first charging circuit and the temperature of the second charging circuit do not meet a specified switching condition, keeping the current of the first charging circuit and the current of the second charging circuit unchanged.
In another aspect, an embodiment of the present invention provides a charge control device, including:
the acquisition unit is used for acquiring the temperature of the first charging circuit and the temperature of the second charging circuit in the process of simultaneously charging the battery by utilizing the first charging circuit and the second charging circuit, wherein the current of the first charging circuit is greater than that of the second charging circuit;
a detection unit configured to detect whether or not a temperature of the first charging circuit and a temperature of the second charging circuit satisfy a specified switching condition;
and the control unit is used for reducing the current of the first charging circuit and increasing the current of the second charging circuit when the temperature of the first charging circuit and the temperature of the second charging circuit meet specified switching conditions.
The above aspect and any possible implementation manner further provide an implementation manner, where the acquisition unit is further configured to acquire a temperature of a motherboard in an electronic device in which the battery is located;
the detection unit is specifically configured to: and detecting whether the temperature of the mainboard, the temperature of the first charging circuit and the temperature of the second charging circuit meet specified switching conditions.
The foregoing aspect and any possible implementation manner further provide an implementation manner, where the detecting unit is configured to detect whether the temperature of the motherboard, the temperature of the first charging circuit, and the temperature of the second charging circuit satisfy a specified switching condition, and specifically configured to:
calculating a difference value between the temperature of the first charging circuit and the temperature of the mainboard to serve as a first difference value;
calculating a difference value between the temperature of the second charging circuit and the temperature of the mainboard to serve as a second difference value;
comparing the first difference value with a preset first threshold value to obtain a first comparison result;
comparing the second difference value with a preset second threshold value to obtain a second comparison result;
and judging whether the temperature of the mainboard, the temperature of the first charging circuit and the temperature of the second charging circuit meet specified switching conditions or not according to the first difference, the second difference, the first comparison result and the second comparison result.
As for the above-mentioned aspect and any possible implementation manner, there is further provided an implementation manner, where the detecting unit is configured to, when determining whether the temperature of the motherboard, the temperature of the first charging circuit, and the temperature of the second charging circuit satisfy a specified switching condition according to the first difference, the second difference, the first comparison result, and the second comparison result, specifically:
and if the first difference is larger than the second difference and the second comparison result is that the second difference is smaller than the second threshold, judging that the temperature of the mainboard, the temperature of the first charging circuit and the temperature of the second charging circuit meet specified switching conditions.
The above-described aspect and any possible implementation further provide an implementation, where the detection unit is further configured to:
and if the first difference is smaller than or equal to the second difference, or if the first difference is larger than the second difference and the second comparison result is that the second difference is larger than or equal to the second threshold, judging that the temperature of the mainboard, the temperature of the first charging circuit and the temperature of the second charging circuit do not meet specified switching conditions.
The above-described aspect and any possible implementation further provide an implementation, where the control unit is further configured to: when the temperature of the first charging circuit and the temperature of the second charging circuit do not meet a specified switching condition, keeping the current of the first charging circuit and the current of the second charging circuit unchanged.
In another aspect, an embodiment of the present invention provides an electronic device, including: the charging control device comprises a first charging circuit, a second charging circuit, a battery and the charging control device.
One of the above technical solutions has the following beneficial effects:
in the embodiment of the invention, in the process of simultaneously charging a battery by using a first charging circuit and a second charging circuit, the temperature of the first charging circuit and the temperature of the second charging circuit are collected, and the current of the first charging circuit is greater than that of the second charging circuit; thereby detecting whether the temperature of the first charging circuit and the temperature of the second charging circuit satisfy a specified switching condition; and when the temperature of the first charging circuit and the temperature of the second charging circuit meet a specified switching condition, reducing the current of the first charging circuit and increasing the current of the second charging circuit. According to the technical scheme provided by the embodiment of the invention, in the parallel charging process, the current of the charging circuit can be dynamically adjusted according to the temperatures of the two charging circuits, if the temperature of the charging circuit is higher, the current of the charging circuit can be reduced, and the current of the other charging circuit is increased, so that the problems that the device is damaged due to overhigh temperature, even the whole electronic equipment is burnt out, the life safety of a consumer is seriously threatened and the like caused by the continuous rise of the temperature of the charging circuit can be avoided. In addition, the current of the charging circuit is reduced, and simultaneously, the current of the other charging circuit is increased, so that the problem of reduction of charging efficiency caused by simple reduction of the current is avoided, the charging efficiency is considered, and the problem of overhigh temperature of the charging circuit is improved to a certain extent.
[ detailed description ] embodiments
For better understanding of the technical solutions of the present invention, the following detailed descriptions of the embodiments of the present invention are provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all 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.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
It should be understood that although the terms first, second, etc. may be used to describe the charging circuits in embodiments of the present invention, the charging circuits should not be limited to these terms. These terms are only used to distinguish charging circuits from one another. For example, the first charging circuit may also be referred to as a second charging circuit, and similarly, the second charging circuit may also be referred to as a first charging circuit, without departing from the scope of embodiments of the present invention.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
Example one
An embodiment of the present invention provides a charging control method, please refer to fig. 1, which is a schematic flow chart of the charging control method according to the embodiment of the present invention, and as shown in the figure, the method includes the following steps:
101. the method comprises the steps of collecting the temperature of a first charging circuit and the temperature of a second charging circuit in the process of simultaneously charging a battery by utilizing the first charging circuit and the second charging circuit, wherein the current of the first charging circuit is larger than that of the second charging circuit.
In the embodiment of the invention, after the connection with the specified type of charger is detected, for example, when the electronic device detects that a quick-charging charger is inserted, the battery in the electronic device is charged simultaneously by using the first charging circuit and the second charging circuit according to the current of the default configuration. In this embodiment, a current of the first charging circuit is greater than a current of the second charging circuit, which is taken as a default configuration as an example for illustration.
Further, in the process of simultaneously charging the battery by using the first charging circuit and the second charging circuit, the temperature T _ board of a main board in the electronic device where the battery is located, the temperature T _ charge 1 of the first charging circuit and the temperature T _ charge 2 of the second charging circuit are collected.
For example, the current T _ charge 1 of the first charging circuit is 2.4A, and the current T _ charge 2 of the second charging circuit is 1.2A.
For example, the main board of the electronic device in which the battery is located may be the main board in which the first charging circuit and the second charging circuit are located.
Referring to fig. 2, which is an exemplary diagram of charging a battery by using a first charging circuit and a second charging circuit simultaneously according to an embodiment of the present invention, as shown in fig. 2, two charging circuits, i.e., a first charging circuit and a second charging circuit, are disposed in a motherboard, one end of each charging circuit is connected to a charger, and the other end is connected to the battery, and related control of the charging circuits is implemented by a control chip (not shown) in an electronic device.
In a possible implementation, the collecting of the temperature of the main board, the temperature of the first charging circuit, and the temperature of the second charging circuit may be performed periodically during the charging process, or may be performed periodically at a specified time interval during the charging process, which is not particularly limited in the embodiment of the present invention.
102. Detecting whether the temperature of the first charging circuit and the temperature of the second charging circuit satisfy a specified switching condition.
In the embodiment of the invention, after the temperature of the mainboard, the temperature of the first charging circuit and the temperature of the second charging circuit are collected, whether the temperature of the mainboard, the temperature of the first charging circuit and the temperature of the second charging circuit meet the specified switching condition or not is detected.
In one possible embodiment, a difference between the temperature T _ charge 1 of the first charging circuit and the temperature T _ board of the main board is calculated as the first difference Δ T _ 1. And calculating the difference between the temperature T _ charge 2 of the second charging circuit and the temperature T _ board of the main board as a second difference delta T _ 2.
Further, the first difference Δ T is compared1Obtaining a first comparison result with a preset first threshold value Limit High _ 1; and comparing the second difference value Δ T2And obtaining a second comparison result with a preset second threshold value Limit High _ 2.
In a possible embodiment, the first threshold Limit High _1 and the second threshold Limit High _2 may be set in advance according to the characteristics of the circuit, as the threshold values for the charging strategy conversion. The first threshold Limit High _1 is used as a threshold value corresponding to the first charging circuit, and the second threshold Limit High _2 is used as a threshold value corresponding to the second charging circuit.
Further, the first difference Δ T is compared1And a second difference DeltaT2。
It should be noted that if the first difference Δ T is smaller than the first threshold value Δ T1Greater than the second difference Δ T2The first charging circuit is a main cause of heat generation of the main board. Conversely, if the first difference Δ T is1Less than a second difference Δ T2The second charging circuit is a main cause of heat generation of the main board.
With the charging process, the device in the charging circuit, such as the charging chip, will generate heat continuously when the first difference Δ T1Greater than the second difference Δ T2And the second comparison result is a second difference Δ T2When the temperature is less than the second threshold Limit High _2, it is determined that the temperature of the motherboard, the temperature of the first charging circuit, and the temperature of the second charging circuit satisfy the specified switching condition.
Conversely, if the first difference Δ T is1Less than or equal to the second difference Δ T2Or, if said first difference Δ T is1Greater than the second difference Δ T2And the second comparison result is the second difference Δ T2And if the temperature is larger than or equal to the second threshold value Limit High _2, judging that the temperature of the mainboard, the temperature of the first charging circuit and the temperature of the second charging circuit do not meet the specified switching condition.
The first difference Δ T1Less than or equal to the second difference Δ T2Two cases are included:
first, first difference value DeltaT1Less than or equal to the second difference Δ T2Said first difference Δ T1Is smaller than a preset first threshold value Limit High _ 1.
Second, first difference DeltaT1Less than or equal to the second difference Δ T2Said first difference Δ T1Greater than or equal to a preset first threshold Limit High _ 1.
103. When the temperature of the first charging circuit and the temperature of the second charging circuit meet a specified switching condition, the current of the first charging circuit is reduced, and the current of the second charging circuit is increased.
In the embodiment of the present invention, when the temperature of the first charging circuit and the temperature of the second charging circuit satisfy the specified switching condition, a charging conversion policy needs to be executed, that is, the current of the first charging circuit is greater than the current of the second charging circuit, and the current of the first charging circuit is converted to be less than the current of the second charging circuit. The charging conversion strategy may be implemented by turning down the current of the first charging circuit and turning up the current of the second charging circuit. As the current of the first charging circuit decreases, the temperature of the first charging circuit also decreases.
For example, before the transition, the current T _ charge 1 of the first charging circuit is 2.4A, and the current T _ charge 2 of the second charging circuit is 1.2A. After the conversion, the current T _ charge 1 of the first charging circuit becomes 1.2A, and the current T _ charge 2 of the second charging circuit becomes 2.4A. After the conversion, the current of the second charging circuit is larger than that of the first charging circuit, at the moment, the second charging circuit is used as a main charging circuit, and the first charging circuit is used as an auxiliary charging circuit.
In the embodiment of the invention, when the temperature of the first charging circuit and the temperature of the second charging circuit do not meet the specified switching condition, the current of the first charging circuit and the current of the second charging circuit are kept unchanged.
In the embodiment of the present invention, after the current of the first charging circuit is decreased and the current of the second charging circuit is increased, step 101 is executed, so that the temperature of the second charging circuit will continuously increase, when the first difference Δ T is smaller than the second difference Δ T1Greater than the second difference Δ T2And the first comparison result is a first difference value DeltaT1When the temperature of the first charging circuit is lower than the first threshold value Limit High _1, the second charging circuit is the main reason causing the heating of the mainboard, the temperature of the first charging circuit and the temperature of the second charging circuit are judged to meet the specified switching condition, then the current of the first charging circuit is increased, and the current of the second charging circuit is decreased, so that the first charging circuit and the second charging circuit are circularly switched as a main charging circuit and an auxiliary charging circuit, when the temperature of one charging circuit is higher, the current of the charging circuit is decreased, the current of the other charging circuit is increased, when the temperature of one charging circuit is higher, the temperature of the charging circuit is decreased by decreasing the current of the charging circuit, and simultaneously, the current of the other charging circuit is increased in order to avoid the problem of charging speed reduction caused by the current reduction, therefore, the charging speed is ensured, and the problems that the device is damaged due to overhigh temperature, even the whole electronic equipment is burnt out and the life safety of a consumer is seriously dangerous caused by the overheating of the charging circuit are avoided.
It should be noted that the electronic device according to the embodiments of the present invention may include, but is not limited to, a Personal Computer (PC), a Personal Digital Assistant (PDA), a wireless handheld device, a Tablet Computer (Tablet Computer), a mobile phone, a wearable device, and the like.
The execution bodies 101 to 103 may be charging control devices, and the charging control devices may be located in electronic equipment.
Example two
Referring to fig. 3, another flow chart of the charging control method according to the embodiment of the invention is shown, as shown in fig. 3, the method includes:
301. when the insertion of the quick charging charger is detected, the battery in the electronic device is charged by the charging circuit 1 and the charging circuit 2 at the same time according to the default configuration current, the current T _ charge 1 of the charging circuit 1 is 2.4A, and the current T _ charge 2 of the charging circuit 2 is 1.2A.
The charging circuit 1 is a main charging circuit, and the charging circuit 1 is an auxiliary charging circuit.
302. The temperature T _ board of a main board in the electronic equipment where the battery is located, the temperature T _ charge 1 of the charging circuit 1 and the temperature T _ charge 2 of the charging circuit 2 are collected.
303. Calculating the difference between the temperature T _ charge 1 of the charging circuit 1 and the temperature T _ board of the main board to obtain a first difference value delta T _1, and calculating the difference between the temperature T _ charge 2 of the charging circuit 2 and the temperature T _ board of the main board to obtain a second difference value delta T _ 2.
304. The magnitude of the first difference Δ T _1 is compared with the magnitude of the second difference Δ T _ 2. If the first difference Δ T _1 is greater than the second difference Δ T _2, step 305 is performed. On the contrary, if the first difference Δ T _1 is less than or equal to the second difference Δ T _2, step 301 is executed to keep the present current of the charging circuit 1 and the present current of the charging circuit 2 unchanged.
305. And judging whether the second difference value Δ T _2 is smaller than a second threshold Limit High _2, if so, executing step 306, and if not, executing step 301, namely keeping the current of the charging circuit 1 unchanged and keeping the current of the charging circuit 2 unchanged.
306. The current T _ charge 1 of the charging circuit 1 was adjusted to 1.2A, and the current T _ charge 2 of the charging circuit 2 was adjusted to 2.4A.
307. And judging whether the charging is finished or not, if so, finishing the current process, and if not, executing the step 302.
The embodiment of the invention further provides an embodiment of a device for realizing the steps and the method in the embodiment of the method.
Fig. 4 is a functional block diagram of a charge control device according to an embodiment of the present invention. As shown, the apparatus comprises:
the acquisition unit 401 is configured to acquire a temperature of a first charging circuit and a temperature of a second charging circuit in a process of simultaneously charging a battery by using the first charging circuit and the second charging circuit, where a current of the first charging circuit is greater than a current of the second charging circuit;
a detection unit 402 for detecting whether the temperature of the first charging circuit and the temperature of the second charging circuit satisfy a specified switching condition;
a control unit 403, configured to decrease the current of the first charging circuit and increase the current of the second charging circuit when the temperature of the first charging circuit and the temperature of the second charging circuit satisfy a specified switching condition.
In a possible embodiment, the collecting unit 401 is further configured to collect a temperature of a motherboard in the electronic device where the battery is located;
the detecting unit 402 is specifically configured to: and detecting whether the temperature of the mainboard, the temperature of the first charging circuit and the temperature of the second charging circuit meet specified switching conditions.
In a possible embodiment, the detecting unit 402 is configured to, when detecting whether the temperature of the motherboard, the temperature of the first charging circuit, and the temperature of the second charging circuit satisfy a specified switching condition, specifically:
calculating a difference value between the temperature of the first charging circuit and the temperature of the mainboard to serve as a first difference value;
calculating a difference value between the temperature of the second charging circuit and the temperature of the mainboard to serve as a second difference value;
comparing the first difference value with a preset first threshold value to obtain a first comparison result;
comparing the second difference value with a preset second threshold value to obtain a second comparison result;
and judging whether the temperature of the mainboard, the temperature of the first charging circuit and the temperature of the second charging circuit meet specified switching conditions or not according to the first difference, the second difference, the first comparison result and the second comparison result.
In a possible implementation, the detecting unit 402 is configured to, when determining whether the temperature of the motherboard, the temperature of the first charging circuit, and the temperature of the second charging circuit satisfy a specified switching condition according to the first difference, the second difference, the first comparison result, and the second comparison result, specifically:
and if the first difference is larger than the second difference and the second comparison result is that the second difference is smaller than the second threshold, judging that the temperature of the mainboard, the temperature of the first charging circuit and the temperature of the second charging circuit meet specified switching conditions.
In a possible embodiment, the detection unit 402 is further configured to:
and if the first difference is smaller than or equal to the second difference, or if the first difference is larger than the second difference and the second comparison result is that the second difference is larger than or equal to the second threshold, judging that the temperature of the mainboard, the temperature of the first charging circuit and the temperature of the second charging circuit do not meet specified switching conditions.
In a possible embodiment, the control unit 403 is further configured to: when the temperature of the first charging circuit and the temperature of the second charging circuit do not meet a specified switching condition, keeping the current of the first charging circuit and the current of the second charging circuit unchanged.
Since each unit in the embodiment can execute the method shown in fig. 1 to 3, reference may be made to the related description of fig. 1 to 3 for a part not described in detail in this embodiment.
The embodiment of the invention also provides electronic equipment comprising the charging control device.
The technical scheme of the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, in the process of simultaneously charging a battery by using a first charging circuit and a second charging circuit, the temperature of the first charging circuit and the temperature of the second charging circuit are collected, and the current of the first charging circuit is greater than that of the second charging circuit; thereby detecting whether the temperature of the first charging circuit and the temperature of the second charging circuit satisfy a specified switching condition; and when the temperature of the first charging circuit and the temperature of the second charging circuit meet a specified switching condition, reducing the current of the first charging circuit and increasing the current of the second charging circuit. According to the technical scheme provided by the embodiment of the invention, in the parallel charging process, the current of the charging circuit can be dynamically adjusted according to the temperatures of the two charging circuits, if the temperature of the charging circuit is higher, the current of the charging circuit can be reduced, and the current of the other charging circuit is increased, so that the problems that the device is damaged due to overhigh temperature, even the whole electronic equipment is burnt out, the life safety of a consumer is seriously threatened and the like caused by the continuous rise of the temperature of the charging circuit can be avoided. In addition, the current of the charging circuit is reduced, and simultaneously, the current of the other charging circuit is increased, so that the problem of reduction of charging efficiency caused by simple reduction of the current is avoided, the charging efficiency is considered, and the problem of overhigh temperature of the charging circuit is improved to a certain extent.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a Processor (Processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.