CN108336791B - Charging control method and electronic device - Google Patents

Charging control method and electronic device Download PDF

Info

Publication number
CN108336791B
CN108336791B CN201810193512.2A CN201810193512A CN108336791B CN 108336791 B CN108336791 B CN 108336791B CN 201810193512 A CN201810193512 A CN 201810193512A CN 108336791 B CN108336791 B CN 108336791B
Authority
CN
China
Prior art keywords
adapter
power switch
value
current
current output
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.)
Active
Application number
CN201810193512.2A
Other languages
Chinese (zh)
Other versions
CN108336791A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201810193512.2A priority Critical patent/CN108336791B/en
Publication of CN108336791A publication Critical patent/CN108336791A/en
Application granted granted Critical
Publication of CN108336791B publication Critical patent/CN108336791B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • H02J7/0088
    • 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
    • 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
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B40/00Technologies aiming at improving the efficiency of home appliances, e.g. induction cooking or efficient technologies for refrigerators, freezers or dish washers

Abstract

The application discloses a charging control method and electronic equipment, wherein a charging module for charging a battery in the electronic equipment is connected with two power switches, and each power switch is connected with an adapter interface, and the method comprises the following steps: when the EC detects that a first power switch in the two power switches sends an over-temperature protection signal, determining a limiting current output value corresponding to a first adapter inserted into an adapter interface of the first power switch; EC sets the current output control value of the first power switch as the limit current output value; and on the premise that the EC does not detect the over-temperature protection signal sent by the first power switch, gradually adjusting and increasing the current output control value of the first power switch from the limited current output value until the current output control value is adjusted to the target current value. The method can reduce the time consumed for charging the battery.

Description

Charging control method and electronic device
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a charging control method and an electronic device.
Background
With the increase of functions that can be realized by the electronic device, the standby time of the electronic device is gradually shortened, so that the battery power in the electronic device is easy to be insufficient after the electronic device is used for a period of time.
In the case where the amount of charge of the battery in the electronic device is insufficient, the battery of the electronic device can be charged by inserting the adapter. However, it takes too long time to charge the battery of the electronic device through the adapter, and therefore, how to improve the charging efficiency of charging the battery of the electronic device and reduce the charging time is a technical problem that needs to be solved urgently by those skilled in the art.
Disclosure of Invention
The invention aims to provide a charging control method and electronic equipment, so as to reduce the time consumed for charging a battery and improve the charging reliability.
In order to achieve the purpose, the invention provides the following technical scheme:
a charging control method is applied to electronic equipment, wherein a charging module for charging a battery in the electronic equipment is connected with two power switches, and each power switch is connected with an adapter interface, and the method comprises the following steps:
the embedded controller EC determines that the adapter interfaces of the two power switches are inserted into the adapters;
when the EC detects that a first power switch in the two power switches sends an over-temperature protection signal, the EC determines a limiting current output value corresponding to a first adapter into which an adapter interface of the first power switch is inserted, wherein the limiting current output value is a maximum current value suitable for being output by the first adapter when a maximum voltage difference exists between the first adapter and a second adapter; the second adapter is an adapter into which an adapter interface of a second power switch except the first power switch is inserted;
the EC setting a current output control value of the first power switch to the limit current output value so that an output current of the first adapter is not greater than the limit current output value;
and on the premise that the EC does not detect the over-temperature protection signal sent by the first power switch, the EC gradually adjusts and increases the current output control value of the first power switch from the limited current output value until the current output control value of the first power switch is adjusted to a target current value, wherein the target current value is a current value which cannot trigger the first power switch to send the over-temperature protection signal and enables the current output value of the first adapter to be maximum.
Preferably, the method further comprises:
the EC respectively acquires the rated voltage of each adapter;
the EC determining a limit current output value corresponding to a first adapter into which an adapter interface of the first power switch is inserted, includes:
the EC determines the maximum voltage difference which can be achieved between the first adapter and the second adapter according to the rated voltage;
and the EC determines the limit current value suitable for the first adapter according to the maximum voltage difference and the rated power of the first power switch.
Preferably, the method further comprises:
when detecting that the two adapter interfaces are inserted into the adapters, the embedded controller EC determines the maximum output current of the adapter inserted into each adapter interface respectively;
and the EC sets a current limit value of the charging module according to the maximum output current of the two adapters inserted by the two adapter interfaces so as to limit the total current drawn by the charging module from the two power switches.
Preferably, the EC further includes, while setting the current output control value of the first power switch to the limit current output value:
the EC adjusts the current limit value of the charging module according to the limit current output value of the first adapter and the maximum output current of the second adapter;
while the EC gradually adjusts and increases the current output control value of the first power switch from the limit current output value, the method further includes:
and the EC increases the current limit value of the charging module according to the increase degree of the current output control value of the first power switch.
Preferably, on the premise that the EC does not detect the over-temperature protection signal sent by the first power switch, the EC gradually adjusts and increases the current output control value of the first power switch from the current limit output value until the current output control value of the first power switch is adjusted to the target current value, and the method includes:
under the condition that the current output control value of the first power switch is set as the limiting current output value, if the EC does not detect an over-temperature protection signal sent by the first power switch, the current output control value of the first power switch is increased by a preset value;
after the EC increases the current output control value of the first power switch, if the EC does not receive an over-temperature protection signal sent by the first power switch, the EC increases the current output control value of the first power switch by a preset value until the EC receives the over-temperature protection signal of the first power switch;
after the EC increases the current output control value of the first power switch, the EC receives an over-temperature protection signal sent by the first power switch, and then the EC sets a target current value obtained by reducing the current output control value of the first power switch by a preset value as the power output control value of the first power switch.
Preferably, the method further comprises the following steps:
under the condition that the current output control value of the first power switch is set to the limiting current output value, if the EC detects an over-temperature protection signal sent by the first power switch, the EC sets the current output control value of the first power switch to be zero ampere.
In another aspect, the present application further provides an electronic device, including:
a charging module for charging the battery;
the two power switches are connected with the charging module, and each power switch is connected with an adapter interface;
and an embedded controller EC connected with the power switch and the charging module;
wherein the EC is configured to determine that adapter interfaces of the two power switches are both plugged into adapters; when detecting that a first power switch in the two power switches sends an over-temperature protection signal, determining a limited current output value corresponding to a first adapter inserted into an adapter interface of the first power switch, wherein the limited current output value is a maximum current value suitable for being output by the first adapter when a maximum voltage difference exists between the first adapter and a second adapter; the second adapter is an adapter into which an adapter interface of a second power switch except the first power switch is inserted; setting a current output control value of the first power switch to the limit current output value so that the output current of the first adapter is not greater than the limit current output value; and on the premise that the over-temperature protection signal sent by the first power switch is not detected, gradually adjusting and increasing the current output control value of the first power switch from the current limiting output value until the current output control value of the first power switch is adjusted to a target current value, wherein the target current value is a current value which cannot trigger the first power switch to send the over-temperature protection signal and enables the current output value of the first adapter to be maximum.
Preferably, the EC is further configured to obtain a rated voltage of each adapter;
when determining the limited current output value corresponding to the first adapter into which the adapter interface of the first power switch is inserted, the EC is specifically configured to determine, according to the rated voltage, a maximum voltage difference that can be achieved between the first adapter and the second adapter; and determining the limit current value suitable for the first adapter according to the maximum voltage difference and the rated power of the first power switch.
Preferably, the EC is further configured to determine, when it is detected that both adapter interfaces are plugged into an adapter, a maximum output current of the adapter plugged into each adapter interface respectively; and setting a current limit value of the charging module according to the maximum output current of the two adapters inserted by the two adapter interfaces so as to limit the total current drawn by the charging module from the two power switches.
Preferably, the EC is further configured to, while setting the current output control value of the first power switch to the limited current output value, adjust the current limit value of the charging module according to the limited current output value of the first adapter and the maximum output current of the second adapter; and increasing the current limit value of the charging module according to the increase degree of the current output control value of the first power switch while the EC gradually adjusts and increases the current output control value of the first power switch from the limit current output value.
According to the scheme, the adapters can be inserted into the two power switches connected with the charging module of the electronic equipment, so that the two adapters can be controlled by the EC to simultaneously provide electric energy for the charging module, the battery can be simultaneously supplied with power, and the improvement of the charging efficiency of the battery is facilitated. Meanwhile, in the process of charging two adapters on two power switches, if the EC detects that a certain power switch sends an over-temperature protection signal, the EC can determine the limiting current output value suitable for the adapter on the power switch under the premise of not burning the power switch according to the maximum voltage difference of the two adapters, and gradually increase the output current control value on the power switch from the limiting current value until the condition of not burning the power switch is met and the output current control value is maximum, so that the possibility of burning the power switch is reduced, and the charging efficiency is greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a charging control method according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram illustrating the charging module drawing current from two adapters when no voltage difference exists in the embodiment of the present application;
fig. 4 is a schematic flowchart of another charging control method according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of another electronic device according to an embodiment of the present disclosure.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be practiced otherwise than as specifically illustrated.
Detailed Description
The charging control method is suitable for the electronic equipment with two adapter interfaces, so that the electronic equipment can be charged by the double adapters, and the reliability of the electronic equipment charged by the double adapters can be improved.
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 obtained by a person skilled in the art without inventive effort based on the embodiments of the present invention, are within the scope of the present invention.
In order to facilitate understanding of the charging control method according to the embodiment of the present application, the electronic device according to the embodiment of the present application is described first. For example, referring to fig. 1, a schematic diagram of a composition structure of an electronic device according to the present application is shown, and the electronic device of the present embodiment includes: a rechargeable battery 101, a charging module 102 for charging the battery 101, and an Embedded Controller (EC) 103 for controlling the charging of the battery;
the charging module 102 is connected to two power switches 104, and each power switch is connected to an adapter interface. For convenience of distinction, one of the two power switches is referred to as a first power switch, and the other is referred to as a second power switch.
As shown in fig. 1, the embedded controller 103 is connected to the power switch 104 and the charging module 102. Wherein the adapter interface of the power switch 104 can be plugged into the adapter 105.
The embedded controller 103 may perform the following operations performed by the embedded controller EC side in the embodiments of fig. 2 and fig. 4.
With the above generality, a charging control method of the present application is introduced, and referring to fig. 2, a flowchart of an embodiment of the charging control method of the present application is shown, where the method of the present embodiment may be applied to the electronic device shown in fig. 1, and the method of the present embodiment may include:
s201, the embedded controller EC determines that adapter interfaces of two power switches of the electronic equipment are both inserted into the adapters.
It will be appreciated that the EC may detect whether an adapter is plugged into the adapter interface of the power switch, and if the EC determines that an adapter is plugged into both adapter interfaces of the power switch, it may be necessary to monitor the charging process of the batteries by the two adapters, so that the two adapters can charge the batteries equally.
It can be understood that, in the embodiment of the present application, a case where both adapter interfaces of two power switches are plugged into an adapter is described, but it can be understood that, in a case where an electronic device has two power switches, only one adapter interface of one power switch may be plugged into the adapter, which is similar to a charging process of an existing electronic device having one adapter interface and is not described herein again.
S202, when the EC detects that a first power switch of the two power switches sends an over-temperature protection signal, determining a limiting current output value corresponding to a first adapter into which an adapter interface of the first power switch is inserted.
In the embodiment of the present application, the power switch that sends out the over-temperature protection signal is referred to as a first power switch, and the other of the two power switches is referred to as a second power switch. Accordingly, in the embodiments of the present application, an adapter into which an adapter interface of the first power switch is inserted is referred to as a first adapter, and an adapter into which an adapter interface of the second power switch is inserted is referred to as a second adapter.
It can be understood that, due to the difference between different adapter units, the output voltage output by the adapter unit has a certain deviation under the condition of a certain rated voltage, for example, the output voltage of one adapter unit has a deviation of-7% to 7% from the rated voltage. It can be seen that there may be a large voltage difference between the two adapters connected to the two power switches, and that the current drawn from the two adapters cannot be equalized. For example, assuming that the rated voltage of both adapters is 20V and the maximum output power is 70W, wherein the rated current of the first adapter is 3.5A, and the maximum current drawn is 3A, i.e. the limiting current is 3A; and the rated current of the second adapter is 2A, and the rated power is 40W, so that under the condition that there is no deviation in output voltage, the load (such as a charging module of a battery) can equally draw current from the two adapters, and finally the maximum output power of each adapter is reached. For example, referring to fig. 3, in the case where the voltages of the two adapters are constant and the same, the final load will draw current from the two adapters in a balanced manner according to the maximum output power of the two adapters.
However, assuming a deviation of-7% to 7% in the output voltage of the adapters, the output voltage of the first adapter can be up to 20V 1.07V to 21.4V, and the output voltage of the second adapter can be up to 20V 0.93V to 18.6V, at the minimum, the maximum voltage difference that can be achieved between the two adapters can be up to 2.8V, i.e., 21.4V-18.6V to 2.8V. In the presence of a voltage difference, the high voltage adapter will be preferentially pumped out of the load. In particular, in the case of the maximum voltage difference, if the charging module continues to increase the current drawn by the first adapter after the first adapter reaches the current limit of the first adapter, i.e., 3A, during the charging process, the voltage output by the first adapter decreases from the present voltage to 18.6V, so that the charging module continues to draw current from the second adapter. However, this causes the first power switch connected to the first adapter to generate a large amount of energy P (21.4V-18.6V) × 3A ═ 8.4W due to the voltage drop, so that the heat generation is too high, and the first power switch may be burned out.
This application is at the in-process that adopts two adapters to charge for electronic equipment's battery, and in order to reduce the condition that leads to certain switch load too big because the voltage difference of the output voltage of two adapters is too big, burns out even, is provided with the excess temperature protection chip in first switch, and like this, too high at first switch's power, the heat production is too high, and this first switch can send excess temperature protection signal to EC. And the EC determines, at the present moment, a limit current output value corresponding to the first adapter into which the adapter interface of the first power switch is inserted, in order to avoid the first power switch from being burned.
The limiting current output value is a maximum current value suitable for being output by the first adapter when the maximum voltage difference exists between the first adapter and the second adapter.
In one possible implementation, the EC obtains the rated voltage (also called the rated output voltage) of each adapter separately. Accordingly, the EC may determine the maximum voltage difference that can be achieved between the first adapter and the second adapter based on the respective voltage ratings of the first adapter and the second adapter. For example, the EC is preset with the deviation margin of the adapters, e.g., the aforementioned deviation of-7% to 7%, so that the maximum voltage difference between the two adapters can be calculated based on the rated voltages of the two adapters and the preset deviation margin of the adapters in the manner described in the previous example. Then, the EC can determine the limiting current value suitable for the first adapter according to the maximum voltage difference and the rated power of the first power switch. For example, the limiting current is equal to the rated power of the first power switch at the maximum voltage difference.
The EC may obtain the rated voltage of the adapter when the EC detects that the adapter interface of the power switch is inserted into the adapter. Of course, when the EC obtains the rated voltage of the adapter, parameters such as the maximum output power of the adapter can also be obtained.
In a possible implementation manner, in order to improve the reliability of obtaining the adapter parameters, a parameter obtaining module is further connected between the EC and the power switch, and the parameter obtaining module may interact with the power switch to obtain the relevant parameters of the adapter into which the power switch is inserted. For example, the EC may send a fetch instruction to the parameter fetching module via a bus (e.g., a bidirectional two-wire synchronous serial bus) to fetch the relevant parameters of the adapter via the parameter fetching module.
S203, the EC sets the current output control value of the first power switch to the limited current output value, so that the output current of the first adapter is not greater than the limited current output value.
In order to avoid the first power switch from being burnt out, the EC sets the determined limit current output value suitable for the first adapter to be output as the current output control value of the first power switch, so that the output current of the first adapter for charging the battery is not greater than the limit current output value.
It will be appreciated that since the charging module is used to control the adapter to charge the battery, i.e. to control the value of the current drawn from the adapter, setting the current output control value for the first power switch may also set the current limit value in the charging module to limit the total current drawn by the charging module from the two power switches in dependence on the limited current output value of the first adapter.
And S204, on the premise that the EC does not detect the over-temperature protection signal sent by the first power switch, the EC gradually adjusts and increases the current output control value of the first power switch from the limited current output value until the current output control value of the first power switch is adjusted to the target current value.
The target current value is a current value which cannot trigger the first power switch to send an over-temperature protection signal and enables the current output value of the first adapter to be maximum.
It is understood that the limiting current output value determined in step S203 to be suitable for the first adapter is the maximum current value suitable for the first adapter when the maximum voltage difference exists between the first adapter and the second adapter, but it is understood that in practical applications, the maximum voltage difference may not be reached by the first adapter and the second adapter, and therefore, in order to improve the charging efficiency without affecting the first power switch, the current value extracted from the first adapter may be appropriately increased, that is, the limiting current output value of the first adapter and the current output control value of the first power switch are appropriately increased.
Accordingly, the current output control value of the first power switch may be gradually increased from the limit current output value until the target current value is adjusted. For example, an adjusted step value may be preset, e.g., 1A per adjustment. It can be understood that after adjusting the current output control value of the first power switch, the output current of the first adapter also increases correspondingly, in which case, the energy generated by the first power switch also increases correspondingly, and therefore, it is necessary to monitor whether the first power switch sends out an over-temperature protection signal; if the first power switch outputs an over-temperature protection signal, the current output control value of the first power switch which is set at present is too high, and the current output control value still needs to be set as a value before the current adjustment; on the contrary, if the first power switch does not output the over-temperature protection signal, it indicates that the current output control value of the first power switch is still a safe value, and the adjustment can be continued until the power output value reaches the safe upper limit, that is, the target current value is reached.
It will be appreciated that, similarly to the previously arranged charging module, in order to limit the total current drawn by the charging module from the first adapter and the second adapter, the EC also needs to increase the current limit value of the charging module in accordance with the degree of increase in the current output control value of the first power switch, while adjusting the limited output current value of the first adapter or adjusting the current output control value of the first power switch. Accordingly, if the current output control value of the first power switch is decreased, the current limit value of the charging module also needs to be decreased accordingly.
Therefore, in the charging control method of the embodiment of the application, the adapters can be inserted into the two power switches connected with the charging module of the electronic device, so that the two adapters can be controlled by the EC to simultaneously provide electric energy for the charging module, thereby realizing simultaneous power supply for the battery and being beneficial to improving the charging efficiency of the battery. Meanwhile, in the process of charging two adapters on two power switches, if the EC detects that a certain power switch sends an over-temperature protection signal, the EC can determine the limiting current output value suitable for the adapter on the power switch under the premise of not burning the power switch according to the maximum voltage difference of the two adapters, and gradually increase the output current control value on the power switch from the limiting current value until the condition of not burning the power switch is met and the output current control value is maximum, so that the possibility of burning the power switch is reduced, and the charging efficiency is greatly improved.
Referring to fig. 4, which shows a flowchart of another embodiment of the charging control method according to the present application, the method of the present embodiment may be applied to any one of the aforementioned electronic devices, and the method according to the embodiment of the present application may include:
s401, the embedded controller EC detects whether the adapter interfaces of the two power switches are inserted into the adapters through the first signal lines of the two power switches of the electronic device.
S402, when the EC determines that the adapter interfaces of the two power switches are inserted into the adapters, the parameters of the two adapters connected with the two power switches are obtained through the parameter obtaining module connected with the EC.
One signal line is provided between the EC and each power switch, for example, the signal line may be a bus, and for convenience of distinction, the signal line between the EC and the power switch is referred to as a first signal line. The EC can obtain the condition of the adapter interface of the power switch inserted into the adapter from the power switch through the first signal line. For example, after the adapter interface of the power switch is plugged into the adapter, the power switch may feed back an indication signal to the EC through the first signal line to indicate the plugging of the adapter. As can be seen from fig. 5, a first signal line 501 is connected between the EC and the power switch.
The parameter acquisition module is respectively connected with each power switch to acquire the relevant parameters of the adapter from the power switches. For example, referring to fig. 5, the EC and the parameter obtaining module are connected by a bus, and the parameter obtaining unit is connected to each power switch, respectively.
Wherein the parameters of the adapter at least comprise: the voltage rating of the adapter and the maximum output power, wherein the maximum output power may also be considered the power rating.
S403, EC determines the maximum output current of the adapter plugged into each adapter interface, respectively.
For example, the maximum output current of the adapter may be the ratio between the maximum output power of the adapter and the rated voltage.
S404, the EC sets the current limit value of the charging module according to the maximum output currents of the two adapters inserted by the two adapter interfaces, so as to limit the total current drawn by the charging module from the two power switches.
For example, in the step S404, the current limit value of the charging module is the sum of the maximum output currents of the two adapters, and the total current drawn by the charging module from the two adapters does not exceed the maximum current that can be provided by the two adapters.
S405, when the EC detects that the first power switch of the two power switches sends out an over-temperature protection signal, the EC determines the maximum voltage difference which can be achieved between the first adapter and the second adapter.
S406, the EC determines a limiting current value suitable for the first adapter according to the maximum voltage difference and the rated power of the first power switch.
The limiting current output value is a maximum current value suitable for being output by the first adapter when the maximum voltage difference exists between the first adapter and the second adapter.
The above steps S405 and S406 can refer to the related description of the previous embodiment, and are not described herein again.
S407, the EC determines the current output control value of the first power switch as the limited current output value, and adjusts the current limit value of the charging module according to the limited current output value of the first adapter and the maximum output current of the second adapter, so that the output current of the first adapter is not greater than the limited current output value, and the total output current of the first adapter and the second adapter is not greater than the current limit value of the charging module.
If, in the step S404, the currents (equal to the current output control values of the first power switch and the second power switch) output at the maximum of the first adapter and the second adapter are the respective maximum output currents determined in the step S403, at this time, the current limit value of the charging module is the sum of the maximum output currents of the two adapters, and assuming that the maximum output currents of the first adapter and the second adapter are 3A and 1.5A, respectively, the current limit value of the charging module in the step S404 is 4.5; and when the maximum output current of the first adapter is the limited current output value, the current limit value of the charging module is adjusted to be +1.5A of the limited current output value corresponding to the first adapter.
S408, the EC detects whether the first power switch sends an over-temperature protection signal, and if not, the step S409 is executed; if so, step S410 is performed.
In the embodiment of the present application, an example is described in which after the current output control value of the first power switch is set to the limit current output value of the first adapter, whether the first power switch issues the over-temperature protection signal is searched. However, it is understood that, considering that the maximum voltage difference between the two adapters is small, the step S408 may not be executed after the current output value of the first power switch is set to the limit current output value suitable for the first adapter, but the step S408 may be executed after the current output value of the first power switch is increased from the limit current output value by a preset value.
S409, the EC increases the current output control value of the first power switch by a preset value, increases the current limit value in the charging module by the preset value, and returns to the step S408.
And S410, the EC reduces the current output control value of the first power switch by the preset value to obtain a target current value, sets the target current value as the power output control value of the first power switch, reduces the current limit value in the charging module by the preset value, and finishes the adjustment.
It can be understood that, after the current output control value of the first power switch is adjusted, if the first power switch outputs an over-temperature protection signal, it indicates that the current output value of the first power switch is too high, and in order to reduce the risk of the first power switch being burned, the specific value of the current output value of the first power switch needs to be adjusted downward.
It is understood that after the current output control value of the first power switch is set to the limiting current output value in step S407, if the first power switch outputs the over-temperature protection signal, it indicates that the voltage difference is too large to ensure the safety of the first power switch, in which case the EC may also set the current output control value of the first power switch to zero ampere, so as to charge only through the second adapter.
It is understood that, in order to support the execution of the charging control method according to the embodiment of the present application, the present application also provides an electronic device as shown in fig. 1.
Further, in order to ensure more reliable signal transmission between the EC and the power switch and between the EC and the charging module, signal lines for transmitting different signals may be further disposed in the electronic device of the present application, for example, refer to fig. 5, which shows a schematic diagram of another constituent structure of the electronic device of the present application.
In the embodiment of fig. 5, the electronic device further includes a parameter obtaining module 504 in addition to the EC501, the two power switches 502, and the charging module 503.
The EC501, the two power switches 502, and the charging module 503 may refer to the related descriptions of the corresponding components or modules, and are not described herein again.
In this embodiment, the EC501 is connected to the parameter obtaining module 504 through a bus, and a transmission line for obtaining parameters is connected between the parameter obtaining module 504 and each power switch. Meanwhile, a first signal line, a second signal line, and a third signal line are connected between the EC501 and each power switch 502.
After the EC issues a parameter obtaining instruction to the parameter obtaining module 504, the parameter obtaining module sends the parameter obtaining instruction to the power switch; and the power switch may transmit the parameters associated with the adapter to which the power switch is connected to the EC via the first signal line 504.
Wherein, the second signal line is used for outputting an over-temperature protection signal.
The third signal line is used for the EC to send a current output limit value to the power switch.
Meanwhile, in order for the EC to be able to set the current limit value of the charging module, a bus for transmitting the current limit value is also provided between the EC and the charging module.
Of course, fig. 5 is only an example of a line connection relationship among the EC, the parameter obtaining module, the power switch, and the charging module, and in practical applications, as long as data communication among the modules can be ensured, the specific line connection is not limited in the present application.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A charging control method is applied to electronic equipment, wherein a charging module used for charging a battery in the electronic equipment is connected with two power switches, and each power switch is connected with an adapter interface, and the method comprises the following steps:
the embedded controller EC determines that the adapter interfaces of the two power switches are inserted into the adapters;
when the EC detects that a first power switch in the two power switches sends an over-temperature protection signal, the EC determines a limiting current output value corresponding to a first adapter into which an adapter interface of the first power switch is inserted, wherein the limiting current output value is a maximum current value suitable for being output by the first adapter when a maximum voltage difference exists between the first adapter and a second adapter; the second adapter is an adapter into which an adapter interface of a second power switch except the first power switch is inserted;
the EC setting a current output control value of the first power switch to the limit current output value so that an output current of the first adapter is not greater than the limit current output value;
and on the premise that the EC does not detect the over-temperature protection signal sent by the first power switch, the EC gradually adjusts and increases the current output control value of the first power switch from the limited current output value until the current output control value of the first power switch is adjusted to a target current value, wherein the target current value is a current value which cannot trigger the first power switch to send the over-temperature protection signal and enables the current output value of the first adapter to be maximum.
2. The charge control method according to claim 1, characterized by further comprising:
the EC respectively acquires the rated voltage of each adapter;
the EC determining a limit current output value corresponding to a first adapter into which an adapter interface of the first power switch is inserted, includes:
the EC determines the maximum voltage difference which can be achieved between the first adapter and the second adapter according to the rated voltage;
and the EC determines the limit current value suitable for the first adapter according to the maximum voltage difference and the rated power of the first power switch.
3. The charge control method according to claim 1, characterized by further comprising:
when detecting that two adapter interfaces are inserted into the adapter, the embedded controller EC determines the maximum output current of the adapter inserted into each adapter interface respectively;
and the EC sets a current limit value of the charging module according to the maximum output current of the two adapters inserted by the two adapter interfaces so as to limit the total current drawn by the charging module from the two power switches.
4. The charge control method according to claim 3, further comprising, while the EC sets the current output control value of the first power switch to the limit current output value:
the EC adjusts the current limit value of the charging module according to the limit current output value of the first adapter and the maximum output current of the second adapter;
while the EC gradually adjusts and increases the current output control value of the first power switch from the limit current output value, the method further includes:
and the EC increases the current limit value of the charging module according to the increase degree of the current output control value of the first power switch.
5. The charge control method according to claim 1, wherein the gradually adjusting and increasing the current output control value of the first power switch from the limit current output value by the EC until the current output control value of the first power switch is adjusted to a target current value on the premise that the EC does not detect the over-temperature protection signal sent by the first power switch comprises:
under the condition that the current output control value of the first power switch is set as the limiting current output value, if the EC does not detect an over-temperature protection signal sent by the first power switch, the current output control value of the first power switch is increased by a preset value;
after the EC increases the current output control value of the first power switch, if the EC does not receive an over-temperature protection signal sent by the first power switch, the EC increases the current output control value of the first power switch by a preset value until the EC receives the over-temperature protection signal of the first power switch;
after the EC increases the current output control value of the first power switch, the EC receives an over-temperature protection signal sent by the first power switch, and then the EC sets a target current value obtained by reducing the current output control value of the first power switch by a preset value as the power output control value of the first power switch.
6. The charge control method according to claim 5, characterized by further comprising:
under the condition that the current output control value of the first power switch is set to the limiting current output value, if the EC detects an over-temperature protection signal sent by the first power switch, the EC sets the current output control value of the first power switch to be zero ampere.
7. An electronic device, comprising:
a charging module for charging the battery;
the two power switches are connected with the charging module, and each power switch is connected with an adapter interface;
and an embedded controller EC connected with the power switch and the charging module;
wherein the EC is configured to determine that adapter interfaces of the two power switches are both plugged into adapters; when detecting that a first power switch in the two power switches sends an over-temperature protection signal, determining a limited current output value corresponding to a first adapter inserted into an adapter interface of the first power switch, wherein the limited current output value is a maximum current value suitable for being output by the first adapter when a maximum voltage difference exists between the first adapter and a second adapter; the second adapter is an adapter into which an adapter interface of a second power switch except the first power switch is inserted; setting a current output control value of the first power switch to the limit current output value so that the output current of the first adapter is not greater than the limit current output value; and on the premise that the over-temperature protection signal sent by the first power switch is not detected, gradually adjusting and increasing the current output control value of the first power switch from the current limiting output value until the current output control value of the first power switch is adjusted to a target current value, wherein the target current value is a current value which cannot trigger the first power switch to send the over-temperature protection signal and enables the current output value of the first adapter to be maximum.
8. The electronic device of claim 7, wherein the EC is further configured to obtain a voltage rating for each adapter separately;
when determining the limited current output value corresponding to the first adapter into which the adapter interface of the first power switch is inserted, the EC is specifically configured to determine, according to the rated voltage, a maximum voltage difference that can be achieved between the first adapter and the second adapter; and determining the limit current value suitable for the first adapter according to the maximum voltage difference and the rated power of the first power switch.
9. The electronic device of claim 7, wherein the EC is further configured to, when it is detected that both adapter interfaces are plugged into an adapter, determine a maximum output current of the adapter plugged into each adapter interface, respectively; and setting a current limit value of the charging module according to the maximum output current of the two adapters inserted by the two adapter interfaces so as to limit the total current drawn by the charging module from the two power switches.
10. The electronic device of claim 9, wherein the EC is further configured to, while setting the current output control value of the first power switch to the limited current output value, adjust a current limit value of the charging module according to the limited current output value of the first adapter and the maximum output current of the second adapter; and increasing the current limit value of the charging module according to the increase degree of the current output control value of the first power switch while the EC gradually adjusts and increases the current output control value of the first power switch from the limit current output value.
CN201810193512.2A 2018-03-09 2018-03-09 Charging control method and electronic device Active CN108336791B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810193512.2A CN108336791B (en) 2018-03-09 2018-03-09 Charging control method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810193512.2A CN108336791B (en) 2018-03-09 2018-03-09 Charging control method and electronic device

Publications (2)

Publication Number Publication Date
CN108336791A CN108336791A (en) 2018-07-27
CN108336791B true CN108336791B (en) 2020-12-18

Family

ID=62930512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810193512.2A Active CN108336791B (en) 2018-03-09 2018-03-09 Charging control method and electronic device

Country Status (1)

Country Link
CN (1) CN108336791B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114696403B (en) * 2020-12-31 2024-02-02 Oppo广东移动通信有限公司 Power adapter

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104362406A (en) * 2014-10-24 2015-02-18 深圳市中兴移动通信有限公司 Charge control method of mobile terminal and mobile terminal
KR20160068444A (en) * 2014-12-05 2016-06-15 주식회사도담엠에스 Switched Mode Power Supply
CN107026486A (en) * 2016-01-29 2017-08-08 联发科技股份有限公司 Properties Control method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104362406A (en) * 2014-10-24 2015-02-18 深圳市中兴移动通信有限公司 Charge control method of mobile terminal and mobile terminal
KR20160068444A (en) * 2014-12-05 2016-06-15 주식회사도담엠에스 Switched Mode Power Supply
CN107026486A (en) * 2016-01-29 2017-08-08 联发科技股份有限公司 Properties Control method and device

Also Published As

Publication number Publication date
CN108336791A (en) 2018-07-27

Similar Documents

Publication Publication Date Title
CN107749648B (en) Mobile terminal
US10236701B2 (en) System, mobile device, and charging device
EP3101751B1 (en) Quick-charging method and system
EP3101761B1 (en) Quick-charging control method and system
US10554060B2 (en) Systems and methods for charging via USB port
EP3534487B1 (en) Charging method and system
KR101719262B1 (en) Charger, charging terminal, charging system, charging control method, program and storage medium
CN104967200A (en) Quick-charging method and mobile terminal
CN105140985A (en) Mobile terminal, direct-charge power adapter and charging method
CN104393628A (en) USB charger, mobile terminal and charging control method
CN105553050B (en) A kind of adaptive charging method and system
EP3001530B1 (en) Photovoltaic system and method for controlling the same
CN104253456A (en) Charging apparatus, power supply method, terminal device and charging method
CN105098932B (en) Charging method, charger and charging module
CN108599281A (en) a kind of mobile terminal and charging method
CN110739752A (en) charging circuit and method for automatically adjusting voltage input according to battery voltage
CN104253461A (en) Charging equipment and power supply method thereof
CN104269585A (en) Charging method and mobile terminal
CN108336791B (en) Charging control method and electronic device
CN105449760A (en) Charging method and charging adaptor for mobile terminal
CN114552737A (en) Charging method based on Type-C interface, charging equipment and equipment to be charged
CN115706422A (en) Charging system, control method and device of charging system and electronic equipment
CN110518663A (en) A kind of charge control method and system
CN216848512U (en) Power supply communication circuit of cooking utensil and cooking utensil
CN106786992B (en) Charging control system and operation method thereof

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