WO2023098347A1 - 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
WO2023098347A1
WO2023098347A1 PCT/CN2022/127498 CN2022127498W WO2023098347A1 WO 2023098347 A1 WO2023098347 A1 WO 2023098347A1 CN 2022127498 W CN2022127498 W CN 2022127498W WO 2023098347 A1 WO2023098347 A1 WO 2023098347A1
Authority
WO
WIPO (PCT)
Prior art keywords
charging
current
output current
frequency
charging chip
Prior art date
Application number
PCT/CN2022/127498
Other languages
French (fr)
Chinese (zh)
Inventor
刘玉桃
袁兵
崔瑞
王晗
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023098347A1 publication Critical patent/WO2023098347A1/en

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

Definitions

  • the present application belongs to the technical field of terminals, and in particular relates to a charging method, an electronic device, and a computer-readable storage medium.
  • Embodiments of the present application provide a charging method, electronic equipment, and a computer-readable storage medium.
  • the output current of the charging IC can be adjusted by adjusting the frequency of the charging IC, so as to realize electronic charging while ensuring charging safety.
  • the fast charging function of the device improves the user experience.
  • an embodiment of the present application provides a charging method, which is applied to an electronic device, and the electronic device includes at least a first charging chip and a second charging chip, and the method may include:
  • the frequency of the first charging chip is adjusted according to the first target frequency.
  • the electronic device may obtain the first output current of the first charging chip, or obtain the first output current of the first charging chip and the first output current of the second charging chip.
  • Two output currents, and the first target frequency of the first charging chip can be determined according to the first output current, or according to the first output current and the second output current.
  • the electronic device can adjust the frequency of the first charging chip according to the first target frequency, thereby adjusting the first output current of the first charging chip, so as to adjust the output current of the charging chip without adding an additional current sharing circuit , to ensure that the output current of the charging chip meets the requirements, and avoid overcurrent of the charging chip, thereby ensuring the safety of charging and improving user experience.
  • the determining the first target frequency of the first charging chip according to the first output current may include:
  • a first target frequency of the first charging chip is determined according to the first preset correspondence relationship and the current frequency of the first charging chip.
  • the electronic device in order to avoid overcurrent of the first charging chip, can obtain the maximum output current corresponding to the first charging chip, and determine whether the current first output current of the first charging chip exceeds the first The maximum output current corresponding to the charging chip.
  • the electronic device can determine the difference between the conversion efficiency of the first charging chip and the frequency according to the current first output current of the first charging chip. The first preset corresponding relationship.
  • the electronic device may determine the first target frequency of the first charging chip according to the current frequency of the first charging chip and the determined first preset correspondence, and adjust the frequency of the first charging chip to the first target frequency, 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 of the first charging chip current to avoid overcurrent in the first charging chip.
  • the determining the first target frequency of the first charging chip according to the first output current and the second output current may include:
  • a first target frequency of the first charging chip is determined according to the first current ratio and a first preset current ratio.
  • a first preset current ratio that must be satisfied by the current ratio between the first output current and the second output current may be set in the electronic device.
  • the electronic device may determine the first current ratio according to the first current ratio and the first preset current ratio.
  • the first target frequency of a charging chip to adjust the frequency of the first charging chip, thereby adjusting the conversion efficiency of the first charging chip, to adjust the first output current of the first charging chip, so as to avoid the first charging chip and the second charging
  • the local input current of the battery is relatively large, causing the local heating of the battery to be serious, resulting in the interruption of charging of the electronic device, or making the first charging chip charge the first battery
  • the second charging chip is the second charging chip.
  • 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 be fully charged at the same time), thereby improving user experience.
  • the method may also include:
  • the frequency of the second charging chip is adjusted according to the second target frequency.
  • 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 according to the second target frequency.
  • the frequency of the second charging chip so as to adjust the second output current of the second charging chip, so as to adjust the output current of the second charging chip without adding an additional current sharing circuit, so as to ensure the output current of the second charging chip Meet the requirements and avoid the overcurrent of the second charging chip, thereby ensuring the safety of charging and improving user experience.
  • the electronic device may also separately obtain the second output current of the second charging chip, and directly determine the second target frequency of the second charging chip according to the second output current. Subsequently, the electronic device can adjust the frequency of the second charging chip according to the second target frequency, thereby adjusting the second output current of the second charging chip, ensuring that the output current of the second charging chip meets the requirements, and avoiding the overshooting of the second charging chip. flow, so as to ensure the safety of the second charging and improve the user experience.
  • the determining the second target frequency of the second charging chip according to the second output current may include:
  • a second target frequency of the second charging chip is determined according to the second preset correspondence relationship and the current frequency of the second charging chip.
  • the electronic device in order to avoid overcurrent of the second charging chip, can acquire the maximum output current corresponding to the second charging chip, and determine whether the current second output current of the second charging chip exceeds the second The maximum output current corresponding to the charging chip.
  • the electronic device can determine the difference between the conversion efficiency of the second charging chip and the frequency according to the current second output current of the second charging chip. The second preset corresponding relationship.
  • the electronic device may determine the second target frequency of the second charging chip according to the current frequency of the second charging chip and the determined second preset correspondence, and adjust the frequency of the second charging chip to the second target frequency, 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 of the second charging chip current to avoid overcurrent in the second charging chip.
  • the second preset correspondence relationship is the same as the first preset correspondence relationship, which is the correspondence relationship between the conversion efficiency of the charging chip and the frequency under each output current.
  • the determining the second target frequency of the second charging chip according to the first output current and the second output current may include:
  • a first target frequency of the first charging chip and a second target frequency of the second charging chip are determined according to the first current ratio and the first preset current ratio.
  • a first preset current ratio that must be satisfied by the current ratio between the first output current and the second output current may be set in the electronic device.
  • the electronic device may Preset the current ratio, and simultaneously determine the first target frequency of the first charging chip and the second target frequency of the second charging chip to simultaneously adjust the frequency of the first charging chip and the frequency of the second charging chip, thereby adjusting the frequency of the first charging chip.
  • the conversion efficiency of the second charging chip and the conversion efficiency of the second charging chip are used to adjust the first output current of the first charging chip and the second output current of the second charging chip, so that the first output current and the second output current meet the preset requirements and improve the user experience.
  • the determining the second target frequency of the second charging chip according to the first output current and the second output current may include:
  • a second target frequency of the second charging chip is determined according to the second current ratio and the first preset current ratio.
  • the electronic The device may first determine the first target frequency of the first charging chip according to the first current ratio and the first preset current ratio, and adjust the frequency of the first charging chip to adjust the first output current of the first charging chip.
  • the electronic device can continue to obtain the first output current of the first charging chip and the second output current of the second charging chip, if the first output current and the second output current The second current ratio between the two output currents still does not meet the first preset current ratio, and 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, to adjust the second current ratio.
  • the frequency of the second charging chip is adjusted to adjust the second output current of the second charging chip, so that the first output current and the second output current meet preset requirements, thereby improving user experience.
  • the electronic device may first The first current ratio and the first preset current ratio determine the first target frequency of the first charging chip to adjust the frequency of the first charging chip.
  • the electronic device can continue to determine the second target frequency of the second charging chip according to the second current ratio and the first preset current ratio to adjust the frequency of the second charging chip, thereby adjusting the conversion efficiency of the second charging chip , to adjust the second output current of the second charging chip, so that the first output current and the second output current meet
  • the electronic device may The current ratio and the first preset current ratio determine the second target frequency of the second charging chip to adjust the frequency of the second charging chip, thereby adjusting the conversion efficiency of the second charging chip to adjust the second output of the second charging chip current, so that the first output current and the second output current meet preset requirements, improving user experience.
  • the electronic device may also first According to the first current ratio and the first preset current ratio, the second target frequency of the second charging chip is determined to adjust the frequency of the second charging chip.
  • the electronic The device can continue to 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 to adjust
  • the first output current of the first charging chip makes the first output current and the second output current meet preset requirements, thereby improving user experience.
  • the first charging chip and the second charging chip are used to charge the battery, and the method may further include:
  • the first preset current ratio is determined according to the first original impedance and the second original impedance.
  • the electronic device when the electronic device includes at least a first battery and a second battery, the first charging chip is used to charge the first battery, and the second charging chip is used to charge the The second battery is charged.
  • the method may also include:
  • the first preset current ratio is determined according to the first original impedance, the second original impedance, the first rated capacity, and the second rated capacity.
  • the electronic device can Determine the first preset current ratio with 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 first battery
  • the charging speed of the battery and the charging speed of the second battery meet a preset requirement (for example, the requirement that the first battery and the second battery be fully charged at the same time).
  • the determining the first target frequency of the first charging chip according to the first output current may include:
  • a first target frequency of the first charging chip is determined according to the first preset correspondence relationship and the current frequency of the first charging chip.
  • the electronic device when the first charging chip is charging the first battery of the electronic device, the electronic device can acquire the current first input current, voltage and temperature of the first battery, and The voltage, temperature, and the third preset corresponding relationship determine the current maximum input current allowed by the first battery. Subsequently, the electronic device can determine the first target frequency of the first charging chip according to the current first input current of the first battery and the current maximum input current allowed by the first battery, so as to adjust the frequency of the first charging chip according to the first target frequency , to adjust the first output current of the first charging chip, thereby adjusting the input current of the first battery, avoiding an overcurrent of the first battery during the charging process, and avoiding damage to the first battery.
  • the third preset corresponding relationship is the corresponding relationship between the allowed maximum input current and voltage of each battery at each temperature.
  • the third preset correspondence relationship may be specifically set by a technician according to an actual scenario, which is not limited in this embodiment of the present application.
  • the electronic device when the first charging chip and the second charging chip are charging the same battery, the electronic device can obtain the current input current, voltage and temperature of the battery, and calculate Corresponding relationship, determine the current maximum input current allowed by the battery. Subsequently, the electronic device can determine the first target frequency of the first charging chip and/or the 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 The frequency adjusts the frequency of the first charging chip to adjust the first output current of the first charging chip, and/or adjusts the frequency of the second charging chip according to the second target frequency to adjust the second output current of the second charging chip, thereby Regulate the input current of the battery to avoid overcurrent of the battery during charging and avoid damage to the battery.
  • the determination of whether the first input current is greater than the maximum input current corresponding to the first battery may include:
  • the third preset correspondence relationship is that at each temperature, the first battery Correspondence between the maximum allowable input current and the voltage.
  • the determining the second target frequency of the second charging chip according to the second output current may include:
  • a second target frequency of the second charging chip is determined according to the second preset correspondence relationship and the current frequency of the second charging chip.
  • the electronic device when the second charging chip is charging the second battery of the electronic device, the electronic device can acquire the current second input current, voltage and temperature of the second battery, and The voltage, temperature, and the third preset corresponding relationship determine the current maximum input current allowed by the second battery. Subsequently, the electronic device can determine the 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 , to adjust the second output current of the second charging chip, thereby adjusting the input current of the second battery, avoiding an overcurrent of the second battery during the charging process, and avoiding damage to the second battery.
  • the embodiment of the present application provides a charging device, which is applied to an electronic device, and the electronic device includes at least a first charging chip and a second charging chip, and the device may include:
  • An output current acquisition module configured to acquire the first output current of the first charging chip when it is detected that the electronic device is in the charging state, or acquire the first output current of the first charging chip and the first output current of the first charging chip. 2. The second output current of the charging chip;
  • a target frequency determining module configured to determine the first target frequency of the first charging chip according to the first output current, or determine the first charging chip according to the first output current and the second output current the first target frequency of the chip;
  • a frequency adjustment module configured to adjust the frequency of the first charging chip according to the first target frequency.
  • the target frequency determination module is specifically configured to determine whether the first output current is greater than the maximum output current corresponding to the first charging chip; when the first output current is greater than the maximum output current of the first charging chip When the corresponding maximum output current is reached, the first preset correspondence between the conversion efficiency of the first charging chip and the frequency is determined according to the first output current; according to the first preset correspondence and the first The current frequency of the charging chip determines the first target frequency of the first charging chip.
  • the target frequency determination module is further configured to obtain a first current ratio between the first output current and the second output current; according to the first current ratio and a first preset The current ratio determines the first target frequency of the first charging chip.
  • the target frequency determination module is further configured to 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 The second output current is used to determine the second target frequency of the second charging chip;
  • the frequency adjustment module is further configured to adjust the frequency of the second charging chip according to the second target frequency.
  • the target frequency determination module is further used to determine whether the second output current is greater than the maximum output current corresponding to the second charging chip; when the second output current is greater than the second charging chip When the corresponding maximum output current is reached, the second preset correspondence between the conversion efficiency of the second charging chip and the frequency is determined according to the second output current; according to the second preset correspondence and the second The current frequency of the charging chip determines the second target frequency of the second charging chip.
  • the target frequency determination module is further configured to obtain a first current ratio between the first output current and the second output current; according to the first current ratio and a first preset The current ratio determines the first target frequency of the first charging chip and the second target frequency of the second charging chip.
  • the target frequency determining module is further configured to obtain the difference 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. A second current ratio between them; according to the second current ratio and the first preset current ratio, determine a second target frequency of the second charging chip.
  • the first charging chip and the second charging chip are used to charge the battery, and the device may further include:
  • a preset current ratio determination module configured to obtain the first original impedance of the path where the first charging chip is located and the second original impedance of the path where the second charging chip is located; according to the first original impedance and the second The raw impedance determines the first preset current ratio.
  • the electronic device when the electronic device includes at least a first battery and a second battery, the first charging chip is used to charge the first battery, and the second charging chip is used to charge the The second battery is charged.
  • the preset current ratio determination module is further configured to obtain the first original impedance of the path where the first charging chip is located, the second original impedance of the path where the second charging chip is located, and the first original impedance of the path where the first battery is located. a rated capacity and the second rated capacity of the second battery; used to determine the first rated capacity according to the first original impedance, the second original impedance, the first rated capacity and the second rated capacity Preset current ratio.
  • the target frequency determining module is further configured to acquire a first input current of the first battery; determine whether the first input current is greater than a corresponding maximum input current of the first battery; when the When the first input current is greater than the corresponding maximum input current of the first battery, determine a first preset correspondence between the conversion efficiency of the first charging chip and the frequency according to the first output current; according to the first output current; A preset correspondence relationship and the current frequency of the first charging chip determine the first target frequency of the first charging chip.
  • the device may also include:
  • a maximum input current determination module configured to obtain the current voltage and temperature of the first battery; determine the maximum input current corresponding to the first battery according to the current voltage, temperature and a third preset correspondence of the first battery , the third preset correspondence is the correspondence between the maximum input current and the voltage allowed by the first battery at each temperature.
  • the target frequency determining module is further configured to acquire a second input current of the second battery; determine whether the second input current is greater than a corresponding maximum input current of the second battery; when the When the second input current is greater than the corresponding maximum input current of the second battery, determine a second preset correspondence between the conversion efficiency of the second charging chip and the frequency according to the second output current; The second preset correspondence relationship and the current frequency of the second charging chip determine the second target frequency of the second charging chip.
  • an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and operable on the processor.
  • the processor executes the computer program, , enabling the electronic device to implement the charging method described in any one of the above first aspects.
  • an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a computer, the computer can realize any of the above-mentioned first aspects.
  • One of the charging methods One of the charging methods.
  • an embodiment of the present application provides a computer program product, which, when the computer program product is run on an electronic device, causes the electronic device to execute the charging method described in any one of the above first aspects.
  • FIG. 1 is a schematic structural diagram of an electronic device to which a charging method provided by an embodiment of the present application is applicable;
  • Fig. 2 is a first schematic diagram of the setting of the charging chip provided by the embodiment of the present application.
  • Fig. 3 is a second schematic diagram of the setting of the charging chip provided by the embodiment of the present application.
  • Fig. 4 is a schematic diagram 1 of the relationship between the conversion efficiency of the charging IC and the frequency of the charging IC;
  • Fig. 5 is a schematic diagram 2 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 provided by an embodiment of the present application.
  • Fig. 7 is a schematic structural diagram of a charging device provided by an embodiment of the present application.
  • the term “if” may be construed, depending on the context, as “when” or “once” or “in response to determining” or “in response to detecting “.
  • the phrase “if determined” or “if [the described condition or event] is detected” may be construed, depending on the context, to mean “once determined” or “in response to the determination” or “once detected [the described condition or event] ]” or “in response to detection of [described condition or event]”.
  • references to "one embodiment” or “some embodiments” or the like in the specification of the present application means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically stated otherwise.
  • the terms “including”, “comprising”, “having” and variations thereof mean “including but not limited to”, unless specifically stated otherwise.
  • the steps involved in the charging method provided in the embodiment of this application are only examples, not all steps are mandatory steps, or not all information or content in the message is mandatory, and can be used during use. Increase or decrease as necessary.
  • the same step or steps or messages with the same function can be used for reference between different embodiments.
  • the number of charging ICs can be increased in electronic equipment to achieve high-power fast charging through multiple charging ICs.
  • the charging current of the battery can be increased by connecting dual charging ICs in parallel, so as to realize high-power fast charging.
  • each charging IC generally has a maximum allowable output current.
  • the actual output current of a charging IC is greater than the maximum output current allowed by the charging IC, it will cause overcurrent in the charging IC, resulting in reduced charging safety, or triggering the charging IC to perform overcurrent protection (that is, for charging IC with over-current protection function), which will lead to charging interruption, affect the charging speed, and affect the user experience.
  • the input current of the charger generally remains unchanged. Therefore, when a certain charging IC causes changes in the current input to the charging IC due to impedance changes (such as increased impedance) and other reasons (such as changes When small), it will cause the current input to each charging IC to be unbalanced, that is, the current input to another charging IC will increase, resulting in an increase in the output current of the other charging IC, which may cause the other charging IC
  • the output current of the IC is greater than the maximum output current allowed by the other charging IC, causing overcurrent in the other charging IC.
  • a current sharing circuit can be added to ensure that the impedances of the paths corresponding to the parallel charging ICs are roughly equal through the current sharing current, so that the current passing through each path is balanced, so that the charging IC
  • the output current is balanced to avoid the overcurrent of the charging IC caused by the excessive current input to a certain charging IC.
  • this method needs to add a current equalizing circuit in the parallel path of the charging IC, which greatly increases the complexity of the hardware circuit, increases the design cost of the electronic equipment, and is not convenient for popularization and use.
  • the electronic device may at least include a first charging chip and a second charging chip.
  • the electronic device may obtain the first output current of the first charging chip, or obtain the first output current of the first charging chip and the second output current of the second charging chip, And the first target frequency of the first charging chip can be determined according to the first output current, or according to the first output current and the second output current.
  • the electronic device can adjust the frequency of the first charging chip according to the first target frequency, thereby adjusting the first output current of the first charging chip, so as to adjust the output current of the charging chip without adding an additional current sharing circuit , to ensure that the output current of the charging chip meets the requirements, and avoid overcurrent of the charging chip, thereby ensuring the safety of charging, improving user experience, and having strong ease of use and practicability.
  • the electronic device may be a mobile phone, a tablet computer, a wearable device, an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) device, a notebook computer, an ultra-mobile personal computer (ultra-mobile personal computer) computer, UMPC), netbook, personal digital assistant (personal digital assistant, PDA) and other electronic devices with rechargeable batteries, the embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
  • 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 charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , a mobile communication module 150, and a wireless communication module 160.
  • a processor 110 an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , a mobile communication module 150, and a wireless communication module 160.
  • a universal serial bus universal serial bus
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the electronic device 100 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG moving picture experts group
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in 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 use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • the interface 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 transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input and output
  • subscriber identity module subscriber identity module
  • SIM subscriber identity module
  • USB universal serial bus
  • the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect to a charger to charge the electronic device 100 , and can also be used to connect to other electronic devices, such as AR devices.
  • the interface connection relationship between the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is configured to receive a charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 can receive the charging input of the wired charger through the USB interface 130 (such as a USB Type C interface).
  • the charging management module 140 can receive wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142 , it can also supply power to the electronic device 100 through the power management module 141 .
  • the charger may be a high power charger.
  • the charging management module 140 may include at least two charging chips 143 , for example, may include at least a first charging chip and a second charging chip.
  • both the first charging chip and the second charging chip may be frequency-adjustable charging chips.
  • FIG. 2 shows the first schematic diagram of setting up the charging chip provided by the embodiment of the present application.
  • at least two charging chips (the first charging chip and the second charging chip are taken as an example in FIG. 2 ) can be arranged in parallel in the electronic device 100, and the first charging chip and the second charging chip Each of the second charging chips can be connected to the battery 142 .
  • the charging management module 140 can charge the battery 142 with high power through the first charging chip and the second charging chip, so as to realize the fast charging function.
  • the charging management module 140 can 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 to obtain a relatively large current to charge the battery 142 to achieve a large Power fast charge.
  • the output voltage of the second charging chip is 10V
  • the output current of the second charging chip is 6A. That is, the original 6A input current of the charger can be converted into 12A, to quickly charge the battery 142 with a current of 12A.
  • the charging management module 140 may also include an overvoltage protection unit, for example, the overvoltage protection unit may be an overvoltage protection circuit (over voltage protection, OVP), to When the voltage output by the charger is relatively high, the charging chip 143 and/or the battery 142 are protected.
  • OVP overvoltage protection circuit
  • OVP over voltage protection circuit
  • the preset voltage value can be specifically set by technicians according to actual scenarios, for example, it can be determined according to the maximum voltage allowed by the charging chip 143 , or it can be determined according to the rated voltage of the battery 142 , and so on.
  • the charging management module 140 may include a chip control unit 144 (not shown in (b) of FIG. 2 ).
  • the chip control unit 144 may be connected to each charging chip 143 respectively.
  • the chip control unit 144 can be used to adjust the frequency of one or more charging chips 143 .
  • the chip control unit 144 may be connected to the first charging chip and the second charging chip, respectively. Therefore, the chip control unit 144 can adjust the frequency of the first charging chip according to the first target frequency, and/or can adjust the frequency of the second charging chip according to the second target frequency.
  • the chip control unit 144 may also be disposed in the processor 110 .
  • the electronic device 100 may include 1 or N batteries 142 , where N is a positive integer greater than 1.
  • the parameters of the batteries 142 may be the same or different.
  • the parameters of the battery may include the rated capacity, rated voltage and the like of the battery.
  • any one of the at least two charging chips 143 may be connected to one or more batteries 142 respectively, or any one of the at least two charging chips 143 may be connected to each battery 142 respectively. Wherein, each charging chip 143 can be used to charge the corresponding battery 142 respectively.
  • FIG. 3 shows a second schematic diagram of the arrangement of the charging chip provided by the embodiment of the present application.
  • the charging management module 140 includes a first charging chip and a second charging chip
  • the electronic device 100 includes a first battery and a second battery
  • the first charging chip can be directly connected to the first battery connection
  • the second charging chip can be directly connected to the second battery, so that the first charging chip can be used to charge the first battery
  • the second charging chip can be used to charge the second battery, that is, through the first charging in parallel
  • the chip and the second charging chip realize simultaneous charging of the first battery and the second battery, which can increase the charging speed of the electronic device 100 .
  • both the first charging chip and the second charging chip can be connected to the first battery, and both the first charging chip and the second charging chip can also be connected to the second battery, but the first charging chip and the second charging chip can also be connected to the second battery.
  • Impedance (such as the impedance 300 shown in (b) in Figure 3) is provided on the path that a charging chip is connected to the second battery, and impedance is provided on the path that the second charging chip is connected to the first battery (such as shown in Figure 3 (b) shows the impedance 300).
  • the output current of the first charging chip directly flows into the first battery, while the output current of the second charging chip directly flows into the second battery, so that the first charging chip can be used to charge the first battery, and the second charging chip can be used to charge the first battery.
  • the second charging chip can be used to charge the second battery.
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives the input of the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , and the wireless communication module 160 .
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be disposed in the processor 110 . In some other embodiments, the power management module 141 and the charging management module 140 may also be set in the same device.
  • the wireless communication function of the electronic device 100 can be realized 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.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on 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) and the like.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves and radiate them through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
  • a 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 to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
  • the modem processor may be a stand-alone device. In some other embodiments, the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the electronic device 100.
  • System global navigation satellite system, GNSS
  • frequency modulation frequency modulation, FM
  • near field communication technology near field communication, NFC
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband 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, etc.
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • code division multiple access code division multiple access
  • CDMA broadband Code division multiple access
  • WCDMA wideband code division multiple access
  • time division code division multiple access time-division code division multiple access
  • TD-SCDMA time-division code division multiple access
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • Beidou navigation satellite system beidou navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the internal memory 121 may include an area for storing programs and an area for storing data.
  • the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
  • the storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 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 adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
  • the software system of the electronic device 100 may adopt a layered architecture Android operating system (Operation System, OS), Harmony OS (Harmony OS), or IOS.
  • the charging method is applied to an electronic device including at least two charging ICs, such as a first charging chip (ie, a first charging IC) and a second charging chip (ie, a second charging IC).
  • a first charging chip ie, a first charging IC
  • a second charging chip ie, a second charging IC
  • both 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 parallel in the electronic device, and both the first charging IC and the second charging IC can be connected to the battery in the electronic device.
  • the electronic device when it is detected that the electronic device is in the charging state, can obtain the first output current of the first charging IC, or obtain the first output current of the first charging IC and the second output of the second charging IC current, and the first target frequency of the first charging IC can be determined according to the first output current, or according to the first output current and the second output current. Subsequently, the electronic device 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 requirements, and avoid overcurrent of the charging IC, thereby ensuring The safety of charging improves the user experience.
  • the electronic device may determine whether the electronic device is in a charging state according to whether the USB interface of the electronic device receives a charging input from a wired charger. For example, when an electronic device is connected to a power supply device through a USB interface, the USB interface of the electronic device may receive a charging input from a wired charger, and at this time, the electronic device may determine that the electronic device is in a charging state.
  • the electronic device may determine whether the electronic device is in a charging state according to whether the wireless charging coil of the electronic device receives a wireless charging input. For example, when the electronic device is on the charging stand of the wireless power supply device, the wireless charging coil of the electronic device may receive a wireless charging input, and at this time, the electronic device may determine that the electronic device is in a charging state.
  • first output current refers to the current at the output end of the first charging IC
  • second output current refers to the current at the output end of the second charging IC
  • the output terminal of the first charging IC may be provided with a current measuring device A, and the electronic device may obtain the first output current through the current measuring device A.
  • the output terminal of the second charging IC can be provided with a current measuring device B, and the electronic device can obtain the second output current through the current measuring device B. It should be understood that the embodiment of the present application does not impose any limitation on the current measuring device A and the current measuring device B, which can be specifically set according to actual scenarios, for example, both the current measuring device A and the current measuring device B can be set as ammeters.
  • the first charging IC and the second charging IC are used to convert the input power from the charger to increase the current input to the battery, thereby increasing the charging power of the battery and realizing high-power fast charging.
  • the total voltage V output and the total current I output output by the charger are both fixed values, that is, the input voltage V input1 of the first charging IC and the input voltage V input2 of the second charging IC are also fixed. value.
  • the input current I input1 of the first charging IC and the input current I input2 of the second charging IC are related to the total current I output output by the charger, the impedance of the path where the first charging IC is located, and the impedance of the path where the second charging IC is located.
  • the impedance of the path where the first charging IC is located and the impedance of the path where the second charging IC is located are generally fixed values. Therefore, the input current I input1 of the first charging IC and the input current I input2 of the second charging IC are also fixed values. It should be understood that in this specific charging process, the output voltages of each charging IC are also fixed values.
  • the output current of the charging IC is related to the conversion efficiency ⁇ of the charging IC. That is, when the input voltage and input current of the charging IC are constant, if the conversion efficiency ⁇ of the charging IC is higher, the output current of the charging IC will be larger; if the conversion efficiency ⁇ of the charging IC is lower, the output current of the charging IC will also be lower. Small.
  • the conversion efficiency ⁇ of the charging IC is related to the frequency of the charging IC, therefore, the electronic device can adjust the conversion efficiency ⁇ of the charging IC by adjusting the frequency of a certain charging IC, thereby adjusting the output current of the charging IC, so that the charging The output current of the IC meets the requirements to avoid overcurrent of the charging IC.
  • the charging IC may include a first charging IC and a second charging IC.
  • FIG. 4 shows the first schematic diagram of the relationship between the conversion efficiency of the charging IC and the frequency of the charging IC. 4 shows the conversion efficiency ⁇ of the charging IC at each output current when the frequency of the charging IC is high frequency (ie 750KHz), medium frequency (ie 375KHz) and low frequency (ie 187.5KHz). It should be understood that the output current in FIG. 4 refers to the desired output current of the charging IC.
  • the electronic device may be provided with a preset corresponding relationship A between the conversion efficiency of the charging IC and the frequency under each output current.
  • the electronic device can adjust the frequency of the charging IC to adjust the conversion efficiency of the charging IC, thereby adjusting the output current of the charging IC so that the output current of the charging IC meets the requirements.
  • the preset correspondence relationship A may also be stored in other electronic devices communicatively connected with the electronic device or in devices such as a cloud.
  • the above division of the output current into three intervals (0A, 4A), [4A, 6A] and (6A, + ⁇ ) is only for exemplary explanation and should not be construed as a limitation to the embodiment of the present application.
  • the division mode of the output current may be determined by a technician according to the actual scene.
  • the conversion efficiency of the charging IC is related to the frequency
  • the preset corresponding relationship A between them is only for exemplary explanation, and should not be understood as a limitation on the embodiment of the present application.
  • technicians can determine the frequencies of the charging IC according to the actual scene, for example, two, three or four frequencies can be determined according to the actual scene, and the output current can be obtained through testing.
  • the conversion efficiency corresponding to each frequency of the charging IC so as to determine the preset corresponding relationship A between the conversion efficiency of the charging IC and the frequency under each output current.
  • technicians can determine each frequency of the charging IC according to the frequency that the charging IC actually supports adjustment, and obtain the conversion efficiency corresponding to each frequency of the charging IC under each output current through testing, so as to determine the charging IC under each output current.
  • technicians can determine the frequency of the charging IC as high frequency (ie 750KHz), medium-high frequency (ie 500KHz), medium frequency (ie 375KHz), medium-low frequency (ie 300KHz) and low frequency (ie 187.5KHz) according to the actual scene. ), and determine the conversion efficiency corresponding to each frequency (ie high frequency, medium-high frequency, medium frequency, medium-low frequency, and low frequency) of the charging IC under each output current, so that the conversion efficiency of the charging IC can be determined under each output current Preset correspondence A between efficiency and frequency.
  • 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.
  • the conversion efficiency at medium and high frequencies is less than that of the charging IC at medium frequencies
  • the conversion efficiency of the charging IC at medium frequencies is less than that of the charging IC at low and medium frequencies
  • the charging IC is The conversion efficiency at medium and low frequencies is less than that of the charging IC at low frequencies.
  • the conversion efficiency of the charging IC at a high frequency is lower than that of the charging IC at a medium-high frequency
  • the conversion efficiency of the charging IC at a medium-high frequency is lower than that of a charging IC at a medium frequency
  • the conversion efficiency of the charging IC is lower than the conversion efficiency of the charging IC at the low frequency when the charging IC is at the middle frequency
  • the conversion efficiency of the charging IC at the low frequency is lower than the conversion efficiency of the charging IC at the middle and low frequency.
  • the conversion efficiency of the charging IC at high frequency is lower than that of the charging IC at medium-high frequency, and the conversion efficiency of charging IC at medium-high frequency is lower than that of charging IC at low frequency
  • the conversion efficiency of the charging IC is lower when the charging IC is at a low frequency than when the charging IC is at a medium frequency.
  • the conversion efficiency of the charging IC at high frequency is lower than that of charging IC at low frequency, and the conversion efficiency of charging IC at low frequency is lower than that of charging IC at medium and high frequency
  • the conversion efficiency of the charging IC is lower than the conversion efficiency of the charging IC when the charging IC is at the middle frequency, and the conversion efficiency of the charging IC is lower than the conversion efficiency of the charging IC when the charging IC is at the middle and low frequency.
  • the conversion efficiency of the charging IC at low frequency is lower than that of the charging IC at high frequency, and the conversion efficiency of the charging IC at high frequency is lower than that of the charging IC at low-medium frequency
  • the conversion efficiency of the charging IC at medium and low frequencies is lower than that of the charging IC at medium frequencies
  • the conversion efficiency of the charging IC at medium frequencies is lower than that of the charging IC at medium and high frequencies.
  • the electronic device can determine the conversion efficiency corresponding to each frequency of the charging IC (ie, high frequency, medium-high frequency, medium frequency, medium-low frequency, and low frequency) under each output current, so that Determine the preset correspondence relationship A between the conversion efficiency of the charging IC and the frequency under each output current.
  • the conversion efficiency corresponding to each frequency of the charging IC ie, high frequency, medium-high frequency, medium frequency, medium-low frequency, and low frequency
  • the impedance of the path where the first charging IC is located will change, resulting in changes in the current input to the first charging IC and the current input to the second charging IC, Both the first output current of the first charging IC and the second output current of the second charging IC will change.
  • the impedance of the path where the first charging IC is located will increase, so that the current input to the first charging IC will become smaller, so that the second The first output current of a charging IC becomes smaller, and at the same time, the current input to the second charging IC becomes larger, so that the second output current of the second charging IC becomes larger.
  • the electronic device can determine the adjustable frequency of the first charging IC in combination with the corresponding maximum output current of the second charging IC, so that when the conversion efficiency of the first charging IC is adjusted to the minimum, the second output current of the second charging IC is still smaller than the second The maximum output current corresponding to the charging IC.
  • the electronic device can determine the adjustable frequency of the second charging IC in combination with the corresponding maximum output current of the first charging IC.
  • the preset correspondence between the conversion efficiency of the charging IC and the frequency under each output current Taking relationship A as an example, 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 is described in detail.
  • any charging IC generally has a corresponding maximum output current, so as to determine whether the charging IC is over-current through the maximum output current.
  • the electronic device in order to avoid overcurrent of the first charging IC, can obtain the maximum output current corresponding to the first charging IC, and can determine whether the current first output current of the first charging IC exceeds the first The maximum output current corresponding to the charging IC. When the current first output current of the first charging IC exceeds the corresponding maximum output current of the first charging IC, the electronic device can determine the difference between the conversion efficiency of the first charging IC and the frequency according to the current first output current of the first charging IC.
  • the first preset corresponding relationship that is, the preset corresponding relationship A corresponding to the first output current).
  • the electronic device determines the first target frequency of the first charging IC according to the current frequency of the first charging IC and the determined first preset correspondence, 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 of the first charging IC current to avoid overcurrent in the first charging IC.
  • the electronic device can be based on the first value between the frequency of the charging IC and the conversion efficiency when the output current is (0A, 4A).
  • a preset corresponding relationship that is, the higher the frequency of the charging IC, the lower the conversion efficiency of the charging IC
  • the current frequency of the first charging IC to determine the first target frequency of the first charging IC
  • the frequency of the first charging IC is adjusted 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.
  • the electronic device can determine the first target frequency as a high frequency according to the current frequency (ie, the middle frequency) of the first charging IC, that is, the electronic device can convert the first target frequency to a high frequency.
  • the frequency of a charging IC is adjusted 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.
  • the electronic device can obtain the maximum output current corresponding to the second charging IC, and can determine whether the current second output current of the second charging IC exceeds the maximum output current corresponding to the second charging IC current.
  • the electronic device can determine the difference between the conversion efficiency of the second charging IC and the frequency according to the current second output current of the second charging IC.
  • the second preset correspondence relationship that is, the preset correspondence relationship A corresponding to the second output current.
  • the electronic device may determine the second target frequency of the second charging IC according to the current frequency of the second charging IC and the determined second preset correspondence, and adjust the frequency of the second charging IC to the second target frequency, To adjust the conversion efficiency of the second charging IC, so as to adjust the second output current of the second charging IC, so that the second output current of the second charging IC is smaller than the corresponding maximum output current of the second charging IC, so as to avoid the occurrence of overshooting of the second charging IC flow.
  • the electronic device can use the second preset value between the frequency of the charging IC and the conversion efficiency when the output current is [4A, 6A]. Assuming the corresponding relationship and the current frequency of the second charging IC, the second target frequency of the second charging IC is determined.
  • the current frequency of the second charging IC is a medium frequency (ie 375KHz)
  • the conversion efficiency of the charging IC at a high frequency is lower than that of the charging IC at a low frequency
  • the charging The conversion efficiency of the IC at low frequency is less than the conversion efficiency of the charging IC at medium frequency
  • the electronic device can determine that the second target frequency is a high frequency or a low frequency, that is, the electronic device can change the frequency of the second charging IC from the current 375KHz Adjust to 750KHz, or adjust from the current 375KHz to 187.5KHz to reduce the conversion efficiency of the second charging IC, thereby reducing the second output current
  • the electronic device may also determine the first target frequency of the first charging IC according to the current limit corresponding to the first charging IC.
  • the limited current corresponding to the first charging IC can be determined according to the current charging state of the battery corresponding to the first charging IC (ie, the battery used for charging by the first charging IC). For example, when the battery corresponding to the first charging IC is currently in a constant current charging state, the current limit corresponding to the first charging IC can be relatively large; when the battery corresponding to the first charging IC is currently in a constant voltage charging state, the first charging IC The corresponding limiting current can be smaller.
  • the electronic device can also determine the second target frequency of the second charging IC according to the current limit corresponding to the second charging IC.
  • the electronic device may acquire a third output current of the third charging IC, and determine whether the third output current is greater than a corresponding maximum output current of the third charging IC.
  • the electronic device can determine the preset correspondence relationship A between the conversion efficiency of the third charging IC and the frequency according to the third output current, and charge
  • the current frequency of the IC and the determined preset correspondence relationship A determine a third target frequency of the third charging IC, so as to adjust the frequency of the third charging IC to the third target frequency.
  • the electronic device when the electronic device includes only one battery, the electronic device can charge the battery through a first charging IC and a second charging IC arranged in parallel, that is, the first Both the first output current of the charging IC and the second output current of the second charging IC can be input to the battery, so as to quickly 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 to the battery from different ports, if the difference between the first output current and the second output current is large, the As a result, during the charging process, the local heating of the battery is serious, which may lead to interruption of charging and affect the user experience.
  • the electronic device can be provided with a current ratio between the first output current and the second output current that needs to be satisfied.
  • a first preset current ratio to adjust the frequency of the first charging IC and/or adjust the frequency of the second charging IC according to the first preset current ratio, thereby adjusting the conversion efficiency of the first charging IC and/or adjusting the second charging IC
  • the conversion efficiency of the IC is used to adjust the first output current of the first charging IC and/or adjust the second output current of the second charging IC.
  • the first preset current ratio may also be stored in other electronic devices or cloud devices that are communicatively connected with the electronic devices.
  • the first preset current ratio may be a range of ratios, and the first preset current ratio may be specifically determined by technicians according to actual scenarios, which is not specifically limited in this embodiment of the present application. Exemplarily, technicians can determine the first preset current ratio according to the original impedance of the path where the first charging IC is located and the original impedance of the path where the second charging IC is located when the electronic device is shipped from the factory.
  • the first preset current ratio can be set to [0.9, 1.1].
  • the first preset current ratio may be 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 ratio interval that needs to be satisfied between the three currents.
  • the electronic device can adjust the frequency of the first charging IC, the frequency of the second charging IC and the frequency of the second charging IC according to the current ratio of the first output current, the second output current and the third output current, and the first preset current ratio.
  • One or more of the three charging IC frequencies The following will take the electronic device including the first charging IC and the second charging IC as an example for illustration.
  • the electronic device can determine the first output current, the second output current and the first preset current ratio, and/or the second target frequency of the second charging IC can be determined, and according to the first target frequency adjusting the frequency of the first charging IC, and/or adjusting the frequency of the second charging IC according to the second target frequency, 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, Therefore, the current ratio between the first output current and the second output current satisfies the first preset current ratio.
  • the electronic device may determine that the current first output current of the first charging IC is relatively large, At this time, the electronic device can adjust the frequency of the first charging IC according to the first output current, that is, determine the first preset correspondence between the conversion efficiency of the first charging IC and the frequency according to the first output current, and according to the determined
  • the first preset correspondence relationship and the current frequency of the first charging IC determine the first target frequency of the first charging IC 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.
  • the electronic device may determine that the current second output current of the second charging IC is relatively small, and at this time The electronic device can adjust the frequency of the second charging IC according to the current second output current of the second charging IC, that is, the second preset correspondence between the conversion efficiency of the second charging IC and the frequency can be determined according to the second output current, And according to the determined second preset correspondence relationship and the current frequency of the second charging IC, determine the second target frequency corresponding to the second charging IC, so as to adjust the frequency of the second charging IC to the second target frequency to increase the second charging IC frequency.
  • the conversion efficiency of the second charging IC thereby increasing the second output current of the second charging
  • the current ratio between the first output current of the first charging IC and the second output current of the second charging IC generally satisfies the first preset current ratio. 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, the current input by the charger to the first charging IC and/or the second charging IC changes, so that the current of the first charging IC The first output current of the second charging IC and/or the current second output current of the second charging IC change.
  • the electronic device may determine that the current first output current of the first charging IC is relatively large.
  • the electronic device can adjust the frequency of the first charging IC according to the first output current (that is, 3A).
  • a preset corresponding relationship that is, the higher the frequency of the charging IC, the lower the conversion efficiency of the charging IC
  • the current frequency of the first charging IC determine the first target frequency of the first charging IC, and the first charging IC's
  • the frequency is adjusted 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 can satisfy the first
  • the preset current ratio means that the current ratio between the first output current and the second output current can be located at [0.9, 1.1].
  • the conversion efficiency of the first charging IC will be reduced to the minimum.
  • the current ratio between the first output current and the second output current is still greater than 1.1.
  • the electronic device can determine that the current second output current of the second charging IC is relatively small.
  • the electronic device can Two output currents (that is, 2A) adjust the frequency of the second charging IC to improve the conversion efficiency of the second charging IC, so as to increase the second output current of the second charging IC, so that the difference between the first output current and the second output current
  • the current ratio of is located in [0.9, 1.1].
  • the frequency of the first charging IC is adjusted according to the first target frequency, so that the first charging
  • the electronic device may Determine the second target frequency of the second charging IC directly according to the current ratio between the adjusted first output current and the second output current and the first preset current ratio, so as to adjust the second target frequency of the second charging IC according to the second target frequency Frequency, thereby increasing the conversion efficiency of the second charging IC, 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.
  • the electronic device can first adjust the frequency of the first charging IC sequentially 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 and the second output current.
  • Current ratio between currents When the frequency of the first charging IC is adjusted so that the conversion efficiency of the first charging IC reaches an extreme value, if the current ratio between the first output current and the second output current still does not satisfy the first preset current ratio, the electronic device may Then, the frequency of the second charging IC is adjusted according to the current ratio between the first output current and the second output current.
  • the electronic device can 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. current ratio. After adjusting the frequency of the first charging IC this time, 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 then adjust the frequency according to the first output current and the second output current. The current ratio between the currents adjusts the frequency of the second charging IC.
  • the electronic device can then adjust the frequency according to the first output current and the second output current.
  • the current ratio between the currents adjusts the frequency of the first charging IC, and it is cyclically adjusted accordingly. It should be understood that the subsequent process of adjusting the frequency of the second charging IC and adjusting the frequency of the first charging IC is similar.
  • the electronic device may determine that the current second output current of the second charging IC is relatively small, which means , the electronic device can determine the second preset correspondence between the conversion efficiency of the second charging IC and the frequency according to the second output current, and determine the second preset correspondence according to the second preset correspondence and the current frequency of the second charging IC.
  • the second target frequency of the charging IC is to adjust the frequency of the second charging IC to the second target frequency to improve the conversion efficiency of the second charging IC, thereby increasing the second output current of the second charging IC, so that the first output current The current ratio to the second output current satisfies the first preset current ratio.
  • the electronic device can 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 according to the first preset correspondence and the current frequency of the first charging IC
  • the first target frequency of the first charging IC 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 first A current ratio between the output current and the second output current satisfies a first preset current ratio.
  • the electronic The 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 preset correspondence between the first charging IC and the current frequency of the first charging IC.
  • the first target frequency is 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 first output current and the second The current ratio between the output currents satisfies a first preset current ratio.
  • the electronic device may determine that the current first output current of the first charging IC is relatively large, The current second output current of the second charging IC is relatively small. At this time, the electronic device can determine the first preset corresponding relationship between the conversion efficiency of the first charging IC and the frequency according to the first output current, and according to the first preset Corresponding relationship and the current frequency of the first charging IC, determine the first target frequency of the first charging IC, 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 The first output current of a charging IC.
  • the electronic device can determine the second preset correspondence between the conversion efficiency of the second charging IC and the frequency according to the second output current, and determine the second preset correspondence according to the second preset correspondence and the current frequency of the second charging IC.
  • the second target frequency of the charging IC is to adjust the frequency of the second charging IC to the second target frequency to improve the conversion efficiency of the second charging IC, thereby increasing the second output current of the second charging IC, so that the first output current The current ratio to the second output current satisfies 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 can adjust the frequency of the first charging IC according to the first output current, that is, determine the first preset correspondence between the conversion efficiency of the first charging IC and the frequency according to the first output current, and according to the determined Adjust the frequency of the first charging IC to improve the conversion efficiency of the first charging IC, so as to increase the first output current of the first charging IC, so that the first output A current ratio between the current and the second output current satisfies a first preset current ratio.
  • the electronic device may determine that the current second output current of the second charging IC is relatively large.
  • the electronic device can 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 first output current and The current ratio between the second output currents satisfies the first preset current ratio.
  • the electronic device can determine that the current first output current of the first charging IC is relatively small, at this time, the electronic device can adjust the first charging according to the first output current (ie 4A)
  • the frequency of the IC that is, the electronic device can be based on the first preset correspondence between the frequency of the charging IC and the conversion efficiency when the output current is [4A, 6A] (that is, the conversion efficiency of the charging IC at a high frequency is less than that of the charging IC at a
  • the conversion efficiency at low frequency, the conversion efficiency when the charging IC is at a low frequency is less than the conversion efficiency when the charging IC is at a medium frequency
  • the current frequency of the first charging IC determine the first target frequency of the first charging IC
  • the conversion efficiency of the first charging IC will be increased to the maximum, at this time, if the current ratio between the first output current and the second output current 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 can determine that the current second output current of the second charging IC is relatively large, at this time, the electronic device can according to The second output current adjusts the frequency of the second charging IC to reduce the conversion efficiency of the second charging IC 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 lies in [0.9, 1.1].
  • the frequency of the first charging IC is adjusted according to the first target frequency, so that the first charging
  • the electronic device can According to the adjusted current ratio between the first output current and the second output current and the first preset current ratio, determine the second target frequency of the second charging IC 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, 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.
  • the electronic device may determine that the current second output current of the second charging IC is relatively large, which means , the electronic device can determine the second preset correspondence between the conversion efficiency of the second charging IC and the frequency according to the second output current, and determine the second preset correspondence according to the second preset correspondence and the current frequency of the second charging IC.
  • the second target frequency of the charging IC to adjust the frequency of the second charging IC to the second target frequency, to reduce the conversion efficiency of the second charging IC, thereby reducing the second output current of the second charging IC, so that the first output current
  • the current ratio to the second output current satisfies the first preset current ratio.
  • the electronic device can 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 preset correspondence according to the first preset correspondence and the current frequency of the first charging IC.
  • the first target frequency of a charging IC is to adjust the frequency of the first charging IC to the first target frequency to improve the conversion efficiency of the first charging IC, thereby increasing the first output current of the first charging IC, so that the first output A current ratio between the current and the second output current satisfies a first preset current ratio.
  • the electronic The 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 preset correspondence between the first charging IC and the current frequency of the first charging IC.
  • the first target frequency is to adjust the frequency of the first charging IC to the first target frequency to improve the conversion efficiency of the first charging IC, thereby increasing the first output current of the first charging IC, so that the first output current and the second The current ratio between the output currents satisfies a first preset current ratio.
  • the electronic device may determine that the current first output current of the first charging IC is relatively small, The current second output current of the second charging IC is relatively large. At this time, the electronic device can 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 preset corresponding relationship between the conversion efficiency and the frequency of the first charging IC according to the first output current. The first preset correspondence between the conversion efficiency and frequency of the first charging IC and the current frequency of the first charging IC adjust the frequency of the first charging IC to improve the conversion efficiency of the first charging IC and increase the first output of the first charging IC current.
  • the electronic device can determine the second preset correspondence between the conversion efficiency of the second charging IC and the frequency according to the second output current, and determine the second preset correspondence between the conversion efficiency of the second charging IC and the frequency 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, determine the second target frequency of the second charging IC, to adjust the frequency of the second charging IC to the second target frequency, to reduce the conversion efficiency of the second charging IC, thereby reducing the second charging The second output current of the IC, so that the current ratio between the first output current and the second output current satisfies the first preset current ratio.
  • the electronic device can adjust 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.
  • the first output current of a charging IC and/or the second output current of a 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 charging
  • the adjusted first output current of the IC is less than or equal to the corresponding maximum output current of the first charging IC
  • the adjusted second output current of the second charging IC is less than or equal to the corresponding maximum output current of the second charging IC.
  • 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, so that the first charging
  • the electronic device can determine the first target frequency of the first charging IC in combination with the corresponding maximum output current of the first charging IC, so as to ensure that the adjusted first output current of the first charging IC is less than Or on the basis of being equal to the maximum output current corresponding to the first charging IC, the conversion efficiency of the first charging IC is improved, and the first output current of the first charging IC is increased.
  • the electronic device can determine the maximum conversion efficiency that the first charging IC can achieve in the current adjustment according to the maximum output current corresponding to the first charging IC, and determine one or more voltages that the first charging IC can adjust according to the maximum conversion efficiency. candidate frequency. Therefore, when the electronic device determines the first target 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, it can determine from the one or more candidate frequencies Out of the first target frequency of the first charging IC.
  • 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, so that the second charging IC
  • the electronic device can determine the second target frequency of the second charging IC in combination with the corresponding maximum output current of the second charging IC, so as to ensure that the adjusted second output current of the second charging IC is less than or On the basis of being equal to the maximum output current corresponding to the second charging IC, 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 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 can charge the second battery through the first charging IC. A battery is charged, and the second battery can be charged through the second charging IC. That is, the first output current of the first charging IC can be input into the first battery to charge the first battery, and the second output current of the second charging IC can be input into the second battery to charge the second battery.
  • the charging speed of the first battery and the charging speed of the second battery meet the preset requirements (such as the requirement that the first battery and the second battery be fully charged at the same time, the first battery and the second battery are used to meet the requirements of being fully charged at the same time)
  • the requirement is taken as an example for illustration
  • the current ratio between the first output current of the first charging IC and the second output current of the second charging IC can be set to meet a second preset current ratio.
  • the second preset current ratio can also be a range of ratios, and the second preset current ratio can also be specifically determined by technicians according to actual scenarios.
  • the technician can base on the original impedance of the path where the first charging IC is located and the original impedance of the path where the second charging IC is located, as well as the rated capacity of the first battery and the rated capacity of the second battery when the electronic device leaves the factory. capacity to determine the second preset current ratio.
  • the rated capacity of the first battery and the rated capacity of the second battery may be determined according to specific conditions of the battery, which is not limited in this embodiment of the present application.
  • the second preset current ratio can be set to [0.9, 1.1].
  • the first output current of the first charging IC and the second output current of the second charging IC should be 2:1.
  • the second preset current ratio can be set to [2.1, 0.9].
  • the electronic device can 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.
  • Frequency, 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 The first output current of the first charging IC and the second output current of the second charging IC satisfy a second preset current ratio.
  • adjusting the frequency of the first charging IC and/or adjusting the frequency of the second charging IC by the electronic device according to the second preset current ratio is the same as adjusting the frequency of the first charging IC and/or adjusting the frequency of the first charging IC by the electronic device according to the first preset current ratio.
  • the principle of adjusting the frequency of the second charging IC is basically the same, and the specific content can refer to the 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 repeated here.
  • the electronic device when the electronic device further includes a third charging IC and a third battery, the electronic device can charge the third battery through the third charging IC.
  • the second preset current ratio can be 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 ratio interval that needs to be satisfied between the three currents.
  • the electronic device can adjust the frequency of the first charging IC, the frequency of the second charging IC and the frequency of the second charging IC according to the current ratio of the first output current, the second output current and the third output current, and the second preset current ratio.
  • the electronic device can obtain the current input current, voltage and temperature of the battery, and can determine the current maximum input current allowed by the battery according to the current voltage, temperature and the third preset correspondence relationship of the battery . Subsequently, the electronic device can 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 of the battery to adjust the first output of the first charging IC current and/or adjust the second output current of the second charging IC, thereby adjusting the input current of the battery, so as to avoid overcurrent of the battery during the charging process and avoid damage to the battery.
  • the third preset correspondence is the correspondence between the maximum input current and the voltage allowed by each battery at each temperature.
  • the third preset relationship may be stored in the electronic device, or in other electronic devices or the cloud that is communicatively connected with the electronic device.
  • the electronic equipment can measure the current voltage of the battery through the voltage measuring device. It should be understood that the third preset correspondence relationship and the voltage measuring device may be specifically set by a technician according to an actual scenario, and this embodiment of the present application does not impose any limitation on this.
  • each input terminal of the battery may A current measuring device C is provided respectively, through which the electronic device can acquire the current input current of the battery. Similar to the aforementioned current measuring device A and current measuring device B, the current measuring device C may be specifically set according to actual scenarios, which is not limited in this embodiment of the present application.
  • the electronic device can determine the first charging IC's first charging current according to the current first output current of the first charging IC and the current frequency of the first charging IC. Target frequency, 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 reduce the current input to the battery by the first charging IC, Thereby reducing the input current of the battery.
  • 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. Frequency, to reduce the conversion efficiency of the second charging IC, reduce the second output current of the second charging IC, reduce the current input to the battery by the second charging IC, thereby reducing the input current of the battery.
  • a current measuring device D may be provided at the input terminal of the first battery
  • a current measuring device E may be provided at the input terminal of the second battery. The electronic device can obtain the first input current of the first battery through the current measuring device D, and/or can obtain the second input current of the second battery through the current measuring device E.
  • the electronic device may determine the second current according to the current first output current of the first charging IC and the current frequency of the first charging IC.
  • the first target frequency of a 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, thereby reducing the first battery of the first input current.
  • the electronic device may determine the second current according to the current second output current of the second charging IC and the current frequency of the second charging IC.
  • the second target 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, thereby reducing the second battery
  • the second input current when the second input current of the second battery is greater than the current maximum input current allowed by the second battery, the electronic device may determine the second current according to the current second output current of the second charging IC and the current frequency of the second charging IC.
  • the electronic device may combine the corresponding maximum output current of the first charging IC and/or Or the second preset current ratio to adjust the frequency of the first charging IC so that the adjusted first output current of the first charging IC is less than or equal to the corresponding maximum output current of the first charging IC, and/or make the first charging IC A current ratio between the adjusted first output current of the IC and the second output current of the second charging IC satisfies a second preset current ratio.
  • the electronic device may combine the corresponding maximum output current of the second charging IC and/or The second preset current ratio is used to adjust the second output current of the second charging IC, so that the adjusted second output current of the second charging IC is less than or equal to the corresponding maximum output current of the second charging IC, and/or make the second charging IC A current ratio between the first output current of a charging IC and the adjusted second output current of the second charging IC satisfies a second preset current ratio.
  • the electronic device may obtain a third input current of the third battery, and determine whether the third input current is greater than a corresponding maximum input current of the third battery.
  • the electronic device can determine the 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 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.
  • FIG. 6 shows a schematic flowchart of a charging method provided by an embodiment of the present application.
  • the method can be applied to an electronic device including at least a first charging chip and a second charging chip.
  • the method may include:
  • the electronic device When detecting that the electronic device is in a charging state, the electronic device acquires a first output current of a first charging chip, or acquires a first output current of the first charging chip and a second output current of a second charging chip.
  • the electronic device may determine whether the electronic device is in a charging state according to whether the USB interface of the electronic device receives a charging input from a wired charger.
  • the electronic device may determine whether the electronic device is in a charging state according to whether the wireless charging coil of the electronic device receives a wireless charging input.
  • first output current refers to the current at the output terminal of the first charging chip (ie, the first charging IC)
  • second output current refers to the current at the output terminal of the second charging chip (ie, the second charging IC).
  • the way of obtaining the first output current and the second output current can refer to the foregoing description, which will not be repeated here.
  • the electronic device determines the 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.
  • the electronic device may determine whether the first output current of the first charging IC is greater than the corresponding maximum output current of the first charging IC.
  • the electronic device can determine the first preset correspondence between the conversion efficiency of the first charging IC and the frequency according to the first output current, and according to the determined
  • the first preset correspondence relationship and the current frequency of the first charging IC determine the first target frequency of the first charging IC to adjust the frequency of the first charging IC to the first target frequency, thereby reducing the conversion efficiency of the first charging IC , reducing the first output current of the first charging IC.
  • the electronic device can also determine the second target frequency of the second charging IC according to the second output current, or according to the first output current and the second output current, and adjust the second target frequency of the second charging IC according to the second target frequency. frequency.
  • the electronic device may determine whether the second output current of the second charging IC is greater than the corresponding maximum output current of the second charging IC.
  • the electronic device can determine according to the second output current, the second preset correspondence between the conversion efficiency of the second charging IC and the frequency, and can according to the The determined second preset correspondence relationship and the current frequency of the second charging IC determine the second target frequency of the second charging IC to adjust the frequency of the second charging IC to the second target frequency, thereby reducing the frequency of the second charging IC conversion efficiency, reducing the second output current of the second charging IC.
  • the electronic device determines the first preset corresponding relationship between the conversion efficiency of the first charging IC and the frequency according to the first output current, and reference may be made to the foregoing specific description, which will not be repeated here.
  • the electronic device may determine the first preset corresponding relationship between the conversion efficiency of the first charging IC and the frequency under the first output current according to the relationship shown in FIG. 4 .
  • the electronic device determines the second preset corresponding relationship between the conversion efficiency of the second charging IC and the frequency according to the second output current. Reference may also be made to the aforementioned specific description, which will not be repeated here.
  • the electronic device when the electronic device includes only one battery, the electronic device may be based on 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 , to determine the first target frequency of the first charging IC, and/or determine the second target frequency of the second charging IC.
  • the electronic device can determine the first current ratio 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. a first target frequency for the charging IC, and/or determine a second target frequency for the second charging IC.
  • the first preset current ratio and the second preset current ratio are ratio relationships 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 respectively.
  • the manner of determining the first preset current ratio and the second preset current ratio may refer to the foregoing determination manner of the first preset current ratio and the second preset current ratio, which will not be repeated here.
  • the first preset current ratio may be determined according to the original impedance of the path where the first charging IC is located and the original impedance of the path where the second charging IC is located.
  • the second preset current ratio can be determined according to the original impedance of the path where the first charging IC is located and the original impedance of the path where the second charging IC is located, as well as the rated capacity of the first charging IC and the rated capacity of the second charging IC.
  • the electronic device determines 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 for the specific content of determining the second target frequency of the second charging IC, reference may be made to the foregoing description, which will not be repeated here.
  • the electronic device determines 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 for the specific content of determining the second target frequency of the second charging IC, reference may be made to the foregoing description, which will not be repeated here.
  • the frequency and/or 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 (or the second preset current ratio).
  • the electronic device can combine the corresponding maximum output current of the first charging IC and/or Or the corresponding maximum output current of the second charging IC to adjust the first output current of the first charging IC and/or the second output current of the second charging IC so that the current between the first output current and the second output current While the ratio satisfies the first preset current ratio (or the second preset current ratio), the adjusted first output current of the first charging IC is less than or equal to the corresponding maximum output current of the first charging IC, and the second charging IC adjusts The final second output current is less than or equal to the corresponding maximum output current of the second charging IC.
  • the electronic device can obtain the current input current, voltage and temperature of the battery, and can determine the current maximum input current allowed by the battery according to the current voltage, temperature and the third preset correspondence relationship of the battery . Subsequently, the electronic device can 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 of the battery to adjust the first output of the first charging IC current and/or adjust the second output current of the second charging IC, thereby adjusting the input current of the battery, so as to avoid overcurrent of the battery during the charging process and avoid damage to the battery.
  • the specific content of adjusting the frequency of the first charging IC and/or adjusting the frequency of the second charging IC can also refer to the above-mentioned adjustment according to the third preset corresponding relationship.
  • the specific description of adjusting the frequency of the first charging IC and/or adjusting the frequency of the second charging IC will not be repeated here.
  • the electronic device when the electronic device includes only one battery, if the current input current of the battery is greater than the current maximum input current allowed by the battery, the electronic device can use the current first output current of the first charging IC and the current frequency of the first charging IC , determine the first target 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 reduce the first A charging IC inputs the current of the battery, thereby reducing the input current of the battery.
  • 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. Frequency, to reduce the conversion efficiency of the second charging IC, reduce the second output current of the second charging IC, reduce the current input to the battery by the second charging IC, thereby reducing the input current of the battery.
  • the electronic device when the electronic device includes at least a first battery and a second battery, that is, when the first output current of the first charging IC is input to the first battery, and the second output current of the second charging IC is input to the second battery, if the second When the first input current of a battery is greater than the current maximum input current allowed by the first battery, the electronic device can determine the first current 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. Target frequency, 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, thereby reducing the first input current of the first battery.
  • the electronic device can determine 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.
  • the second target frequency 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, thereby reducing the second battery's second Input Current.
  • the electronic device adjusts the frequency of the first charging chip according to the first target frequency.
  • the electronic device can also adjust the frequency of the second charging chip according to the second target frequency. Wherein, the electronic device adjusts the frequency of the first charging IC according to the first target frequency, and/or adjusts the frequency of the second charging IC according to the second target frequency. The specific description of adjusting the frequency of the second charging IC will not be repeated here.
  • the electronic device when it is detected that the electronic device is in the charging state, can obtain the first output current of the first charging chip, or obtain the first output current of the first charging chip and the second output current of the second charging chip current, and the first target frequency of the first charging chip can be determined according to the first output current, or according to the first output current and the second output current. Subsequently, the electronic device can adjust the frequency of the first charging chip according to the first target frequency, thereby adjusting the first output current of the first charging chip, so as to adjust the output current of the charging chip without adding an additional current sharing circuit , to ensure that the output current of the charging chip meets the requirements, and avoid overcurrent of a certain charging chip, thereby ensuring the safety of charging and improving user experience.
  • the embodiment of the present application further provides a charging device, and each module of the device can correspond to each step of the charging method.
  • FIG. 7 shows a schematic structural diagram of a charging device provided by an embodiment of the present application.
  • the contents of the foregoing embodiments are all applicable to this embodiment, and details are not described here.
  • the device can be applied to electronic equipment including at least a first charging chip and a second charging chip. As shown in Figure 7, the device may include:
  • An output current acquisition module 701 configured to acquire the first output current of the first charging chip, or acquire the first output current of the first charging chip and the second output current of the second charging chip when the electronic device is detected to be in the charging state .
  • the specific way for the output current acquisition module 701 to determine whether the electronic device is in the charging state can refer to the above-mentioned specific description about determining whether the electronic device is in the charging state, and the way for the output current acquisition module 701 to obtain the first output current or the second output current is also Reference can be made to the foregoing detailed description about obtaining the output current of the first charging IC and/or the second charging IC, and details will not be repeated here.
  • the target frequency determination module 702 is configured to determine the 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.
  • the target frequency determining module 702 is further configured to determine the 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. target frequency.
  • a frequency adjustment module 703, configured to adjust the frequency of the first charging chip according to the first target frequency.
  • the frequency adjustment module 703 is further configured to adjust the frequency of the second charging chip according to the second target frequency.
  • the frequency adjustment module 703 adjusts the frequency of the first charging IC according to the first target frequency, and/or adjusts the frequency of the second charging IC according to the second target frequency.
  • the specific description of/or adjusting the frequency of the second charging IC will not be repeated here.
  • the target frequency determination module 702 can also be used to obtain the current input current, voltage and temperature of the battery, and determine the current maximum input current allowed by the battery according to the current battery voltage, temperature and the third preset corresponding relationship ; Determine the first target frequency of the first charging IC, and/or determine the second target 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.
  • An embodiment of the present application also provides an electronic device, where the electronic device includes at least one memory, at least one processor, and a computer program stored in the at least one memory and operable on the at least one processor.
  • the processor executes the computer program, the electronic device is enabled to implement the steps in any of the foregoing method embodiments.
  • the structure of the electronic device may be as shown in FIG. 1 .
  • the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a computer, the computer implements the steps in any of the above method embodiments .
  • An embodiment of the present application provides a computer program product, which enables the electronic device to implement the steps in any of the foregoing method embodiments when the computer program product is run on the electronic device.
  • the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • all or part of the processes in the methods of the above embodiments in the present application can be completed by instructing related hardware through computer programs, and the computer programs can be stored in a computer-readable storage medium.
  • the computer program When executed by a processor, the steps in the above-mentioned various method embodiments can be realized.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form.
  • the computer-readable storage medium may at least include: any entity or device capable of carrying computer program codes to the device/electronic device, recording medium, computer memory, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), electrical carrier signals, telecommunication signals, and software distribution media.
  • any entity or device capable of carrying computer program codes to the device/electronic device recording medium, computer memory, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), electrical carrier signals, telecommunication signals, and software distribution media.
  • read-only memory read-only memory
  • RAM random access memory
  • electrical carrier signals telecommunication signals
  • software distribution media such as U disk, mobile hard disk, magnetic disk or optical disk, etc.
  • computer readable storage media may not be electrical carrier signals and telecommunication signals based on legislation and patent practice.
  • the disclosed device/electronic equipment and method can be implemented in other ways.
  • the device/electronic device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

Abstract

The present application is suitable for the technical field of terminals. Provided are a charging method, an electronic device and a computer-readable storage medium. In the method, when it is detected that an electronic device is in a charging state, the electronic device 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. Then, the electronic device 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, thereby ensuring that the output current of the charging chip meets requirements, and avoiding overcurrent of the charging chip, thus ensuring the safety of charging and improving the user experience.

Description

充电方法、电子设备及计算机可读存储介质Charging method, electronic device, and computer-readable storage medium
本申请要求于2021年12月02日提交国家知识产权局、申请号为202111461496.9、申请名称为“一种充电方法、电路以及终端设备”,以及,要求于2022年03月23日提交国家知识产权局、申请号为202210294071.1、申请名称为“充电方法、电子设备及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application is required to be submitted to the State Intellectual Property Office on December 2, 2021, the application number is 202111461496.9, and the application name is "a charging method, circuit and terminal equipment", and the national intellectual property right is required to be submitted on March 23, 2022 Office, the priority of the Chinese patent application with application number 202210294071.1 and application title "charging method, electronic device and computer-readable storage medium", the entire content of which is incorporated in this application by reference.
技术领域technical field
本申请属于终端技术领域,尤其涉及充电方法、电子设备及计算机可读存储介质。The present application belongs to the technical field of terminals, and in particular relates to a charging method, an electronic device, and a computer-readable storage medium.
背景技术Background technique
目前,人们对电子设备的充电速度具有较高要求。为提高充电速度,可以在电子设备中增加充电芯片(integrated circuit,IC)的数量,以通过多充电IC实现大功率快充。但目前基于多充电IC的大功率快充中,各充电IC的输出电流容易出现不均衡的问题,导致某一充电IC容易出现过流,降低了充电的安全性,造成用户体验较差。At present, people have higher requirements on the charging speed of electronic devices. In order to increase the charging speed, the number of charging chips (integrated circuit, IC) can be increased in the electronic equipment, so as to realize high-power fast charging through multiple charging ICs. However, in the current high-power fast charging based on multiple charging ICs, the output current of each charging IC is prone to unbalanced problems, resulting in a certain charging IC prone to overcurrent, reducing the safety of charging, resulting in poor user experience.
发明内容Contents of the invention
本申请实施例提供了一种充电方法、电子设备及计算机可读存储介质,在充电过程中可以通过调整充电IC的频率来调整充电IC的输出电流,以在确保充电安全的基础上,实现电子设备的快充功能,提高用户体验。Embodiments of the present application provide a charging method, electronic equipment, and a computer-readable storage medium. During the charging process, the output current of the charging IC can be adjusted by adjusting the frequency of the charging IC, so as to realize electronic charging while ensuring charging safety. The fast charging function of the device improves the user experience.
第一方面,本申请实施例提供了一种充电方法,应用于电子设备,所述电子设备至少包括第一充电芯片和第二充电芯片,所述方法可以包括:In the first aspect, an embodiment of the present application provides a charging method, which is applied to an electronic device, and the electronic device includes at least a first charging chip and a second charging chip, and the method may include:
在检测到所述电子设备处于充电状态时,获取所述第一充电芯片的第一输出电流,或,获取所述第一充电芯片的第一输出电流和所述第二充电芯片的第二输出电流;When it is detected that the electronic device is in the charging state, acquiring the first output current of the first charging chip, or acquiring the first output current of the first charging chip and the second output of the second charging chip current;
根据所述第一输出电流确定所述第一充电芯片的第一目标频率,或,根据所述第一输出电流和所述第二输出电流,确定所述第一充电芯片的第一目标频率;determining the 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;
根据所述第一目标频率调节所述第一充电芯片的频率。The frequency of the first charging chip is adjusted according to the first target frequency.
在上述的充电方法中,在检测到电子设备处于充电状态时,电子设备可以获取第一充电芯片的第一输出电流,或,获取第一充电芯片的第一输出电流和第二充电芯片的第二输出电流,并可以根据第一输出电流,或根据第一输出电流和第二输出电流,确定第一充电芯片的第一目标频率。随后,电子设备可以根据第一目标频率调节第一充电芯片的频率,从而对第一充电芯片的第一输出电流进行调节,以在不增加额外均流电路的基础上,调节充电芯片的输出电流,确保充电芯片的输出电流满足要求,避免充电芯片出现过流,从而确保充电的安全性,提升用户体验。In the above charging method, when it is detected that the electronic device is in the charging state, the electronic device may obtain the first output current of the first charging chip, or obtain the first output current of the first charging chip and the first output current of the second charging chip. Two output currents, and the first target frequency of the first charging chip can be determined according to the first output current, or according to the first output current and the second output current. Subsequently, the electronic device can adjust the frequency of the first charging chip according to the first target frequency, thereby adjusting the first output current of the first charging chip, so as to adjust the output current of the charging chip without adding an additional current sharing circuit , to ensure that the output current of the charging chip meets the requirements, and avoid overcurrent of the charging chip, thereby ensuring the safety of charging and improving user experience.
在一个示例中,所述根据所述第一输出电流确定所述第一充电芯片的第一目标频率,可以包括:In an 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 greater than the maximum output current corresponding to the first charging chip;
当所述第一输出电流大于所述第一充电芯片对应的最大输出电流时,根据所述第一输 出电流确定所述第一充电芯片的转换效率与频率之间的第一预设对应关系;When the first output current is greater than the corresponding maximum output current of the first charging chip, determine a first preset correspondence between the conversion efficiency of the first charging chip and the frequency according to the first output current;
根据所述第一预设对应关系和所述第一充电芯片当前的频率,确定所述第一充电芯片的第一目标频率。A first target frequency of the first charging chip is determined according to the first preset correspondence relationship and the current frequency of the first charging chip.
在该实现方式提供的充电方法中,为避免第一充电芯片出现过流,电子设备可以获取第一充电芯片对应的最大输出电流,并确定第一充电芯片当前的第一输出电流是否超过第一充电芯片对应的最大输出电流。当第一充电芯片当前的第一输出电流超过第一充电芯片对应的最大输出电流时,电子设备可以根据第一充电芯片当前的第一输出电流,确定第一充电芯片的转换效率与频率之间的第一预设对应关系。随后,电子设备可以根据第一充电芯片当前的频率和所确定的第一预设对应关系,确定第一充电芯片的第一目标频率,并将第一充电芯片的频率调整至第一目标频率,以通过调节第一充电芯片的频率来调节第一充电芯片的转换效率,从而调节第一充电芯片的第一输出电流,使得第一充电芯片的第一输出电流小于第一充电芯片对应的最大输出电流,避免第一充电芯片出现过流。In the charging method provided by this implementation, in order to avoid overcurrent of the first charging chip, the electronic device can obtain the maximum output current corresponding to the first charging chip, and determine whether the current first output current of the first charging chip exceeds the first The maximum output current corresponding to the 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 the difference between the conversion efficiency of the first charging chip and the frequency according to the current first output current of the first charging chip. The first preset corresponding relationship. Subsequently, the electronic device may determine the first target frequency of the first charging chip according to the current frequency of the first charging chip and the determined first preset correspondence, and adjust the frequency of the first charging chip to the first target frequency, 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 of the first charging chip current to avoid overcurrent in the first charging chip.
在另一个示例中,所述根据所述第一输出电流和所述第二输出电流,确定所述第一充电芯片的第一目标频率,可以包括: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:
获取所述第一输出电流和所述第二输出电流之间的第一电流比;obtaining a first current ratio between the first output current and the second output current;
根据所述第一电流比和第一预设电流比,确定所述第一充电芯片的第一目标频率。A first target frequency of the first charging chip is determined according to the first current ratio and a first preset current ratio.
在该实现方式提供的充电方法中,电子设备中可以设置有第一输出电流与第二输出电流之间的电流比需满足的第一预设电流比。当第一充电芯片当前的第一输出电流和第二充电芯片当前的第二输出电流不满足第一预设电流比时,电子设备可以根据第一电流比和第一预设电流比,确定第一充电芯片的第一目标频率,来调节第一充电芯片的频率,从而调节第一充电芯片的转换效率,以调节第一充电芯片的第一输出电流,以避免第一充电芯片和第二充电芯片分别为同一电池充电时,造成电池局部的输入电流较大,使得电池的局部发热严重,导致电子设备的断充,或者使得第一充电芯片为第一电池充电,第二充电芯片为第二电池充电时,第一电池的充电速度与第二电池的充电速度满足预设要求(例如第一电池与第二电池同时充满的要求),提升用户体验。In the charging method provided in this implementation manner, a first preset current ratio that must be satisfied by the current ratio between the first output current and the second output current may be set in the electronic device. When the current first output current of the first charging chip and the current second output current of the second charging chip do not satisfy the first preset current ratio, the electronic device may determine the first current ratio according to the first current ratio and the first preset current ratio. The first target frequency of a charging chip to adjust the frequency of the first charging chip, thereby adjusting the conversion efficiency of the first charging chip, to adjust the first output current of the first charging chip, so as to avoid the first charging chip and the second charging When the chips are charging the same battery, the local input current of the battery is relatively large, causing the local heating of the battery to be serious, resulting in the interruption of charging of the electronic device, or making the first charging chip charge the first battery, and the second charging chip is the second charging chip. When the battery is being charged, 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 be fully charged at the same time), thereby improving user experience.
在一种可能的实现方式中,所述方法还可以包括:In a possible implementation, the method may also 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;
根据所述第二目标频率调节所述第二充电芯片的频率。The frequency of the second charging chip is adjusted according to the second target frequency.
在该实现方式提供的充电方法中,电子设备也可以根据第二输出电流,或根据第一输出电流和第二输出电流,确定第二充电芯片的第二目标频率,并根据第二目标频率调节第二充电芯片的频率,从而对第二充电芯片的第二输出电流进行调节,以在不增加额外均流电路的基础上,调节第二充电芯片的输出电流,确保第二充电芯片的输出电流满足要求,避免第二充电芯片出现过流,从而确保充电的安全性,提升用户体验。In the charging method provided by this implementation, 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 according to the second target frequency. The frequency of the second charging chip, so as to adjust the second output current of the second charging chip, so as to adjust the output current of the second charging chip without adding an additional current sharing circuit, so as to ensure the output current of the second charging chip Meet the requirements and avoid the overcurrent of the second charging chip, thereby ensuring the safety of charging and improving user experience.
可选的,在检测到电子设备处于充电状态时,电子设备也可以单独获取第二充电芯片的第二输出电流,并直接根据第二输出电流,确定第二充电芯片的第二目标频率。随后,电子设备可以根据第二目标频率调节第二充电芯片的频率,从而对第二充电芯片的第二输出电流进行调节,确保第二充电芯片的输出电流满足要求,避免第二充电芯片出现过流,从而确保第二充电的安全性,提升用户体验。Optionally, when it is detected that the electronic device is in the charging state, the electronic device may also separately obtain the second output current of the second charging chip, and directly determine the second target frequency of the second charging chip according to the second output current. Subsequently, the electronic device can adjust the frequency of the second charging chip according to the second target frequency, thereby adjusting the second output current of the second charging chip, ensuring that the output current of the second charging chip meets the requirements, and avoiding the overshooting of the second charging chip. flow, so as to ensure the safety of the second charging and improve the user experience.
在一个示例中,所述根据所述第二输出电流确定所述第二充电芯片的第二目标频率,可以包括:In an 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 the maximum output current corresponding to the second charging chip;
当所述第二输出电流大于所述第二充电芯片对应的最大输出电流时,根据所述第二输出电流确定所述第二充电芯片的转换效率与频率之间的第二预设对应关系;When the second output current is greater than the maximum output current corresponding to the second charging chip, determine a second preset correspondence between the conversion efficiency of the second charging chip and the frequency according to the second output current;
根据所述第二预设对应关系和所述第二充电芯片当前的频率,确定所述第二充电芯片的第二目标频率。A second target frequency of the second charging chip is determined according to the second preset correspondence relationship and the current frequency of the second charging chip.
在该实现方式提供的充电方法中,为避免第二充电芯片出现过流,电子设备可以获取第二充电芯片对应的最大输出电流,并确定第二充电芯片当前的第二输出电流是否超过第二充电芯片对应的最大输出电流。当第二充电芯片当前的第二输出电流超过第二充电芯片对应的最大输出电流时,电子设备可以根据第二充电芯片当前的第二输出电流,确定第二充电芯片的转换效率与频率之间的第二预设对应关系。随后,电子设备可以根据第二充电芯片当前的频率和所确定的第二预设对应关系,确定第二充电芯片的第二目标频率,并将第二充电芯片的频率调整至第二目标频率,以通过调节第二充电芯片的频率来调节第二充电芯片的转换效率,从而调节第二充电芯片的第二输出电流,使得第二充电芯片的第二输出电流小于第二充电芯片对应的最大输出电流,避免第二充电芯片出现过流。In the charging method provided by this implementation, in order to avoid overcurrent of the second charging chip, the electronic device can acquire the maximum output current corresponding to the second charging chip, and determine whether the current second output current of the second charging chip exceeds the second The maximum output current corresponding to the 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 the difference between the conversion efficiency of the second charging chip and the frequency according to the current second output current of the second charging chip. The second preset corresponding relationship. Subsequently, the electronic device may determine the second target frequency of the second charging chip according to the current frequency of the second charging chip and the determined second preset correspondence, and adjust the frequency of the second charging chip to the second target frequency, 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 of the second charging chip current to avoid overcurrent in the second charging chip.
可以理解的是,第二预设对应关系与第一预设对应关系相同,均为各输出电流下,充电芯片的转换效率与频率之间的对应关系。It can be understood that the second preset correspondence relationship is the same as the first preset correspondence relationship, which is the correspondence relationship between the conversion efficiency of the charging chip and the frequency 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:
获取所述第一输出电流和所述第二输出电流之间的第一电流比;obtaining a first current ratio between the first output current and the second output current;
根据所述第一电流比和第一预设电流比,确定所述第一充电芯片的第一目标频率和所述第二充电芯片的第二目标频率。A first target frequency of the first charging chip and a second target frequency of the second charging chip are determined according to the first current ratio and the first preset current ratio.
在该实现方式提供的充电方法中,电子设备中可以设置有第一输出电流与第二输出电流之间的电流比需满足的第一预设电流比。当第一充电芯片当前的第一输出电流与第二充电芯片当前的第二输出电流之间的第一电流比不满足第一预设电流比时,电子设备可以根据第一电流比和第一预设电流比,同时确定第一充电芯片的第一目标频率和第二充电芯片的第二目标频率,来同时调节第一充电芯片的频率和第二充电芯片的频率,从而调节第一充电芯片的转换效率和第二充电芯片的转换效率,以调节第一充电芯片的第一输出电流和第二充电芯片的第二输出电流,使得第一输出电流和第二输出电流满足预设要求,提升用户体验。In the charging method provided in this implementation manner, a first preset current ratio that must be satisfied by the current ratio between the first output current and the second output current may be set in the electronic device. 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 Preset the current ratio, and simultaneously determine the first target frequency of the first charging chip and the second target frequency of the second charging chip to simultaneously adjust the frequency of the first charging chip and the frequency of the second charging chip, thereby adjusting the frequency of the first charging chip The conversion efficiency of the second charging chip and the conversion efficiency of the second charging chip are used to adjust the first output current of the first charging chip and the second output current of the second charging chip, so that the first output current and the second output current meet the preset requirements and improve the 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:
在根据所述第一目标频率调节所述第一充电芯片的频率之后,获取所述第一输出电流和所述第二输出电流之间的第二电流比;obtaining 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;
根据所述第二电流比和第一预设电流比,确定所述第二充电芯片的第二目标频率。A second target frequency of the second charging chip is determined according to the second current ratio and the first preset current ratio.
在该实现方式提供的充电方法中,当第一充电芯片当前的第一输出电流与第二充电芯片当前的第二输出电流之间的第一电流比不满足第一预设电流比时,电子设备可以先根据第一电流比和第一预设电流比,确定第一充电芯片的第一目标频率,来对第一充电芯片的 频率进行调节,以调节第一充电芯片的第一输出电流。在根据第一目标频率调节第一充电芯片的频率之后,电子设备可以继续获取第一充电芯片的第一输出电流和第二充电芯片的第二输出电流,若此时的第一输出电流和第二输出电流之间的第二电流比仍不满足第一预设电流比,电子设备可以根据第二电流比和第一预设电流比,确定第二充电芯片的第二目标频率,来对第二充电芯片的频率进行调节,以调节第二充电芯片的第二输出电流,使得第一输出电流和第二输出电流满足预设要求,提升用户体验。In the charging method provided by this implementation, 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 The device may first determine the first target frequency of the first charging chip according to the first current ratio and the first preset current ratio, and adjust the frequency of the first charging chip 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 continue to obtain the first output current of the first charging chip and the second output current of the second charging chip, if the first output current and the second output current The second current ratio between the two output currents still does not meet the first preset current ratio, and 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, to adjust the second current ratio. The frequency of the second charging chip is adjusted to adjust the second output current of the second charging chip, so that the first output current and the second output current meet preset requirements, thereby improving user experience.
在一个示例中,在第一充电芯片当前的第一输出电流与第二充电芯片当前的第二输出电流之间的第一电流比不满足第一预设电流比时,电子设备也可以先根据第一电流比和第一预设电流比,确定第一充电芯片的第一目标频率,来对第一充电芯片的频率进行调节。当调节第一充电芯片的频率,使得第一充电芯片的转换效率达到极值时,若第一输出电流与第二输出电流之间的第二电流比仍不满足第一预设电流比,例如,在需要降低第一充电芯片时,当调节第一充电芯片的频率,使得第一充电芯片的转换效率达到最小时,若第二电流比仍大于第一预设电流比中的最大值,或者,在需要提升第一充电芯片的转换效率时,当调节第一充电芯片的频率,使得第一充电芯片的转换效率达到最大时,若第二电流比仍小于第一预设电流比中的最小值,电子设备可以继续根据第二电流比和第一预设电流比,确定第二充电芯片的第二目标频率,来对第二充电芯片的频率进行调节,从而调节第二充电芯片的转换效率,以调节第二充电芯片的第二输出电流,使得第一输出电流和第二输出电流满足预设要求,提升用户体验。In an 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 first The first current ratio and the first preset current ratio determine the first target frequency of the first charging chip 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 extreme value, 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 it is necessary to reduce the first charging chip, when adjusting the frequency of the first charging chip so that the conversion efficiency of the first charging chip reaches the minimum, if the second current ratio is still greater than the maximum value in the first preset current ratio, or , when it is necessary to improve the conversion efficiency 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 the maximum, if the second current ratio is still less than the minimum of the first preset current ratio value, the electronic device can continue to determine the second target frequency of the second charging chip according to the second current ratio and the first preset current ratio to adjust the frequency of the second charging chip, thereby adjusting the conversion efficiency of the second charging chip , to adjust the second output current of the second charging chip, so that the first output current and the second output current meet preset requirements, thereby improving user experience.
在一个示例中,当第一充电芯片当前的第一输出电流与第二充电芯片当前的第二输出电流之间的第一电流比不满足第一预设电流比时,电子设备可以根据第一电流比和第一预设电流比,确定第二充电芯片的第二目标频率,来调节第二充电芯片的频率,从而调节第二充电芯片的转换效率,以调节第二充电芯片的第二输出电流,使得第一输出电流和第二输出电流满足预设要求,提升用户体验。In an 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 The current ratio and the first preset current ratio determine the second target frequency of the second charging chip to adjust the frequency of the second charging chip, thereby adjusting the conversion efficiency of the second charging chip to adjust the second output of the second charging chip current, so that the first output current and the second output current meet preset requirements, improving user experience.
在另一个示例中,在第一充电芯片当前的第一输出电流与第二充电芯片当前的第二输出电流之间的第一电流比不满足第一预设电流比时,电子设备也可以先根据第一电流比和第一预设电流比,确定第二充电芯片的第二目标频率,来对第二充电芯片的频率进行调节。当调节第二充电芯片的频率,使得第二充电芯片的转换效率达到极值时,若第一输出电流与第二输出电流之间的第二电流比仍不满足第一预设电流比,电子设备可以继续根据第二电流比和第一预设电流比,确定第一充电芯片的第一目标频率,来对第一充电芯片的频率进行调节,从而调节第一充电芯片的转换效率,以调节第一充电芯片的第一输出电流,使得第一输出电流和第二输出电流满足预设要求,提升用户体验。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 first According to the first current ratio and the first preset current ratio, the second target frequency of the second charging chip is determined to adjust the frequency of the second charging chip. When the frequency of the second charging chip is adjusted so that the conversion efficiency of the second charging chip reaches the extreme value, if the second current ratio between the first output current and the second output current still does not satisfy the first preset current ratio, the electronic The device can continue to 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 to adjust The first output current of the first charging chip makes the first output current and the second output current meet preset requirements, thereby improving user experience.
在一种可能的实现方式中,所述电子设备包括一个电池时,所述第一充电芯片和所述第二充电芯片用于为所述电池充电,所述方法还可以包括:In a 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 the first original impedance of the path where the first charging chip is located and the second original impedance of the path where the second charging chip is located;
根据所述第一原始阻抗和所述第二原始阻抗确定所述第一预设电流比。The first preset current ratio is determined 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 to charge the first battery, and the second charging chip is used to charge the The second battery is charged.
示例性的,所述方法还可以包括:Exemplarily, the method may also include:
获取所述第一充电芯片所在通路的第一原始阻抗、所述第二充电芯片所在通路的第二原始阻抗、所述第一电池的第一额定容量和所述第二电池的第二额定容量;Obtain the first original impedance of the path where the first charging chip is located, the second original impedance of the path where the second charging chip is located, the first rated capacity of the first battery, and the second rated capacity of the second battery ;
根据所述第一原始阻抗、所述第二原始阻抗、所述第一额定容量和所述第二额定容量确定所述第一预设电流比。The first preset current ratio is determined 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 this implementation, when the first charging chip is charging the first battery and the second charging chip is charging the second battery, the electronic device can Determine the first preset current ratio with 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 first battery The charging speed of the battery and the charging speed of the second battery meet a preset requirement (for example, the requirement that the first battery and the second battery be fully charged at the same time).
在一个示例中,所述根据所述第一输出电流确定所述第一充电芯片的第一目标频率,可以包括:In an example, the determining the first target frequency of the first charging chip according to the first output current may include:
获取所述第一电池的第一输入电流;obtaining 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 greater than the corresponding maximum input current of the first battery, determine a first preset correspondence between the conversion efficiency of the first charging chip and the frequency according to the first output current;
根据所述第一预设对应关系和所述第一充电芯片当前的频率,确定所述第一充电芯片的第一目标频率。A first target frequency of the first charging chip is determined according to the first preset correspondence relationship and the current frequency of the first charging chip.
在该实现方式提供的充电方法中,当第一充电芯片为电子设备的第一电池充电时,电子设备可以获取第一电池当前的第一输入电流、电压和温度,并根据第一电池当前的电压、温度以及第三预设对应关系,确定第一电池当前允许的最大输入电流。随后,电子设备可以根据第一电池当前的第一输入电流和第一电池当前允许的最大输入电流,确定第一充电芯片的第一目标频率,以根据第一目标频率调节第一充电芯片的频率,来调节第一充电芯片的第一输出电流,从而调节第一电池的输入电流,避免充电过程中,第一电池出现过流,避免对第一电池造成损坏。In the charging method provided by this implementation, when the first charging chip is charging the first battery of the electronic device, the electronic device can acquire the current first input current, voltage and temperature of the first battery, and The voltage, temperature, and the third preset corresponding relationship determine the current maximum input current allowed by the first battery. Subsequently, the electronic device can determine the first target frequency of the first charging chip according to the current first input current of the first battery and the current maximum input current allowed by the first battery, so as to adjust the frequency of the first charging chip according to the first target frequency , to adjust the first output current of the first charging chip, thereby adjusting the input current of the first battery, avoiding an overcurrent of the first battery during the charging process, and avoiding damage to the first battery.
其中,第三预设对应关系为在各温度下,各电池允许的最大输入电流与电压之间的对应关系。第三预设对应关系可以由技术人员根据实际场景具体设置,本申请实施例对此不作任何限制。Wherein, the third preset corresponding relationship is the corresponding relationship between the allowed maximum input current and voltage of each battery at each temperature. The third preset correspondence relationship may be specifically set by a technician according to an actual scenario, which is not limited in this embodiment of the present application.
在一个示例中,当第一充电芯片和第二充电芯片为同一电池充电时,电子设备可以获取该电池当前的输入电流、电压和温度,并根据该电池当前的电压、温度以及第三预设对应关系,确定该电池当前允许的最大输入电流。随后,电子设备可以根据该电池当前的输入电流和该电池当前允许的最大输入电流,确定第一充电芯片的第一目标频率和/或第二充电芯片的第二目标频率,以根据第一目标频率调节第一充电芯片的频率,来调节第一充电芯片的第一输出电流,和/或根据第二目标频率调节第二充电芯片的频率,来调节第二充电芯片的第二输出电流,从而调节该电池的输入电流,以避免充电过程中,该电池出现过流,避免对该电池造成损坏。In one example, when the first charging chip and the second charging chip are charging the same battery, the electronic device can obtain the current input current, voltage and temperature of the battery, and calculate Corresponding relationship, determine the current maximum input current allowed by the battery. Subsequently, the electronic device can determine the first target frequency of the first charging chip and/or the 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 The frequency adjusts the frequency of the first charging chip to adjust the first output current of the first charging chip, and/or adjusts the frequency of the second charging chip according to the second target frequency to adjust the second output current of the second charging chip, thereby Regulate the input current of the battery to avoid overcurrent of the battery during charging and avoid damage to the battery.
示例性的,在所述确定所述第一输入电流是否大于所述第一电池对应的最大输入电流之前,可以包括:Exemplarily, before the determination of whether the first input current is greater than the maximum input current corresponding to the first battery may include:
获取所述第一电池当前的电压和温度;Obtain the current voltage and temperature of the first battery;
根据所述第一电池当前的电压、温度以及第三预设对应关系,确定所述第一电池对应 的最大输入电流,所述第三预设对应关系为在各温度下,所述第一电池允许的最大输入电流与电压之间的对应关系。Determine the maximum input current corresponding to the first battery according to the current voltage and temperature of the first battery and a third preset correspondence relationship, the third preset correspondence relationship is that at each temperature, the first battery Correspondence between the maximum allowable input current and the voltage.
在另一个示例中,所述根据所述第二输出电流确定所述第二充电芯片的第二目标频率,可以包括:In another example, the determining the second target frequency of the second charging chip according to the second output current may include:
获取所述第二电池的第二输入电流;obtaining 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 greater than the maximum input current corresponding to the second battery, determine a second preset correspondence between the conversion efficiency of the second charging chip and the frequency according to the second output current;
根据所述第二预设对应关系和所述第二充电芯片当前的频率,确定所述第二充电芯片的第二目标频率。A second target frequency of the second charging chip is determined according to the second preset correspondence relationship and the current frequency of the second charging chip.
在该实现方式提供的充电方法中,当第二充电芯片为电子设备的第二电池充电时,电子设备可以获取第二电池当前的第二输入电流、电压和温度,并根据第二电池当前的电压、温度以及第三预设对应关系,确定第二电池当前允许的最大输入电流。随后,电子设备可以根据第二电池当前的第二输入电流和第二电池当前允许的最大输入电流,确定第二充电芯片的第二目标频率,以根据第二目标频率调节第二充电芯片的频率,来调节第二充电芯片的第二输出电流,从而调节第二电池的输入电流,避免充电过程中,第二电池出现过流,避免对第二电池造成损坏。In the charging method provided by this implementation, when the second charging chip is charging the second battery of the electronic device, the electronic device can acquire the current second input current, voltage and temperature of the second battery, and The voltage, temperature, and the third preset corresponding relationship determine the current maximum input current allowed by the second battery. Subsequently, the electronic device can determine the 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 , to adjust the second output current of the second charging chip, thereby adjusting the input current of the second battery, avoiding an overcurrent of the second battery during the charging process, and avoiding damage to the second battery.
第二方面,本申请实施例提供了一种充电装置,应用于电子设备,所述电子设备至少包括第一充电芯片和第二充电芯片,所述装置可以包括:In the second aspect, the embodiment of the present application provides a charging device, which is applied to an electronic device, and the electronic device includes at least a first charging chip and a second charging chip, and the device may include:
输出电流获取模块,用于在检测到所述电子设备处于充电状态时,获取所述第一充电芯片的第一输出电流,或,获取所述第一充电芯片的第一输出电流和所述第二充电芯片的第二输出电流;An output current acquisition module, configured to acquire the first output current of the first charging chip when it is detected that the electronic device is in the charging state, or acquire the first output current of the first charging chip and the first output current of the first charging chip. 2. The second output current of the charging chip;
目标频率确定模块,用于根据所述第一输出电流确定所述第一充电芯片的第一目标频率,或,根据所述第一输出电流和所述第二输出电流,确定所述第一充电芯片的第一目标频率;A target frequency determining module, configured to determine the first target frequency of the first charging chip according to the first output current, or determine the first charging chip according to the first output current and the second output current the first target frequency of the chip;
频率调节模块,用于根据所述第一目标频率调节所述第一充电芯片的频率。A frequency adjustment module, configured to adjust the frequency of the first charging chip according to the first target frequency.
在一个示例中,所述目标频率确定模块,具体用于确定所述第一输出电流是否大于所述第一充电芯片对应的最大输出电流;当所述第一输出电流大于所述第一充电芯片对应的最大输出电流时,根据所述第一输出电流确定所述第一充电芯片的转换效率与频率之间的第一预设对应关系;根据所述第一预设对应关系和所述第一充电芯片当前的频率,确定所述第一充电芯片的第一目标频率。In an example, the target frequency determination module is specifically configured to determine whether the first output current is greater than the maximum output current corresponding to the first charging chip; when the first output current is greater than the maximum output current of the first charging chip When the corresponding maximum output current is reached, the first preset correspondence between the conversion efficiency of the first charging chip and the frequency is determined according to the first output current; according to the first preset correspondence and the first The current frequency of the charging chip determines the first target 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; according to the first current ratio and a first preset The current ratio determines the first target frequency of the first charging chip.
在一种可能的实现方式中,所述目标频率确定模块,还用于根据所述第二输出电流确定所述第二充电芯片的第二目标频率,或,根据所述第一输出电流和所述第二输出电流,确定所述第二充电芯片的第二目标频率;In a possible implementation manner, the target frequency determination module is further configured to 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 The second output current is used to determine the second target frequency of the second charging chip;
所述频率调节模块,还用于根据所述第二目标频率调节所述第二充电芯片的频率。The frequency adjustment module is further configured to adjust the frequency of the second charging chip according to the second target frequency.
在一个示例中,所述目标频率确定模块,还用于确定所述第二输出电流是否大于所述 第二充电芯片对应的最大输出电流;当所述第二输出电流大于所述第二充电芯片对应的最大输出电流时,根据所述第二输出电流确定所述第二充电芯片的转换效率与频率之间的第二预设对应关系;根据所述第二预设对应关系和所述第二充电芯片当前的频率,确定所述第二充电芯片的第二目标频率。In an example, the target frequency determination module is further used to determine whether the second output current is greater than the maximum output current corresponding to the second charging chip; when the second output current is greater than the second charging chip When the corresponding maximum output current is reached, the second preset correspondence between the conversion efficiency of the second charging chip and the frequency is determined according to the second output current; according to the second preset correspondence and the second The current frequency of the charging chip determines the second target 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; according to the first current ratio and a first preset The current ratio determines the first target frequency of the first charging chip and the second target frequency of the second charging chip.
在另一个示例中,所述目标频率确定模块,还用于在根据所述第一目标频率调节所述第一充电芯片的频率之后,获取所述第一输出电流和所述第二输出电流之间的第二电流比;根据所述第二电流比和第一预设电流比,确定所述第二充电芯片的第二目标频率。In another example, the target frequency determining module is further configured to obtain the difference 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. A second current ratio between them; according to the second current ratio and the first preset current ratio, determine a second target frequency of the second charging chip.
在一种可能的实现方式中,所述电子设备包括一个电池时,所述第一充电芯片和所述第二充电芯片用于为所述电池充电,所述装置还可以包括:In a 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 device may further include:
预设电流比确定模块,用于获取所述第一充电芯片所在通路的第一原始阻抗和所述第二充电芯片所在通路的第二原始阻抗;根据所述第一原始阻抗和所述第二原始阻抗确定所述第一预设电流比。A preset current ratio determination module, configured to obtain the first original impedance of the path where the first charging chip is located and the second original impedance of the path where the second charging chip is located; according to the first original impedance and the second The raw impedance determines the first preset current ratio.
在另一种可能的实现方式中,所述电子设备至少包括第一电池和第二电池时,所述第一充电芯片用于为所述第一电池充电,所述第二充电芯片用于为所述第二电池充电。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 to charge the first battery, and the second charging chip is used to charge the The second battery is charged.
示例性的,预设电流比确定模块,还用于获取所述第一充电芯片所在通路的第一原始阻抗、所述第二充电芯片所在通路的第二原始阻抗、所述第一电池的第一额定容量和所述第二电池的第二额定容量;用于根据所述第一原始阻抗、所述第二原始阻抗、所述第一额定容量和所述第二额定容量确定所述第一预设电流比。Exemplarily, the preset current ratio determination module is further configured to obtain the first original impedance of the path where the first charging chip is located, the second original impedance of the path where the second charging chip is located, and the first original impedance of the path where the first battery is located. a rated capacity and the second rated capacity of the second battery; used to determine the first rated capacity according to the first original impedance, the second original impedance, the first rated capacity and the second rated capacity Preset current ratio.
在一个示例中,所述目标频率确定模块,还用于获取所述第一电池的第一输入电流;确定所述第一输入电流是否大于所述第一电池对应的最大输入电流;当所述第一输入电流大于所述第一电池对应的最大输入电流时,根据所述第一输出电流确定所述第一充电芯片的转换效率与频率之间的第一预设对应关系;根据所述第一预设对应关系和所述第一充电芯片当前的频率,确定所述第一充电芯片的第一目标频率。In an example, the target frequency determining module is further configured to acquire a first input current of the first battery; determine whether the first input current is greater than a corresponding maximum input current of the first battery; when the When the first input current is greater than the corresponding maximum input current of the first battery, determine a first preset correspondence between the conversion efficiency of the first charging chip and the frequency according to the first output current; according to the first output current; A preset correspondence relationship and the current frequency of the first charging chip determine the first target frequency of the first charging chip.
示例性的,所述装置还可以包括:Exemplarily, the device may also include:
最大输入电流确定模块,用于获取所述第一电池当前的电压和温度;根据所述第一电池当前的电压、温度以及第三预设对应关系,确定所述第一电池对应的最大输入电流,所述第三预设对应关系为在各温度下,所述第一电池允许的最大输入电流与电压之间的对应关系。A maximum input current determination module, configured to obtain the current voltage and temperature of the first battery; determine the maximum input current corresponding to the first battery according to the current voltage, temperature and a third preset correspondence of the first battery , the third preset correspondence is the correspondence between the maximum input current and the voltage allowed by the first battery at each temperature.
在另一个示例中,所述目标频率确定模块,还用于获取所述第二电池的第二输入电流;确定所述第二输入电流是否大于所述第二电池对应的最大输入电流;当所述第二输入电流大于所述第二电池对应的最大输入电流时,根据所述第二输出电流确定所述第二充电芯片的转换效率与频率之间的第二预设对应关系;根据所述第二预设对应关系和所述第二充电芯片当前的频率,确定所述第二充电芯片的第二目标频率。In another example, the target frequency determining module is further configured to acquire a second input current of the second battery; determine whether the second input current is greater than a corresponding maximum input current of the second battery; when the When the second input current is greater than the corresponding maximum input current of the second battery, determine a second preset correspondence between the conversion efficiency of the second charging chip and the frequency according to the second output current; The second preset correspondence relationship and the current frequency of the second charging chip determine the second target 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 operable on the processor. When the processor executes the computer program, , enabling the electronic device to implement the charging method described in any one of the above first aspects.
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被计算机执行时,使所述计算机实现上述第一方面中任一项所述的充电方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a computer, the computer can realize any of the above-mentioned first aspects. One of the charging methods.
第五方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行上述第一方面中任一项所述的充电方法。In a fifth aspect, an embodiment of the present application provides a computer program product, which, when the computer program product is run on an electronic device, causes the electronic device to execute the charging method described in any one of the above first aspects.
可以理解的是,上述第二方面至第五方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。It can be understood that, for the beneficial effects of the above-mentioned second aspect to the fifth aspect, reference can be made to the relevant description in the above-mentioned first aspect, which will not be repeated here.
附图说明Description of drawings
图1是本申请一实施例提供的充电方法所适用于的电子设备的结构示意图;FIG. 1 is a schematic structural diagram of an electronic device to which a charging method provided by an embodiment of the present application is applicable;
图2是本申请实施例提供的充电芯片的设置示意图一;Fig. 2 is a first schematic diagram of the setting of the charging chip provided by the embodiment of the present application;
图3是本申请实施例提供的充电芯片的设置示意图二;Fig. 3 is a second schematic diagram of the setting of the charging chip provided by the embodiment of the present application;
图4是充电IC的转换效率与充电IC的频率之间的关系的示意图一;Fig. 4 is a schematic diagram 1 of the relationship between the conversion efficiency of the charging IC and the frequency of the charging IC;
图5是充电IC的转换效率与充电IC的频率之间的关系的示意图二;Fig. 5 is a schematic diagram 2 of the relationship between the conversion efficiency of the charging IC and the frequency of the charging IC;
图6是本申请实施例提供的充电方法的流程示意图;Fig. 6 is a schematic flow chart of a charging method provided by an embodiment of the present application;
图7是本申请实施例提供的充电装置的结构示意图。Fig. 7 is a schematic structural diagram of a charging device provided by an embodiment of the present application.
具体实施方式Detailed ways
应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and/or components, but does not exclude one or more other Presence or addition of features, wholes, steps, operations, elements, components and/or collections thereof.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be understood that the term "and/or" used in the description of the present application and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" may be construed, depending on the context, as "when" or "once" or "in response to determining" or "in response to detecting ". Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be construed, depending on the context, to mean "once determined" or "in response to the determination" or "once detected [the described condition or event] ]” or “in response to detection of [described condition or event]”.
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the specification and the appended claims of the present application, the terms "first", "second", "third" and so on are only used to distinguish descriptions, and should not be understood as indicating or implying relative importance.
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。Reference to "one embodiment" or "some embodiments" or the like in the specification of the present application means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically stated otherwise. The terms "including", "comprising", "having" and variations thereof mean "including but not limited to", unless specifically stated otherwise.
此外,本申请实施例中提到的“多个”应当被解释为两个或两个以上。In addition, the "plurality" mentioned in the embodiments of the present application should be interpreted as two or more.
本申请实施例中提供的充电方法中所涉及到的步骤仅仅作为示例,并非所有的步骤均是必须执行的步骤,或者并非各个信息或消息中的内容均是必选的,在使用过程中可以根据需要酌情增加或减少。本申请实施例中同一个步骤或者具有相同功能的步骤或者消息在 不同实施例之间可以互相参考借鉴。The steps involved in the charging method provided in the embodiment of this application are only examples, not all steps are mandatory steps, or not all information or content in the message is mandatory, and can be used during use. Increase or decrease as necessary. In the embodiments of the present application, the same step or steps or messages with the same function can be used for reference between different embodiments.
本申请实施例描述的业务场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The business scenarios described in the embodiments of the present application are for more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute limitations on the technical solutions provided by the embodiments of the present application. With the emergence of new business scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.
目前,人们对电子设备的充电速度具有较高要求。为了提高充电速度,可以在电子设备中增加充电IC的数量,以通过多充电IC来实现大功率快充。例如,可以通过并联的双充电IC来增加电池的充电电流,从而实现大功率快充。At present, people have higher requirements on the charging speed of electronic devices. In order to increase the charging speed, the number of charging ICs can be increased in electronic equipment to achieve high-power fast charging through multiple charging ICs. For example, the charging current of the battery can be increased by connecting dual charging ICs in parallel, so as to realize high-power fast charging.
应理解,各充电IC一般具有允许的最大输出电流。当某一充电IC实际的输出电流大于该充电IC允许的最大输出电流时,会造成该充电IC出现过流,导致充电的安全性降低,或者会触发该充电IC进行过流保护(即对于有过流保护功能的充电IC),从而导致断充,影响充电速度,影响用户体验。It should be understood that each charging IC generally has a maximum allowable output current. When the actual output current of a charging IC is greater than the maximum output current allowed by the charging IC, it will cause overcurrent in the charging IC, resulting in reduced charging safety, or triggering the charging IC to perform overcurrent protection (that is, for charging IC with over-current protection function), which will lead to charging interruption, affect the charging speed, and affect the user experience.
例如,在电子设备的使用过程中,充电器的输入电流一般保持不变,因此,当某一充电IC由于阻抗变化(例如阻抗变大)等原因导致输入至该充电IC的电流变化(例如变小)时,会是使得输入至各充电IC的电流不均衡,即会使得输入至另一充电IC的电流变大,导致该另一充电IC的输出电流变大,从而可能导致该另一充电IC的输出电流大于该另一充电IC所允许的最大输出电流,造成该另一充电IC出现过流。For example, during the use of electronic equipment, the input current of the charger generally remains unchanged. Therefore, when a certain charging IC causes changes in the current input to the charging IC due to impedance changes (such as increased impedance) and other reasons (such as changes When small), it will cause the current input to each charging IC to be unbalanced, that is, the current input to another charging IC will increase, resulting in an increase in the output current of the other charging IC, which may cause the other charging IC The output current of the IC is greater than the maximum output current allowed by the other charging IC, causing overcurrent in the other charging IC.
其中,为了避免充电IC出现过流,一般可以增加均流电路,以通过均流电流保证并联的各充电IC所对应通路的阻抗大致相等,使得通过每条通路的电流均衡,从而使得充电IC的输出电流均衡,避免输入至某一充电IC的电流过大而造成该充电IC出现过流。但这种方式需要在充电IC的并联通路中增加均流电路,极大地增加了硬件电路的复杂度,增加了电子设备的设计成本,不便于推广使用。Among them, in order to avoid the overcurrent of the charging IC, generally, a current sharing circuit can be added to ensure that the impedances of the paths corresponding to the parallel charging ICs are roughly equal through the current sharing current, so that the current passing through each path is balanced, so that the charging IC The output current is balanced to avoid the overcurrent of the charging IC caused by the excessive current input to a certain charging IC. However, this method needs to add a current equalizing circuit in the parallel path of the charging IC, which greatly increases the complexity of the hardware circuit, increases the design cost of the electronic equipment, and is not convenient 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. Wherein, the electronic device may at least include a first charging chip and a second charging chip. In this method, when it is detected that the electronic device is in the charging state, the electronic device may obtain the first output current of the first charging chip, or obtain the first output current of the first charging chip and the second output current of the second charging chip, And the first target frequency of the first charging chip can be determined according to the first output current, or according to the first output current and the second output current. Subsequently, the electronic device can adjust the frequency of the first charging chip according to the first target frequency, thereby adjusting the first output current of the first charging chip, so as to adjust the output current of the charging chip without adding an additional current sharing circuit , to ensure that the output current of the charging chip meets the requirements, and avoid overcurrent of the charging chip, thereby ensuring the safety of charging, improving user experience, and having strong ease of use and practicability.
本申请实施例中,电子设备可以为手机、平板电脑、可穿戴设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等具有可充电的电池的电子设备,本申请实施例对电子设备的具体类型不作任何限制。In the 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 (virtual reality, VR) device, a notebook computer, an ultra-mobile personal computer (ultra-mobile personal computer) computer, UMPC), netbook, personal digital assistant (personal digital assistant, PDA) and other electronic devices with rechargeable batteries, the embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
以下首先介绍本申请实施例涉及的电子设备。请参阅图1,图1示出了电子设备100的一种结构示意图。The electronic device involved in the embodiment of the present application is firstly introduced below. Please refer to FIG. 1 , which shows a schematic structural diagram of an electronic device 100 .
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142, 天线1,天线2,移动通信模块150,无线通信模块160。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 charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , a mobile communication module 150, and a wireless communication module 160.
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。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 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in 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 use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, processor 110 may include one or more interfaces. The interface 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 transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect to a charger to charge the electronic device 100 , and can also be used to connect to other electronic devices, such as AR devices.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 . In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130(例如USB Type C接口)接收有线充电器的充电输入。在一些无线充电的实施例中,充 电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备100供电。The charging management module 140 is configured to receive a charging input from a charger. Wherein, the charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive the charging input of the wired charger through the USB interface 130 (such as a USB Type C interface). In some wireless charging embodiments, the charging management module 140 can receive wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142 , it can also supply power to the electronic device 100 through the power management module 141 .
在一些实施例中,充电器可以为大功率充电器。In some embodiments, the charger may be a high power charger.
在另一些实施例中,充电管理模块140可以包括至少两个充电芯片143,例如可以至少包括第一充电芯片和第二充电芯片。示例性的,第一充电芯片和第二充电芯片均可以为频率可调节的充电芯片。In some other embodiments, the charging management module 140 may include at least two charging chips 143 , for example, may include at least a first charging chip and a second charging chip. Exemplarily, both the first charging chip and the second charging chip may be frequency-adjustable charging chips.
可选的,请参阅图2,图2示出了本申请实施例提供的充电芯片的设置示意图一。如图2中的(a)所示,至少两个充电芯片(图2中以第一充电芯片和第二充电芯片两个为例)可以并联设置于电子设备100内,且第一充电芯片和第二充电芯片均可以与电池142连接。充电管理模块140可以通过第一充电芯片和第二充电芯片为电池142进行大功率充电,实现快速充电功能。例如,充电管理模块140可以通过第一充电芯片和第二充电芯片对充电器的充电输入进行转换,即对充电器的输入功率进行转换,以得到较大的电流来电池142进行充电,实现大功率快充。Optionally, please refer to FIG. 2 . FIG. 2 shows the first schematic diagram of setting up the charging chip provided by the embodiment of the present application. As shown in (a) in FIG. 2 , at least two charging chips (the first charging chip and the second charging chip are taken as an example in FIG. 2 ) can be arranged in parallel in the electronic device 100, and the first charging chip and the second charging chip Each of the second charging chips can be connected to the battery 142 . The charging management module 140 can charge the battery 142 with high power through the first charging chip and the second charging chip, so as to realize the fast charging function. For example, the charging management module 140 can 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 to obtain a relatively large current to charge the battery 142 to achieve a large Power fast charge.
例如,如图2中的(a)所示,在充电器的输入电压为20V,输入电流为6A,第一充电芯片与第二充电芯片相同时,充电器输入至第一充电芯片的电流和输入至第二充电芯片的电流均为3A,充电器输入至第一充电芯片的电压和输入至第二充电芯片的电压均为20V。假设,在理想情况下(即第一充电芯片的转换效率和第二充电芯片的转换效率均为100%),经过第一充电芯片的转换后,第一充电芯片输出的电压为10V,第一充电芯片输出的电流为6A,经过第二充电芯片的转换后,第二充电芯片输出的电压为10V,第二充电芯片输出的电流为6A,即可以将充电器原来6A的输入电流,转换为12A,以通过12A的电流来对电池142进行快速充电。For example, as shown in (a) in Figure 2, 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 by the charger and The current input to the second charging chip is 3A, and the voltage input by the charger to the first charging chip and the voltage input to the second charging chip are both 20V. Assume, under ideal conditions (that is, the conversion efficiency of the first charging chip and the conversion efficiency of the second charging chip are both 100%), after conversion by the first charging chip, the output voltage of the first charging chip is 10V, and the first charging chip The output current of the charging chip is 6A. After conversion by the second charging chip, the output voltage of the second charging chip is 10V, and the output current of the second charging chip is 6A. That is, the original 6A input current of the charger can be converted into 12A, to quickly charge the battery 142 with a current of 12A.
在一些实施例中,如图2中的(b)所示,充电管理模块140还可以包括过压保护单元,例如,过压保护单元可以是过压保护电路(over voltage protection,OVP),以在充电器输出的电压较大时,对充电芯片143和/或电池142进行保护。应理解,充电器输出的电压是否过大可以根据充电器输出的电压是否大于预设电压值来确定。其中,预设电压值可以由技术人员根据实际场景具体设置,例如可以根据充电芯片143允许的最大电压来确定,或者可以根据电池142的额定电压来确定,等等。In some embodiments, as shown in (b) in FIG. 2 , the charging management module 140 may also include an overvoltage protection unit, for example, the overvoltage protection unit may be an overvoltage protection circuit (over voltage protection, OVP), to When the voltage output by the charger is relatively high, the charging chip 143 and/or the battery 142 are protected. It should be understood that whether the voltage output by the charger is too large may be determined according to whether the voltage output by the charger is greater than a preset voltage value. Wherein, the preset voltage value can be specifically set by technicians according to actual scenarios, for example, it can be determined according to the maximum voltage allowed by the charging chip 143 , or it can be determined according to the rated voltage of the battery 142 , and so on.
在一些实施例中,充电管理模块140可以包括芯片控制单元144(图2中的(b)未示出)。可选的,芯片控制单元144可以分别与各充电芯片143连接。芯片控制单元144可以用于调节一个或多个充电芯片143的频率。In some embodiments, the charging management module 140 may include a chip control unit 144 (not shown in (b) of FIG. 2 ). Optionally, the chip control unit 144 may be connected to each charging chip 143 respectively. The chip control unit 144 can be used to adjust the frequency of one or more charging chips 143 .
如图2中的(c)所示,在充电管理模块140包括第一充电芯片和第二充电芯片时,芯片控制单元144可以分别与第一充电芯片和第二充电芯片连接。因此,芯片控制单元144可以根据第一目标频率调节第一充电芯片的频率,和/或可以根据第二目标频率调节第二充电芯片的频率。As shown in (c) of FIG. 2 , when the charging management module 140 includes a first charging chip and a second charging chip, the chip control unit 144 may be connected to the first charging chip and the second charging chip, respectively. Therefore, the chip control unit 144 can adjust the frequency of the first charging chip according to the first target frequency, and/or can adjust the frequency of the second charging chip according to the second target frequency.
在其他一些实施例中,芯片控制单元144也可以设置于处理器110中。In some other embodiments, the chip control unit 144 may also be disposed in the processor 110 .
在本申请的一些实施例中,电子设备100可以包括1个或N个电池142,N为大于1的正整数。可选的,各个电池142的参数可以相同,也可以不相同。其中,电池的参数可以包括电池的额定容量、额定电压等。In some embodiments of the present application, the electronic device 100 may include 1 or N batteries 142 , where N is a positive integer greater than 1. Optionally, the parameters of the batteries 142 may be the same or different. Wherein, the parameters of the battery may include the rated capacity, rated voltage and the like of the battery.
在一些实施例中,至少两个充电芯片143中的任一个可以分别与一个或多个电池142 连接,或者至少两个充电芯片143中的任一个可以分别与各个电池142连接。其中,各充电芯片143可以分别用于为对应的电池142充电。In some embodiments, any one of the at least two charging chips 143 may be connected to one or more batteries 142 respectively, or any one of the at least two charging chips 143 may be connected to each battery 142 respectively. Wherein, each charging chip 143 can be used to charge the corresponding battery 142 respectively.
请参阅图3,图3示出了本申请实施例提供的充电芯片的设置示意图二。如图3中的(a)所示,在充电管理模块140包括第一充电芯片和第二充电芯片,电子设备100包括第一电池和第二电池时,第一充电芯片可以直接与第一电池连接,第二充电芯片可以直接与第二电池连接,以使得第一充电芯片可以用于为第一电池充电,而第二充电芯片可以用于为第二电池充电,即通过并联的第一充电芯片和第二充电芯片实现第一电池和第二电池的同时充电,可以提高电子设备100的充电速度。Please refer to FIG. 3 . FIG. 3 shows a second schematic diagram of the arrangement of the charging chip provided by the embodiment of the present application. As shown in (a) in Figure 3, when the charging management module 140 includes a first charging chip and a second charging chip, and the electronic device 100 includes a first battery and a second battery, the first charging chip can be directly connected to the first battery connection, the second charging chip can be directly connected to the second battery, so that the first charging chip can be used to charge the first battery, and the second charging chip can be used to charge the second battery, that is, through the first charging in parallel The chip and the second charging chip realize simultaneous charging of the first battery and the second battery, which can increase the charging speed of the electronic device 100 .
或者,如图3中的(b)所示,第一充电芯片和第二充电芯片均可以与第一电池连接,第一充电芯片和第二充电芯片也均可以与第二电池连接,但第一充电芯片与第二电池连接的通路上设置有阻抗(例如图3中的(b)所示的阻抗300),第二充电芯片与第一电池连接的通路上设置有阻抗(例如图3中的(b)所示的阻抗300)。由于阻抗300的存在,使得第一充电芯片的输出电流直接流入第一电池,而第二充电芯片的输出电流直接流入第二电池,从而使得第一充电芯片可以用于为第一电池充电,第二充电芯片可以用于为第二电池充电。Or, as shown in (b) in Figure 3, both the first charging chip and the second charging chip can be connected to the first battery, and both the first charging chip and the second charging chip can also be connected to the second battery, but the first charging chip and the second charging chip can also be connected to the second battery. Impedance (such as the impedance 300 shown in (b) in Figure 3) is provided on the path that a charging chip is connected to the second battery, and impedance is provided on the path that the second charging chip is connected to the first battery (such as shown in Figure 3 (b) shows the impedance 300). Due to the existence of the impedance 300, the output current of the first charging chip directly flows into the first battery, while the output current of the second charging chip directly flows into the second battery, so that the first charging chip can be used to charge the first battery, and the second charging chip can be used to charge the first battery. The second charging chip can be used to charge the second battery.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 . The power management module 141 receives the input of the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , and the wireless communication module 160 . The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。In some other embodiments, the power management module 141 may also be disposed in the processor 110 . In some other embodiments, the power management module 141 and the charging management module 140 may also be set in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be realized 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.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on 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) and the like. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves and radiate them through the antenna 1 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Wherein, the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is passed to the application processor after being processed by the baseband processor. In some embodiments, the modem processor may be a stand-alone device. In some other embodiments, the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the electronic device 100. System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband 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, etc. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。The internal memory 121 may be used to store computer-executable program codes including instructions. The internal memory 121 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like. The storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like. The processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构等。例如,电子设备100的软件系统可以采用分层架构的安卓操作系统(Operation System,OS)、鸿蒙操作系统(Harmony OS)或IOS等。The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. For example, the software system of the electronic device 100 may adopt a layered architecture Android operating system (Operation System, OS), Harmony OS (Harmony OS), or IOS.
以下将结合附图和具体应用场景对本申请实施例提供的充电方法进行详细说明。该方法应用于包含第一充电芯片(即第一充电IC)和第二充电芯片(即第二充电IC)等至少两个充电IC的电子设备。其中,第一充电IC和第二充电IC均可以为频率可调节的充电IC。第一充电IC与第二充电IC可以并联设置于电子设备中,且第一充电IC和第二充电IC均可以与电子设备中的电池连接。The charging method provided by the embodiment of the present application will be described in detail below with reference to the drawings and specific application scenarios. The method is applied to an electronic device including at least two charging ICs, such as a first charging chip (ie, a first charging IC) and a second charging chip (ie, a second charging IC). Wherein, both 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 parallel in the electronic device, and both the first charging IC and the second charging IC can be connected to the battery in the electronic device.
本申请实施例中,在检测到电子设备处于充电状态时,电子设备可以获取第一充电IC 的第一输出电流,或获取第一充电IC的第一输出电流和第二充电IC的第二输出电流,并可以根据第一输出电流,或根据第一输出电流和第二输出电流,确定第一充电IC的第一目标频率。随后,电子设备可以根据第一目标频率调节第一充电IC的频率,以对第一充电IC的第一输出电流进行调节,确保充电IC的输出电流满足要求,避免充电IC出现过流,从而确保充电的安全性,提升用户体验。In the embodiment of the present application, when it is detected that the electronic device is in the charging state, the electronic device can obtain the first output current of the first charging IC, or obtain the first output current of the first charging IC and the second output of the second charging IC current, and the first target frequency of the first charging IC can be determined according to the first output current, or according to the first output current and the second output current. Subsequently, the electronic device 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 requirements, and avoid overcurrent of the charging IC, thereby ensuring The safety of charging improves the user experience.
在一个示例中,电子设备可以根据电子设备的USB接口是否接收到有线充电器的充电输入来确定电子设备是否处于充电状态。例如,当电子设备通过USB接口连接供电设备时,电子设备的USB接口可以接收到有线充电器的充电输入,此时,电子设备可以确定电子设备处于充电状态。In an example, the electronic device may determine whether the electronic device is in a charging state according to whether the USB interface of the electronic device receives a charging input from a wired charger. For example, when an electronic device is connected to a power supply device through a USB interface, the USB interface of the electronic device may receive a charging input from a wired charger, and at this time, the electronic device may determine that the electronic device is in a charging state.
在另一个示例中,电子设备可以根据电子设备的无线充电线圈是否到接收无线充电输入来确定电子设备是否处于充电状态。例如,当电子设备位于无线供电设备的充电座上时,电子设备的无线充电线圈可以接收到无线充电输入,此时,电子设备可以确定电子设备处于充电状态。In another example, the electronic device may determine whether the electronic device is in a charging state according to whether the wireless charging coil of the electronic device receives a wireless charging input. For example, when the electronic device is on the charging stand of the wireless power supply device, the wireless charging coil of the electronic device may receive a wireless charging input, and at this time, the electronic device may determine that the electronic device is in a charging state.
需要说明的是,第一输出电流是指第一充电IC的输出端的电流,第二输出电流是指第二充电IC的输出端的电流。It should be noted that the first output current refers to the current at the output end of the first charging IC, and the second output current refers to the current at the output end of the second charging IC.
示例性的,第一充电IC的输出端可以设置有电流测量装置A,电子设备可以通过电流测量装置A获取第一输出电流。类似的,第二充电IC的输出端可以设置有电流测量装置B,电子设备可以通过电流测量装置B获取第二输出电流。应理解,本申请实施例对电流测量装置A和电流测量装置B不作任何限制,可以根据实际场景具体设置,例如可以将电流测量装置A和电流测量装置B均设置为电流表。Exemplarily, the output terminal of the first charging IC may be provided with a current measuring device A, and the electronic device may obtain the first output current through the current measuring device A. Similarly, the output terminal of the second charging IC can be provided with a current measuring device B, and the electronic device can obtain the second output current through the current measuring device B. It should be understood that the embodiment of the present application does not impose any limitation on the current measuring device A and the current measuring device B, which can be specifically set according to actual scenarios, for example, both the current measuring device A and the current measuring device B can be set as ammeters.
应理解,第一充电IC和第二充电IC用于对来自充电器的输入功率进行转换,以提高输入至电池的电流,从而提高电池的充电功率,实现大功率快充。其中,任一充电IC对输入功率的转换满足:η*(V input*I input)=V IC*I IC,V input为该充电IC的输入电压,I input为该充电IC的输入电流,η为该充电IC的转换效率,V IC为该充电IC的输出电压,I IC为该充电IC的输出电流。 It should be understood that the first charging IC and the second charging IC are used to convert the input power from the charger to increase the current input to the battery, thereby increasing the charging power of the battery and realizing high-power fast charging. Wherein, the conversion of any charging IC to input power satisfies: η*(V input *I input )=V IC *I IC , V input is the input voltage of the charging IC, I input is the input current of the charging IC, η is the conversion efficiency of the charging IC, V IC is the output voltage of the charging IC, and I IC is the output current of the charging IC.
如图2中的(a)所示,在第一充电IC与第二充电IC并联设置时,第一充电IC与第二充电IC的输入电流之和为充电器输出的总电流I output,第一充电IC的输入电压和第二充电IC的输入电压与充电器输出的总电压V output相同。即I output=I input1+I input2,V output=V input1=V input2,其中,I input1为第一充电IC的输入电流,I input2为第二充电IC的输入电流,V input1为第一充电IC的输入电压,V input2为第二充电IC的输入电压。 As shown in (a) of Figure 2, 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 output by the charger, and the first The input voltage of the first charging IC and the second charging IC are the same as the total voltage V output output by the charger. That is, I output =I input1 +I input2 , V output =V input1 =V input2 , where I input1 is the input current of the first charging IC, I input2 is the input current of the second charging IC, and V input1 is the first charging IC The input voltage of V input2 is the input voltage of the second charging IC.
在某一具体充电过程中,充电器输出的总电压V output和总电流I output均为固定值,即第一充电IC的输入电压V input1和第二充电IC的输入电压V input2也均为固定值。第一充电IC的输入电流I input1和第二充电IC的输入电流I input2与充电器输出的总电流I output、第一充电IC所在通路的阻抗以及第二充电IC所在通路的阻抗相关,由于第一充电IC所在通路的阻抗和第二充电IC所在通路的阻抗一般为固定值,因此,第一充电IC的输入电流I input1与第二充电IC的输入电流I input2也为固定值。应理解,在该具体充电过程中,各充电IC的输出电压也均为固定值。 In a specific charging process, the total voltage V output and the total current I output output by the charger are both fixed values, that is, the input voltage V input1 of the first charging IC and the input voltage V input2 of the second charging IC are also fixed. value. The input current I input1 of the first charging IC and the input current I input2 of the second charging IC are related to the total current I output output by the charger, the impedance of the path where the first charging IC is located, and the impedance of the path where the second charging IC is located. The impedance of the path where the first charging IC is located and the impedance of the path where the second charging IC is located are generally fixed values. Therefore, the input current I input1 of the first charging IC and the input current I input2 of the second charging IC are also fixed values. It should be understood that in this specific charging process, the output voltages of each charging IC are also fixed values.
综上可知,对于任一充电IC(例如第一充电IC或者第二充电IC),在某一具体充电过程中,由于该充电IC的输入电压V input和输入电流I input均为固定值,且该充电IC的输出 电压也为固定值,因此,该充电IC的输出电流与该充电IC的转换效率η相关。即在充电IC的输入电压与输入电流一定时,若充电IC的转换效率η较高,则充电IC的输出电流较大;若充电IC的转换效率η较低,则充电IC的输出电流也较小。 In summary, for any charging IC (such as the first charging IC or the second charging IC), in a specific charging process, since the input voltage V input and the input current I input of the charging IC are both fixed values, and The output voltage of the charging IC is also a fixed value, 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 input current of the charging IC are constant, if the conversion efficiency η of the charging IC is higher, the output current of the charging IC will be larger; if the conversion efficiency η of the charging IC is lower, the output current of the charging IC will also be lower. Small.
其中,充电IC的转换效率η与充电IC的频率相关,因此,电子设备可以通过调节某一充电IC的频率来调节该充电IC的转换效率η,从而调节该充电IC的输出电流,使得该充电IC的输出电流符合要求,避免该充电IC出现过流。Wherein, the conversion efficiency η of the charging IC is related to the frequency of the charging IC, therefore, the electronic device can adjust the conversion efficiency η of the charging IC by adjusting the frequency of a certain charging IC, thereby adjusting the output current of the charging IC, so that the charging The output current of the IC meets the requirements to avoid overcurrent of the charging IC.
下面对充电IC的转换效率η与充电IC的频率之间的关系进行说明。其中,充电IC可以包括第一充电IC和第二充电IC。Next, the relationship between the conversion efficiency η of the charging IC and the frequency of the charging IC will be described. Wherein, the charging IC may include a first charging IC and a second charging IC.
请参阅图4,图4示出了充电IC的转换效率与充电IC的频率之间的关系的示意图一。其中,图4示出了充电IC的频率分别为高频率(即750KHz)、中频率(即375KHz)和低频率(即187.5KHz)时,在各输出电流下,充电IC的转换效率η。应理解,图4中的输出电流是指充电IC所想要输出的电流。Please refer to FIG. 4 . FIG. 4 shows the first schematic diagram of the relationship between the conversion efficiency of the charging IC and the frequency of the charging IC. 4 shows the conversion efficiency η of the charging IC at each output current when the frequency of the charging IC is high frequency (ie 750KHz), medium frequency (ie 375KHz) and low frequency (ie 187.5KHz). It should be understood that the output current in FIG. 4 refers to the desired output current of the charging IC.
如图4所示,在充电IC的输出电流为(0A,4A)时,充电IC的频率越高,充电IC的转换效率越低,即充电IC处于高频率时的转换效率小于充电IC处于中频率时的转换效率,而充电IC处于中频率时的转换效率小于充电IC处于低频率时的转换效率。在充电IC的输出电流为[4A,6A]时,充电IC处于高频率时的转换效率小于充电IC处于低频率时的转换效率,充电IC处于低频率时的转换效率小于充电IC处于中频率时的转换效率。在充电IC的输出电流大于6A时,充电IC处于低频率时的转换效率小于充电IC处于高频率时的转换效率,充电IC处于高频率时的转换效率小于充电IC处于中频率时的转换效率。As shown in Figure 4, when the output current of the charging IC is (0A, 4A), the higher the frequency of the charging IC, the lower the conversion efficiency of the charging IC. The conversion efficiency at the frequency, and the conversion efficiency of the charging IC at the medium frequency is lower than that of the charging IC at the low frequency. When the output current of the charging IC is [4A, 6A], the conversion efficiency of the charging IC at high frequency is lower than that of charging IC at low frequency, and the conversion efficiency of charging IC at low frequency is lower than that of charging IC at medium frequency conversion efficiency. When the output current of the charging IC is greater than 6A, the conversion efficiency of the charging IC at low frequency is lower than that of charging IC at high frequency, and the conversion efficiency of charging IC at high frequency is lower than that of charging IC at medium frequency.
基于图4所示的关系,电子设备中可以设置有各输出电流下,充电IC的转换效率与频率之间的预设对应关系A。在某一充电IC当前的输出电流不符合要求时,电子设备可以调节该充电IC的频率来调节该充电IC的转换效率,从而调节该充电IC的输出电流,以使得该充电IC的输出电流符合要求。应理解,预设对应关系A也可以存储于与电子设备通信连接的其他电子设备或者云端等装置中。Based on the relationship shown in FIG. 4 , the electronic device may be provided with a preset corresponding relationship A between the conversion efficiency of the charging IC and the frequency under each output current. When the current output current of a charging IC does not meet the requirements, the electronic device can adjust the frequency of the charging IC to adjust the conversion efficiency of the charging IC, thereby adjusting the output current of the charging IC so that the output current of the charging IC meets the requirements. Require. It should be understood that the preset correspondence relationship A may also be stored in other electronic devices communicatively connected with the electronic device or in devices such as a cloud.
需要说明的是,上述将输出电流划分为(0A,4A)、[4A,6A]和(6A,+∞)三个区间仅作示例性解释,不应理解为对本申请实施例的限制。本申请实施例中,可以由技术人员根据实际场景确定输出电流的划分方式。It should be noted that the above division of the output current into three intervals (0A, 4A), [4A, 6A] and (6A, +∞) is only for exemplary explanation and should not be construed as a limitation to the embodiment of the present application. In the embodiment of the present application, the division mode of the output current may be determined by a technician according to the actual scene.
另外,上述所述的充电IC的频率为高频率(即750KHz)、中频率(即375KHz)和低频率(即187.5KHz)三个频率时,在各输出电流下,充电IC的转换效率与频率之间的预设对应关系A仅作示例性解释,不应理解为对本申请实施例的限制。本申请实施例中,可以由技术人员根据实际场景确定充电IC的各频率,例如可以根据实际场景确定两个、三个或者四个等任一数量的频率,并通过测试得到各输出电流下,充电IC的各频率对应的转换效率,从而确定在各输出电流下,充电IC的转换效率与频率之间的预设对应关系A。In addition, when the frequency of the above-mentioned charging IC is high frequency (ie 750KHz), medium frequency (ie 375KHz) and low frequency (ie 187.5KHz), at each output current, the conversion efficiency of the charging IC is related to the frequency The preset corresponding relationship A between them is only for exemplary explanation, and should not be understood as a limitation on the embodiment of the present application. In the embodiment of the present application, technicians can determine the frequencies of the charging IC according to the actual scene, for example, two, three or four frequencies can be determined according to the actual scene, and the output current can be obtained through testing. The conversion efficiency corresponding to each frequency of the charging IC, so as to determine the preset corresponding relationship A between the conversion efficiency of the charging IC and the frequency under each output current.
例如,技术人员可以根据充电IC实际支持调节的频率,确定充电IC的各频率,并通过测试得到各输出电流下,充电IC的各频率对应的转换效率,从而确定在各输出电流下,充电IC的转换效率与频率之间的预设对应关系A。For example, technicians can determine each frequency of the charging IC according to the frequency that the charging IC actually supports adjustment, and obtain the conversion efficiency corresponding to each frequency of the charging IC under each output current through testing, so as to determine the charging IC under each output current. The preset correspondence relationship A between the conversion efficiency and the frequency.
例如,技术人员可以根据实际场景将充电IC的频率确定为高频率(即750KHz)、中高频率(即500KHz)、中频率(即375KHz)、中低频率(即300KHz)和低频率(即187.5KHz),并确定各输出电流下,充电IC的各频率(即高频率、中高频率、中频率、中低频率和低频率) 分别对应的转换效率,从而可以确定各输出电流下,充电IC的转换效率与频率之间的预设对应关系A。For example, technicians can determine the frequency of the charging IC as high frequency (ie 750KHz), medium-high frequency (ie 500KHz), medium frequency (ie 375KHz), medium-low frequency (ie 300KHz) and low frequency (ie 187.5KHz) according to the actual scene. ), and determine the conversion efficiency corresponding to each frequency (ie high frequency, medium-high frequency, medium frequency, medium-low frequency, and low frequency) of the charging IC under each output current, so that the conversion efficiency of the charging IC can be determined under each output current Preset correspondence A between efficiency and frequency.
示例性的,请参阅图5,图5示出了充电IC的转换效率与充电IC的频率之间的关系的示意图二。For example, please refer 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.
如图5所示,在充电IC的输出电流为(0A,3A)时,充电IC的频率越高,充电IC的转换效率越低,即充电IC处于高频率时的转换效率小于充电IC处于中高频率时的转换效率,充电IC处于中高频率时的转换效率小于充电IC处于中频率时的转换效率,充电IC处于中频率时的转换效率小于充电IC处于中低频率时的转换效率,充电IC处于中低频率时的转换效率小于充电IC处于低频率时的转换效率。As shown in Figure 5, when the output current of the charging IC is (0A, 3A), the higher the frequency of the charging IC, the lower the conversion efficiency of the charging IC. The conversion efficiency at medium and high frequencies, the conversion efficiency of the charging IC at medium and high frequencies is less than that of the charging IC at medium frequencies, the conversion efficiency of the charging IC at medium frequencies is less than that of the charging IC at low and medium frequencies, and the charging IC is The conversion efficiency at medium and low frequencies is less than that of the charging IC at low frequencies.
在充电IC的输出电流为[3A,4A]时,充电IC处于高频率时的转换效率小于充电IC处于中高频率时的转换效率,充电IC处于中高频率时的转换效率小于充电IC处于中频率时的转换效率,充电IC处于中频率时的转换效率小于充电IC处于低频率时的转换效率,充电IC处于低频率时的转换效率小于充电IC处于中低频率时的转换效率。When the output current of the charging IC is [3A, 4A], the conversion efficiency of the charging IC at a high frequency is lower than that of the charging IC at a medium-high frequency, and the conversion efficiency of the charging IC at a medium-high frequency is lower than that of a charging IC at a medium frequency The conversion efficiency of the charging IC is lower than the conversion efficiency of the charging IC at the low frequency when the charging IC is at the middle frequency, and the conversion efficiency of the charging IC at the low frequency is lower than the conversion efficiency of the charging IC at the middle and low frequency.
在充电IC的输出电流为(4,4.5]时,充电IC处于高频率时的转换效率小于充电IC处于中高频率时的转换效率,充电IC处于中高频率时的转换效率小于充电IC处于低频率时的转换效率,充电IC处于低频率时的转换效率小于充电IC处于中频率时的转换效率,充电IC处于中频率时的转换效率小于充电IC处于中低频率时的转换效率。When the output current of the charging IC is (4, 4.5], the conversion efficiency of the charging IC at high frequency is lower than that of the charging IC at medium-high frequency, and the conversion efficiency of charging IC at medium-high frequency is lower than that of charging IC at low frequency The conversion efficiency of the charging IC is lower when the charging IC is at a low frequency than when the charging IC is at a medium frequency.
在充电IC的输出电流为(4.5,6]时,充电IC处于高频率时的转换效率小于充电IC处于低频率时的转换效率,充电IC处于低频率时的转换效率小于充电IC处于中高频率时的转换效率,充电IC处于中高频率时的转换效率小于充电IC处于中频率时的转换效率,充电IC处于中频率时的转换效率小于充电IC处于中低频率时的转换效率。When the output current of the charging IC is (4.5, 6], the conversion efficiency of the charging IC at high frequency is lower than that of charging IC at low frequency, and the conversion efficiency of charging IC at low frequency is lower than that of charging IC at medium and high frequency The conversion efficiency of the charging IC is lower than the conversion efficiency of the charging IC when the charging IC is at the middle frequency, and the conversion efficiency of the charging IC is lower than the conversion efficiency of the charging IC when the charging IC is at the middle and low frequency.
在充电IC的输出电流大于6A时,充电IC处于低频率时的转换效率小于充电IC处于高频率时的转换效率,充电IC处于高频率时的转换效率小于充电IC处于中低频率时的转换效率,充电IC处于中低频率时的转换效率小于充电IC处于中频率时的转换效率,充电IC处于中频率时的转换效率小于充电IC处于中高频率时的转换效率。When the output current of the charging IC is greater than 6A, the conversion efficiency of the charging IC at low frequency is lower than that of the charging IC at high frequency, and the conversion efficiency of the charging IC at high frequency is lower than that of the charging IC at low-medium frequency , the conversion efficiency of the charging IC at medium and low frequencies is lower than that of the charging IC at medium frequencies, and the conversion efficiency of the charging IC at medium frequencies is lower than that of the charging IC at medium and high frequencies.
因此,基于图5所示的关系,电子设备可以确定各输出电流下,充电IC的各频率(即高频率、中高频率、中频率、中低频率和低频率)分别对应的转换效率,从而可以确定各输出电流下,充电IC的转换效率与频率之间的预设对应关系A。Therefore, based on the relationship shown in Figure 5, the electronic device can determine the conversion efficiency corresponding to each frequency of the charging IC (ie, high frequency, medium-high frequency, medium frequency, medium-low frequency, and low frequency) under each output current, so that Determine the preset correspondence relationship A between the conversion efficiency of the charging IC and the frequency under each output current.
需要说明的是,在调节第一充电IC的频率时,会导致第一充电IC所在通路的阻抗发生变化,从而导致输入至第一充电IC的电流和输入至第二充电IC的电流发生变化,使得第一充电IC的第一输出电流和第二充电IC的第二输出电流均会发生变化。例如,在调节第一充电IC的频率,来降低第一充电IC的转换效率时,会导致第一充电IC所在通路的阻抗变大,使得输入至第一充电IC的电流变小,从而使得第一充电IC的第一输出电流变小,同时会使得输入至第二充电IC的电流变大,从而使得第二充电IC的第二输出电流变大。因此,为避免对第一充电IC的频率的调节,导致第二充电IC的第二输出电流大于第二充电IC对应的最大输出电流,在确定第一充电IC可以调节的频率时,电子设备可以结合第二充电IC对应的最大输出电流来确定第一充电IC可以调节的频率,以使得在将第一充电IC的转换效率调节至最小时,第二充电IC的第二输出电流仍小于第二充电IC对应的最大输出电流。类似的,在确定第二充电IC可以调节的频率时,电子设备可以结合第 一充电IC对应的最大输出电流来确定第二充电IC可以调节的频率。It should be noted that when the frequency of the first charging IC is adjusted, the impedance of the path where the first charging IC is located will change, resulting in changes in the current input to the first charging IC and the current input to the second charging IC, Both the first output current of the first charging IC and the second output current of the second charging IC will change. For example, when adjusting the frequency of the first charging IC to reduce the conversion efficiency of the first charging IC, the impedance of the path where the first charging IC is located will increase, so that the current input to the first charging IC will become smaller, so that the second The first output current of a charging IC becomes smaller, and at the same time, the current input to the second charging IC becomes larger, so that the second output current of the second charging IC becomes larger. Therefore, in order to avoid the adjustment of the frequency of the first charging IC, causing the second output current of the second charging IC to be greater than the corresponding maximum output current of the second charging IC, when determining the adjustable frequency of the first charging IC, the electronic device can The adjustable frequency of the first charging IC is determined in combination with the corresponding maximum output current of the second charging IC, so that when the conversion efficiency of the first charging IC is adjusted to the minimum, the second output current of the second charging IC is still smaller than the second The maximum output current corresponding to the charging IC. Similarly, when determining the adjustable frequency of the second charging IC, the electronic device can determine the adjustable frequency of the second charging IC in combination with the corresponding maximum output current of the first charging IC.
下面将以充电IC的频率为高频率(即750KHz)、中频率(即375KHz)和低频率(即187.5KHz)时,在各输出电流下,充电IC的转换效率与频率之间的预设对应关系A为例,对电子设备根据第一输出电流和/或第二输出电流,确定第一充电IC的第一目标频率和/或确定第二充电IC的第二目标频率的过程进行详细说明。In the following, when the frequency of the charging IC is high frequency (ie 750KHz), medium frequency (ie 375KHz) and low frequency (ie 187.5KHz), the preset correspondence between the conversion efficiency of the charging IC and the frequency under each output current Taking relationship A as an example, 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 is described in detail.
可以理解的是,任一充电IC一般具有所对应的最大输出电流,以通过最大输出电流来确定该充电IC是否过流。It can be understood that any charging IC generally has a corresponding maximum output current, so as to determine whether the charging IC is over-current through the maximum output current.
在一种可能的实现方式中,为避免第一充电IC出现过流,电子设备可以获取第一充电IC对应的最大输出电流,并可以确定第一充电IC当前的第一输出电流是否超过第一充电IC对应的最大输出电流。当第一充电IC当前的第一输出电流超过第一充电IC对应的最大输出电流时,电子设备可以根据第一充电IC当前的第一输出电流,确定第一充电IC的转换效率与频率之间的第一预设对应关系(即第一输出电流对应的预设对应关系A)。随后,电子设备根据第一充电IC当前的频率和所确定的第一预设对应关系,确定第一充电IC的第一目标频率,并将第一充电IC的频率调整至第一目标频率,以通过调节第一充电IC的频率来调节第一充电IC的转换效率,从而调节第一充电IC的第一输出电流,以使得第一充电IC的第一输出电流小于第一充电IC对应的最大输出电流,避免第一充电IC出现过流。In a possible implementation, in order to avoid overcurrent of the first charging IC, the electronic device can obtain the maximum output current corresponding to the first charging IC, and can determine whether the current first output current of the first charging IC exceeds the first The maximum output current corresponding to the charging IC. When the current first output current of the first charging IC exceeds the corresponding maximum output current of the first charging IC, the electronic device can determine the difference between the conversion efficiency of the first charging IC and the frequency according to the current first output current of the first charging IC. The first preset corresponding relationship (that is, the preset corresponding relationship A corresponding to the first output current). Subsequently, the electronic device determines the first target frequency of the first charging IC according to the current frequency of the first charging IC and the determined first preset correspondence, 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 of the first charging IC current to avoid overcurrent in the first charging IC.
例如,当第一充电IC当前的第一输出电流为3A,第一充电IC对应的最大输出电流为2A时,即第一充电IC当前的第一输出电流超过第一充电IC对应的最大输出电流,表明第一充电IC当前的转换效率较高,即需要降低第一充电IC的转换效率。由于第一充电IC当前的第一输出电流为3A,位于(0A,4A)的区间,因此,电子设备可以根据输出电流为(0A,4A)时,充电IC的频率与转换效率之间的第一预设对应关系(即充电IC的频率越高,充电IC的转换效率越低)和第一充电IC当前的频率,来确定第一充电IC的第一目标频率,并可以将第一充电IC的频率调整至第一目标频率,以降低第一充电IC的转换效率,从而降低第一充电IC的第一输出电流。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 , indicating that the current conversion efficiency of the first charging IC is relatively 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, which is located in the interval of (0A, 4A), the electronic device can be based on the first value between the frequency of the charging IC and the conversion efficiency when the output current is (0A, 4A). A preset corresponding relationship (that is, 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 to determine the first target frequency of the first charging IC, and the first charging IC The frequency of the first charging IC is adjusted 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.
假设,第一充电IC当前的频率为中频率(即375KHz),由上述确定的第一预设对应关系(即充电IC的频率越高,充电IC的转换效率越低)可知,若要降低第一充电IC的转换效率,则需要提高第一充电IC的频率,因此,电子设备可以根据第一充电IC当前的频率(即中频率)确定第一目标频率为高频率,即电子设备可以将第一充电IC的频率由当前的375KHz调整至750KHz,以通过提高第一充电IC的频率,来降低第一充电IC的转换效率,从而降低第一充电IC的第一输出电流。Assuming that the current frequency of the first charging IC is the middle frequency (ie 375KHz), from the first preset correspondence determined above (that is, the higher the frequency of the charging IC, the lower the conversion efficiency of the charging IC), it can be seen that if the first charging IC is to be reduced The conversion efficiency of a charging IC needs to increase the frequency of the first charging IC. Therefore, the electronic device can determine the first target frequency as a high frequency according to the current frequency (ie, the middle frequency) of the first charging IC, that is, the electronic device can convert the first target frequency to a high frequency. The frequency of a charging IC is adjusted 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.
类似的,为避免第二充电IC出现过流,电子设备可以获取第二充电IC对应的最大输出电流,并可以确定第二充电IC当前的第二输出电流是否超过第二充电IC对应的最大输出电流。当第二充电IC当前的第二输出电流超过第二充电IC对应的最大输出电流时,电子设备可以根据第二充电IC当前的第二输出电流,确定第二充电IC的转换效率与频率之间的第二预设对应关系(即第二输出电流对应的预设对应关系A)。随后,电子设备可以根据第二充电IC当前的频率和所确定的第二预设对应关系,确定第二充电IC的第二目标频率,并将第二充电IC的频率调整至第二目标频率,以调节第二充电IC的转换效率,从而调节第二充电IC的第二输出电流,使得第二充电IC的第二输出电流小于第二充电IC对 应的最大输出电流,避免第二充电IC出现过流。Similarly, in order to avoid overcurrent of the second charging IC, the electronic device can obtain the maximum output current corresponding to the second charging IC, and can determine whether the current second output current of the second charging IC exceeds the maximum output current corresponding to the second charging IC current. When the current second output current of the second charging IC exceeds the corresponding maximum output current of the second charging IC, the electronic device can determine the difference between the conversion efficiency of the second charging IC and the frequency according to the current second output current of the second charging IC. The second preset correspondence relationship (that is, the preset correspondence relationship A corresponding to the second output current). Subsequently, the electronic device may determine the second target frequency of the second charging IC according to the current frequency of the second charging IC and the determined second preset correspondence, and adjust the frequency of the second charging IC to the second target frequency, To adjust the conversion efficiency of the second charging IC, so as to adjust the second output current of the second charging IC, so that the second output current of the second charging IC is smaller than the corresponding maximum output current of the second charging IC, so as to avoid the occurrence of overshooting of the second charging IC flow.
例如,当第二充电IC当前的第二输出电流为5A,第二充电IC对应的最大输出电流为4.5A时,即第二充电IC当前的输出电流超过第二充电IC对应的最大输出电流,表明第二充电IC当前的转换效率较高,即需要降低第二充电IC的转换效率。由于第二充电IC当前的输出电流为5A,位于[4A,6A]的区间,因此,电子设备可以根据输出电流为[4A,6A]时,充电IC的频率与转换效率之间的第二预设对应关系和第二充电IC当前的频率,确定第二充电IC的第二目标频率。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 relatively high, that is, the conversion efficiency of the second charging IC needs to be reduced. Since the current output current of the second charging IC is 5A, which is located in the interval [4A, 6A], the electronic device can use the second preset value between the frequency of the charging IC and the conversion efficiency when the output current is [4A, 6A]. Assuming the corresponding relationship and the current frequency of the second charging IC, the second target frequency of the second charging IC is determined.
假设,第二充电IC当前的频率为中频率(即375KHz),由上述确定的第二预设对应关系(即充电IC处于高频率时的转换效率小于充电IC处于低频率时的转换效率,充电IC处于低频率时的转换效率小于充电IC处于中频率时的转换效率)可知,若要降低第二充电IC的转换效率,则需要将第二充电IC的频率调整至低频率(即187.5KHz),或者需要将第二充电IC的频率调整至高频率(即750KHz),因此,电子设备可以确定第二目标频率为高频率或者低频率,即电子设备可以将第二充电IC的频率由当前的375KHz调整至750KHz,或者由当前的375KHz调整至187.5KHz,以降低第二充电IC的转换效率,从而可以降低第二充电IC的第二输出电流。Assume that the current frequency of the second charging IC is a medium frequency (ie 375KHz), and from the second preset correspondence determined above (that is, the conversion efficiency of the charging IC at a high frequency is lower than that of the charging IC at a low frequency, the charging The conversion efficiency of the IC at low frequency is less than the conversion efficiency of the charging IC at medium frequency) It can be seen that 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 a low frequency (ie 187.5KHz) , or the frequency of the second charging IC needs to be adjusted to a high frequency (ie 750KHz), therefore, the electronic device can determine that the second target frequency is a high frequency or a low frequency, that is, the electronic device can change the frequency of the second charging IC from the current 375KHz Adjust to 750KHz, or adjust from the current 375KHz to 187.5KHz to reduce the conversion efficiency of the second charging IC, thereby reducing the second output current of the second charging IC.
需要说明的是,上述根据第一充电IC对应的最大输出电流来确定第一充电IC的第一目标频率仅作示例性解释,不应理解为对本申请实施例的限制。在一些实施例中,电子设备也可以根据第一充电IC对应的限制电流来确定第一充电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 an exemplary explanation, and should not be construed as a limitation to the embodiment of the present application. In some embodiments, the electronic device may also determine the first target frequency of the first charging IC according to the current limit corresponding to the first charging IC.
其中,第一充电IC对应的限制电流可以根据第一充电IC对应的电池(即第一充电IC用于为其进行充电的电池)的当前充电状态来确定。例如,在第一充电IC对应的电池当前处于恒流充电状态时,第一充电IC对应的限制电流可以较大,在第一充电IC对应的电池当前处于恒压充电状态时,第一充电IC对应的限制电流可以较小。Wherein, the limited current corresponding to the first charging IC can be determined according to the current charging state of the battery corresponding to the first charging IC (ie, the battery used for charging by the first charging IC). For example, when the battery corresponding to the first charging IC is currently in a constant current charging state, the current limit corresponding to the first charging IC can be relatively large; when the battery corresponding to the first charging IC is currently in a constant voltage charging state, the first charging IC The corresponding limiting current can be smaller.
类似的,电子设备也可以根据第二充电IC对应的限制电流来确定第二充电IC的第二目标频率。Similarly, the electronic device can also determine the second target frequency of the second charging IC according to the current limit corresponding to the second charging IC.
应理解,当电子设备还包括第三充电IC时,电子设备可以获取第三充电IC的第三输出电流,并确定第三输出电流是否大于第三充电IC对应的最大输出电流。当第三输出电流大于第三充电IC对应的最大输出电流时,电子设备可以根据第三输出电流,确定第三充电IC的转换效率与频率之间的预设对应关系A,并根据第三充电IC当前的频率和所确定的预设对应关系A,确定第三充电IC的第三目标频率,以将第三充电IC的频率调整至第三目标频率。It should be understood that when the electronic device further includes a third charging IC, the electronic device may acquire a third output current of the third charging IC, and determine whether the third output current is greater than a corresponding maximum output current of 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 can determine the preset correspondence relationship A between the conversion efficiency of the third charging IC and the frequency according to the third output current, and charge The current frequency of the IC and the determined preset correspondence relationship A determine a third target frequency of the third charging IC, so as to adjust the frequency of the third charging IC to the third target frequency.
在另一种可能的实现方式中,如图2所示,当电子设备仅包括一个电池时,电子设备可以通过并联设置的第一充电IC和第二充电IC对该电池进行充电,即第一充电IC的第一输出电流和第二充电IC的第二输出电流均可以输入至该电池,以通过大电流对该电池进行快速充电。其中,由于第一充电IC的第一输出电流与第二充电IC的第二输出电流是从不同的端口输入该电池,若第一输出电流与第二输出电流之间的差值较大,会造成充电过程中,电池的局部发热严重,从而可能导致断充,影响用户体验。In another possible implementation, as shown in FIG. 2, when the electronic device includes only one battery, the electronic device can charge the battery through a first charging IC and a second charging IC arranged in parallel, that is, the first Both the first output current of the charging IC and the second output current of the second charging IC can be input to the battery, so as to quickly charge the battery through a large current. Wherein, since the first output current of the first charging IC and the second output current of the second charging IC are input to the battery from different ports, if the difference between the first output current and the second output current is large, the As a result, during the charging process, the local heating of the battery is serious, which may lead to interruption of charging and affect the user experience.
因此,为避免电池局部的输入电流较大,使得电池的局部发热严重,造成电子设备的断充等,电子设备中可以设置有第一输出电流与第二输出电流之间的电流比需满足的第一预设电流比,以根据第一预设电流比来调节第一充电IC的频率和/或调节第二充电IC的频 率,从而调节第一充电IC的转换效率和/或调节第二充电IC的转换效率,以此调节第一充电IC的第一输出电流和/或调节第二充电IC的第二输出电流。Therefore, in order to avoid the large local input current of the battery, which will cause severe local heating of the battery and cause the electronic device to be cut off, etc., the electronic device can be provided with a current ratio between the first output current and the second output current that needs to be satisfied. A first preset current ratio to adjust the frequency of the first charging IC and/or adjust the frequency of the second charging IC according to the first preset current ratio, thereby adjusting the conversion efficiency of the first charging IC and/or adjusting the second charging IC The conversion efficiency of the IC is used to adjust the first output current of the first charging IC and/or adjust the second output current of the second charging IC.
需要说明的是,第一预设电流比也可以存储于与电子设备通信连接的其他电子设备或者云端等装置中。第一预设电流比可以为一个比值的区间,且第一预设电流比可以由技术人员根据实际场景具体确定,本申请实施例对此不作具体限制。示例性的,技术人员可以根据初始(例如电子设备出厂)时,第一充电IC所在通路的原始阻抗和第二充电IC所在通路的原始阻抗来确定第一预设电流比。It should be noted that the first preset current ratio may also be stored in other electronic devices or cloud devices that are communicatively connected with the electronic devices. The first preset current ratio may be a range of ratios, and the first preset current ratio may be specifically determined by technicians according to actual scenarios, which is not specifically limited in this embodiment of the present application. Exemplarily, technicians can determine the first preset current ratio according to the original impedance of the path where the first charging IC is located and the original impedance of the path where the second charging IC is located when the electronic device is shipped from the factory.
例如,初始时,若第一充电IC所在通路的原始阻抗与第二充电IC所在通路的原始阻抗相同,表明第一充电IC的第一输出电流与第二充电IC的第二输出电流应当大致相同,此时,可以将第一预设电流比设置为[0.9,1.1]。For example, initially, if the original impedance of the path where the first charging IC is located is the same as the original impedance of the path where the second charging IC is located, it means that the first output current of the first charging IC and the second output current of the second charging IC should be roughly the same , at this time, the first preset current ratio can be set to [0.9, 1.1].
应理解,当电子设备还包括第三充电IC时,第一预设电流比可以为第一充电IC的第一输出电流、第二充电IC的第二输出电流与第三充电IC的第三输出电流三者之间所需满足的比值区间。电子设备可以根据第一输出电流、第二输出电流和第三输出电流三者当前的电流比,以及第一预设电流比,来调节第一充电IC的频率、第二充电IC的频率和第三充电IC的频率中的一个或多个。以下将以电子设备包括第一充电IC和第二充电IC为例,进行示例性说明。It should be understood that when the electronic device further includes a third charging IC, the first preset current ratio may be 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 ratio interval that needs to be satisfied between the three currents. The electronic device can adjust the frequency of the first charging IC, the frequency of the second charging IC and the frequency of the second charging IC according to the current ratio of the first output current, the second output current and the third output current, and the first preset current ratio. One or more of the three charging IC frequencies. The following will take the electronic device including the first charging IC and the second charging IC as an example for illustration.
示例性的,当第一充电IC的第一输出电流与第二充电IC的第二输出电流之间的电流比不满足第一预设电流比时,例如,当第一输出电流与第二输出电流之间的电流比大于第一预设电流比中的最大值时,或者当第一输出电流与第二输出电流之间的电流比小于第一预设电流比中的最小值时,电子设备可以根据第一输出电流、第二输出电流和第一预设电流比,确定第一充电IC的第一目标频率,和/或确定第二充电IC的第二目标频率,并根据第一目标频率调节第一充电IC的频率,和/或根据第二目标频率调节第二充电IC的频率,以调节第一充电IC的第一输出电流,和/或调节第二充电IC的第二输出电流,从而使得第一输出电流与第二输出电流之间的电流比满足第一预设电流比。Exemplarily, 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 first output current and the second output current When the current ratio between the currents is greater than the maximum value in the first preset current ratio, or 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 The first target frequency of the first charging IC can be determined according to the first output current, the second output current and the first preset current ratio, and/or the second target frequency of the second charging IC can be determined, and according to the first target frequency adjusting the frequency of the first charging IC, and/or adjusting the frequency of the second charging IC according to the second target frequency, 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, Therefore, the current ratio between the first output current and the second output current satisfies the first preset current ratio.
在一个示例中,当第一输出电流与第二输出电流之间的电流比大于第一预设电流比中的最大值时,电子设备可以确定第一充电IC当前的第一输出电流较大,此时,电子设备可以根据第一输出电流调节第一充电IC的频率,即根据第一输出电流确定第一充电IC的转换效率与频率之间的第一预设对应关系,并根据所确定的第一预设对应关系和第一充电IC当前的频率,确定第一充电IC的第一目标频率,以将第一充电IC的频率调整至第一目标频率,来降低第一充电IC的转换效率,从而降低第一充电IC的第一输出电流,使得第一输出电流与第二输出电流之间的电流比满足第一预设电流比。In an example, 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 relatively large, At this time, the electronic device can adjust the frequency of the first charging IC according to the first output current, that is, determine the first preset correspondence between the conversion efficiency of the first charging IC and the frequency according to the first output current, and according to the determined The first preset correspondence relationship and the current frequency of the first charging IC determine the first target frequency of the first charging IC 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.
可选的,当调节第一充电IC的频率,使得第一充电IC的转换效率降低至最小时,若第一输出电流与第二输出电流之间的电流比仍不满足第一预设电流比,例如,若第一输出电流与第二输出电流之间的电流比仍大于第一预设电流比中的最大值,电子设备可以确定第二充电IC当前的第二输出电流较小,此时,电子设备可以根据第二充电IC当前的第二输出电流调节第二充电IC的频率,即可以根据第二输出电流确定第二充电IC的转换效率与频率之间的第二预设对应关系,并根据所确定的第二预设对应关系和第二充电IC当前的频率,确定第二充电IC对应的第二目标频率,以将第二充电IC的频率调整至第二目标频率,来提升第二充电IC的转换效率,从而提升第二充电IC的第二输出电流,使得第一 输出电流和第二输出电流之间的电流比满足第一预设电流比。Optionally, when the frequency of the first charging IC is adjusted so that the conversion efficiency of the first charging IC is reduced to a minimum, if the current ratio between the first output current and the second output current still does not meet 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 relatively small, and at this time The electronic device can adjust the frequency of the second charging IC according to the current second output current of the second charging IC, that is, the second preset correspondence between the conversion efficiency of the second charging IC and the frequency can be determined according to the second output current, And according to the determined second preset correspondence relationship and the current frequency of the second charging IC, determine the second target frequency corresponding to the second charging IC, so as to adjust the frequency of the second charging IC to the second target frequency to increase the second charging IC frequency. 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 output current satisfies the first preset current ratio.
例如,在第一预设电流比为[0.9,1.1]时,初始时,第一充电IC的第一输出电流与第二充电IC的第二输出电流之间的电流比一般满足第一预设电流比。由于第一充电IC所在通路的阻抗变化或第二充电IC所在通路的阻抗变化等原因,导致充电器输入至第一充电IC和/或第二充电IC的电流发生变化,使得第一充电IC当前的第一输出电流和/或第二充电IC当前的第二输出电流变化。假设,使得第一充电IC当前的第一输出电流为3A,第二充电IC当前的第二输出电流为2A,即导致第一输出电流与第二输出电流之间的电流比为1.5:1时,电子设备可以确定第一充电IC当前的第一输出电流较大。For example, when the first preset current ratio is [0.9, 1.1], initially, the current ratio between the first output current of the first charging IC and the second output current of the second charging IC generally satisfies the first preset current ratio. 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, the current input by the charger to the first charging IC and/or the second charging IC changes, so that the current of the first charging IC The first output current of the second charging IC and/or the current second output current of the second charging IC change. Assume 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, when 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 relatively large.
此时,电子设备可以根据第一输出电流(即3A)调节第一充电IC的频率,例如,电子设备可以根据输出电流为(0A,4A)时,充电IC的频率与转换效率之间的第一预设对应关系(即充电IC的频率越高,充电IC的转换效率越低)和第一充电IC当前的频率,确定第一充电IC的第一目标频率,并可以将第一充电IC的频率调整至第一目标频率,来降低第一充电IC的转换效率,以降低第一充电IC的第一输出电流,从而使得第一输出电流与第二输出电流之间的电流比可以满足第一预设电流比,即使得第一输出电流与第二输出电流之间的电流比可以位于[0.9,1.1]。At this time, the electronic device can adjust the frequency of the first charging IC according to the first output current (that is, 3A). A preset corresponding relationship (that is, 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, determine the first target frequency of the first charging IC, and the first charging IC's The frequency is adjusted 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 can satisfy the first The preset current ratio means that the current ratio between the first output current and the second output current can be located at [0.9, 1.1].
其中,当第一充电IC的频率调整至高频率(即750KHz)时,第一充电IC的转换效率将降低至最小,此时,若第一输出电流与第二输出电流之间的电流比仍大于1.1,例如,第一输出电流与第二输出电流之间的电流比为1.2:1时,电子设备可以确定第二充电IC当前的第二输出电流较小,此时,电子设备可以根据的第二输出电流(即2A)调节第二充电IC的频率,来提升第二充电IC的转换效率,以增加第二充电IC的第二输出电流,从而使得第一输出电流与第二输出电流之间的电流比位于[0.9,1.1]。Wherein, when the frequency of the first charging IC is adjusted to a high frequency (ie 750KHz), the conversion efficiency of the first charging IC will be reduced to the minimum. 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 can determine that the current second output current of the second charging IC is relatively small. At this time, the electronic device can Two output currents (that is, 2A) adjust the frequency of the second charging IC to improve the conversion efficiency of the second charging IC, so as to increase the second output current of the second charging IC, so that the difference between the first output current and the second output current The current ratio of is located in [0.9, 1.1].
可选的,当第一输出电流与第二输出电流之间的电流比大于第一预设电流比中的最大值时,在根据第一目标频率调节第一充电IC的频率,使得第一充电IC的转换效率降低时,若第一输出电流与第二输出电流之间的电流比仍不满足第一预设电流比,例如仍大于第一预设电流比中的最大值时,电子设备可以直接根据调节后的第一输出电流与第二输出电流之间的电流比和第一预设电流比,确定第二充电IC的第二目标频率,以根据第二目标频率调节第二充电IC的频率,从而提升第二充电IC的转换效率,提升第二充电IC的第二输出电流,使得第一输出电流与第二输出电流之间的电流比满足第一预设电流比。Optionally, 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 frequency of the first charging IC is adjusted according to the first target frequency, so that the first charging When the conversion efficiency of the IC decreases, if the current ratio between the first output current and the second output current still does not meet the first preset current ratio, for example, it is still greater than the maximum value in the first preset current ratio, the electronic device may Determine the second target frequency of the second charging IC directly according to the current ratio between the adjusted first output current and the second output current and the first preset current ratio, so as to adjust the second target frequency of the second charging IC according to the second target frequency Frequency, thereby increasing the conversion efficiency of the second charging IC, 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.
也就是说,电子设备可以根据第一输出电流与第二输出电流之间的电流比与第一预设电流比,先依次调节第一充电IC的频率,来调节第一输出电流与第二输出电流之间的电流比。当调节第一充电IC的频率,使得第一充电IC的转换效率达到极值时,若第一输出电流与第二输出电流之间的电流比仍不满足第一预设电流比,电子设备可以再根据第一输出电流与第二输出电流之间的电流比,调节第二充电IC的频率。或者,电子设备可以根据第一输出电流与第二输出电流之间的电流比与第一预设电流比,调节第一充电IC的频率,来调节第一输出电流与第二输出电流之间的电流比。在当次调节第一充电IC的频率后,若第一输出电流与第二输出电流之间的电流比仍不满足第一预设电流比,电子设备可以再根据第一输出电流与第二输出电流之间的电流比,调节第二充电IC的频率。在当次调节第二充电IC的频率后,若第一输出电流与第二输出电流之间的电流比仍不满足第一预设电流比,电子设备可以再根据第一输出电流与第二输出电流之间的电流比,调节第一 充电IC的频率,依此循环调节。应理解,后续调节第二充电IC的频率以及调节第一充电IC的频率的过程与之类似。That is to say, the electronic device can first adjust the frequency of the first charging IC sequentially 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 and the second output current. Current ratio between currents. When the frequency of the first charging IC is adjusted so that the conversion efficiency of the first charging IC reaches an extreme value, if the current ratio between the first output current and the second output current still does not satisfy the first preset current ratio, the electronic device may Then, the frequency of the second charging IC is adjusted according to the current ratio between the first output current and the second output current. Alternatively, the electronic device can 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. current ratio. After adjusting the frequency of the first charging IC this time, 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 then adjust the frequency according to the first output current and the second output current. The current ratio between the currents adjusts the frequency of the second charging IC. After adjusting the frequency of the second charging IC this time, 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 then adjust the frequency according to the first output current and the second output current. The current ratio between the currents adjusts the frequency of the first charging IC, and it is cyclically adjusted accordingly. It should be understood that the subsequent process of adjusting the frequency of the second charging IC and adjusting the frequency of the first charging IC is similar.
示例性的,当第一输出电流与第二输出电流之间的电流比大于第一预设电流比中的最大值时,电子设备可以确定第二充电IC当前的第二输出电流较小,此时,电子设备可以根据第二输出电流确定第二充电IC的转换效率与频率之间的第二预设对应关系,并根据第二预设对应关系和第二充电IC当前的频率,确定第二充电IC的第二目标频率,以将第二充电IC的频率调整至第二目标频率,来提升第二充电IC的转换效率,从而增加第二充电IC的第二输出电流,使得第一输出电流与第二输出电流之间的电流比满足第一预设电流比。Exemplarily, 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 second output current of the second charging IC is relatively small, which means , the electronic device can determine the second preset correspondence between the conversion efficiency of the second charging IC and the frequency according to the second output current, and determine the second preset correspondence according to the second preset correspondence and the current frequency of the second charging IC. The second target frequency of the charging IC is to adjust the frequency of the second charging IC to the second target frequency to improve the conversion efficiency of the second charging IC, thereby increasing the second output current of the second charging IC, so that the first output current The current ratio to the second output current satisfies the first preset current ratio.
类似的,在根据第二目标频率调节第二充电IC的频率,使得第二充电IC的转换效率提升时,若第一输出电流与第二输出电流之间的电流比仍不满足第一预设电流比,电子设备可以直接根据第一输出电流确定第一充电IC的转换效率与频率之间的第一预设对应关系,并根据第一预设对应关系和第一充电IC当前的频率,确定第一充电IC的第一目标频率,以将第一充电IC的频率调整至第一目标频率,来降低第一充电IC的转换效率,从而降低第一充电IC的第一输出电流,使得第一输出电流与第二输出电流之间的电流比满足第一预设电流比。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 still does not satisfy the first preset Current ratio, the electronic device can 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 according to the first preset correspondence and the current frequency of the first charging IC The first target frequency of the first charging IC, 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 first A current ratio between the output current and the second output current satisfies a first preset current ratio.
或者,当调节第二充电IC的频率,使得第二充电IC的转换效率提升至最大时,若第一输出电流与第二输出电流之间的电流比仍不满足第一预设电流比,电子设备可以根据第一输出电流确定第一充电IC的转换效率与频率之间的第一预设对应关系,并根据第一预设对应关系和第一充电IC当前的频率,确定第一充电IC的第一目标频率,以将第一充电IC的频率调整至第一目标频率,来降低第一充电IC的转换效率,从而降低第一充电IC的第一输出电流,使得第一输出电流与第二输出电流之间的电流比满足第一预设电流比。Or, when adjusting the frequency of the second charging IC 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 satisfy the first preset current ratio, the electronic The 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 preset correspondence between the first charging IC and the current frequency of the first charging IC. The first target frequency is 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 first output current and the second The current ratio between the output currents satisfies a first preset current ratio.
需要说明的是,当第一输出电流与第二输出电流之间的电流比大于第一预设电流比中的最大值时,电子设备可以确定第一充电IC当前的第一输出电流较大,第二充电IC当前的第二输出电流较小,此时,电子设备可以根据第一输出电流确定第一充电IC的转换效率与频率之间的第一预设对应关系,并根据第一预设对应关系和第一充电IC当前的频率,确定第一充电IC的第一目标频率,以将第一充电IC的频率调整至第一目标频率,来降低第一充电IC的转换效率,从而降低第一充电IC的第一输出电流。同时,电子设备可以根据第二输出电流确定第二充电IC的转换效率与频率之间的第二预设对应关系,并根据第二预设对应关系和第二充电IC当前的频率,确定第二充电IC的第二目标频率,以将第二充电IC的频率调整至第二目标频率,来提升第二充电IC的转换效率,从而增加第二充电IC的第二输出电流,使得第一输出电流与第二输出电流之间的电流比满足第一预设电流比。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 relatively large, The current second output current of the second charging IC is relatively small. At this time, the electronic device can determine the first preset corresponding relationship between the conversion efficiency of the first charging IC and the frequency according to the first output current, and according to the first preset Corresponding relationship and the current frequency of the first charging IC, determine the first target frequency of the first charging IC, 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 The first output current of a charging IC. At the same time, the electronic device can determine the second preset correspondence between the conversion efficiency of the second charging IC and the frequency according to the second output current, and determine the second preset correspondence according to the second preset correspondence and the current frequency of the second charging IC. The second target frequency of the charging IC is to adjust the frequency of the second charging IC to the second target frequency to improve the conversion efficiency of the second charging IC, thereby increasing the second output current of the second charging IC, so that the first output current The current ratio to the second output current satisfies the first preset current ratio.
在另一个示例中,当第一输出电流与第二输出电流之间的电流比小于第一预设电流比中的最小值时,电子设备可以确定第一充电IC当前的第一输出电流较小,此时,电子设备可以根据第一输出电流调节第一充电IC的频率,即根据第一输出电流确定第一充电IC的转换效率与频率之间的第一预设对应关系,并根据所确定的第一预设对应关系和第一充电IC当前的频率调节第一充电IC的频率,来提升第一充电IC的转换效率,以增加第一充电IC的第一输出电流,从而使得第一输出电流和第二输出电流之间的电流比满足第一预设电流比。In another example, 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 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 can adjust the frequency of the first charging IC according to the first output current, that is, determine the first preset correspondence between the conversion efficiency of the first charging IC and the frequency according to the first output current, and according to the determined Adjust the frequency of the first charging IC to improve the conversion efficiency of the first charging IC, so as to increase the first output current of the first charging IC, so that the first output A current ratio between the current and the second output current satisfies a first preset current ratio.
可选的,当调节第一充电IC的频率,使得第一充电IC的转换效率提升至最大时,若第一输出电流与第二输出电流之间的电流比仍不满足第一预设电流比,例如,第一输出电流与第二输出电流之间的电流比仍小于第一预设电流比中的最小值,电子设备可以确定第二充电IC当前的第二输出电流较大,此时,电子设备可以根据第二充电IC的第二输出电流调节第二充电IC的频率,来降低第二充电IC的转换效率,以降低第二充电IC的第二输出电流,从而使得第一输出电流和第二输出电流之间的电流比满足第一预设电流比。Optionally, when adjusting the frequency of the first charging IC 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 meet the first preset current ratio For example, if 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 relatively large. At this time, The electronic device can 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 first output current and The current ratio between the second output currents satisfies the first preset current ratio.
例如,当第一预设电流比为[0.9,1.1]时,若第一充电IC当前的第一输出电流为4A,第二充电IC当前的第二输出电流为5A,即第一输出电流与第二输出电流之间的电流比为0.8:1,电子设备可以确定第一充电IC当前的第一输出电流较小,此时,电子设备可以根据第一输出电流(即4A)调节第一充电IC的频率,即电子设备可以根据输出电流为[4A,6A]时,充电IC的频率与转换效率之间的第一预设对应关系(即充电IC处于高频率时的转换效率小于充电IC处于低频率时的转换效率,充电IC处于低频率时的转换效率小于充电IC处于中频率时的转换效率)和第一充电IC当前的频率,确定第一充电IC的第一目标频率,并可以将第一充电IC的频率调整至第一目标频率,来提升第一充电IC的转换效率,以增加第一充电IC的第一输出电流,从而使得第一输出电流与第二输出电流之间的电流比位于[0.9,1.1]。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 first output current and The current ratio between the second output currents is 0.8:1, the electronic device can determine that the current first output current of the first charging IC is relatively small, at this time, the electronic device can adjust the first charging according to the first output current (ie 4A) The frequency of the IC, that is, the electronic device can be based on the first preset correspondence between the frequency of the charging IC and the conversion efficiency when the output current is [4A, 6A] (that is, the conversion efficiency of the charging IC at a high frequency is less than that of the charging IC at a The conversion efficiency at low frequency, the conversion efficiency when the charging IC is at a low frequency is less than the conversion efficiency when the charging IC is at a medium frequency) and the current frequency of the first charging IC, determine the first target frequency of the first charging IC, and can be The frequency of the first charging IC is adjusted to the first target frequency to increase the conversion efficiency of the first charging IC to increase the first output current of the first charging IC, so that the current between the first output current and the second output current The ratio lies in [0.9, 1.1].
其中,当第一充电IC的频率调整至中频率(即375KHz)时,第一充电IC的转换效率将提升至最大时,此时,若第一输出电流与第二输出电流之间的电流比仍小于0.9,例如,第一输出电流与第二输出电流之间的电流比为0.85:1时,电子设备可以确定第二充电IC当前的第二输出电流较大,此时,电子设备可以根据第二输出电流调节第二充电IC的频率,来降低第二充电IC的转换效率,以降低第二充电IC的第二输出电流,从而使得第一输出电流与第二输出电流之间的电流比位于[0.9,1.1]。Wherein, when the frequency of the first charging IC is adjusted to the medium frequency (ie 375KHz), the conversion efficiency of the first charging IC will be increased to the maximum, at this time, if the current ratio between the first output current and the second output current 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 can determine that the current second output current of the second charging IC is relatively large, at this time, the electronic device can according to The second output current adjusts the frequency of the second charging IC to reduce the conversion efficiency of the second charging IC 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 lies in [0.9, 1.1].
可选的,当第一输出电流与第二输出电流之间的电流比小于第一预设电流比中的最小值时,在根据第一目标频率调节第一充电IC的频率,使得第一充电IC的转换效率提升时,若第一输出电流与第二输出电流之间的电流比仍不满足第一预设电流比,例如仍小于第一预设电流比中的最小值时,电子设备可以根据调节后的第一输出电流与第二输出电流之间的电流比和第一预设电流比,确定第二充电IC的第二目标频率,以根据第二目标频率调节第二充电IC的频率,从而降低第二充电IC的转换效率,降低第二充电IC的第二输出电流,使得第一输出电流与第二输出电流之间的电流比满足第一预设电流比。Optionally, when the current ratio between the first output current and the second output current is less than the minimum value of the first preset current ratio, the frequency of the first charging IC is adjusted according to the first target frequency, so that the first charging When the conversion efficiency of the 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 ratio, the electronic device can According to the adjusted current ratio between the first output current and the second output current and the first preset current ratio, determine the second target frequency of the second charging IC 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, 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.
示例性的,当第一输出电流与第二输出电流之间的电流比小于第一预设电流比中的最小值时,电子设备可以确定第二充电IC当前的第二输出电流较大,此时,电子设备可以根据第二输出电流确定第二充电IC的转换效率与频率之间的第二预设对应关系,并根据第二预设对应关系和第二充电IC当前的频率,确定第二充电IC的第二目标频率,以将第二充电IC的频率调整至第二目标频率,来降低第二充电IC的转换效率,从而降低第二充电IC的第二输出电流,使得第一输出电流与第二输出电流之间的电流比满足第一预设电流比。Exemplarily, 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 ratio, the electronic device may determine that the current second output current of the second charging IC is relatively large, which means , the electronic device can determine the second preset correspondence between the conversion efficiency of the second charging IC and the frequency according to the second output current, and determine the second preset correspondence according to the second preset correspondence and the current frequency of the second charging IC. The second target frequency of the charging IC, to adjust the frequency of the second charging IC to the second target frequency, to reduce the conversion efficiency of the second charging IC, thereby reducing the second output current of the second charging IC, so that the first output current The current ratio to the second output current satisfies the first preset current ratio.
类似的,在根据第二目标频率调节第二充电IC的频率,使得第二充电IC的转换效率降低时,若第一输出电流与第二输出电流之间的电流比仍不满足第一预设电流比,电子设备可以根据第一输出电流确定第一充电IC的转换效率与频率之间的第一预设对应关系, 并根据第一预设对应关系和第一充电IC当前的频率,确定第一充电IC的第一目标频率,以将第一充电IC的频率调整至第一目标频率,来提升第一充电IC的转换效率,从而提升第一充电IC的第一输出电流,使得第一输出电流与第二输出电流之间的电流比满足第一预设电流比。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 decreases, if the current ratio between the first output current and the second output current still does not satisfy the first preset Current ratio, the electronic device can 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 preset correspondence according to the first preset correspondence and the current frequency of the first charging IC. The first target frequency of a charging IC is to adjust the frequency of the first charging IC to the first target frequency to improve the conversion efficiency of the first charging IC, thereby increasing the first output current of the first charging IC, so that the first output A current ratio between the current and the second output current satisfies a first preset current ratio.
或者,当调节第二充电IC的频率,使得第二充电IC的转换效率降低至最小时,若第一输出电流与第二输出电流之间的电流比仍不满足第一预设电流比,电子设备可以根据第一输出电流确定第一充电IC的转换效率与频率之间的第一预设对应关系,并根据第一预设对应关系和第一充电IC当前的频率,确定第一充电IC的第一目标频率,以将第一充电IC的频率调整至第一目标频率,来提升第一充电IC的转换效率,从而提升第一充电IC的第一输出电流,使得第一输出电流与第二输出电流之间的电流比满足第一预设电流比。Or, when the frequency of the second charging IC is adjusted so that the conversion efficiency of the second charging IC is reduced to a minimum, if the current ratio between the first output current and the second output current still does not satisfy the first preset current ratio, the electronic The 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 preset correspondence between the first charging IC and the current frequency of the first charging IC. The first target frequency is to adjust the frequency of the first charging IC to the first target frequency to improve the conversion efficiency of the first charging IC, thereby increasing the first output current of the first charging IC, so that the first output current and the second The current ratio between the output currents satisfies a first preset current ratio.
需要说明的是,当第一输出电流与第二输出电流之间的电流比小于第一预设电流比中的最小值时,电子设备可以确定第一充电IC当前的第一输出电流较小,第二充电IC当前的第二输出电流较大,此时,电子设备可以根据第一输出电流确定第一充电IC的转换效率与频率之间的第一预设对应关系,并根据第一充电IC的转换效率与频率之间的第一预设对应关系和第一充电IC当前的频率调节第一充电IC的频率,来提升第一充电IC的转换效率,以增加第一充电IC的第一输出电流。同时,电子设备可以根据第二输出电流确定第二充电IC的转换效率与频率之间的第二预设对应关系,并根据第二充电IC的转换效率与频率之间的第二预设对应关系和第二充电IC当前的频率,确定第二充电IC的第二目标频率,以将第二充电IC的频率调整至第二目标频率,来降低第二充电IC的转换效率,从而降低第二充电IC的第二输出电流,使得第一输出电流与第二输出电流之间的电流比满足第一预设电流比。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 of the first preset current ratio, the electronic device may determine that the current first output current of the first charging IC is relatively small, The current second output current of the second charging IC is relatively large. At this time, the electronic device can 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 preset corresponding relationship between the conversion efficiency and the frequency of the first charging IC according to the first output current The first preset correspondence between the conversion efficiency and frequency of the first charging IC and the current frequency of the first charging IC adjust the frequency of the first charging IC to improve the conversion efficiency of the first charging IC and increase the first output of the first charging IC current. At the same time, the electronic device can determine the second preset correspondence between the conversion efficiency of the second charging IC and the frequency according to the second output current, and determine the second preset correspondence between the conversion efficiency of the second charging IC and the frequency 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, determine the second target frequency of the second charging IC, to adjust the frequency of the second charging IC to the second target frequency, to reduce the conversion efficiency of the second charging IC, thereby reducing the second charging The second output current of the IC, so that the current ratio between the first output current and the second output current satisfies the first preset current ratio.
示例性的,在根据第一输出电流和第二输出电流之间的电流比和第一预设电流比调节第一充电IC的频率和/或调节第二充电IC的频率,以调节第一充电IC的第一输出电流和/或调节第二充电IC的第二输出电流时,电子设备可以结合第一充电IC对应的最大输出电流和/或第二充电IC对应的最大输出电流,来调节第一充电IC的第一输出电流和/或第二充电IC的第二输出电流,以使得第一输出电流与第二输出电流之间的电流比满足第一预设电流比的同时,第一充电IC调整后的第一输出电流小于或等于第一充电IC对应的最大输出电流,以及第二充电IC调整后的第二输出电流小于或等于第二充电IC对应的最大输出电流。Exemplarily, 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, so as to adjust the first charging When adjusting the first output current of the IC and/or adjusting the second output current of the second charging IC, the electronic device can adjust 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. The first output current of a charging IC and/or the second output current of a 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 charging The adjusted first output current of the IC is less than or equal to the corresponding maximum output current of the first charging IC, and the adjusted second output current of the second charging IC is less than or equal to the corresponding maximum output current of the second charging IC.
也就是说,在根据第一输出电流和第二输出电流之间的电流比和第一预设电流比调节第一充电IC的频率,使得第一充电IC的转换效率提升,从而使得第一充电IC的第一输出电流增加时,电子设备可以结合第一充电IC对应的最大输出电流,来确定第一充电IC的第一目标频率,以在确保第一充电IC调整后的第一输出电流小于或等于第一充电IC对应的最大输出电流的基础上,提升第一充电IC的转换效率,增加第一充电IC的第一输出电流。That is to say, 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, so that the first charging When the first output current of the IC increases, the electronic device can determine the first target frequency of the first charging IC in combination with the corresponding maximum output current of the first charging IC, so as to ensure that the adjusted first output current of the first charging IC is less than Or on the basis of being equal to the maximum output current corresponding to the first charging IC, the conversion efficiency of the first charging IC is improved, and the first output current of the first charging IC is increased.
例如,电子设备可以根据第一充电IC对应的最大输出电流确定当次调节中,第一充电IC可以达到的最大转换效率,并根据该最大转换效率确定第一充电IC可以调节的一个或多个候选频率。因此,电子设备在根据第一输出电流和第二输出电流之间的电流比和第一预设电流比确定第一充电IC的第一目标频率时,可以从这一个或多个候选频率中确定 出第一充电IC的第一目标频率。For example, the electronic device can determine the maximum conversion efficiency that the first charging IC can achieve in the current adjustment according to the maximum output current corresponding to the first charging IC, and determine one or more voltages that the first charging IC can adjust according to the maximum conversion efficiency. candidate frequency. Therefore, when the electronic device determines the first target 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, it can determine from the one or more candidate frequencies Out of the first target frequency of the first charging IC.
类似的,在根据第一输出电流和第二输出电流之间的电流比和第一预设电流比调节第二充电IC的频率,使得第二充电IC的转换效率提升,从而使得第二充电IC的第二输出电流增加时,电子设备可以结合第二充电IC对应的最大输出电流,来确定第二充电IC的第二目标频率,以在确保第二充电IC调整后的第二输出电流小于或等于第二充电IC对应的最大输出电流的基础上,提升第二充电IC的转换效率,增加第二充电IC的第二输出电流。Similarly, 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, so that the second charging IC When the second output current of the second charging IC increases, the electronic device can determine the second target frequency of the second charging IC in combination with the corresponding maximum output current of the second charging IC, so as to ensure that the adjusted second output current of the second charging IC is less than or On the basis of being equal to the maximum output current corresponding to the second charging IC, the conversion efficiency of the second charging IC is improved, and the second output current of the second charging IC is increased.
在另一种可能的实现方式中,如图3所示,当电子设备包括至少两个电池时,例如当电子设备包括第一电池和第二电池时,电子设备可以通过第一充电IC对第一电池进行充电,并可以通过第二充电IC对第二电池进行充电。即第一充电IC的第一输出电流可以输入第一电池,来对第一电池进行充电,第二充电IC的第二输出电流可以输入第二电池,来对第二电池进行充电。此时,为使得第一电池的充电速度与第二电池的充电速度满足预设要求(例如第一电池与第二电池同时充满的要求,以下将以第一电池与第二电池满足同时充满的要求为例进行示例性说明),可以设置第一充电IC的第一输出电流与第二充电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 can charge the second battery through the first charging IC. A battery is charged, and the second battery can be charged through the second charging IC. That is, the first output current of the first charging IC can be input into the first battery to charge the first battery, and the second output current of the second charging IC can be input into 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 meet the preset requirements (such as the requirement that the first battery and the second battery be fully charged at the same time, the first battery and the second battery are used to meet the requirements of being fully charged at the same time) The requirement is taken as an example for illustration), and the current ratio between the first output current of the first charging IC and the second output current of the second charging IC can be set to meet a second preset current ratio.
需要说明的是,与第一预设电流比类似,第二预设电流比也可以为一个比值的区间,且第二预设电流比也可以由技术人员根据实际场景具体确定,本申请实施例对此不作具体限制。示例性的,技术人员可以根据初始(例如电子设备出厂)时,第一充电IC所在通路的原始阻抗和第二充电IC所在通路的原始阻抗,以及第一电池的额定容量和第二电池的额定容量来确定第二预设电流比。应理解,第一电池的额定容量和第二电池的额定容量可以根据电池的具体情况来确定,本申请实施例对此不作任何限制。It should be noted that, similar to the first preset current ratio, the second preset current ratio can also be a range of ratios, and the second preset current ratio can also be specifically determined by technicians according to actual scenarios. There is no specific limitation on this. Exemplarily, the technician can base on the original impedance of the path where the first charging IC is located and the original impedance of the path where the second charging IC is located, as well as the rated capacity of the first battery and the rated capacity of the second battery when the electronic device leaves the factory. capacity to determine the second preset current ratio. 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 specific conditions of the battery, which is not limited in this embodiment of the present application.
例如,当第一电池的额定容量与第二电池的额定容量相同,且初始时,第一充电IC所在通路的原始阻抗与第二充电IC所在通路的原始阻抗相同时,若使得第一电池和第二电池同时充满,则第一充电IC的第一输出电流与第二充电IC的第二输出电流应当大致相同,此时,第二预设电流比可以设置为[0.9,1.1]。For example, when the rated capacity of the first battery is the same as that of the second battery, and initially, the original impedance of the path where the first charging IC is located is the same as the original impedance of the path where the second charging IC is located, if the first battery and the The second battery is fully charged at the same time, then the first output current of the first charging IC and the second output current of the second charging IC should be approximately the same, at this time, the second preset current ratio can be set to [0.9, 1.1].
例如,当第一电池的额定容量与第二电池的额定容量为2:1,且初始时,第一充电IC所在通路的原始阻抗与第二充电IC所在通路的原始阻抗相同时,若使得第一电池和第二电池同时充满,则第一充电IC的第一输出电流与第二充电IC的第二输出电流应当为2:1,此时,第二预设电流比可以设置为[2.1,0.9]。For example, when the rated capacity of the first battery and the rated capacity of the second battery are 2:1, and initially, the original impedance of the path where the first charging IC is located is the same as the original impedance of the path where the second charging IC is located, if the second When the first battery and the second battery are fully charged 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 can be set to [2.1, 0.9].
因此,电子设备可以根据第一充电IC的第一输出电流、第二充电IC的第二输出电流和第二预设电流比,来调节第一充电IC的频率和/或调节第二充电IC的频率,从而调节第一充电IC的转换效率,和/或调节第二充电IC的转换效率,以此调节第一充电IC的第一输出电流和/或调节第二充电IC的第二输出电流,使得第一充电IC的第一输出电流与第二充电IC的第二输出电流满足第二预设电流比。Therefore, the electronic device can 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. Frequency, 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, The first output current of the first charging IC and the second output current of the second charging IC satisfy a second preset current ratio.
应理解,电子设备根据第二预设电流比调节第一充电IC的频率和/或调节第二充电IC的频率与前述电子设备根据第一预设电流比调节第一充电IC的频率和/或调节第二充电IC的频率的原理基本相同,具体内容可以参照前述根据第一预设电流比调节第一充电IC的频率和/或调节第二充电IC的频率的内容,在此不再赘述。It should be understood that adjusting the frequency of the first charging IC and/or adjusting the frequency of the second charging IC by the electronic device according to the second preset current ratio is the same as adjusting the frequency of the first charging IC and/or adjusting the frequency of the first charging IC by the electronic device according to the first preset current ratio. The principle of adjusting the frequency of the second charging IC is basically the same, and the specific content can refer to the 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 repeated here.
需要说明的是,当电子设备还包括第三充电IC和第三电池时,电子设备可以通过第 三充电IC为第三电池充电。此时,与前述的第一预设电流比类似,第二预设电流比可以为第一充电IC的第一输出电流、第二充电IC的第二输出电流与第三充电IC的第三输出电流三者之间所需满足的比值区间。电子设备可以根据第一输出电流、第二输出电流和第三输出电流三者当前的电流比,以及第二预设电流比,来调节第一充电IC的频率、第二充电IC的频率和第三充电IC的频率中的一个或多个。It should be noted that, when the electronic device further includes a third charging IC and a third battery, the electronic device can 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 can be 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 ratio interval that needs to be satisfied between the three currents. The electronic device can adjust the frequency of the first charging IC, the frequency of the second charging IC and the frequency of the second charging IC according to the current ratio of the first output current, the second output current and the third output current, and the second preset current ratio. One or more of the three charging IC frequencies.
在另一种可能的实现方式中,电子设备可以获取电池当前的输入电流、电压和温度,并可以根据电池当前的电压、温度以及第三预设对应关系,确定该电池当前允许的最大输入电流。随后,电子设备可以根据该电池当前的输入电流和该电池当前允许的最大输入电流,调节第一充电IC的频率和/或调节第二充电IC的频率,来调节第一充电IC的第一输出电流和/或调节第二充电IC的第二输出电流,从而调节该电池的输入电流,以避免充电过程中,该电池出现过流,避免对该电池造成损坏。In another possible implementation, the electronic device can obtain the current input current, voltage and temperature of the battery, and can determine the current maximum input current allowed by the battery according to the current voltage, temperature and the third preset correspondence relationship of the battery . Subsequently, the electronic device can 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 of the battery to adjust the first output of the first charging IC current and/or adjust the second output current of the second charging IC, thereby adjusting the input current of the battery, so as to avoid overcurrent of the battery during the charging process and avoid damage to the battery.
需要说明的是,第三预设对应关系为在各温度下,各电池允许的最大输入电流与电压之间的对应关系。其中,第三预设关系可以存储于电子设备中,或者存储于与电子设备通信连接的其他电子设备或云端中。电子设备可以通过电压测量装置测量该电池当前的电压。应理解,第三预设对应关系和电压测量装置可以由技术人员根据实际场景具体设置,本申请实施例对此不作任何限制。It should be noted that the third preset correspondence is the correspondence between the maximum input current and the voltage allowed by each battery at each temperature. Wherein, the third preset relationship may be stored in the electronic device, or in other electronic devices or the cloud that is communicatively connected with the electronic device. The electronic equipment can measure the current voltage of the battery through the voltage measuring device. It should be understood that the third preset correspondence relationship and the voltage measuring device may be specifically set by a technician according to an actual scenario, and this embodiment of the present application does not impose any limitation on this.
在一个示例中,当电子设备仅包括一个电池时,即当第一充电IC的第一输出电流和第二充电IC的第二输出电流均输入至该电池时,可以在该电池的各输入端分别设置电流测量装置C,电子设备可以通过电流测量装置C获取该电池当前的输入电流。与前述的电流测量装置A和电流测量装置B类似,电流测量装置C可以根据实际场景具体设置,本申请实施例对此不作任何限制。In one example, when the electronic device includes only one battery, that is, when both the first output current of the first charging IC and the second output current of the second charging IC are input to the battery, each input terminal of the battery may A current measuring device C is provided respectively, through which the electronic device can acquire the current input current of the battery. Similar to the aforementioned current measuring device A and current measuring device B, the current measuring device C may be specifically set according to actual scenarios, which is not limited in this embodiment of the present application.
当该电池当前的输入电流大于该电池当前允许的最大输入电流时,电子设备可以根据第一充电IC当前的第一输出电流和第一充电IC当前的频率,来确定第一充电IC的第一目标频率,并将第一充电IC的频率调整至第一目标频率,以降低第一充电IC的转换效率,降低第一充电IC的第一输出电流,减少第一充电IC输入该电池的电流,从而降低该电池的输入电流。When the current input current of the battery is greater than the current maximum input current of the battery, the electronic device can determine the first charging IC's first charging current according to the current first output current of the first charging IC and the current frequency of the first charging IC. Target frequency, 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 reduce the current input to the battery by the first charging IC, Thereby reducing the input current of the battery.
或者,电子设备可以根据第二充电IC当前的第二输出电流和第二充电IC当前的频率,来确定第二充电IC的第二目标频率,并将第二充电IC的频率调整至第二目标频率,以降低第二充电IC的转换效率,降低第二充电IC的第二输出电流,减少第二充电IC输入至该电池的电流,从而降低该电池的输入电流。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. Frequency, to reduce the conversion efficiency of the second charging IC, reduce the second output current of the second charging IC, reduce the current input to the battery by the second charging IC, thereby reducing the input current of the battery.
在另一个示例中,当电子设备至少包括第一电池和第二电池时,即当第一充电IC的第一输出电流输入第一电池,第二充电IC的第二输出电流输入至第二电池时,可以在第一电池的输入端设置电流测量装置D,并可以在第二电池的输入端设置有电流测量装置E。电子设备可以通过电流测量装置D获取第一电池的第一输入电流,和/或可以通过电流测量装置E第二电池的第二输入电流。In another example, when the electronic device includes at least a first battery and a second battery, that is, when the first output current of the first charging IC is input to the first battery, the second output current of the second charging IC is input to the second battery , a current measuring device D may be provided at the input terminal of the first battery, and a current measuring device E may be provided at the input terminal of the second battery. The electronic device can obtain the first input current of the first battery through the current measuring device D, and/or can obtain the second input current of the second battery through the current measuring device E.
示例性的,当第一电池的第一输入电流大于第一电池当前允许的最大输入电流时,电子设备可以根据第一充电IC当前的第一输出电流和第一充电IC当前的频率,确定第一充电IC的第一目标频率,并将第一充电IC的频率调整至第一目标频率,以降低第一充电IC的转换效率,降低第一充电IC的第一输出电流,从而降低第一电池的第一输入电流。Exemplarily, when the first input current of the first battery is greater than the current maximum input current allowed by the first battery, the electronic device may determine the second current according to the current first output current of the first charging IC and the current frequency of the first charging IC. The first target frequency of a 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, thereby reducing the first battery of the first input current.
示例性的,当第二电池的第二输入电流大于第二电池当前允许的最大输入电流时,电子设备可以根据第二充电IC当前的第二输出电流和第二充电IC当前的频率,确定第二充电IC的第二目标频率,并将第二充电IC的频率调整至第二目标频率,以降低第二充电IC的转换效率,减少第二充电IC的第二输出电流,从而降低第二电池的第二输入电流。Exemplarily, when the second input current of the second battery is greater than the current maximum input current allowed by the second battery, the electronic device may determine the second current according to the current second output current of the second charging IC and the current frequency of the second charging IC. The second target 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, thereby reducing the second battery The second input current.
可选的,在根据第一电池的第一输入电流调节第一充电IC的频率,以调节第一充电IC的第一输出电流时,电子设备可以结合第一充电IC对应的最大输出电流和/或第二预设电流比,来调节第一充电IC的频率,以使得第一充电IC调整后的第一输出电流小于或等于第一充电IC对应的最大输出电流,和/或使得第一充电IC调整后的第一输出电流与第二充电IC的第二输出电流之间的电流比满足第二预设电流比。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 combine the corresponding maximum output current of the first charging IC and/or Or the second preset current ratio to adjust the frequency of the first charging IC so that the adjusted first output current of the first charging IC is less than or equal to the corresponding maximum output current of the first charging IC, and/or make the first charging IC A current ratio between the adjusted first output current of the IC and the second output current of the second charging IC satisfies a second preset current ratio.
类似的,在根据第二电池的第二输入电流调节第二充电IC的频率,以调节第二充电IC的第二输出电流时,电子设备可以结合第二充电IC对应的最大输出电流和/或第二预设电流比,来调节第二充电IC的第二输出电流,以使得第二充电IC调整后的第二输出电流小于或等于第二充电IC对应的最大输出电流,和/或使得第一充电IC的第一输出电流与第二充电IC调整后的第二输出电流之间的电流比满足第二预设电流比。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 combine the corresponding maximum output current of the second charging IC and/or The second preset current ratio is used to adjust the second output current of the second charging IC, so that the adjusted second output current of the second charging IC is less than or equal to the corresponding maximum output current of the second charging IC, and/or make the second charging IC A current ratio between the first output current of a charging IC and the adjusted second output current of the second charging IC satisfies a second preset current ratio.
应理解,当电子设备还包括第三电池时,电子设备可以获取第三电池的第三输入电流,并确定第三输入电流是否大于第三电池对应的最大输入电流。当第三输入电流大于第三电池当前允许的最大输入电流时,电子设备可以根据第三充电IC当前的第三输出电流和第三充电IC当前的频率,确定第三充电IC的第三目标频率,并将第三充电IC的频率调整至第三目标频率,以降低第三充电IC的转换效率,减少第三充电IC的第二输出电流,从而降低第三电池的第三输入电流。It should be understood 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 corresponding maximum input current of the third battery. When the third input current is greater than the current maximum input current allowed by the third battery, the electronic device can determine the 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 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.
基于上述实施例,下面对本申请实施例提供的充电方法进行示例性说明。上述实施例的内容均可以适用于本实施例。请参阅图6,图6示出了本申请实施例提供的充电方法的示意性流程图。该方法可以应用于至少包含第一充电芯片和第二充电芯片的电子设备。如图6所示,该方法可以包括:Based on the above-mentioned embodiments, the charging method provided in the embodiments of the present application is described below as an example. The content of the foregoing embodiments may be applicable to this embodiment. Please refer to FIG. 6 , which shows a schematic flowchart of a charging method provided by an embodiment of the present application. The method can be applied to an electronic device including at least a first charging chip and a second charging chip. As shown in Figure 6, the method may include:
S601、在检测到电子设备处于充电状态时,电子设备获取第一充电芯片的第一输出电流,或获取第一充电芯片的第一输出电流和第二充电芯片的第二输出电流。S601. When detecting that the electronic device is in a charging state, the electronic device acquires a first output current of a first charging chip, or acquires a first output current of the first charging chip and a second output current of a second charging chip.
其中,电子设备确定是否处于充电状态的具体方式可以参照前述有关确定电子设备是否处于充电状态的具体描述,在此不再赘述。Wherein, for a specific manner of determining whether the electronic device is in the charging state, reference may be made to the foregoing specific description on determining whether the electronic device is in the charging state, which will not be repeated here.
例如,电子设备可以根据电子设备的USB接口是否接收到有线充电器的充电输入来确定电子设备是否处于充电状态。For example, the electronic device may determine whether the electronic device is in a charging state according to whether the USB interface of the electronic device receives a charging input from a wired charger.
例如,电子设备可以根据电子设备的无线充电线圈是否到接收无线充电输入来确定电子设备是否处于充电状态。For example, the electronic device may determine whether the electronic device is in a charging state according to whether the wireless charging coil of the electronic device receives a wireless charging input.
应理解,第一输出电流是指第一充电芯片(即第一充电IC)的输出端的电流,第二输出电流是指第二充电芯片(即第二充电IC)的输出端的电流。其中,第一输出电流和第二输出电流的获取方式可以参照前述描述,在此不再赘述。It should be understood that the first output current refers to the current at the output terminal of the first charging chip (ie, the first charging IC), and the second output current refers to the current at the output terminal of the second charging chip (ie, the second charging IC). Wherein, the way of obtaining the first output current and the second output current can refer to the foregoing description, which will not be repeated here.
S602、电子设备根据第一输出电流确定第一充电芯片的第一目标频率,或根据第一输出电流和第二输出电流确定第一充电芯片的第一目标频率。S602. The electronic device determines the 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.
在一个示例中,电子设备可以确定第一充电IC的第一输出电流是否大于第一充电IC对应的最大输出电流。当第一输出电流大于第一充电IC对应的最大输出电流时,电子设 备可以根据第一输出电流确定第一充电IC的转换效率与频率之间的第一预设对应关系,并根据所确定的第一预设对应关系和第一充电IC当前的频率,确定第一充电IC的第一目标频率,以将第一充电IC的频率调节至第一目标频率,从而降低第一充电IC的转换效率,降低第一充电IC的第一输出电流。In an example, the electronic device may determine whether the first output current of the first charging IC is greater than the corresponding maximum output current of the first charging IC. When the first output current is greater than the corresponding maximum output current of the first charging IC, the electronic device can determine the first preset correspondence between the conversion efficiency of the first charging IC and the frequency according to the first output current, and according to the determined The first preset correspondence relationship and the current frequency of the first charging IC determine the first target frequency of the first charging IC to adjust the frequency of the first charging IC to the first target frequency, thereby reducing the conversion efficiency of the first charging IC , reducing the first output current of the first charging IC.
在另一个示例中,电子设备还可以根据第二输出电流,或根据第一输出电流和第二输出电流确定第二充电IC的第二目标频率,并根据第二目标频率调节第二充电IC的频率。示例性的,电子设备可以确定第二充电IC的第二输出电流是否大于第二充电IC对应的最大输出电流。当第二输出电流大于第二充电IC对应的最大输出电流时,电子设备可以根据第二输出电流确定,第二充电IC的转换效率与频率之间的第二预设对应关系,并可以根据所确定的第二预设对应关系和第二充电IC当前的频率,确定第二充电IC的第二目标频率,以将第二充电IC的频率调节至第二目标频率,从而降低第二充电IC的转换效率,降低第二充电IC的第二输出电流。In another example, the electronic device can also determine the second target frequency of the second charging IC according to the second output current, or according to the first output current and the second output current, and adjust the second target frequency of the second charging IC according to the second target frequency. frequency. Exemplarily, the electronic device may determine whether the second output current of the second charging IC is greater than the 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 can determine according to the second output current, the second preset correspondence between the conversion efficiency of the second charging IC and the frequency, and can according to the The determined second preset correspondence relationship and the current frequency of the second charging IC determine the second target frequency of the second charging IC to adjust the frequency of the second charging IC to the second target frequency, thereby reducing the frequency of the second charging IC conversion efficiency, reducing the second output current of the second charging IC.
其中,电子设备根据第一输出电流确定第一充电IC的转换效率与频率之间的第一预设对应关系的具体内容可以参照前述的具体描述,在此不再赘述。例如,电子设备可以根据图4所示的关系确定,在第一输出电流下,第一充电IC的转换效率与频率之间的第一预设对应关系。类似的,电子设备根据第二输出电流确定第二充电IC的转换效率与频率之间的第二预设对应关系的具体内容也可以参照前述的具体描述,在此不再赘述。Wherein, the electronic device determines the first preset corresponding relationship between the conversion efficiency of the first charging IC and the frequency according to the first output current, and reference may be made to the foregoing specific description, which will not be repeated here. For example, the electronic device may determine the first preset corresponding relationship between the conversion efficiency of the first charging IC and the frequency under the first output current according to the relationship shown in FIG. 4 . Similarly, the electronic device determines the second preset corresponding relationship between the conversion efficiency of the second charging IC and the frequency according to the second output current. Reference may also be made to the aforementioned specific description, which will not be repeated here.
在另一个示例中,当电子设备仅包括一个电池时,电子设备可以根据第一充电IC的第一输出电流和第二充电IC的第二输出电流之间的电流比和第一预设电流比,来确定第一充电IC的第一目标频率,和/或确定第二充电IC的第二目标频率。当电子设备包括至少两个电池时,电子设备可以根据第一充电IC的第一输出电流和第二充电IC的第二输出电流之间的电流比和第二预设电流比,来确定第一充电IC的第一目标频率,和/或确定第二充电IC的第二目标频率。In another example, when the electronic device includes only one battery, the electronic device may be based on 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 , to determine the first target frequency of the first charging IC, and/or determine the second target frequency of the second charging IC. When the electronic device includes at least two batteries, the electronic device can determine the first current ratio 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. a first target frequency for the charging IC, and/or determine a second target frequency for the second charging IC.
其中,第一预设电流比和第二预设电流比分别为第一充电IC的第一输出电流与第二充电IC的第二输出电流之间的电流比所满足的比值关系。应理解,第一预设电流比和第二预设电流比的确定方式可以参照前述有关第一预设电流比和第二预设电流比的确定方式,在此不再赘述。例如,可以根据第一充电IC所在通路的原始阻抗和第二充电IC所在通路的原始阻抗,确定第一预设电流比。例如,可以根据第一充电IC所在通路的原始阻抗和第二充电IC所在通路的原始阻抗,以及第一充电IC的额定容量和第二充电IC的额定容量,确定第二预设电流比。Wherein, the first preset current ratio and the second preset current ratio are ratio relationships 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 respectively. It should be understood that, the manner of determining the first preset current ratio and the second preset current ratio may refer to the foregoing determination manner of the first preset current ratio and the second preset current ratio, which will not be repeated here. For example, the first preset current ratio may be determined according to the original impedance of the path where the first charging IC is located and the original impedance of the path where the second charging IC is located. For example, the second preset current ratio can be determined according to the original impedance of the path where the first charging IC is located and the original impedance of the path where the second charging IC is located, as well as the rated capacity of the first charging IC and the rated capacity of the second charging IC.
应理解,电子设备根据第一充电IC的第一输出电流和第二充电IC的第二输出电流之间的电流比和第一预设电流比,来确定第一充电IC的第一目标频率,和/或确定第二充电IC的第二目标频率的具体内容可以参照前述描述,在此不再赘述。类似的,电子设备根据第一充电IC的第一输出电流和第二充电IC的第二输出电流之间的电流比和第二预设电流比,来确定第一充电IC的第一目标频率,和/或确定第二充电IC的第二目标频率的具体内容可以参照前述描述,在此不再赘述。It should be understood that the electronic device determines 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 for the specific content of determining the second target frequency of the second charging IC, reference may be made to the foregoing description, which will not be repeated here. Similarly, the electronic device determines 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 for the specific content of determining the second target frequency of the second charging IC, reference may be made to the foregoing description, which will not be repeated here.
在一种可能的实现方式中,在根据第一输出电流和第二输出电流之间的电流比和第一预设电流比(或第二预设电流比)调节第一充电IC的频率和/或调节第二充电IC的频率,以调节第一充电IC的第一输出电流和/或调节第二充电IC的第二输出电流时,电子设备可以 结合第一充电IC对应的最大输出电流和/或第二充电IC对应的最大输出电流,来调节第一充电IC的第一输出电流和/或第二充电IC的第二输出电流,以使得第一输出电流和第二输出电流之间的电流比满足第一预设电流比(或第二预设电流比)的同时,第一充电IC调整后的第一输出电流小于或等于第一充电IC对应的最大输出电流,以及第二充电IC调整后的第二输出电流小于或等于第二充电IC对应的最大输出电流。其中,具体的结合方式可以参照前述相关内容的描述,在此不再赘述。In a possible implementation, the frequency and/or 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 (or the second preset current ratio). Or adjust the frequency of the second charging IC 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 can combine the corresponding maximum output current of the first charging IC and/or Or the corresponding maximum output current of the second charging IC to adjust the first output current of the first charging IC and/or the second output current of the second charging IC so that the current between the first output current and the second output current While the ratio satisfies the first preset current ratio (or the second preset current ratio), the adjusted first output current of the first charging IC is less than or equal to the corresponding maximum output current of the first charging IC, and the second charging IC adjusts The final second output current is less than or equal to the corresponding maximum output current of the second charging IC. Wherein, for the specific combination manner, reference may be made to the description of the foregoing related content, and details are not repeated here.
在另一种可能的实现方式中,电子设备可以获取电池当前的输入电流、电压和温度,并可以根据电池当前的电压、温度以及第三预设对应关系,确定该电池当前允许的最大输入电流。随后,电子设备可以根据该电池当前的输入电流和该电池当前允许的最大输入电流,调节第一充电IC的频率和/或调节第二充电IC的频率,来调节第一充电IC的第一输出电流和/或调节第二充电IC的第二输出电流,从而调节该电池的输入电流,以避免充电过程中,该电池出现过流,避免对该电池造成损坏。In another possible implementation, the electronic device can obtain the current input current, voltage and temperature of the battery, and can determine the current maximum input current allowed by the battery according to the current voltage, temperature and the third preset correspondence relationship of the battery . Subsequently, the electronic device can 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 of the battery to adjust the first output of the first charging IC current and/or adjust the second output current of the second charging IC, thereby adjusting the input current of the battery, so as to avoid overcurrent of the battery during the charging process and avoid damage to the battery.
其中,第三预设对应关系的具体内容可以参照前述有关第三预设对应关系的具体描述,在此不再赘述。另外,根据电池当前的电压、温度以及第三预设对应关系,调节第一充电IC的频率和/或调节第二充电IC的频率的具体内容也可以参照前述有关根据第三预设对应关系调节第一充电IC的频率和/或调节第二充电IC的频率的具体描述,在此不再赘述。Wherein, for the specific content of the third preset correspondence relationship, reference may be made to the above-mentioned specific description about the third preset correspondence relationship, which will not be repeated here. In addition, according to the current voltage and temperature of the battery and the third preset corresponding relationship, the specific content of adjusting the frequency of the first charging IC and/or adjusting the frequency of the second charging IC can also refer to the above-mentioned adjustment according to the third preset corresponding relationship. The specific description of adjusting the frequency of the first charging IC and/or adjusting the frequency of the second charging IC will not be repeated here.
例如,当电子设备仅包括一个电池时,若该电池当前的输入电流大于该电池当前允许的最大输入电流,电子设备可以根据第一充电IC当前的第一输出电流和第一充电IC当前的频率,确定第一充电IC的第一目标频率,并将第一充电IC的频率调整至第一目标频率,以降低第一充电IC的转换效率,降低第一充电IC的第一输出电流,减少第一充电IC输入该电池的电流,从而降低该电池的输入电流。For example, when the electronic device includes only one battery, if the current input current of the battery is greater than the current maximum input current allowed by the battery, the electronic device can use the current first output current of the first charging IC and the current frequency of the first charging IC , determine the first target 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 reduce the first A charging IC inputs the current of the battery, thereby reducing the input current of the battery.
或者,电子设备可以根据第二充电IC当前的第二输出电流和第二充电IC当前的频率,来确定第二充电IC的第二目标频率,并将第二充电IC的频率调整至第二目标频率,以降低第二充电IC的转换效率,降低第二充电IC的第二输出电流,减少第二充电IC输入至该电池的电流,从而降低该电池的输入电流。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. Frequency, to reduce the conversion efficiency of the second charging IC, reduce the second output current of the second charging IC, reduce the current input to the battery by the second charging IC, thereby reducing the input current of the battery.
例如,当电子设备至少包括第一电池和第二电池时,即当第一充电IC的第一输出电流输入第一电池,第二充电IC的第二输出电流输入至第二电池时,若第一电池的第一输入电流大于第一电池当前允许的最大输入电流时,电子设备可以根据第一充电IC当前的第一输出电流和第一充电IC当前的频率,确定第一充电IC的第一目标频率,并将第一充电IC的频率调整至第一目标频率,以降低第一充电IC的转换效率,降低第一充电IC的第一输出电流,从而降低第一电池的第一输入电流。For example, when the electronic device includes at least a first battery and a second battery, that is, when the first output current of the first charging IC is input to the first battery, and the second output current of the second charging IC is input to the second battery, if the second When the first input current of a battery is greater than the current maximum input current allowed by the first battery, the electronic device can determine the first current 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. Target frequency, 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, thereby reducing the first input current of the first battery.
若第二电池的第二输入电流大于第二电池当前允许的最大输入电流时,电子设备可以根据第二充电IC当前的第二输出电流和第二充电IC当前的频率,来确定第二充电IC的第二目标频率,并将第二充电IC的频率调整至第二目标频率,以降低第二充电IC的转换效率,减少第二充电IC的第二输出电流,从而降低第二电池的第二输入电流。If the second input current of the second battery is greater than the current maximum input current of the second battery, the electronic device can determine 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. The second target frequency, 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, thereby reducing the second battery's second Input Current.
S603、电子设备根据第一目标频率调节第一充电芯片的频率。S603. The electronic device adjusts the frequency of the first charging chip according to the first target frequency.
在一个示例中,电子设备还可以根据第二目标频率调节第二充电芯片的频率。其中,电子设备根据第一目标频率调节第一充电IC的频率,和/或根据第二目标频率调节第二充电IC的频率的具体内容,可以参照前述有关调节第一充电IC的频率和/或调节第二充电IC 的频率的具体描述,在此不再赘述。In an example, the electronic device can also adjust the frequency of the second charging chip according to the second target frequency. Wherein, the electronic device adjusts the frequency of the first charging IC according to the first target frequency, and/or adjusts the frequency of the second charging IC according to the second target frequency. The specific description of adjusting the frequency of the second charging IC will not be repeated here.
本申请实施例中,在检测到电子设备处于充电状态时,电子设备可以获取第一充电芯片的第一输出电流,或获取第一充电芯片的第一输出电流和第二充电芯片的第二输出电流,并可以根据第一输出电流,或根据第一输出电流和第二输出电流,确定第一充电芯片的第一目标频率。随后,电子设备可以根据第一目标频率调节第一充电芯片的频率,从而对第一充电芯片的第一输出电流进行调节,以在不增加额外均流电路的基础上,调节充电芯片的输出电流,确保充电芯片的输出电流满足要求,避免某一充电芯片出现过流,从而确保充电的安全性,提升用户体验。In the embodiment of the present application, when it is detected that the electronic device is in the charging state, the electronic device can obtain the first output current of the first charging chip, or obtain the first output current of the first charging chip and the second output current of the second charging chip current, and the first target frequency of the first charging chip can be determined according to the first output current, or according to the first output current and the second output current. Subsequently, the electronic device can adjust the frequency of the first charging chip according to the first target frequency, thereby adjusting the first output current of the first charging chip, so as to adjust the output current of the charging chip without adding an additional current sharing circuit , to ensure that the output current of the charging chip meets the requirements, and avoid overcurrent of a certain charging chip, thereby ensuring the safety of charging and improving user experience.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the sequence numbers of the steps in the above embodiments do not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.
对应于上文实施例所述的充电方法,本申请实施例还提供了一种充电装置,该装置的各个模块可以对应实现充电方法的各个步骤。Corresponding to the charging method described in the above embodiments, the embodiment of the present application further provides a charging device, and each module of the device can correspond to each step of the charging method.
基于上述实施例,请参阅图7,图7示出了本申请实施例提供的一种充电装置的结构示意图。上述实施例的内容均适用于本实施例,此处不赘述。该装置可以应用于至少包含第一充电芯片和第二充电芯片的电子设备。如图7所示,该装置可以包括:Based on the above embodiments, please refer to FIG. 7 , which shows a schematic structural diagram of a charging device provided by an embodiment of the present application. The contents of the foregoing embodiments are all applicable to this embodiment, and details are not described here. The device can be applied to electronic equipment including at least a first charging chip and a second charging chip. As shown in Figure 7, the device may include:
输出电流获取模块701,用于在检测到电子设备处于充电状态时,获取第一充电芯片的第一输出电流,或获取第一充电芯片的第一输出电流和第二充电芯片的第二输出电流。An output current acquisition module 701, configured to acquire the first output current of the first charging chip, or acquire the first output current of the first charging chip and the second output current of the second charging chip when the electronic device is detected to be in the charging state .
其中,输出电流获取模块701确定电子设备是否处于充电状态的具体方式可以参照前述有关确定电子设备是否处于充电状态的具体描述,输出电流获取模块701获取第一输出电流或第二输出电流的方式也可以参照前述有关获取第一充电IC和/或第二充电IC的输出电流的具体描述,在此不再赘述。Wherein, the specific way for the output current acquisition module 701 to determine whether the electronic device is in the charging state can refer to the above-mentioned specific description about determining whether the electronic device is in the charging state, and the way for the output current acquisition module 701 to obtain the first output current or the second output current is also Reference can be made to the foregoing detailed description about obtaining the output current of the first charging IC and/or the second charging IC, and details will not be repeated here.
目标频率确定模块702,用于根据第一输出电流确定第一充电芯片的第一目标频率,或根据第一输出电流和第二输出电流,确定第一充电芯片的第一目标频率。The target frequency determination module 702 is configured to determine the 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.
在一个示例中,目标频率确定模块702,还用于根据第二输出电流确定第二充电芯片的第二目标频率,或根据第一输出电流和第二输出电流,确定第二充电芯片的第二目标频率。In one example, the target frequency determining module 702 is further configured to determine the 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. target frequency.
其中,确定第一目标频率和/或确定第二目标频率的具体内容可以参照前述有关确定第一目标频率和/或确定第二目标频率的具体描述,在此不再赘述。Wherein, for specific content of determining the first target frequency and/or determining the second target frequency, reference may be made to the foregoing specific description about determining the first target frequency and/or determining the second target frequency, and details are not repeated here.
频率调节模块703,用于根据第一目标频率调节第一充电芯片的频率。A frequency adjustment module 703, configured to adjust the frequency of the first charging chip according to the first target frequency.
在一个示例中,频率调节模块703,还用于根据第二目标频率调节第二充电芯片的频率。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.
其中,频率调节模块703根据第一目标频率调节第一充电IC的频率,和/或根据第二目标频率调节第二充电IC的频率的具体内容,可以参照前述有关调节第一充电IC的频率和/或调节第二充电IC的频率的具体描述,在此不再赘述。Wherein, the frequency adjustment module 703 adjusts the frequency of the first charging IC according to the first target frequency, and/or adjusts the frequency of the second charging IC according to the second target frequency. The specific description of/or adjusting the frequency of the second charging IC will not be repeated here.
在一个示例中,目标频率确定模块702,还可以用于获取电池当前的输入电流、电压和温度,并根据电池当前的电压、温度以及第三预设对应关系,确定电池当前允许的最大输入电流;根据电池当前的输入电流和该电池当前允许的最大输入电流,确定第一充电IC的第一目标频率,和/或确定第二充电IC的第二目标频率。In one example, the target frequency determination module 702 can also be used to obtain the current input current, voltage and temperature of the battery, and determine the current maximum input current allowed by the battery according to the current battery voltage, temperature and the third preset corresponding relationship ; Determine the first target frequency of the first charging IC, and/or determine the second target 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.
需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请方法 实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。It should be noted that the information interaction and execution process between the above-mentioned devices/units are based on the same concept as the method embodiment of the present application, and its specific functions and technical effects can be found in the method embodiment section. I won't repeat them here.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used for illustration. In practical applications, the above-mentioned functions can be assigned to different functional units, Completion of modules means that the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit, and the above-mentioned integrated units may adopt hardware It can also be implemented in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working processes of the units and modules in the above system, reference may be made to the corresponding processes in the aforementioned method embodiments, and details will not be repeated here.
本申请实施例还提供了一种电子设备,所述电子设备包括至少一个存储器、至少一个处理器以及存储在所述至少一个存储器中并可在所述至少一个处理器上运行的计算机程序,所述处理器执行所述计算机程序时,使所述电子设备实现上述任意各个方法实施例中的步骤。示例性的,所述电子设备的结构可以如图1所示。An embodiment of the present application also provides an electronic device, where the electronic device includes at least one memory, at least one processor, and a computer program stored in the at least one memory and operable on the at least one processor. When the processor executes the computer program, the electronic device is enabled to implement the steps in any of the foregoing method embodiments. Exemplarily, the structure of the electronic device may be as shown in FIG. 1 .
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被计算机执行时,使所述计算机实现上述任意各个方法实施例中的步骤。The embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a computer, the computer implements the steps in any of the above method embodiments .
本申请实施例提供了一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备实现上述任意各个方法实施例中的步骤。An embodiment of the present application provides a computer program product, which enables the electronic device to implement the steps in any of the foregoing method embodiments when the computer program product is run on the electronic device.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读存储介质至少可以包括:能够将计算机程序代码携带到装置/电子设备的任何实体或装置、记录介质、计算机存储器、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读存储介质不可以是电载波信号和电信信号。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments in the present application can be completed by instructing related hardware through computer programs, and the computer programs can be stored in a computer-readable storage medium. The computer program When executed by a processor, the steps in the above-mentioned various method embodiments can be realized. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form. The computer-readable storage medium may at least include: any entity or device capable of carrying computer program codes to the device/electronic device, recording medium, computer memory, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), electrical carrier signals, telecommunication signals, and software distribution media. Such as U disk, mobile hard disk, magnetic disk or optical disk, etc. In some jurisdictions, computer readable storage media may not be electrical carrier signals and telecommunication signals based on legislation and patent practice.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases, and for parts that are not detailed or recorded in a certain embodiment, refer to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/电子设备和方法,可以通过 其它的方式实现。例如,以上所描述的装置/电子设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed device/electronic equipment and method can be implemented in other ways. For example, the device/electronic device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units Or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still implement the foregoing embodiments Modifications to the technical solutions described in the examples, or equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the application, and should be included in the Within the protection scope of this application.

Claims (15)

  1. 一种充电方法,其特征在于,应用于电子设备,所述电子设备至少包括第一充电芯片和第二充电芯片,所述方法包括:A charging method, characterized in that it is applied to an electronic device, and the electronic device includes at least a first charging chip and a second charging chip, and the method includes:
    在检测到所述电子设备处于充电状态时,获取所述第一充电芯片的第一输出电流,或,获取所述第一充电芯片的第一输出电流和所述第二充电芯片的第二输出电流;When it is detected that the electronic device is in the charging state, acquiring the first output current of the first charging chip, or acquiring the first output current of the first charging chip and the second output of the second charging chip current;
    根据所述第一输出电流确定所述第一充电芯片的第一目标频率,或,根据所述第一输出电流和所述第二输出电流,确定所述第一充电芯片的第一目标频率;determining the 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;
    根据所述第一目标频率调节所述第一充电芯片的频率。The frequency of the first charging chip is adjusted according to the first target frequency.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述第一输出电流确定所述第一充电芯片的第一目标频率,包括:The method according to claim 1, wherein the determining the first target frequency of the first charging chip according to the first output current comprises:
    确定所述第一输出电流是否大于所述第一充电芯片对应的最大输出电流;determining whether the first output current is greater than the maximum output current corresponding to the first charging chip;
    当所述第一输出电流大于所述第一充电芯片对应的最大输出电流时,根据所述第一输出电流确定所述第一充电芯片的转换效率与频率之间的第一预设对应关系;When the first output current is greater than the maximum output current corresponding to the first charging chip, determine a first preset correspondence between the conversion efficiency of the first charging chip and the frequency according to the first output current;
    根据所述第一预设对应关系和所述第一充电芯片当前的频率,确定所述第一充电芯片的第一目标频率。A first target frequency of the first charging chip is determined according to the first preset correspondence relationship and the current frequency of the first charging chip.
  3. 根据权利要求1或2所述的方法,其特征在于,所述根据所述第一输出电流和所述第二输出电流,确定所述第一充电芯片的第一目标频率,包括:The method according to claim 1 or 2, wherein the determining the first target frequency of the first charging chip according to the first output current and the second output current comprises:
    获取所述第一输出电流和所述第二输出电流之间的第一电流比;obtaining a first current ratio between the first output current and the second output current;
    根据所述第一电流比和第一预设电流比,确定所述第一充电芯片的第一目标频率。A first target frequency of the first charging chip is determined according to the first current ratio and a first preset current ratio.
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 3, wherein the method further comprises:
    根据所述第二输出电流确定所述第二充电芯片的第二目标频率,或,根据所述第一输出电流和所述第二输出电流,确定所述第二充电芯片的第二目标频率;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;
    根据所述第二目标频率调节所述第二充电芯片的频率。The frequency of the second charging chip is adjusted according to the second target frequency.
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述第二输出电流确定所述第二充电芯片的第二目标频率,包括:The method according to claim 4, wherein the determining the second target frequency of the second charging chip according to the second output current comprises:
    确定所述第二输出电流是否大于所述第二充电芯片对应的最大输出电流;determining whether the second output current is greater than the maximum output current corresponding to the second charging chip;
    当所述第二输出电流大于所述第二充电芯片对应的最大输出电流时,根据所述第二输出电流确定所述第二充电芯片的转换效率与频率之间的第二预设对应关系;When the second output current is greater than the maximum output current corresponding to the second charging chip, determine a second preset correspondence between the conversion efficiency of the second charging chip and the frequency according to the second output current;
    根据所述第二预设对应关系和所述第二充电芯片当前的频率,确定所述第二充电芯片的第二目标频率。A second target frequency of the second charging chip is determined according to the second preset correspondence relationship and the current frequency of the second charging chip.
  6. 根据权利要求4所述的方法,其特征在于,所述根据所述第一输出电流和所述第二输出电流,确定所述第二充电芯片的第二目标频率,包括:The method according to claim 4, wherein the determining the second target frequency of the second charging chip according to the first output current and the second output current comprises:
    获取所述第一输出电流和所述第二输出电流之间的第一电流比;obtaining a first current ratio between the first output current and the second output current;
    根据所述第一电流比和第一预设电流比,确定所述第一充电芯片的第一目标频率和所述第二充电芯片的第二目标频率。A first target frequency of the first charging chip and a second target frequency of the second charging chip are determined according to the first current ratio and the first preset current ratio.
  7. 根据权利要求4所述的方法,其特征在于,所述根据所述第一输出电流和所述第二输出电流,确定所述第二充电芯片的第二目标频率,包括:The method according to claim 4, wherein the determining the second target frequency of the second charging chip according to the first output current and the second output current comprises:
    在根据所述第一目标频率调节所述第一充电芯片的频率之后,获取所述第一输出电流和所述第二输出电流之间的第二电流比;obtaining 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;
    根据所述第二电流比和第一预设电流比,确定所述第二充电芯片的第二目标频率。A second target frequency of the second charging chip is determined according to the second current ratio and the first preset current ratio.
  8. 根据权利要求6或7所述的方法,其特征在于,所述电子设备包括一个电池时,所述第一充电芯片和所述第二充电芯片用于为所述电池充电,所述方法还包括:The method according to claim 6 or 7, wherein 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 further includes :
    获取所述第一充电芯片所在通路的第一原始阻抗和所述第二充电芯片所在通路的第二原始阻抗;Acquiring the first original impedance of the path where the first charging chip is located and the second original impedance of the path where the second charging chip is located;
    根据所述第一原始阻抗和所述第二原始阻抗确定所述第一预设电流比。The first preset current ratio is determined according to the first original impedance and the second original impedance.
  9. 根据权利要求6或7所述的方法,其特征在于,所述电子设备至少包括第一电池和第二电池时,所述第一充电芯片用于为所述第一电池充电,所述第二充电芯片用于为所述第二电池充电。The method according to claim 6 or 7, wherein when the electronic device includes at least a first battery and a second battery, the first charging chip is used to charge the first battery, and the second The charging chip is used for charging the second battery.
  10. 根据权利要求9所述的方法,其特征在于,所述方法还包括:The method according to claim 9, characterized in that the method further comprises:
    获取所述第一充电芯片所在通路的第一原始阻抗、所述第二充电芯片所在通路的第二原始阻抗、所述第一电池的第一额定容量和所述第二电池的第二额定容量;Obtain the first original impedance of the path where the first charging chip is located, the second original impedance of the path where the second charging chip is located, the first rated capacity of the first battery, and the second rated capacity of the second battery ;
    根据所述第一原始阻抗、所述第二原始阻抗、所述第一额定容量和所述第二额定容量确定所述第一预设电流比。The first preset current ratio is determined according to the first original impedance, the second original impedance, the first rated capacity, and the second rated capacity.
  11. 根据权利要求9或10所述的方法,其特征在于,所述根据所述第一输出电流确定所述第一充电芯片的第一目标频率,包括:The method according to claim 9 or 10, wherein the determining the first target frequency of the first charging chip according to the first output current comprises:
    获取所述第一电池的第一输入电流;obtaining 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 greater than the corresponding maximum input current of the first battery, determine a first preset correspondence between the conversion efficiency of the first charging chip and the frequency according to the first output current;
    根据所述第一预设对应关系和所述第一充电芯片当前的频率,确定所述第一充电芯片的第一目标频率。A first target frequency of the first charging chip is determined according to the first preset correspondence relationship and the current frequency of the first charging chip.
  12. 根据权利要求11所述的方法,其特征在于,在所述确定所述第一输入电流是否大于所述第一电池对应的最大输入电流之前,包括:The method according to claim 11, wherein before the determining whether the first input current is greater than the maximum input current corresponding to the first battery, comprising:
    获取所述第一电池当前的电压和温度;Obtain the current voltage and temperature of the first battery;
    根据所述第一电池当前的电压、温度以及第三预设对应关系,确定所述第一电池对应的最大输入电流,所述第三预设对应关系为在各温度下,所述第一电池允许的最大输入电流与电压之间的对应关系。Determine the maximum input current corresponding to the first battery according to the current voltage and temperature of the first battery and a third preset correspondence relationship, the third preset correspondence relationship is that at each temperature, the first battery Correspondence between the maximum allowable input current and the voltage.
  13. 根据权利要求9至12中任一项所述的方法,其特征在于,所述根据所述第二输出电流确定所述第二充电芯片的第二目标频率,包括:The method according to any one of claims 9 to 12, wherein the determining the second target frequency of the second charging chip according to the second output current comprises:
    获取所述第二电池的第二输入电流;obtaining 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 greater than the maximum input current corresponding to the second battery, determine a second preset correspondence between the conversion efficiency of the second charging chip and the frequency according to the second output current;
    根据所述第二预设对应关系和所述第二充电芯片当前的频率,确定所述第二充电芯片的第二目标频率。A second target frequency of the second charging chip is determined according to the second preset correspondence relationship and the current frequency of the second charging chip.
  14. 一种电子设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时,使所述电子设备实现如权利要求1至13中任一项所述的充电方法。An electronic device, comprising a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein, when the processor executes the computer program, the electronic device Realize the charging method as described in any one of claims 1 to 13.
  15. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被计算机执行时,使所述计算机实现如权利要求1至13中任一项所述的充电方法。A computer-readable storage medium, the computer-readable storage medium stores a computer program, characterized in that, when the computer program is executed by a computer, the computer implements the computer program described in any one of claims 1 to 13. charging method.
PCT/CN2022/127498 2021-12-02 2022-10-25 Charging method, electronic device and computer-readable storage medium WO2023098347A1 (en)

Applications Claiming Priority (4)

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

Publications (1)

Publication Number Publication Date
WO2023098347A1 true WO2023098347A1 (en) 2023-06-08

Family

ID=86584763

Family Applications (1)

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

Country Status (2)

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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120081068A1 (en) * 2010-10-04 2012-04-05 Shigefumi Odaohhara Method and Apparatus for Charging Batteries
CN107482713A (en) * 2017-08-08 2017-12-15 珠海格力电器股份有限公司 A kind of charging device, charging system and charge control method
CN108258348A (en) * 2018-02-13 2018-07-06 中兴通讯股份有限公司 Charging method and device, system, charging circuit, terminal, charging system
CN112930637A (en) * 2018-12-21 2021-06-08 Oppo广东移动通信有限公司 Wireless charging method, device to be charged, power supply device and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120081068A1 (en) * 2010-10-04 2012-04-05 Shigefumi Odaohhara Method and Apparatus for Charging Batteries
CN107482713A (en) * 2017-08-08 2017-12-15 珠海格力电器股份有限公司 A kind of charging device, charging system and charge control method
CN108258348A (en) * 2018-02-13 2018-07-06 中兴通讯股份有限公司 Charging method and device, system, charging circuit, terminal, charging system
CN112930637A (en) * 2018-12-21 2021-06-08 Oppo广东移动通信有限公司 Wireless charging method, device to be charged, power supply device and storage medium

Also Published As

Publication number Publication date
CN116231774A (en) 2023-06-06

Similar Documents

Publication Publication Date Title
US20200412180A1 (en) Method for transmitting data, wireless charging apparatus, and electronic device
US11349350B2 (en) Wireless charging method, wireless charging device, wireless charging system and device to be charged
US9215751B2 (en) Mobile terminal with routing function for supporting multiple-mode access and implementation method thereof
CN105517128B (en) A kind of method for switching network, device and terminal
CN110188542B (en) Terminal equipment starting method and device
JP7204766B2 (en) Device to be charged and charging control method
WO2013063922A1 (en) Radio frequency transceiver, terminal, and signal receiving method of the terminal
US9166478B2 (en) Power supply device, method for managing power supply thereof and wireless communication terminal
CN112737566B (en) Interface conversion circuit and electronic equipment
WO2019223004A1 (en) Wireless charging receiving device and mobile terminal
WO2023020028A1 (en) Service processing method and apparatus in terminal device supporting double cards
WO2020239011A1 (en) Method for reporting ca combinations and electronic device
WO2023098347A1 (en) Charging method, electronic device and computer-readable storage medium
CN114844144A (en) Charging method, electronic device, computer-readable storage medium, and chip system
EP3698467A1 (en) Doherty power amplifier, controlling method and device
CN103972629A (en) Combiner, base station, signal combining system and signal transmission method
CN108769368A (en) A kind of electronic equipment and information processing method
CN116707097A (en) Charging and discharging method, device, chip and readable storage medium
CN116054870B (en) Wireless communication circuit, bluetooth communication switching method and electronic equipment
CN112911665B (en) Connection method of access point and electronic equipment
WO2021017770A1 (en) Wireless charging method and device to be charged
CN113099734B (en) Antenna switching method and device
KR20210068920A (en) Portable Handbook Device with Screen Sharing
CN114424462B (en) Electronic device and method of controlling communication circuit in electronic device
US11070239B2 (en) Interface circuit and communication apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22900152

Country of ref document: EP

Kind code of ref document: A1