CN116231774A - Charging method, electronic device, and computer-readable storage medium - Google Patents

Charging method, electronic device, and computer-readable storage medium Download PDF

Info

Publication number
CN116231774A
CN116231774A CN202210294071.1A CN202210294071A CN116231774A CN 116231774 A CN116231774 A CN 116231774A CN 202210294071 A CN202210294071 A CN 202210294071A CN 116231774 A CN116231774 A CN 116231774A
Authority
CN
China
Prior art keywords
charging
current
output current
frequency
charging chip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210294071.1A
Other languages
Chinese (zh)
Inventor
刘玉桃
袁兵
崔瑞
王晗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to PCT/CN2022/127498 priority Critical patent/WO2023098347A1/en
Publication of CN116231774A publication Critical patent/CN116231774A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Abstract

The application is applicable to the technical field of terminals and provides a charging method, electronic equipment and a computer readable storage medium. In the method, when the electronic equipment is detected to be in a charging state, the electronic equipment can acquire a first output current of a first charging chip or acquire the first output current of the first charging chip and a second output current of a second charging chip, and determine a first target frequency of the first charging chip according to the first output current or according to the first output current and the second output current. Subsequently, the electronic equipment can adjust the frequency of the first charging chip according to the first target frequency so as to adjust the first output current of the first charging chip, ensure that the output current of the charging chip meets the requirement, avoid the charging chip from generating overcurrent, ensure the safety of charging and promote the user experience.

Description

Charging method, electronic device, and computer-readable storage medium
Technical Field
The application belongs to the technical field of terminals, and particularly relates to a charging method, electronic equipment and a computer readable storage medium.
Background
Currently, people have higher requirements on the charging speed of electronic equipment. To increase the charging speed, the number of charging chips (integrated circuit, ICs) may be increased in an electronic device to achieve high-power fast charging by multiple charging ICs. However, in the current high-power quick charge based on multiple charge ICs, the output current of each charge IC is easy to be unbalanced, so that a certain charge IC is easy to be over-current, the safety of charging is reduced, and the user experience is poor.
Disclosure of Invention
The embodiment of the application provides a charging method, electronic equipment and a computer readable storage medium, wherein the output current of a charging IC can be adjusted by adjusting the frequency of the charging IC in the charging process, so that the quick charging function of the electronic equipment is realized on the basis of ensuring the charging safety, and the user experience is improved.
In a first aspect, an embodiment of the present application provides a charging method, which is applied to an electronic device, where the electronic device includes at least a first charging chip and a second charging chip, and the method may include:
when the electronic equipment is detected to be in a charging state, acquiring a first output current of the first charging chip or acquiring a first output current of the first charging chip and a second output current of the second charging chip;
determining a first target frequency of the first charging chip according to the first output current, or determining the first target frequency of the first charging chip according to the first output current and the second output current;
and adjusting the frequency of the first charging chip according to the first target frequency.
In the above charging method, when the electronic device is detected to be in a charging state, the electronic device may acquire a first output current of the first charging chip, or acquire the first output current of the first charging chip and a second output current of the second charging chip, and may determine the first target frequency of the first charging chip according to the first output current, or according to the first output current and the second output current. Subsequently, the electronic equipment can adjust the frequency of the first charging chip according to the first target frequency, so that the first output current of the first charging chip is adjusted, the output current of the charging chip is adjusted on the basis that an additional current equalizing circuit is not added, the output current of the charging chip is ensured to meet the requirement, the charging chip is prevented from being overcurried, the charging safety is ensured, and the user experience is improved.
In one example, the determining the first target frequency of the first charging chip according to the first output current may include:
determining whether the first output current is larger than the corresponding maximum output current of the first charging chip;
when the first output current is larger than the maximum output current corresponding to the first charging chip, determining a first preset corresponding relation between the conversion efficiency and the frequency of the first charging chip according to the first output current;
and determining a first target frequency of the first charging chip according to the first preset corresponding relation and the current frequency of the first charging chip.
In the charging method provided by the implementation manner, in order to avoid the first charging chip from generating an overcurrent, the electronic device may acquire a maximum output current corresponding to the first charging chip, and determine whether the current first output current of the first charging chip exceeds the maximum output current corresponding to the first charging chip. When the current first output current of the first charging chip exceeds the corresponding maximum output current of the first charging chip, the electronic device can determine a first preset corresponding relation between the conversion efficiency of the first charging chip and the frequency according to the current first output current of the first charging chip. Then, the electronic device may determine a first target frequency of the first charging chip according to the current frequency of the first charging chip and the determined first preset corresponding relation, and adjust the frequency of the first charging chip to the first target frequency, so as to adjust the conversion efficiency of the first charging chip by adjusting the frequency of the first charging chip, thereby adjusting the first output current of the first charging chip, so that the first output current of the first charging chip is smaller than the corresponding maximum output current of the first charging chip, and the first charging chip is prevented from generating overcurrent.
In another example, the determining the first target frequency of the first charging chip according to the first output current and the second output current may include:
acquiring a first current ratio between the first output current and the second output current;
and determining a first target frequency of the first charging chip according to the first current ratio and a first preset current ratio.
In the charging method provided by the implementation manner, the electronic device may be provided with a first preset current ratio that needs to be met by a current ratio between the first output current and the second output current. When the current first output current of the first charging chip and the current second output current of the second charging chip do not meet the first preset current ratio, the electronic device can determine the first target frequency of the first charging chip according to the first current ratio and the first preset current ratio to adjust the frequency of the first charging chip, so that the conversion efficiency of the first charging chip is adjusted to adjust the first output current of the first charging chip, local input current of the battery is prevented from being larger when the first charging chip and the second charging chip charge the same battery respectively, local heating of the battery is serious, the electronic device is caused to be disconnected, or the first charging chip charges the first battery, and when the second charging chip charges the second battery, the charging speed of the first battery and the charging speed of the second battery meet preset requirements (for example, the requirement that the first battery and the second battery are simultaneously charged) so as to improve user experience.
In one possible implementation, the method may further include:
determining a second target frequency of the second charging chip according to the second output current, or determining a second target frequency of the second charging chip according to the first output current and the second output current;
and adjusting the frequency of the second charging chip according to the second target frequency.
In the charging method provided by the implementation manner, the electronic device can also determine the second target frequency of the second charging chip according to the second output current or according to the first output current and the second output current, and adjust the frequency of the second charging chip according to the second target frequency, so that the second output current of the second charging chip is adjusted, the output current of the second charging chip is adjusted on the basis of not adding an additional current equalizing circuit, the output current of the second charging chip is ensured to meet the requirement, the second charging chip is prevented from being over-flowed, the charging safety is ensured, and the user experience is improved.
Optionally, when the electronic device is detected to be in the charging state, the electronic device may also separately obtain a second output current of the second charging chip, and directly determine a second target frequency of the second charging chip according to the second output current. Subsequently, the electronic equipment can adjust the frequency of the second charging chip according to the second target frequency, so that the second output current of the second charging chip is adjusted, the output current of the second charging chip is ensured to meet the requirement, the second charging chip is prevented from being overcurrent, the safety of the second charging is ensured, and the user experience is improved.
In one example, the determining the second target frequency of the second charging chip according to the second output current may include:
determining whether the second output current is greater than a maximum output current corresponding to the second charging chip;
when the second output current is larger than the maximum output current corresponding to the second charging chip, determining a second preset corresponding relation between the conversion efficiency and the frequency of the second charging chip according to the second output current;
and determining a second target frequency of the second charging chip according to the second preset corresponding relation and the current frequency of the second charging chip.
In the charging method provided by the implementation manner, in order to avoid the second charging chip from generating an overcurrent, the electronic device may acquire a maximum output current corresponding to the second charging chip, and determine whether the current second output current of the second charging chip exceeds the maximum output current corresponding to the second charging chip. When the current second output current of the second charging chip exceeds the corresponding maximum output current of the second charging chip, the electronic device can determine a second preset corresponding relation between the conversion efficiency of the second charging chip and the frequency according to the current second output current of the second charging chip. Then, the electronic device may determine a second target frequency of the second charging chip according to the current frequency of the second charging chip and the determined second preset corresponding relation, and adjust the frequency of the second charging chip to the second target frequency, so as to adjust the conversion efficiency of the second charging chip by adjusting the frequency of the second charging chip, thereby adjusting the second output current of the second charging chip, so that the second output current of the second charging chip is smaller than the corresponding maximum output current of the second charging chip, and the second charging chip is prevented from generating overcurrent.
It can be understood that the second preset corresponding relationship is the same as the first preset corresponding relationship, and is the corresponding relationship between the conversion efficiency and the frequency of the charging chip under each output current.
In another example, the determining the second target frequency of the second charging chip according to the first output current and the second output current may include:
acquiring a first current ratio between the first output current and the second output current;
and determining a first target frequency of the first charging chip and a second target frequency of the second charging chip according to the first current ratio and a first preset current ratio.
In the charging method provided by the implementation manner, the electronic device may be provided with a first preset current ratio that needs to be met by a current ratio between the first output current and the second output current. When the first current ratio between the current first output current of the first charging chip and the current second output current of the second charging chip does not meet the first preset current ratio, the electronic device can simultaneously determine the first target frequency of the first charging chip and the second target frequency of the second charging chip according to the first current ratio and the first preset current ratio, so as to simultaneously adjust the frequency of the first charging chip and the frequency of the second charging chip, thereby adjusting the conversion efficiency of the first charging chip and the conversion efficiency of the second charging chip, adjusting the first output current of the first charging chip and the second output current of the second charging chip, enabling the first output current and the second output current to meet preset requirements, and improving user experience.
In another example, the determining the second target frequency of the second charging chip according to the first output current and the second output current may include:
acquiring a second current ratio between the first output current and the second output current after adjusting the frequency of the first charging chip according to the first target frequency;
and determining a second target frequency of the second charging chip according to the second current ratio and the first preset current ratio.
In the charging method provided by the implementation manner, when the first current ratio between the current first output current of the first charging chip and the current second output current of the second charging chip does not meet the first preset current ratio, the electronic device may determine the first target frequency of the first charging chip according to the first current ratio and the first preset current ratio, so as to adjust the frequency of the first charging chip, so as to adjust the first output current of the first charging chip. After adjusting the frequency of the first charging chip according to the first target frequency, the electronic device can continuously acquire the first output current of the first charging chip and the second output current of the second charging chip, if the second current ratio between the first output current and the second output current still does not meet the first preset current ratio, the electronic device can determine the second target frequency of the second charging chip according to the second current ratio and the first preset current ratio, so as to adjust the frequency of the second charging chip, so that the second output current of the second charging chip is adjusted, and the first output current and the second output current meet preset requirements, and user experience is improved.
In one example, when the first current ratio between the current first output current of the first charging chip and the current second output current of the second charging chip does not satisfy the first preset current ratio, the electronic device may also determine the first target frequency of the first charging chip according to the first current ratio and the first preset current ratio to adjust the frequency of the first charging chip. When the frequency of the first charging chip is adjusted so that the conversion efficiency of the first charging chip reaches an extremum, if the second current ratio between the first output current and the second output current still does not satisfy the first preset current ratio, for example, when the frequency of the first charging chip needs to be reduced so that the conversion efficiency of the first charging chip reaches a minimum, if the second current ratio is still greater than the maximum value in the first preset current ratio, or when the conversion efficiency of the first charging chip needs to be improved, when the frequency of the first charging chip is adjusted so that the conversion efficiency of the first charging chip reaches the maximum, if the second current ratio is still less than the minimum value in the first preset current ratio, the electronic device can continue to adjust the frequency of the second charging chip according to the second current ratio and the first preset current ratio, to adjust the conversion efficiency of the second charging chip so that the first output current and the second output current meet preset requirements, and the electronic device can continue to determine the second target frequency of the second charging chip.
In one example, when the first current ratio between the current first output current of the first charging chip and the current second output current of the second charging chip does not meet the first preset current ratio, the electronic device may determine the second target frequency of the second charging chip according to the first current ratio and the first preset current ratio, so as to adjust the frequency of the second charging chip, thereby adjusting the conversion efficiency of the second charging chip, and adjusting the second output current of the second charging chip, so that the first output current and the second output current meet preset requirements, and user experience is improved.
In another example, when the first current ratio between the current first output current of the first charging chip and the current second output current of the second charging chip does not satisfy the first preset current ratio, the electronic device may also determine the second target frequency of the second charging chip according to the first current ratio and the first preset current ratio, so as to adjust the frequency of the second charging chip. When adjusting the frequency of the second charging chip, so that the conversion efficiency of the second charging chip reaches an extremum, if the second current ratio between the first output current and the second output current still does not meet the first preset current ratio, the electronic device can continuously determine the first target frequency of the first charging chip according to the second current ratio and the first preset current ratio to adjust the frequency of the first charging chip, thereby adjusting the conversion efficiency of the first charging chip, adjusting the first output current of the first charging chip, enabling the first output current and the second output current to meet preset requirements, and improving user experience.
In one possible implementation manner, when the electronic device includes a battery, the first charging chip and the second charging chip are used to charge the battery, and the method may further include:
acquiring a first original impedance of a passage where the first charging chip is located and a second original impedance of a passage where the second charging chip is located;
and determining the first preset current ratio according to the first original impedance and the second original impedance.
In another possible implementation manner, when the electronic device includes at least a first battery and a second battery, the first charging chip is used for charging the first battery, and the second charging chip is used for charging the second battery.
Illustratively, the method may further comprise:
acquiring a first original impedance of a passage in which the first charging chip is located, a second original impedance of a passage in which the second charging chip is located, a first rated capacity of the first battery and a second rated capacity of the second battery;
and determining the first preset current ratio according to the first original impedance, the second original impedance, the first rated capacity and the second rated capacity.
In the charging method provided by the implementation manner, when the first charging chip charges the first battery and the second charging chip charges the second battery, the electronic device may determine a first preset current ratio according to the first original impedance, the second original impedance, the first rated capacity and the second rated capacity, so as to adjust the first output current of the first charging chip and/or adjust the second output current of the second charging chip according to the first preset current ratio, so that the charging speed of the first battery and the charging speed of the second battery meet preset requirements (for example, the requirement that the first battery and the second battery are simultaneously charged).
In one example, the determining the first target frequency of the first charging chip according to the first output current may include:
acquiring a first input current of the first battery;
determining whether the first input current is greater than a maximum input current corresponding to the first battery;
when the first input current is larger than the maximum input current corresponding to the first battery, determining a first preset corresponding relation between the conversion efficiency of the first charging chip and the frequency according to the first output current;
and determining a first target frequency of the first charging chip according to the first preset corresponding relation and the current frequency of the first charging chip.
In the charging method provided by the implementation manner, when the first charging chip charges the first battery of the electronic device, the electronic device may obtain the current first input current, voltage and temperature of the first battery, and determine the current allowable maximum input current of the first battery according to the current voltage, temperature and a third preset corresponding relationship of the first battery. Then, the electronic device may determine a first target frequency of the first charging chip according to the current first input current of the first battery and the current maximum allowed input current of the first battery, so as to adjust the frequency of the first charging chip according to the first target frequency, and adjust the first output current of the first charging chip, thereby adjusting the input current of the first battery, avoiding the first battery from being over-flowed in the charging process, and avoiding damage to the first battery.
The third preset corresponding relation is a corresponding relation between the maximum input current allowed by each battery and the voltage at each temperature. The third preset correspondence may be specifically set by a technician according to an actual scenario, which is not limited in the embodiment of the present application.
In one example, when the first charging chip and the second charging chip charge the same battery, the electronic device may obtain the current input current, voltage and temperature of the battery, and determine the maximum current input allowed by the battery according to the current voltage, temperature and a third preset corresponding relationship of the battery. Then, the electronic device may determine a first target frequency of the first charging chip and/or a second target frequency of the second charging chip according to the current input current of the battery and the current maximum input current allowed by the battery, so as to adjust the frequency of the first charging chip according to the first target frequency, adjust the first output current of the first charging chip, and/or adjust the frequency of the second charging chip according to the second target frequency, so as to adjust the second output current of the second charging chip, thereby adjusting the input current of the battery, avoiding the battery from being over-flowed during the charging process and avoiding damage to the battery.
For example, before the determining whether the first input current is greater than the maximum input current corresponding to the first battery may include:
acquiring the current voltage and temperature of the first battery;
and determining the maximum input current corresponding to the first battery according to the current voltage, the current temperature and a third preset corresponding relation of the first battery, wherein the third preset corresponding relation is the corresponding relation between the maximum input current allowed by the first battery and the voltage at each temperature.
In another example, the determining the second target frequency of the second charging chip according to the second output current may include:
acquiring a second input current of the second battery;
determining whether the second input current is greater than a maximum input current corresponding to the second battery;
when the second input current is larger than the maximum input current corresponding to the second battery, determining a second preset corresponding relation between the conversion efficiency of the second charging chip and the frequency according to the second output current;
and determining a second target frequency of the second charging chip according to the second preset corresponding relation and the current frequency of the second charging chip.
In the charging method provided by the implementation manner, when the second charging chip charges the second battery of the electronic device, the electronic device may obtain the current second input current, voltage and temperature of the second battery, and determine the current allowable maximum input current of the second battery according to the current voltage, temperature and a third preset corresponding relationship of the second battery. Then, the electronic device may determine a second target frequency of the second charging chip according to the current second input current of the second battery and the current maximum input current allowed by the second battery, so as to adjust the frequency of the second charging chip according to the second target frequency, and adjust the second output current of the second charging chip, thereby adjusting the input current of the second battery, avoiding the second battery from being over-current in the charging process and avoiding damage to the second battery.
In a second aspect, an embodiment of the present application provides a charging device, which is applied to an electronic device, where the electronic device includes at least a first charging chip and a second charging chip, and the device may include:
the output current acquisition module is used for acquiring a first output current of the first charging chip or acquiring a first output current of the first charging chip and a second output current of the second charging chip when the electronic equipment is detected to be in a charging state;
The target frequency determining module is used for determining a first target frequency of the first charging chip according to the first output current or determining the first target frequency of the first charging chip according to the first output current and the second output current;
and the frequency adjusting module is used for adjusting the frequency of the first charging chip according to the first target frequency.
In one example, the target frequency determining module is specifically configured to determine whether the first output current is greater than a maximum output current corresponding to the first charging chip; when the first output current is larger than the maximum output current corresponding to the first charging chip, determining a first preset corresponding relation between the conversion efficiency and the frequency of the first charging chip according to the first output current; and determining a first target frequency of the first charging chip according to the first preset corresponding relation and the current frequency of the first charging chip.
In another example, the target frequency determination module is further configured to obtain a first current ratio between the first output current and the second output current; and determining a first target frequency of the first charging chip according to the first current ratio and a first preset current ratio.
In a possible implementation manner, the target frequency determining module is further configured to determine a second target frequency of the second charging chip according to the second output current, or determine the second target frequency of the second charging chip according to the first output current and the second output current;
the frequency adjusting module is further configured to adjust a frequency of the second charging chip according to the second target frequency.
In one example, the target frequency determining module is further configured to determine whether the second output current is greater than a maximum output current corresponding to the second charging chip; when the second output current is larger than the maximum output current corresponding to the second charging chip, determining a second preset corresponding relation between the conversion efficiency and the frequency of the second charging chip according to the second output current; and determining a second target frequency of the second charging chip according to the second preset corresponding relation and the current frequency of the second charging chip.
In another example, the target frequency determination module is further configured to obtain a first current ratio between the first output current and the second output current; and determining a first target frequency of the first charging chip and a second target frequency of the second charging chip according to the first current ratio and a first preset current ratio.
In another example, the target frequency determination module is further configured to obtain a second current ratio between the first output current and the second output current after adjusting the frequency of the first charging chip according to the first target frequency; and determining a second target frequency of the second charging chip according to the second current ratio and the first preset current ratio.
In one possible implementation manner, when the electronic device includes a battery, the first charging chip and the second charging chip are used for charging the battery, and the apparatus may further include:
the preset current ratio determining module is used for obtaining a first original impedance of a passage where the first charging chip is located and a second original impedance of a passage where the second charging chip is located; and determining the first preset current ratio according to the first original impedance and the second original impedance.
In another possible implementation manner, when the electronic device includes at least a first battery and a second battery, the first charging chip is used for charging the first battery, and the second charging chip is used for charging the second battery.
The preset current ratio determining module is further configured to obtain a first original impedance of a path in which the first charging chip is located, a second original impedance of a path in which the second charging chip is located, a first rated capacity of the first battery, and a second rated capacity of the second battery; for determining said first preset current ratio from said first raw impedance, said second raw impedance, said first rated capacity and said second rated capacity.
In one example, the target frequency determination module is further configured to obtain a first input current of the first battery; determining whether the first input current is greater than a maximum input current corresponding to the first battery; when the first input current is larger than the maximum input current corresponding to the first battery, determining a first preset corresponding relation between the conversion efficiency of the first charging chip and the frequency according to the first output current; and determining a first target frequency of the first charging chip according to the first preset corresponding relation and the current frequency of the first charging chip.
Illustratively, the apparatus may further include:
the maximum input current determining module is used for obtaining the current voltage and temperature of the first battery; and determining the maximum input current corresponding to the first battery according to the current voltage, the current temperature and a third preset corresponding relation of the first battery, wherein the third preset corresponding relation is the corresponding relation between the maximum input current allowed by the first battery and the voltage at each temperature.
In another example, the target frequency determination module is further configured to obtain a second input current of the second battery; determining whether the second input current is greater than a maximum input current corresponding to the second battery; when the second input current is larger than the maximum input current corresponding to the second battery, determining a second preset corresponding relation between the conversion efficiency of the second charging chip and the frequency according to the second output current; and determining a second target frequency of the second charging chip according to the second preset corresponding relation and the current frequency of the second charging chip.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to cause the electronic device to implement the charging method according to any one of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program, which when executed by a computer, causes the computer to implement the charging method according to any one of the first aspects above.
In a fifth aspect, embodiments of the present application provide a computer program product, which, when run on an electronic device, causes the electronic device to perform the charging method of any one of the first aspects above.
It will be appreciated that the advantages of the second to fifth aspects may be found in the relevant description of the first aspect, and are not described here again.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device to which a charging method according to an embodiment of the present application is applicable;
Fig. 2 is a schematic diagram illustrating a configuration of a charging chip according to an embodiment of the present application;
fig. 3 is a second schematic diagram of the arrangement of the charging chip according to the embodiment of the present application;
FIG. 4 is a diagram showing the relationship between the conversion efficiency of the charging IC and the frequency of the charging IC;
FIG. 5 is a second schematic diagram of the relationship between the conversion efficiency of the charging IC and the frequency of the charging IC;
fig. 6 is a schematic flow chart of a charging method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a charging device according to an embodiment of the present application.
Detailed Description
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In addition, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
Furthermore, references to "a plurality of" in the examples of this application should be interpreted as two or more.
The steps involved in the charging method provided in the embodiments of the present application are merely examples, not all steps are necessarily performed, or not all the contents in each information or message are necessarily selected, and may be increased or decreased as needed during use. The same steps or messages having the same function in the embodiments of the present application may be referred to and used by reference between different embodiments.
The service scenario described in the embodiments of the present application is for more clearly describing the technical solution of the embodiments of the present application, and does not constitute a limitation to the technical solution provided in the embodiments of the present application, and as a person of ordinary skill in the art can know that, with the evolution of the network architecture and the appearance of a new service scenario, the technical solution provided in the embodiments of the present application is equally applicable to similar technical problems.
Currently, people have higher requirements on the charging speed of electronic equipment. In order to increase the charging speed, the number of charging ICs may be increased in an electronic device to realize high-power quick charging by multiple charging ICs. For example, the charging current of the battery can be increased by parallel dual-charging ICs, thereby realizing high-power fast charging.
It should be appreciated that each charging IC typically has an allowable maximum output current. When the actual output current of a certain charging IC is greater than the maximum output current allowed by the charging IC, the charging IC is caused to generate an overcurrent, so that the charging safety is reduced, or the charging IC is triggered to perform overcurrent protection (namely, the charging IC with an overcurrent protection function) so as to cause the charging to be disconnected, influence the charging speed and influence the user experience.
For example, during the use of the electronic device, the input current of the charger generally remains unchanged, so when a current input to a charging IC changes (for example, becomes smaller) due to a change in impedance (for example, a resistance becomes larger) of the charging IC, the current input to each charging IC is unbalanced, that is, the current input to another charging IC becomes larger, so that the output current of the other charging IC becomes larger, which may cause the output current of the other charging IC to be larger than the maximum output current allowed by the other charging IC, and the other charging IC is caused to overflow.
In order to avoid the over-current of the charging IC, a current equalizing circuit may be added generally to ensure that the impedance of the paths corresponding to the charging ICs connected in parallel is approximately equal through the current equalizing current, so that the current passing through each path is balanced, and thus the output current of the charging IC is balanced, and the over-current of the charging IC caused by the over-large current input to a certain charging IC is avoided. However, in this way, a current equalizing circuit needs to be added in the parallel path of the charging IC, which greatly increases the complexity of the hardware circuit, increases the design cost of the electronic device, and is inconvenient for popularization and use.
In order to solve the above problems, embodiments of the present application provide a charging method, an electronic device, and a computer-readable storage medium. The electronic device may include at least a first charging chip and a second charging chip. In the method, when the electronic equipment is detected to be in a charging state, the electronic equipment can acquire a first output current of a first charging chip or acquire the first output current of the first charging chip and a second output current of a second charging chip, and can determine a first target frequency of the first charging chip according to the first output current or according to the first output current and the second output current. Subsequently, the electronic equipment can adjust the frequency of the first charging chip according to the first target frequency, so that the first output current of the first charging chip is adjusted, the output current of the charging chip is adjusted on the basis that an additional current equalizing circuit is not added, the output current of the charging chip is ensured to meet the requirement, the charging chip is prevented from being overcurried, the charging safety is ensured, the user experience is improved, and the electronic equipment has strong usability and practicability.
In this embodiment of the present application, the electronic device may be a mobile phone, a tablet computer, a wearable device, an augmented reality (augmented reality, AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (personal digital assistant, PDA), or an electronic device having a rechargeable battery, and the specific type of the electronic device is not limited in this embodiment of the present application.
The following first describes an electronic device according to an embodiment of the present application. Referring to fig. 1, fig. 1 shows a schematic structural diagram of an electronic device 100.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, and a wireless communication module 160.
It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, or may be used to connect other electronic devices, such as an AR device.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and does not limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of the wired charger through the USB interface 130 (e.g., USB Type C interface). In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device 100 through the power management module 141 while charging the battery 142.
In some embodiments, the charger may be a high power charger.
In other embodiments, the charge management module 140 may include at least two charge chips 143, for example, may include at least a first charge chip and a second charge chip. For example, the first charging chip and the second charging chip may each be a frequency-adjustable charging chip.
Optionally, referring to fig. 2, fig. 2 shows a schematic diagram of a configuration of a charging chip according to an embodiment of the present application. As shown in fig. 2 (a), at least two charging chips (two of the first charging chip and the second charging chip are taken as an example in fig. 2) may be disposed in parallel in the electronic device 100, and both the first charging chip and the second charging chip may be connected with the battery 142. The charge management module 140 may perform high-power charging for the battery 142 through the first charging chip and the second charging chip, and implement a quick charging function. For example, the charging management module 140 may convert the charging input of the charger through the first charging chip and the second charging chip, that is, convert the input power of the charger, so as to obtain a larger current to charge the battery 142, thereby realizing high-power fast charging.
For example, as shown in fig. 2 (a), when the input voltage of the charger is 20V, the input current is 6A, and the first charging chip is the same as the second charging chip, the current input to the first charging chip and the current input to the second charging chip by the charger are both 3A, and the voltage input to the first charging chip and the voltage input to the second charging chip by the charger are both 20V. It is assumed that under ideal conditions (i.e., the conversion efficiency of the first charging chip and the conversion efficiency of the second charging chip are both 100%), after the conversion of the first charging chip, the voltage output by the first charging chip is 10V, the current output by the first charging chip is 6A, after the conversion of the second charging chip, the voltage output by the second charging chip is 10V, and the current output by the second charging chip is 6A, that is, the input current of the original 6A of the charger can be converted into 12A, so that the battery 142 is rapidly charged by the current of 12A.
In some embodiments, as shown in (b) of fig. 2, the charge management module 140 may further include an overvoltage protection unit, for example, the overvoltage protection unit may be an overvoltage protection circuit (over voltage protection, OVP) to protect the charging chip 143 and/or the battery 142 when the voltage output from the charger is large. It should be appreciated that whether the voltage output by the charger is excessive may be determined based on whether the voltage output by the charger is greater than a preset voltage value. The preset voltage value may be specifically set by a technician according to an actual scenario, for example, may be determined according to a maximum voltage allowed by the charging chip 143, or may be determined according to a rated voltage of the battery 142, etc.
In some embodiments, the charge management module 140 may include a chip control unit 144 (not shown in fig. 2 (b)). Alternatively, the chip control unit 144 may be connected to each of the charging chips 143, respectively. The chip control unit 144 may be used to adjust the frequency of the one or more charging chips 143.
As shown in (c) of fig. 2, when the charge management module 140 includes a first charge chip and a second charge chip, the chip control unit 144 may be connected to the first charge chip and the second charge chip, respectively. Accordingly, the chip control unit 144 may adjust the frequency of the first charging chip according to the first target frequency, and/or may adjust the frequency of the second charging chip according to the second target frequency.
In other embodiments, the chip control unit 144 may also be provided in the processor 110.
In some embodiments of the present application, the electronic device 100 may include 1 or N batteries 142, N being a positive integer greater than 1. Alternatively, the parameters of each battery 142 may be the same or different. The parameters of the battery may include the rated capacity, rated voltage, etc. of the battery.
In some embodiments, any one of the at least two charging chips 143 may be connected with one or more batteries 142, respectively, or any one of the at least two charging chips 143 may be connected with each battery 142, respectively. Each charging chip 143 may be used to charge a corresponding battery 142.
Referring to fig. 3, fig. 3 shows a second schematic configuration diagram of the charging chip according to the embodiment of the present application. As shown in (a) of fig. 3, when the charge management module 140 includes a first charge chip and a second charge chip, the first charge chip may be directly connected with the first battery and the second charge chip may be directly connected with the second battery, so that the first charge chip may be used to charge the first battery and the second charge chip may be used to charge the second battery, that is, the first battery and the second battery are charged simultaneously through the first charge chip and the second charge chip connected in parallel, so that the charging speed of the electronic device 100 may be increased.
Alternatively, as shown in fig. 3 (b), both the first charging chip and the second charging chip may be connected to the first battery, and both the first charging chip and the second charging chip may be connected to the second battery, but an impedance (for example, an impedance 300 shown in fig. 3 (b)) is provided on a path connecting the first charging chip and the second battery, and an impedance (for example, an impedance 300 shown in fig. 3 (b)) is provided on a path connecting the second charging chip and the first battery. Because of the impedance 300, the output current of the first charging chip directly flows into the first battery, and the output current of the second charging chip directly flows into the second battery, so that the first charging chip can be used for charging the first battery, and the second charging chip can be used for charging the second battery.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140, and provides power to the processor 110, the internal memory 121, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters.
In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 110 performs various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, a cloud architecture, or the like. For example, the software System of the electronic device 100 may employ a hierarchical android Operating System (OS), a hong operating System (Harmony OS), an IOS, or the like.
The charging method provided in the embodiment of the present application will be described in detail below with reference to the accompanying drawings and specific application scenarios. The method is applied to the electronic equipment comprising at least two charging ICs, such as a first charging chip (namely a first charging IC) and a second charging chip (namely a second charging IC). The first charging IC and the second charging IC may be frequency-adjustable charging ICs. The first charging IC and the second charging IC can be arranged in the electronic equipment in parallel, and both the first charging IC and the second charging IC can be connected with a battery in the electronic equipment.
In this embodiment of the present application, when the electronic device is detected to be in a charging state, the electronic device may acquire a first output current of the first charging IC, or acquire a first output current of the first charging IC and a second output current of the second charging IC, and may determine a first target frequency of the first charging IC according to the first output current, or according to the first output current and the second output current. Then, the electronic equipment can adjust the frequency of the first charging IC according to the first target frequency so as to adjust the first output current of the first charging IC, ensure that the output current of the charging IC meets the requirement, avoid the charging IC from generating overcurrent, ensure the charging safety and improve the user experience.
In one example, the electronic device may determine whether the electronic device is in a charged state based on whether a USB interface of the electronic device receives a charging input of the wired charger. For example, when the electronic device is connected to the power supply device through the USB interface, the USB interface of the electronic device may receive a charging input of the wired charger, at which time the electronic device may determine that the electronic device is in a charged state.
In another example, the electronic device may determine whether the electronic device is in a charged state based on whether a wireless charging coil of the electronic device is receiving wireless charging input. For example, when the electronic device is located on a charging dock of a wireless power supply device, a wireless charging coil of the electronic device may receive a wireless charging input, at which point the electronic device may determine that the electronic device is in a charged state.
The first output current refers to the current of the output terminal of the first charging IC, and the second output current refers to the current of the output terminal of the second charging IC.
For example, the output of the first charging IC may be provided with a current measuring device a, through which the electronic device may obtain the first output current. Similarly, the output of the second charging IC may be provided with a current measuring device B, through which the electronic device may obtain the second output current. It should be understood that the current measuring device a and the current measuring device B are not limited in any way, and may be specifically set according to actual situations, for example, the current measuring device a and the current measuring device B may be set as an ammeter.
It should be appreciated that the first and second charging ICs are used to convert input power from the charger to increase the current input to the battery, thereby increasing the charging power of the battery, enabling high power fast charging. Wherein, the conversion of any charging IC to input power satisfies: η x V input *I input )= IC *I IC ,V input For the input voltage of the charging IC, I input The input current of the charging IC, eta is the conversion efficiency of the charging IC, V IC For the output voltage of the charging IC, I IC An output current of the charging IC.
As shown in fig. 2 (a), when the first charging IC and the second charging IC are arranged in parallel, the sum of the input currents of the first charging IC and the second charging IC is the total current I output from the charger output The input voltage of the first charging IC and the input voltage of the second charging IC and the total voltage V output by the charger output The same applies. I.e. I output =I input1 +I input2 ,V output =V input1 =V input2 Wherein I input1 For the input current of the first charging IC, I input2 For the input current of the second charging IC, V input1 For the input voltage of the first charging IC, V input2 Is the input voltage of the second charging IC.
In a specific charging process, the total voltage V output by the charger output And total current I output Are all fixed values, i.e. the input voltage V of the first charging IC input1 And an input voltage V of the second charging IC input2 And are fixed values. Input current I of first charging IC input1 And input current I of the second charging IC input2 Total current I output from charger output The impedance of the path of the first charging IC and the impedance of the path of the second charging IC are related, and the impedance of the path of the first charging IC and the impedance of the path of the second charging IC are generally fixed values, so the input current I of the first charging IC input1 Input current I to the second charging IC input2 Also isA fixed value. It should be appreciated that during this particular charging process, the output voltage of each charging IC is also a fixed value.
In summary, for any charging IC (e.g. the first charging IC or the second charging IC), during a specific charging process, the input voltage V of the charging IC input And input current I input The output voltage of the charging IC is also a fixed value, and therefore, the output current of the charging IC is related to the conversion efficiency η of the charging IC. That is, when the input voltage and the input current of the charging IC are fixed, if the conversion efficiency η of the charging IC is high, the output current of the charging IC is high; if the conversion efficiency η of the charging IC is low, the output current of the charging IC is also small.
The conversion efficiency eta of the charging IC is related to the frequency of the charging IC, so that the electronic equipment can adjust the conversion efficiency eta of the charging IC by adjusting the frequency of a certain charging IC, thereby adjusting the output current of the charging IC, enabling the output current of the charging IC to meet the requirement and avoiding the overcurrent of the charging IC.
The relationship between the conversion efficiency η of the charging IC and the frequency of the charging IC is explained below. The charging IC may include a first charging IC and a second charging IC.
Referring to fig. 4, fig. 4 is a schematic diagram showing a relationship between the conversion efficiency of the charging IC and the frequency of the charging IC. In this regard, fig. 4 shows the conversion efficiency η of the charging IC at each output current when the frequency of the charging IC is high (i.e., 750 KHz), medium (i.e., 375 KHz) and low (i.e., 187.5 KHz), respectively. It should be understood that the output current in fig. 4 refers to the current that the charging IC wants to output.
As shown in fig. 4, when the output current of the charging IC is (0 a,4 a), the higher the frequency of the charging IC, the lower the conversion efficiency of the charging IC, i.e., the conversion efficiency of the charging IC at a high frequency is smaller than the conversion efficiency of the charging IC at a medium frequency, which is smaller than the conversion efficiency of the charging IC at a low frequency. When the output current of the charging IC is [4A,6A ], the conversion efficiency of the charging IC at a high frequency is smaller than that of the charging IC at a low frequency, and the conversion efficiency of the charging IC at a low frequency is smaller than that of the charging IC at a medium frequency. When the output current of the charging IC is greater than 6A, the conversion efficiency of the charging IC at a low frequency is smaller than the conversion efficiency of the charging IC at a high frequency, which is smaller than the conversion efficiency of the charging IC at a medium frequency.
Based on the relationship shown in fig. 4, the electronic device may be provided with a preset correspondence a between the conversion efficiency of the charging IC and the frequency at each output current. When the current output current of a certain charging IC is not in accordance with the requirement, the electronic equipment can adjust the frequency of the charging IC to adjust the conversion efficiency of the charging IC, so as to adjust the output current of the charging IC, and enable the output current of the charging IC to be in accordance with the requirement. It should be understood that the preset correspondence a may also be stored in other electronic devices or cloud devices that are communicatively connected to the electronic device.
The output current is divided into (0 a,4 a), (4 a, 6A) and (6A, + -infinity) three intervals only in an exemplary illustration of the manner in which the fluid may be dispensed with, and should not be construed as limiting the embodiments of the present application. In the embodiment of the application, the division mode of the output current can be determined by a technician according to an actual scene.
In addition, when the frequencies of the charging IC described above are three frequencies, i.e., a high frequency (i.e., 750 KHz), a medium frequency (i.e., 375 KHz) and a low frequency (i.e., 187.5 KHz), the preset correspondence relationship a between the conversion efficiency and the frequency of the charging IC at each output current is only exemplary to be interpreted, and should not be construed as limiting the embodiments of the present application. In this embodiment of the present application, a technician may determine each frequency of the charging IC according to an actual scenario, for example, may determine any number of frequencies, such as two, three, or four, according to an actual scenario, and obtain, through testing, conversion efficiency corresponding to each frequency of the charging IC under each output current, thereby determining a preset correspondence a between conversion efficiency and frequency of the charging IC under each output current.
For example, a technician may determine each frequency of the charging IC according to the frequency actually supported by the charging IC to be adjusted, and obtain, through testing, conversion efficiency corresponding to each frequency of the charging IC at each output current, thereby determining a preset correspondence a between the conversion efficiency of the charging IC and the frequency at each output current.
For example, a technician may determine the frequency of the charging IC as a high frequency (i.e., 750 KHz), a medium and high frequency (i.e., 500 KHz), a medium frequency (i.e., 375 KHz), a medium and low frequency (i.e., 300 KHz) and a low frequency (i.e., 187.5 KHz) according to an actual scene, and determine conversion efficiencies respectively corresponding to the respective frequencies (i.e., high frequency, medium and low frequency) of the charging IC at the respective output currents, so that a preset correspondence relationship a between the conversion efficiency and the frequency of the charging IC at the respective output currents may be determined.
For example, referring to fig. 5, fig. 5 shows a second schematic diagram of the relationship between the conversion efficiency of the charging IC and the frequency of the charging IC.
As shown in fig. 5, when the output current of the charging IC is (0 a,3 a), the higher the frequency of the charging IC, the lower the conversion efficiency of the charging IC, that is, the conversion efficiency of the charging IC at a high frequency is smaller than the conversion efficiency of the charging IC at a medium-high frequency, the conversion efficiency of the charging IC at a medium frequency is smaller than the conversion efficiency of the charging IC at a medium-low frequency, and the conversion efficiency of the charging IC at a medium-low frequency is smaller than the conversion efficiency of the charging IC at a low frequency.
When the output current of the charging IC is [3A,4A ], the conversion efficiency of the charging IC at a high frequency is smaller than that of the charging IC at a medium-high frequency, the conversion efficiency of the charging IC at a medium-high frequency is smaller than that of the charging IC at a medium frequency, the conversion efficiency of the charging IC at a medium frequency is smaller than that of the charging IC at a low frequency, and the conversion efficiency of the charging IC at a low frequency is smaller than that of the charging IC at a medium-low frequency.
When the output current of the charging IC is (4,4.5), the conversion efficiency of the charging IC at the high frequency is smaller than the conversion efficiency of the charging IC at the medium-high frequency, the conversion efficiency of the charging IC at the medium-high frequency is smaller than the conversion efficiency of the charging IC at the low frequency, the conversion efficiency of the charging IC at the low frequency is smaller than the conversion efficiency of the charging IC at the medium frequency, and the conversion efficiency of the charging IC at the medium frequency is smaller than the conversion efficiency of the charging IC at the medium-low frequency.
When the output current of the charging IC is (4.5,6), the conversion efficiency of the charging IC at a high frequency is smaller than the conversion efficiency of the charging IC at a low frequency, the conversion efficiency of the charging IC at a low frequency is smaller than the conversion efficiency of the charging IC at a medium-high frequency, the conversion efficiency of the charging IC at a medium-high frequency is smaller than the conversion efficiency of the charging IC at a medium frequency, and the conversion efficiency of the charging IC at a medium frequency is smaller than the conversion efficiency of the charging IC at a medium-low frequency.
When the output current of the charging IC is greater than 6A, the conversion efficiency of the charging IC at a low frequency is smaller than that of the charging IC at a high frequency, the conversion efficiency of the charging IC at a high frequency is smaller than that of the charging IC at a medium-low frequency, the conversion efficiency of the charging IC at a medium-low frequency is smaller than that of the charging IC at a medium frequency, and the conversion efficiency of the charging IC at a medium frequency is smaller than that of the charging IC at a medium-high frequency.
Therefore, based on the relationship shown in fig. 5, the electronic device can determine the conversion efficiency corresponding to each frequency (i.e., high frequency, medium-high frequency, medium-low frequency, and low frequency) of the charging IC at each output current, so that the preset correspondence a between the conversion efficiency of the charging IC and the frequency at each output current can be determined.
When the frequency of the first charging IC is adjusted, the impedance of the path where the first charging IC is located is changed, so that the current input to the first charging IC and the current input to the second charging IC are changed, and both the first output current of the first charging IC and the second output current of the second charging IC are changed. For example, when the frequency of the first charging IC is adjusted to reduce the conversion efficiency of the first charging IC, the impedance of the path in which the first charging IC is located becomes large, so that the current input to the first charging IC becomes small, and the first output current of the first charging IC becomes small, and at the same time, the current input to the second charging IC becomes large, so that the second output current of the second charging IC becomes large. Therefore, to avoid adjusting the frequency of the first charging IC, the electronic device may determine, in conjunction with the maximum output current corresponding to the second charging IC, the frequency at which the first charging IC may be adjusted when determining the frequency at which the first charging IC may be adjusted, such that the second output current of the second charging IC is still less than the maximum output current corresponding to the second charging IC when adjusting the conversion efficiency of the first charging IC to a minimum. Similarly, in determining the frequency at which the second charging IC may adjust, the electronic device may determine the frequency at which the second charging IC may adjust in conjunction with the corresponding maximum output current of the first charging IC.
The process of determining the first target frequency of the first charging IC and/or determining the second target frequency of the second charging IC by the electronic device according to the first output current and/or the second output current will be described in detail below taking the preset correspondence a between the conversion efficiency of the charging IC and the frequency at each output current as an example when the frequency of the charging IC is high frequency (i.e., 750 KHz), medium frequency (i.e., 375 KHz) and low frequency (i.e., 187.5 KHz).
It will be appreciated that any charging IC will generally have a corresponding maximum output current to determine whether the charging IC is over-current by the maximum output current.
In one possible implementation manner, to avoid the first charging IC from overflowing, the electronic device may acquire a maximum output current corresponding to the first charging IC, and may determine whether the current first output current of the first charging IC exceeds the maximum output current corresponding to the first charging IC. When the current first output current of the first charging IC exceeds the maximum output current corresponding to the first charging IC, the electronic device may determine a first preset correspondence (i.e., a preset correspondence a corresponding to the first output current) between the conversion efficiency of the first charging IC and the frequency according to the current first output current of the first charging IC. Then, the electronic device determines a first target frequency of the first charging IC according to the current frequency of the first charging IC and the determined first preset corresponding relation, and adjusts the frequency of the first charging IC to the first target frequency so as to adjust the conversion efficiency of the first charging IC by adjusting the frequency of the first charging IC, thereby adjusting the first output current of the first charging IC, so that the first output current of the first charging IC is smaller than the corresponding maximum output current of the first charging IC, and the first charging IC is prevented from being over-flowed.
For example, when the current first output current of the first charging IC is 3A and the corresponding maximum output current of the first charging IC is 2A, that is, the current first output current of the first charging IC exceeds the corresponding maximum output current of the first charging IC, this indicates that the current conversion efficiency of the first charging IC is high, that is, the conversion efficiency of the first charging IC needs to be reduced. Since the current first output current of the first charging IC is 3A and is located in the interval of (0 a,4 a), the electronic device may determine the first target frequency of the first charging IC according to the first preset correspondence between the frequency of the charging IC and the conversion efficiency (i.e., the higher the frequency of the charging IC is, the lower the conversion efficiency of the charging IC is) and the current frequency of the first charging IC when the output current is (0 a,4 a), and may adjust the frequency of the first charging IC to the first target frequency to reduce the conversion efficiency of the first charging IC, thereby reducing the first output current of the first charging IC.
Assuming that the current frequency of the first charging IC is a medium frequency (i.e., 375 KHz), as known from the above-determined first preset correspondence (i.e., the higher the frequency of the charging IC is, the lower the conversion efficiency of the charging IC), if the conversion efficiency of the first charging IC is to be reduced, the frequency of the first charging IC needs to be increased, so the electronic device may determine that the first target frequency is a high frequency according to the current frequency (i.e., the medium frequency) of the first charging IC, i.e., the electronic device may adjust the frequency of the first charging IC from the current 375KHz to 750KHz, so as to reduce the conversion efficiency of the first charging IC by increasing the frequency of the first charging IC, thereby reducing the first output current of the first charging IC.
Similarly, to avoid the second charging IC from over-flowing, the electronic device may obtain a maximum output current corresponding to the second charging IC, and may determine whether the present second output current of the second charging IC exceeds the maximum output current corresponding to the second charging IC. When the current second output current of the second charging IC exceeds the maximum output current corresponding to the second charging IC, the electronic device may determine a second preset correspondence between the conversion efficiency of the second charging IC and the frequency (i.e., a preset correspondence a corresponding to the second output current) according to the current second output current of the second charging IC. Then, the electronic device may determine a second target frequency of the second charging IC according to the current frequency of the second charging IC and the determined second preset corresponding relationship, and adjust the frequency of the second charging IC to the second target frequency to adjust the conversion efficiency of the second charging IC, thereby adjusting the second output current of the second charging IC, so that the second output current of the second charging IC is smaller than the maximum output current corresponding to the second charging IC, and the second charging IC is prevented from being overcurrent.
For example, when the current second output current of the second charging IC is 5A and the corresponding maximum output current of the second charging IC is 4.5A, that is, the current output current of the second charging IC exceeds the corresponding maximum output current of the second charging IC, it indicates that the current conversion efficiency of the second charging IC is higher, that is, the conversion efficiency of the second charging IC needs to be reduced. Because the current output current of the second charging IC is 5A and is located in the interval of [4a,6a ], the electronic device may determine the second target frequency of the second charging IC according to the second preset correspondence between the frequency of the charging IC and the conversion efficiency and the current frequency of the second charging IC when the output current is [4a,6a ].
Assuming that the current frequency of the second charging IC is the medium frequency (i.e., 375 KHz), as known from the above-determined second preset correspondence (i.e., the conversion efficiency of the charging IC at the high frequency is smaller than the conversion efficiency of the charging IC at the low frequency, and the conversion efficiency of the charging IC at the low frequency is smaller than the conversion efficiency of the charging IC at the medium frequency), if the conversion efficiency of the second charging IC is to be reduced, the frequency of the second charging IC needs to be adjusted to the low frequency (i.e., 187.5 KHz), or the frequency of the second charging IC needs to be adjusted to the high frequency (i.e., 750 KHz), so the electronic device may determine that the second target frequency is the high frequency or the low frequency, i.e., the electronic device may adjust the frequency of the second charging IC from the current 375KHz to 750KHz, or from the current 375KHz to 187.5KHz, so as to reduce the second output current of the second charging IC.
It should be noted that, the above determination of the first target frequency of the first charging IC according to the corresponding maximum output current of the first charging IC is only exemplary and should not be construed as limiting the embodiments of the present application. In some embodiments, the electronic device may also determine the first target frequency of the first charging IC based on the limiting current corresponding to the first charging IC.
The limiting current corresponding to the first charging IC may be determined according to a current charging state of a battery corresponding to the first charging IC (i.e., a battery for which the first charging IC is configured to charge). For example, when the battery corresponding to the first charging IC is currently in the constant current charging state, the limiting current corresponding to the first charging IC may be larger, and when the battery corresponding to the first charging IC is currently in the constant voltage charging state, the limiting current corresponding to the first charging IC may be smaller.
Similarly, the electronic device may also determine the second target frequency of the second charging IC based on the limiting current corresponding to the second charging IC.
It should be appreciated that when the electronic device further includes a third charging IC, the electronic device may obtain a third output current of the third charging IC and determine whether the third output current is greater than a maximum output current corresponding to the third charging IC. When the third output current is greater than the maximum output current corresponding to the third charging IC, the electronic device may determine a preset correspondence a between the conversion efficiency of the third charging IC and the frequency according to the third output current, and determine a third target frequency of the third charging IC according to the current frequency of the third charging IC and the determined preset correspondence a, so as to adjust the frequency of the third charging IC to the third target frequency.
In another possible implementation, as shown in fig. 2, when the electronic device includes only one battery, the electronic device may charge the battery through the first charging IC and the second charging IC disposed in parallel, that is, the first output current of the first charging IC and the second output current of the second charging IC may be both input to the battery to rapidly charge the battery through a large current. The first output current of the first charging IC and the second output current of the second charging IC are input into the battery from different ports, and if the difference between the first output current and the second output current is large, local heating of the battery is serious in the charging process, so that charging interruption may be caused, and user experience is affected.
Therefore, in order to avoid that the local input current of the battery is larger, so that the local heating of the battery is serious, and the electronic equipment is broken, etc., a first preset current ratio which needs to be met by the current ratio between the first output current and the second output current can be set in the electronic equipment, so that the frequency of the first charging IC and/or the frequency of the second charging IC can be adjusted according to the first preset current ratio, and the conversion efficiency of the first charging IC and/or the conversion efficiency of the second charging IC can be adjusted, and the first output current of the first charging IC and/or the second output current of the second charging IC can be adjusted.
The first preset current ratio may be stored in other electronic devices or cloud devices that are communicatively connected to the electronic device. The first preset current ratio may be a ratio interval, and the first preset current ratio may be specifically determined by a technician according to an actual scenario, which is not specifically limited in the embodiment of the present application. For example, the technician may determine the first preset current ratio according to the original impedance of the path in which the first charging IC is located and the original impedance of the path in which the second charging IC is located at the initial time (e.g., when the electronic device is shipped).
For example, if the original impedance of the path of the first charging IC is the same as the original impedance of the path of the second charging IC, the first output current of the first charging IC and the second output current of the second charging IC should be approximately the same, and at this time, the first preset current ratio may be set to [0.9,1.1].
It should be understood that, when the electronic device further includes a third charging IC, the first preset current ratio may be a ratio interval that needs to be satisfied between the first output current of the first charging IC, the second output current of the second charging IC, and the third output current of the third charging IC. The electronic device may adjust one or more of the frequency of the first charging IC, the frequency of the second charging IC, and the frequency of the third charging IC according to the present current ratios of the first output current, the second output current, and the third output current, and the first preset current ratio. Hereinafter, an example will be described in which the electronic device includes a first charging IC and a second charging IC.
For example, when the current ratio between the first output current of the first charging IC and the second output current of the second charging IC does not satisfy the first preset current ratio, for example, when the current ratio between the first output current and the second output current is greater than a maximum value of the first preset current ratios, or when the current ratio between the first output current and the second output current is less than a minimum value of the first preset current ratios, the electronic device may determine the first target frequency of the first charging IC according to the first output current, the second output current, and the first preset current ratio, and/or determine the second target frequency of the second charging IC, and adjust the frequency of the first charging IC according to the first target frequency, and/or adjust the frequency of the second charging IC according to the second target frequency, so that the current ratio between the first output current and the second output current satisfies the first preset current ratio.
In one example, when the current ratio between the first output current and the second output current is greater than the maximum value of the first preset current ratios, the electronic device may determine that the current first output current of the first charging IC is greater, at this time, the electronic device may adjust the frequency of the first charging IC according to the first output current, that is, determine a first preset correspondence between the conversion efficiency of the first charging IC and the frequency according to the first output current, and determine a first target frequency of the first charging IC according to the determined first preset correspondence and the current frequency of the first charging IC, so as to adjust the frequency of the first charging IC to the first target frequency, to reduce the conversion efficiency of the first charging IC, thereby reducing the first output current of the first charging IC, so that the current ratio between the first output current and the second output current satisfies the first preset current ratio.
Optionally, when the frequency of the first charging IC is adjusted so that the conversion efficiency of the first charging IC decreases to the minimum, if the current ratio between the first output current and the second output current still does not satisfy the first preset current ratio, for example, if the current ratio between the first output current and the second output current is still greater than the maximum value in the first preset current ratio, the electronic device may determine that the current second output current of the second charging IC is smaller, and at this time, the electronic device may adjust the frequency of the second charging IC according to the current second output current of the second charging IC, that is, may determine a second preset correspondence between the conversion efficiency of the second charging IC and the frequency according to the second output current, and determine a second target frequency corresponding to the second charging IC according to the determined second preset correspondence and the current frequency of the second charging IC, so as to adjust the frequency of the second charging IC to the second target frequency to increase the conversion efficiency of the second charging IC, thereby increasing the second output current of the second charging IC so that the current ratio between the first output current and the second charging IC satisfies the first preset current ratio.
For example, when the first preset current ratio is [0.9,1.1], initially, a current ratio between a first output current of the first charging IC and a second output current of the second charging IC generally satisfies the first preset current ratio. The current input to the first charging IC and/or the second charging IC by the charger is changed due to the impedance change of the path where the first charging IC is located or the impedance change of the path where the second charging IC is located, so that the current first output current of the first charging IC and/or the current second output current of the second charging IC are changed. Assuming that the current first output current of the first charging IC is 3A and the current second output current of the second charging IC is 2A, that is, the current ratio between the first output current and the second output current is 1.5:1, the electronic device may determine that the current first output current of the first charging IC is larger.
At this time, the electronic device may adjust the frequency of the first charging IC according to the first output current (i.e., 3A), for example, when the output current is (0 a,4 a), the electronic device may determine the first target frequency of the first charging IC according to the first preset correspondence between the frequency of the charging IC and the conversion efficiency (i.e., the higher the frequency of the charging IC, the lower the conversion efficiency of the charging IC) and the current frequency of the first charging IC, and may adjust the frequency of the first charging IC to the first target frequency to reduce the conversion efficiency of the first charging IC, so as to reduce the first output current of the first charging IC, so that the current ratio between the first output current and the second output current may satisfy the first preset current ratio, i.e., the current ratio between the first output current and the second output current may be located [0.9,1.1].
When the frequency of the first charging IC is adjusted to a high frequency (i.e. 750 KHz), the conversion efficiency of the first charging IC is reduced to a minimum, and at this time, if the current ratio between the first output current and the second output current is still greater than 1.1, for example, when the current ratio between the first output current and the second output current is 1.2:1, the electronic device may determine that the current second output current of the second charging IC is smaller, and at this time, the electronic device may adjust the frequency of the second charging IC according to the second output current (i.e. 2A) to increase the conversion efficiency of the second charging IC, so as to increase the second output current of the second charging IC, thereby making the current ratio between the first output current and the second output current be located [0.9,1.1].
Optionally, when the current ratio between the first output current and the second output current is greater than the maximum value of the first preset current ratios, when the frequency of the first charging IC is adjusted according to the first target frequency so that the conversion efficiency of the first charging IC is reduced, if the current ratio between the first output current and the second output current still does not satisfy the first preset current ratio, for example, is still greater than the maximum value of the first preset current ratios, the electronic device may directly determine the second target frequency of the second charging IC according to the adjusted current ratio between the first output current and the second output current and the first preset current ratio, so as to adjust the frequency of the second charging IC according to the second target frequency, thereby improving the conversion efficiency of the second charging IC, and improving the second output current of the second charging IC so that the current ratio between the first output current and the second output current satisfies the first preset current ratio.
That is, the electronic device may adjust the current ratio between the first output current and the second output current by sequentially adjusting the frequency of the first charging IC according to the current ratio between the first output current and the second output current and the first preset current ratio. When the frequency of the first charging IC is adjusted so that the conversion efficiency of the first charging IC reaches an extremum, if the current ratio between the first output current and the second output current still does not meet the first preset current ratio, the electronic device can adjust the frequency of the second charging IC according to the current ratio between the first output current and the second output current. Alternatively, the electronic device may adjust the frequency of the first charging IC according to the current ratio between the first output current and the second output current and the first preset current ratio to adjust the current ratio between the first output current and the second output current. After the frequency of the first charging IC is adjusted, if the current ratio between the first output current and the second output current still does not meet the first preset current ratio, the electronic device may adjust the frequency of the second charging IC according to the current ratio between the first output current and the second output current. After the frequency of the second charging IC is adjusted, if the current ratio between the first output current and the second output current still does not meet the first preset current ratio, the electronic device may adjust the frequency of the first charging IC according to the current ratio between the first output current and the second output current, and then adjust the frequency according to the cycle. It should be appreciated that the subsequent process of adjusting the frequency of the second charging IC and adjusting the frequency of the first charging IC is similar.
When the current ratio between the first output current and the second output current is greater than the maximum value of the first preset current ratios, the electronic device may determine that the current second output current of the second charging IC is smaller, at this time, the electronic device may determine a second preset correspondence between the conversion efficiency of the second charging IC and the frequency according to the second output current, and determine a second target frequency of the second charging IC according to the second preset correspondence and the current frequency of the second charging IC, so as to adjust the frequency of the second charging IC to the second target frequency, thereby increasing the conversion efficiency of the second charging IC, and increasing the second output current of the second charging IC, so that the current ratio between the first output current and the second output current satisfies the first preset current ratio.
Similarly, when the frequency of the second charging IC is adjusted according to the second target frequency so that the conversion efficiency of the second charging IC is improved, if the current ratio between the first output current and the second output current does not meet the first preset current ratio, the electronic device may directly determine the first preset correspondence between the conversion efficiency of the first charging IC and the frequency according to the first output current, and determine the first target frequency of the first charging IC according to the first preset correspondence and the current frequency of the first charging IC, so as to adjust the frequency of the first charging IC to the first target frequency, thereby reducing the conversion efficiency of the first charging IC, and reducing the first output current of the first charging IC so that the current ratio between the first output current and the second output current meets the first preset current ratio.
Or when the frequency of the second charging IC is adjusted so that the conversion efficiency of the second charging IC is increased to the maximum, if the current ratio between the first output current and the second output current still does not meet the first preset current ratio, the electronic device may determine a first preset correspondence between the conversion efficiency of the first charging IC and the frequency according to the first output current, and determine a first target frequency of the first charging IC according to the first preset correspondence and the current frequency of the first charging IC, so as to adjust the frequency of the first charging IC to the first target frequency, thereby reducing the conversion efficiency of the first charging IC, and further reducing the first output current of the first charging IC so that the current ratio between the first output current and the second output current meets the first preset current ratio.
It should be noted that, when the current ratio between the first output current and the second output current is greater than the maximum value in the first preset current ratio, the electronic device may determine that the current first output current of the first charging IC is greater, and the current second output current of the second charging IC is smaller, at this time, the electronic device may determine a first preset correspondence between the conversion efficiency of the first charging IC and the frequency according to the first output current, and determine the first target frequency of the first charging IC according to the first preset correspondence and the current frequency of the first charging IC, so as to adjust the frequency of the first charging IC to the first target frequency, thereby reducing the conversion efficiency of the first charging IC and reducing the first output current of the first charging IC. Meanwhile, the electronic device may determine a second preset correspondence between conversion efficiency of the second charging IC and frequency according to the second output current, and determine a second target frequency of the second charging IC according to the second preset correspondence and the current frequency of the second charging IC, so as to adjust the frequency of the second charging IC to the second target frequency, thereby improving the conversion efficiency of the second charging IC, and further increasing the second output current of the second charging IC, so that a current ratio between the first output current and the second output current satisfies the first preset current ratio.
In another example, when the current ratio between the first output current and the second output current is smaller than the minimum value in the first preset current ratio, the electronic device may determine that the current first output current of the first charging IC is smaller, at this time, the electronic device may adjust the frequency of the first charging IC according to the first output current, that is, determine a first preset correspondence between the conversion efficiency of the first charging IC and the frequency according to the first output current, and adjust the frequency of the first charging IC according to the determined first preset correspondence and the current frequency of the first charging IC, so as to increase the conversion efficiency of the first charging IC, so that the current ratio between the first output current and the second output current satisfies the first preset current ratio.
Optionally, when the frequency of the first charging IC is adjusted so that the conversion efficiency of the first charging IC is increased to the maximum, if the current ratio between the first output current and the second output current still does not satisfy the first preset current ratio, for example, the current ratio between the first output current and the second output current is still smaller than the minimum value in the first preset current ratio, the electronic device may determine that the current second output current of the second charging IC is larger, and at this time, the electronic device may adjust the frequency of the second charging IC according to the second output current of the second charging IC to reduce the conversion efficiency of the second charging IC so as to reduce the second output current of the second charging IC, so that the current ratio between the first output current and the second output current satisfies the first preset current ratio.
For example, when the first preset current ratio is [0.9,1.1], if the current first output current of the first charging IC is 4A, the current second output current of the second charging IC is 5A, that is, the current ratio between the first output current and the second output current is 0.8:1, the electronic device may determine that the current first output current of the first charging IC is smaller, at this time, the electronic device may adjust the frequency of the first charging IC according to the first output current (that is, 4A), that is, the electronic device may increase the conversion efficiency of the first charging IC by the first preset correspondence between the frequency of the charging IC and the conversion efficiency (that is, the conversion efficiency of the charging IC when the charging IC is at a high frequency is smaller than the conversion efficiency of the charging IC when the charging IC is at a low frequency, that is smaller than the conversion efficiency of the charging IC when the charging IC is at a medium frequency) and the current frequency of the first charging IC, and may adjust the frequency of the first charging IC to the first target frequency to increase the conversion efficiency of the first charging IC according to the output current [4A,6a ], so that the first output current of the first charging IC is at a high frequency and [0.9,1.1] is higher than the current.
When the frequency of the first charging IC is adjusted to a medium frequency (i.e., 375 KHz), and the conversion efficiency of the first charging IC is increased to the maximum, if the current ratio between the first output current and the second output current is still less than 0.9, for example, when the current ratio between the first output current and the second output current is 0.85:1, the electronic device may determine that the current second output current of the second charging IC is larger, and at this time, the electronic device may adjust the frequency of the second charging IC according to the second output current to reduce the conversion efficiency of the second charging IC, so as to reduce the second output current of the second charging IC, thereby making the current ratio between the first output current and the second output current be [0.9,1.1].
Optionally, when the current ratio between the first output current and the second output current is smaller than the minimum value of the first preset current ratios, when the frequency of the first charging IC is adjusted according to the first target frequency so that the conversion efficiency of the first charging IC is improved, if the current ratio between the first output current and the second output current still does not satisfy the first preset current ratio, for example, is still smaller than the minimum value of the first preset current ratios, the electronic device may determine the second target frequency of the second charging IC according to the adjusted current ratio between the first output current and the second output current and the first preset current ratio, so as to adjust the frequency of the second charging IC according to the second target frequency, thereby reducing the conversion efficiency of the second charging IC, and reducing the second output current of the second charging IC so that the current ratio between the first output current and the second output current satisfies the first preset current ratio.
When the current ratio between the first output current and the second output current is smaller than the minimum value in the first preset current ratio, the electronic device may determine that the current second output current of the second charging IC is larger, at this time, the electronic device may determine a second preset correspondence between the conversion efficiency of the second charging IC and the frequency according to the second output current, and determine a second target frequency of the second charging IC according to the second preset correspondence and the current frequency of the second charging IC, so as to adjust the frequency of the second charging IC to the second target frequency, thereby reducing the conversion efficiency of the second charging IC, and reducing the second output current of the second charging IC, so that the current ratio between the first output current and the second output current satisfies the first preset current ratio.
Similarly, when the frequency of the second charging IC is adjusted according to the second target frequency so that the conversion efficiency of the second charging IC is reduced, if the current ratio between the first output current and the second output current still does not meet the first preset current ratio, the electronic device may determine a first preset correspondence between the conversion efficiency of the first charging IC and the frequency according to the first output current, and determine the first target frequency of the first charging IC according to the first preset correspondence and the current frequency of the first charging IC, so as to adjust the frequency of the first charging IC to the first target frequency, thereby improving the conversion efficiency of the first charging IC, and further improving the first output current of the first charging IC so that the current ratio between the first output current and the second output current meets the first preset current ratio.
Or when the frequency of the second charging IC is adjusted so that the conversion efficiency of the second charging IC is reduced to the minimum, if the current ratio between the first output current and the second output current still does not meet the first preset current ratio, the electronic device may determine a first preset correspondence between the conversion efficiency of the first charging IC and the frequency according to the first output current, and determine a first target frequency of the first charging IC according to the first preset correspondence and the current frequency of the first charging IC, so as to adjust the frequency of the first charging IC to the first target frequency, thereby improving the conversion efficiency of the first charging IC, and further improving the first output current of the first charging IC so that the current ratio between the first output current and the second output current meets the first preset current ratio.
It should be noted that, when the current ratio between the first output current and the second output current is smaller than the minimum value in the first preset current ratio, the electronic device may determine that the current first output current of the first charging IC is smaller, and the current second output current of the second charging IC is larger, at this time, the electronic device may determine a first preset correspondence between the conversion efficiency of the first charging IC and the frequency according to the first output current, and adjust the frequency of the first charging IC according to the first preset correspondence between the conversion efficiency of the first charging IC and the frequency and the current frequency of the first charging IC, so as to increase the conversion efficiency of the first charging IC and increase the first output current of the first charging IC. Meanwhile, the electronic device may determine a second preset correspondence between the conversion efficiency of the second charging IC and the frequency according to the second output current, and determine a second target frequency of the second charging IC according to the second preset correspondence between the conversion efficiency of the second charging IC and the frequency and the current frequency of the second charging IC, so as to adjust the frequency of the second charging IC to the second target frequency, thereby reducing the conversion efficiency of the second charging IC, and reducing the second output current of the second charging IC, so that the current ratio between the first output current and the second output current satisfies the first preset current ratio.
In an exemplary embodiment, when adjusting the frequency of the first charging IC and/or adjusting the frequency of the second charging IC according to the current ratio between the first output current and the second output current and the first preset current ratio to adjust the first output current of the first charging IC and/or adjust the second output current of the second charging IC, the electronic device may adjust the first output current of the first charging IC and/or the second output current of the second charging IC in combination with the maximum output current corresponding to the first charging IC and/or the maximum output current corresponding to the second charging IC, so that the current ratio between the first output current and the second output current satisfies the first preset current ratio while the first output current adjusted by the first charging IC is less than or equal to the maximum output current corresponding to the first charging IC and the second output current adjusted by the second charging IC is less than or equal to the maximum output current corresponding to the second charging IC.
That is, when the frequency of the first charging IC is adjusted according to the current ratio between the first output current and the second output current and the first preset current ratio, so that the conversion efficiency of the first charging IC is improved, and thus the first output current of the first charging IC is increased, the electronic device may determine the first target frequency of the first charging IC in combination with the maximum output current corresponding to the first charging IC, so as to improve the conversion efficiency of the first charging IC and increase the first output current of the first charging IC on the basis of ensuring that the adjusted first output current of the first charging IC is less than or equal to the maximum output current corresponding to the first charging IC.
For example, the electronic device may determine a maximum conversion efficiency that the first charging IC may achieve in the current adjustment based on a maximum output current corresponding to the first charging IC, and determine one or more candidate frequencies that the first charging IC may adjust based on the maximum conversion efficiency. Accordingly, the electronic device may determine the first target frequency of the first charging IC from the one or more candidate frequencies when determining the first target frequency of the first charging IC based on the current ratio between the first output current and the second output current and the first preset current ratio.
Similarly, when the frequency of the second charging IC is adjusted according to the current ratio between the first output current and the second output current and the first preset current ratio, so that the conversion efficiency of the second charging IC is improved, and the second output current of the second charging IC is increased, the electronic device may determine the second target frequency of the second charging IC in combination with the maximum output current corresponding to the second charging IC, so as to improve the conversion efficiency of the second charging IC and increase the second output current of the second charging IC on the basis of ensuring that the adjusted second output current of the second charging IC is less than or equal to the maximum output current corresponding to the second charging IC.
In another possible implementation, as shown in fig. 3, when the electronic device includes at least two batteries, for example, when the electronic device includes a first battery and a second battery, the electronic device may charge the first battery through the first charging IC and may charge the second battery through the second charging IC. That is, a first output current of the first charging IC may be input to the first battery to charge the first battery, and a second output current of the second charging IC may be input to the second battery to charge the second battery. At this time, in order to make the charging speed of the first battery and the charging speed of the second battery satisfy a preset requirement (for example, a requirement that the first battery and the second battery are simultaneously charged, hereinafter, an example will be described in which the requirement that the first battery and the second battery are simultaneously charged is taken as an example), a second preset current ratio, which is required to be satisfied by a current ratio between a first output current of the first charging IC and a second output current of the second charging IC, may be set.
It should be noted that, similar to the first preset current ratio, the second preset current ratio may also be a ratio interval, and the second preset current ratio may also be specifically determined by a technician according to an actual scenario, which is not specifically limited in the embodiment of the present application. For example, the technician may determine the second preset current ratio according to the original impedance of the path in which the first charging IC is located and the original impedance of the path in which the second charging IC is located, and the rated capacity of the first battery and the rated capacity of the second battery at the time of initial (e.g., when the electronic device is shipped). It should be understood that the rated capacity of the first battery and the rated capacity of the second battery may be determined according to the specific situation of the batteries, which is not limited in any way by the embodiments of the present application.
For example, when the rated capacity of the first battery is the same as the rated capacity of the second battery, and the original impedance of the path of the first charging IC is the same as the original impedance of the path of the second charging IC initially, if the first battery and the second battery are made to be full at the same time, the first output current of the first charging IC and the second output current of the second charging IC should be substantially the same, and at this time, the second preset current ratio may be set to [0.9,1.1].
For example, when the rated capacity of the first battery and the rated capacity of the second battery are 2:1, and the original impedance of the path of the first charging IC is the same as the original impedance of the path of the second charging IC initially, if the first battery and the second battery are made to be full at the same time, the first output current of the first charging IC and the second output current of the second charging IC should be 2:1, at this time, the second preset current ratio may be set to [2.1,0.9].
Therefore, the electronic device may adjust the frequency of the first charging IC and/or adjust the frequency of the second charging IC according to the first output current of the first charging IC, the second output current of the second charging IC, and the second preset current ratio, thereby adjusting the conversion efficiency of the first charging IC and/or adjusting the conversion efficiency of the second charging IC, thereby adjusting the first output current of the first charging IC and/or adjusting the second output current of the second charging IC, so that the first output current of the first charging IC and the second output current of the second charging IC satisfy the second preset current ratio.
It should be understood that the principle that the electronic device adjusts the frequency of the first charging IC according to the second preset current ratio and/or adjusts the frequency of the second charging IC is substantially the same as that of the foregoing electronic device adjusts the frequency of the first charging IC according to the first preset current ratio and/or adjusts the frequency of the second charging IC, and specific content may refer to the foregoing content of adjusting the frequency of the first charging IC according to the first preset current ratio and/or adjusting the frequency of the second charging IC, which will not be described herein.
When the electronic device further includes a third charging IC and a third battery, the electronic device may charge the third battery through the third charging IC. At this time, similar to the aforementioned first preset current ratio, the second preset current ratio may be a ratio interval that needs to be satisfied between the first output current of the first charging IC, the second output current of the second charging IC, and the third output current of the third charging IC. The electronic device may adjust one or more of the frequency of the first charging IC, the frequency of the second charging IC, and the frequency of the third charging IC according to the present current ratios of the first output current, the second output current, and the third output current, and the second preset current ratio.
In another possible implementation manner, the electronic device may acquire the current input current, the current voltage and the current temperature of the battery, and may determine the maximum current input allowed by the battery according to the current voltage, the current temperature and the third preset correspondence. Then, the electronic device may adjust the frequency of the first charging IC and/or adjust the frequency of the second charging IC according to the current input current of the battery and the current maximum input current allowed by the battery, so as to adjust the first output current of the first charging IC and/or adjust the second output current of the second charging IC, thereby adjusting the input current of the battery, so as to avoid the battery from being over-current and damage to the battery in the charging process.
It should be noted that, the third preset correspondence is a correspondence between the maximum input current allowed by each battery and the voltage at each temperature. The third preset relationship may be stored in the electronic device, or stored in another electronic device or cloud connected to the electronic device in a communication manner. The electronic device may measure the present voltage of the battery by means of a voltage measuring device. It should be understood that the third preset correspondence and the voltage measurement device may be specifically set by a technician according to an actual scenario, which is not limited in any way in the embodiments of the present application.
In one example, when the electronic device includes only one battery, that is, when the first output current of the first charging IC and the second output current of the second charging IC are both input to the battery, the current measurement devices C may be respectively provided at the respective input terminals of the battery, and the electronic device may obtain the current input current of the battery through the current measurement devices C. Similar to the aforementioned current measurement device a and current measurement device B, the current measurement device C may be specifically set according to the actual scenario, which is not limited in any way by the embodiment of the present application.
When the current input current of the battery is greater than the current allowable maximum input current of the battery, the electronic device may determine a first target frequency of the first charging IC according to the current first output current of the first charging IC and the current frequency of the first charging IC, and adjust the frequency of the first charging IC to the first target frequency, so as to reduce the conversion efficiency of the first charging IC, reduce the first output current of the first charging IC, and reduce the current input by the first charging IC to the battery, thereby reducing the input current of the battery.
Alternatively, the electronic device may determine the second target frequency of the second charging IC according to the current second output current of the second charging IC and the current frequency of the second charging IC, and adjust the frequency of the second charging IC to the second target frequency to reduce the conversion efficiency of the second charging IC, reduce the second output current of the second charging IC, and reduce the current input to the battery by the second charging IC, thereby reducing the input current of the battery.
In another example, when the electronic apparatus includes at least a first battery and a second battery, that is, when a first output current of the first charging IC is input to the first battery and a second output current of the second charging IC is input to the second battery, the current measuring device D may be provided at an input terminal of the first battery and the current measuring device E may be provided at an input terminal of the second battery. The electronic device may obtain the first input current of the first battery via the current measuring means D and/or may obtain the second input current of the second battery via the current measuring means E.
For example, when the first input current of the first battery is greater than the maximum current allowed by the first battery, the electronic device may determine a first target frequency of the first charging IC according to the current first output current of the first charging IC and the current frequency of the first charging IC, and adjust the frequency of the first charging IC to the first target frequency to reduce the conversion efficiency of the first charging IC, reduce the first output current of the first charging IC, and thereby reduce the first input current of the first battery.
For example, when the second input current of the second battery is greater than the maximum current allowed by the second battery, the electronic device may determine a second target frequency of the second charging IC according to the current second output current of the second charging IC and the current frequency of the second charging IC, and adjust the frequency of the second charging IC to the second target frequency to reduce the conversion efficiency of the second charging IC, reduce the second output current of the second charging IC, and thereby reduce the second input current of the second battery.
Optionally, when adjusting the frequency of the first charging IC according to the first input current of the first battery to adjust the first output current of the first charging IC, the electronic device may adjust the frequency of the first charging IC in combination with the maximum output current and/or the second preset current ratio corresponding to the first charging IC, so that the adjusted first output current of the first charging IC is smaller than or equal to the maximum output current corresponding to the first charging IC, and/or so that the current ratio between the adjusted first output current of the first charging IC and the second output current of the second charging IC satisfies the second preset current ratio.
Similarly, when adjusting the frequency of the second charging IC according to the second input current of the second battery to adjust the second output current of the second charging IC, the electronic device may adjust the second output current of the second charging IC in combination with the corresponding maximum output current of the second charging IC and/or the second preset current ratio, so that the adjusted second output current of the second charging IC is smaller than or equal to the corresponding maximum output current of the second charging IC, and/or so that the current ratio between the first output current of the first charging IC and the adjusted second output current of the second charging IC satisfies the second preset current ratio.
It should be appreciated that when the electronic device further includes a third battery, the electronic device may obtain a third input current of the third battery and determine whether the third input current is greater than a maximum input current corresponding to the third battery. When the third input current is greater than the maximum current allowed by the third battery, the electronic device may determine a third target frequency of the third charging IC according to the current third output current of the third charging IC and the current frequency of the third charging IC, and adjust the frequency of the third charging IC to the third target frequency, so as to reduce the conversion efficiency of the third charging IC, reduce the second output current of the third charging IC, and thereby reduce the third input current of the third battery.
Based on the above embodiments, the charging method provided in the embodiments of the present application is described below as an example. The contents of the above embodiments are applicable to the present embodiment. Referring to fig. 6, fig. 6 shows a schematic flowchart of a charging method according to an embodiment of the present application. The method can be applied to an electronic device at least comprising a first charging chip and a second charging chip. As shown in fig. 6, the method may include:
and S601, when the electronic equipment is detected to be in a charging state, the electronic equipment acquires a first output current of the first charging chip or acquires a first output current of the first charging chip and a second output current of the second charging chip.
The specific manner of determining whether the electronic device is in the charging state may refer to the foregoing specific description about determining whether the electronic device is in the charging state, which is not described herein.
For example, the electronic device may determine whether the electronic device is in a charged state based on whether a USB interface of the electronic device receives a charging input of the wired charger.
For example, the electronic device may determine whether the electronic device is in a charged state based on whether the wireless charging coil of the electronic device is receiving wireless charging input.
It should be understood that the first output current refers to the current at the output of the first charging chip (i.e., the first charging IC), and the second output current refers to the current at the output of the second charging chip (i.e., the second charging IC). The method for obtaining the first output current and the second output current may refer to the foregoing description, and will not be described herein.
S602, the electronic device determines a first target frequency of the first charging chip according to the first output current, or determines the first target frequency of the first charging chip according to the first output current and the second output current.
In one example, the electronic device may determine whether a first output current of the first charging IC is greater than a corresponding maximum output current of the first charging IC. When the first output current is greater than the maximum output current corresponding to the first charging IC, the electronic device may determine a first preset correspondence between the conversion efficiency of the first charging IC and the frequency according to the first output current, and determine a first target frequency of the first charging IC according to the determined first preset correspondence and the current frequency of the first charging IC, so as to adjust the frequency of the first charging IC to the first target frequency, thereby reducing the conversion efficiency of the first charging IC and reducing the first output current of the first charging IC.
In another example, the electronic device may also determine a second target frequency of the second charging IC based on the second output current, or based on the first output current and the second output current, and adjust the frequency of the second charging IC based on the second target frequency. For example, the electronic device may determine whether the second output current of the second charging IC is greater than a corresponding maximum output current of the second charging IC. When the second output current is greater than the maximum output current corresponding to the second charging IC, the electronic device may determine, according to the second output current, a second preset correspondence between conversion efficiency of the second charging IC and frequency, and may determine, according to the determined second preset correspondence and the current frequency of the second charging IC, a second target frequency of the second charging IC, so as to adjust the frequency of the second charging IC to the second target frequency, thereby reducing the conversion efficiency of the second charging IC and reducing the second output current of the second charging IC.
The specific content of the first preset correspondence between the conversion efficiency of the first charging IC and the frequency determined by the electronic device according to the first output current may refer to the foregoing specific description, which is not repeated herein. For example, the electronic device may determine, according to the relationship shown in fig. 4, a first preset correspondence relationship between the conversion efficiency of the first charging IC and the frequency at the first output current. Similarly, the specific content of the second preset correspondence between the conversion efficiency and the frequency of the second charging IC determined by the electronic device according to the second output current may also refer to the foregoing specific description, which is not repeated herein.
In another example, when the electronic device includes only one battery, the electronic device may determine the first target frequency of the first charging IC and/or determine the second target frequency of the second charging IC according to a current ratio between the first output current of the first charging IC and the second output current of the second charging IC and a first preset current ratio. When the electronic device includes at least two batteries, the electronic device may determine a first target frequency of the first charging IC and/or determine a second target frequency of the second charging IC according to a current ratio between a first output current of the first charging IC and a second output current of the second charging IC and a second preset current ratio.
The first preset current ratio and the second preset current ratio are respectively the ratio relation satisfied by the current ratios between the first output current of the first charging IC and the second output current of the second charging IC. It should be appreciated that the determination of the first preset current ratio and the second preset current ratio may refer to the foregoing determination of the first preset current ratio and the second preset current ratio, which are not described herein. For example, the first preset current ratio may be determined according to an original impedance of a path in which the first charging IC is located and an original impedance of a path in which the second charging IC is located. For example, the second preset current ratio may be determined according to the original impedance of the path in which the first charging IC is located and the original impedance of the path in which the second charging IC is located, and the rated capacity of the first charging IC and the rated capacity of the second charging IC.
It should be appreciated that, the electronic device may determine the first target frequency of the first charging IC according to the current ratio between the first output current of the first charging IC and the second output current of the second charging IC and the first preset current ratio, and/or the specific content of determining the second target frequency of the second charging IC may refer to the foregoing description and will not be repeated herein. Similarly, the electronic device may determine the first target frequency of the first charging IC according to the current ratio between the first output current of the first charging IC and the second output current of the second charging IC and the second preset current ratio, and/or determine the second target frequency of the second charging IC.
In one possible implementation, when adjusting the frequency of the first charging IC and/or adjusting the frequency of the second charging IC according to the current ratio between the first output current and the second output current and the first preset current ratio (or the second preset current ratio) to adjust the first output current of the first charging IC and/or adjust the second output current of the second charging IC, the electronic device may adjust the first output current of the first charging IC and/or the second output current of the second charging IC in combination with the maximum output current corresponding to the first charging IC and/or the maximum output current corresponding to the second charging IC, so that the current ratio between the first output current and the second output current satisfies the first preset current ratio (or the second preset current ratio) while the first output current adjusted by the first charging IC is smaller than or equal to the maximum output current corresponding to the first charging IC and the second output current adjusted by the second charging IC is smaller than or equal to the maximum output current corresponding to the second charging IC. The specific combination manner may refer to the description of the related content, and will not be repeated herein.
In another possible implementation manner, the electronic device may acquire the current input current, the current voltage and the current temperature of the battery, and may determine the maximum current input allowed by the battery according to the current voltage, the current temperature and the third preset correspondence. Then, the electronic device may adjust the frequency of the first charging IC and/or adjust the frequency of the second charging IC according to the current input current of the battery and the current maximum input current allowed by the battery, so as to adjust the first output current of the first charging IC and/or adjust the second output current of the second charging IC, thereby adjusting the input current of the battery, so as to avoid the battery from being over-current and damage to the battery in the charging process.
The specific content of the third preset corresponding relationship may refer to the foregoing specific description about the third preset corresponding relationship, which is not described herein. In addition, according to the current voltage, temperature and third preset corresponding relation of the battery, the specific content of adjusting the frequency of the first charging IC and/or adjusting the frequency of the second charging IC may refer to the specific description of adjusting the frequency of the first charging IC and/or adjusting the frequency of the second charging IC according to the third preset corresponding relation, which is not described herein again.
For example, when the electronic device includes only one battery, if the current input current of the battery is greater than the current allowed maximum input current of the battery, the electronic device may determine the first target frequency of the first charging IC according to the current first output current of the first charging IC and the current frequency of the first charging IC, and adjust the frequency of the first charging IC to the first target frequency, so as to reduce the conversion efficiency of the first charging IC, reduce the first output current of the first charging IC, reduce the current input by the first charging IC to the battery, and thereby reduce the input current of the battery.
Alternatively, the electronic device may determine the second target frequency of the second charging IC according to the current second output current of the second charging IC and the current frequency of the second charging IC, and adjust the frequency of the second charging IC to the second target frequency to reduce the conversion efficiency of the second charging IC, reduce the second output current of the second charging IC, and reduce the current input to the battery by the second charging IC, thereby reducing the input current of the battery.
For example, when the electronic device includes at least a first battery and a second battery, that is, when a first output current of the first charging IC is input to the first battery and a second output current of the second charging IC is input to the second battery, if the first input current of the first battery is greater than a maximum current allowed by the first battery, the electronic device may determine a first target frequency of the first charging IC according to the current first output current of the first charging IC and the current frequency of the first charging IC, and adjust the frequency of the first charging IC to the first target frequency to reduce the conversion efficiency of the first charging IC, and reduce the first output current of the first charging IC, thereby reducing the first input current of the first battery.
If the second input current of the second battery is greater than the maximum current allowed by the second battery, the electronic device may determine a second target frequency of the second charging IC according to the current second output current of the second charging IC and the current frequency of the second charging IC, and adjust the frequency of the second charging IC to the second target frequency, so as to reduce the conversion efficiency of the second charging IC, reduce the second output current of the second charging IC, and thereby reduce the second input current of the second battery.
S603, the electronic device adjusts the frequency of the first charging chip according to the first target frequency.
In one example, the electronic device may also adjust the frequency of the second charging chip according to the second target frequency. The electronic device may adjust the frequency of the first charging IC according to the first target frequency, and/or adjust the frequency of the second charging IC according to the second target frequency, which are not described herein in detail.
In this embodiment of the present application, when it is detected that the electronic device is in a charging state, the electronic device may acquire a first output current of the first charging chip, or acquire a first output current of the first charging chip and a second output current of the second charging chip, and may determine a first target frequency of the first charging chip according to the first output current, or according to the first output current and the second output current. Then, the electronic equipment can adjust the frequency of the first charging chip according to the first target frequency, so that the first output current of the first charging chip is adjusted, the output current of the charging chip is adjusted on the basis that an additional current equalizing circuit is not added, the output current of the charging chip is ensured to meet the requirement, overcurrent of a certain charging chip is avoided, the charging safety is ensured, and the user experience is improved.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
Corresponding to the charging method described in the foregoing embodiments, the embodiments of the present application further provide a charging device, where each module of the device may correspondingly implement each step of the charging method.
Based on the above embodiments, please refer to fig. 7, fig. 7 shows a schematic structural diagram of a charging device according to an embodiment of the present application. The contents of the foregoing embodiments are applicable to the present embodiment, and are not repeated here. The device can be applied to electronic equipment at least comprising a first charging chip and a second charging chip. As shown in fig. 7, the apparatus may include:
the output current obtaining module 701 is configured to obtain a first output current of the first charging chip or obtain a first output current of the first charging chip and a second output current of the second charging chip when the electronic device is detected to be in a charging state.
The specific manner of determining whether the electronic device is in the charging state by the output current obtaining module 701 may refer to the foregoing specific description about determining whether the electronic device is in the charging state, and the manner of obtaining the first output current or the second output current by the output current obtaining module 701 may also refer to the foregoing specific description about obtaining the output current of the first charging IC and/or the second charging IC, which will not be described herein.
The target frequency determining module 702 is configured to determine a first target frequency of the first charging chip according to the first output current, or determine the first target frequency of the first charging chip according to the first output current and the second output current.
In one example, the target frequency determining module 702 is further configured to determine a second target frequency of the second charging chip according to the second output current, or determine the second target frequency of the second charging chip according to the first output current and the second output current.
The specific content of determining the first target frequency and/or determining the second target frequency may refer to the foregoing specific description about determining the first target frequency and/or determining the second target frequency, which is not described herein.
The frequency adjustment module 703 is configured to adjust the frequency of the first charging chip according to the first target frequency.
In one example, the frequency adjustment module 703 is further configured to adjust the frequency of the second charging chip according to the second target frequency.
The specific content of the frequency adjustment module 703 adjusting the frequency of the first charging IC according to the first target frequency and/or adjusting the frequency of the second charging IC according to the second target frequency may refer to the foregoing specific description about adjusting the frequency of the first charging IC and/or adjusting the frequency of the second charging IC, which will not be repeated herein.
In an example, the target frequency determining module 702 may be further configured to obtain a current input current, a current voltage, and a current temperature of the battery, and determine a maximum allowable current input current of the battery according to the current voltage, the current temperature, and a third preset correspondence; the method comprises the steps of determining a first target frequency of a first charging IC and/or determining a second target frequency of a second charging IC according to the current input current of the battery and the current maximum allowed input current of the battery.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The embodiment of the application also provides an electronic device, which comprises at least one memory, at least one processor and a computer program stored in the at least one memory and capable of running on the at least one processor, wherein the processor executes the computer program to enable the electronic device to realize the steps in any of the method embodiments. The structure of the electronic device may be as shown in fig. 1, for example.
Embodiments of the present application also provide a computer-readable storage medium storing a computer program that, when executed by a computer, causes the computer to implement the steps of any of the various method embodiments described above.
Embodiments of the present application provide a computer program product for causing an electronic device to carry out the steps of any of the various method embodiments described above when the computer program product is run on the electronic device.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable storage medium may include at least: any entity or device capable of carrying computer program code to an apparatus/electronic device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (random access memory, RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer-readable storage media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other manners. For example, the apparatus/electronic device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (15)

1. A charging method, applied to an electronic device, the electronic device including at least a first charging chip and a second charging chip, the method comprising:
when the electronic equipment is detected to be in a charging state, acquiring a first output current of the first charging chip or acquiring a first output current of the first charging chip and a second output current of the second charging chip;
Determining a first target frequency of the first charging chip according to the first output current, or determining the first target frequency of the first charging chip according to the first output current and the second output current;
and adjusting the frequency of the first charging chip according to the first target frequency.
2. The method of claim 1, wherein the determining a first target frequency for the first charging chip from the first output current comprises:
determining whether the first output current is larger than the corresponding maximum output current of the first charging chip;
when the first output current is larger than the maximum output current corresponding to the first charging chip, determining a first preset corresponding relation between the conversion efficiency and the frequency of the first charging chip according to the first output current;
and determining a first target frequency of the first charging chip according to the first preset corresponding relation and the current frequency of the first charging chip.
3. The method according to claim 1 or 2, wherein said determining a first target frequency of the first charging chip from the first output current and the second output current comprises:
Acquiring a first current ratio between the first output current and the second output current;
and determining a first target frequency of the first charging chip according to the first current ratio and a first preset current ratio.
4. A method according to any one of claims 1 to 3, further comprising:
determining a second target frequency of the second charging chip according to the second output current, or determining a second target frequency of the second charging chip according to the first output current and the second output current;
and adjusting the frequency of the second charging chip according to the second target frequency.
5. The method of claim 4, wherein the determining a second target frequency for the second charging chip from the second output current comprises:
determining whether the second output current is greater than a maximum output current corresponding to the second charging chip;
when the second output current is larger than the maximum output current corresponding to the second charging chip, determining a second preset corresponding relation between the conversion efficiency and the frequency of the second charging chip according to the second output current;
And determining a second target frequency of the second charging chip according to the second preset corresponding relation and the current frequency of the second charging chip.
6. The method of claim 4, wherein determining a second target frequency for the second charging chip based on the first output current and the second output current comprises:
acquiring a first current ratio between the first output current and the second output current;
and determining a first target frequency of the first charging chip and a second target frequency of the second charging chip according to the first current ratio and a first preset current ratio.
7. The method of claim 4, wherein determining a second target frequency for the second charging chip based on the first output current and the second output current comprises:
acquiring a second current ratio between the first output current and the second output current after adjusting the frequency of the first charging chip according to the first target frequency;
and determining a second target frequency of the second charging chip according to the second current ratio and the first preset current ratio.
8. The method of claim 6 or 7, wherein when the electronic device comprises a battery, the first charging chip and the second charging chip are used to charge the battery, the method further comprising:
acquiring a first original impedance of a passage where the first charging chip is located and a second original impedance of a passage where the second charging chip is located;
and determining the first preset current ratio according to the first original impedance and the second original impedance.
9. The method of claim 6 or 7, wherein when the electronic device comprises at least a first battery and a second battery, the first charging chip is configured to charge the first battery and the second charging chip is configured to charge the second battery.
10. The method according to claim 9, wherein the method further comprises:
acquiring a first original impedance of a passage in which the first charging chip is located, a second original impedance of a passage in which the second charging chip is located, a first rated capacity of the first battery and a second rated capacity of the second battery;
and determining the first preset current ratio according to the first original impedance, the second original impedance, the first rated capacity and the second rated capacity.
11. The method according to claim 9 or 10, wherein said determining a first target frequency of the first charging chip from the first output current comprises:
acquiring a first input current of the first battery;
determining whether the first input current is greater than a maximum input current corresponding to the first battery;
when the first input current is larger than the maximum input current corresponding to the first battery, determining a first preset corresponding relation between the conversion efficiency of the first charging chip and the frequency according to the first output current;
and determining a first target frequency of the first charging chip according to the first preset corresponding relation and the current frequency of the first charging chip.
12. The method of claim 11, comprising, prior to said determining whether said first input current is greater than a maximum input current corresponding to said first battery:
acquiring the current voltage and temperature of the first battery;
and determining the maximum input current corresponding to the first battery according to the current voltage, the current temperature and a third preset corresponding relation of the first battery, wherein the third preset corresponding relation is the corresponding relation between the maximum input current allowed by the first battery and the voltage at each temperature.
13. The method according to any one of claims 9 to 12, wherein the determining a second target frequency of the second charging chip from the second output current comprises:
acquiring a second input current of the second battery;
determining whether the second input current is greater than a maximum input current corresponding to the second battery;
when the second input current is larger than the maximum input current corresponding to the second battery, determining a second preset corresponding relation between the conversion efficiency of the second charging chip and the frequency according to the second output current;
and determining a second target frequency of the second charging chip according to the second preset corresponding relation and the current frequency of the second charging chip.
14. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, causes the electronic device to implement the charging method according to any one of claims 1 to 13.
15. A computer-readable storage medium storing a computer program, characterized in that the computer program, when executed by a computer, causes the computer to implement the charging method according to any one of claims 1 to 13.
CN202210294071.1A 2021-12-02 2022-03-23 Charging method, electronic device, and computer-readable storage medium Pending CN116231774A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/127498 WO2023098347A1 (en) 2021-12-02 2022-10-25 Charging method, electronic device and computer-readable storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2021114614969 2021-12-02
CN202111461496 2021-12-02

Publications (1)

Publication Number Publication Date
CN116231774A true CN116231774A (en) 2023-06-06

Family

ID=86584763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210294071.1A Pending CN116231774A (en) 2021-12-02 2022-03-23 Charging method, electronic device, and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN116231774A (en)
WO (1) WO2023098347A1 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5226753B2 (en) * 2010-10-04 2013-07-03 レノボ・シンガポール・プライベート・リミテッド Charging system and charging method
CN107482713B (en) * 2017-08-08 2019-09-03 珠海格力电器股份有限公司 A kind of charging unit, charging system and charge control method
CN108258348B (en) * 2018-02-13 2022-04-29 中兴通讯股份有限公司 Charging method, charging device, charging system, charging circuit, terminal and charging system
WO2020124549A1 (en) * 2018-12-21 2020-06-25 Oppo广东移动通信有限公司 Wireless charging method, device to be charged, power supply device, and storage medium

Also Published As

Publication number Publication date
WO2023098347A1 (en) 2023-06-08

Similar Documents

Publication Publication Date Title
US11349350B2 (en) Wireless charging method, wireless charging device, wireless charging system and device to be charged
US20200412180A1 (en) Method for transmitting data, wireless charging apparatus, and electronic device
CN112243220A (en) Method for establishing communication connection and wearable device
CN110582109A (en) Wireless Local Area Network (WLAN) network access method and device
CN113783634B (en) Method and device for adjusting specific absorption rate of electromagnetic waves, medium and electronic equipment
US11750018B2 (en) Device to-be-charged and charging control method
CN110719626A (en) WiFi transmission power control method, device, circuit and computer storage medium
CN105517122B (en) A kind of method for switching network, device and terminal
CN110290585B (en) Method and electronic equipment for reporting CA combination
CN114844144A (en) Charging method, electronic device, computer-readable storage medium, and chip system
CN116231774A (en) Charging method, electronic device, and computer-readable storage medium
US9924463B2 (en) Method, system and apparatus for controlling power consumption of a mobile terminal
CN108769368A (en) A kind of electronic equipment and information processing method
CN116054870B (en) Wireless communication circuit, bluetooth communication switching method and electronic equipment
CN112911665B (en) Connection method of access point and electronic equipment
WO2021197115A1 (en) Antenna tuning method and apparatus, and electronic device and network device
CN115360782A (en) Charging method, electronic device, computer-readable storage medium, and chip system
US9673921B1 (en) Wireless fidelity (Wi-Fi) clear channel assesment (CCA) detection and transmission decision making in a portable device
CN111111188B (en) Game sound effect control method and related device
CN116937983A (en) Voltage conversion circuit and electronic equipment
WO2016161632A1 (en) Antenna configuration method and apparatus, and terminal
KR20210068920A (en) Portable Handbook Device with Screen Sharing
CN113099734A (en) Antenna switching method and device
CN116207828B (en) Charging method and electronic equipment
CN116017614B (en) Communication method and electronic equipment

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