CN116365670A - Charging control method, device and storage medium - Google Patents

Charging control method, device and storage medium Download PDF

Info

Publication number
CN116365670A
CN116365670A CN202310639258.5A CN202310639258A CN116365670A CN 116365670 A CN116365670 A CN 116365670A CN 202310639258 A CN202310639258 A CN 202310639258A CN 116365670 A CN116365670 A CN 116365670A
Authority
CN
China
Prior art keywords
charging
battery
current
chip
charging chip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310639258.5A
Other languages
Chinese (zh)
Other versions
CN116365670B (en
Inventor
高书成
李士亮
袁振
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310639258.5A priority Critical patent/CN116365670B/en
Publication of CN116365670A publication Critical patent/CN116365670A/en
Application granted granted Critical
Publication of CN116365670B publication Critical patent/CN116365670B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/0013Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries acting upon several batteries simultaneously or sequentially
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • H01M10/441Methods for charging or discharging for several batteries or cells simultaneously or sequentially
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Manufacturing & Machinery (AREA)
  • Chemical & Material Sciences (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Electrochemistry (AREA)
  • General Chemical & Material Sciences (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application provides a charging control method, a device and a storage medium, which are applied to electronic equipment, wherein the electronic equipment comprises a first charging chip and a second charging chip, and the first charging chip and the second battery chip can be used for controlling charging of a first battery and/or a second battery in the electronic equipment. The method comprises the following steps: at a first moment, the electronic equipment is charged based on the first charger, the input current of the first charging chip is first current, and the input current of the second charging chip is second current. At a second moment, the electronic equipment is charged based on the second charger, the input current of the first charging chip is third current, and the input current of the first charging chip is fourth current. The charging parameters of the first charger are different from the charging parameters of the second charger. The electronic equipment distributes proper input current for the first charging chip and the second charging chip by acquiring the charging parameters of the accessed charger, so that the charging efficiency of the equipment is improved.

Description

Charging control method, device and storage medium
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to a charging control method, a device, and a storage medium.
Background
Currently, for electronic devices with full screen functions, such as folding screen mobile phones and tablet computers, the power consumption of the electronic devices is very high, so that the devices need to be configured with batteries with large capacity, and the battery capacity can be expanded in a mode of connecting a plurality of batteries in parallel. When an electronic device has a plurality of batteries, the plurality of batteries can be charged through a plurality of charging chips, and how to dynamically adjust the currents of the plurality of charging chips so as to improve the charging efficiency of the device is a problem to be solved.
Disclosure of Invention
The embodiment of the application provides a charging control method, a device and a storage medium, which are applied to the technical field of terminals and used for improving the charging efficiency of the device by adjusting the currents of a plurality of charging chips in the device.
In a first aspect, an embodiment of the present application proposes a charging control method, applied to an electronic device, where the electronic device includes a first charging chip and a second charging chip, where the first charging chip is used to control charging of a first battery in the electronic device, and the second charging chip is used to control charging of a second battery in the electronic device; the method comprises the following steps:
at a first moment, the electronic equipment is charged based on a first charger, the input current of a first charging chip is first current, and the input current of a second charging chip is second current; the first current is the current between the first charger and the first charging chip, and the second current is the current between the first charger and the second charging chip;
At a second moment, the electronic equipment is charged based on a second charger, the input current of the first charging chip is third current, and the input current of the first charging chip is fourth current; the third current is the current between the second charger and the first charging chip, and the fourth current is the current between the second charger and the second charging chip;
wherein the charging parameters of the first charger are different from the charging parameters of the second charger. The charging parameters of the charger include a charging voltage and a charging current of the charger.
In the above scheme, the electronic device distributes proper input currents for the first charging chip and the second charging chip in the electronic device by acquiring the charging parameters of the accessed charger, the first charging chip charges the first battery based on the distributed first current, and the second charging chip charges the second battery based on the distributed second current, so that the charging efficiency of the device is improved. In general, the electronic device is connected to different chargers, and input currents of the first charging chip and the second charging chip are different.
In some embodiments, the first charging chip may be used to control charging of the first battery and/or the second battery in the electronic device, and the second charging chip may be used to control charging of the first battery and/or the second battery in the electronic device.
In an optional embodiment of the first aspect, the electronic device further comprises a charging management module, wherein the charging management module is configured to manage and control the first charging chip and the second charging chip;
the electronic device charges based on the first charger, including: the charging management module distributes a first current to the first charging chip and distributes a second current to the second charging chip based on the charging parameters of the first charger, the charging efficiency information of the first charging chip and the charging efficiency information of the second charging chip;
the charging efficiency information of the first charging chip is used for indicating the corresponding relation between the input current of the first charging chip under different charging voltages and the charging efficiency.
In the above scheme, the electronic equipment manages and controls the first charging chip and the second charging chip through the charging management module, and the charging management module distributes proper input current for the two charging chips based on the charging parameters of the first charger and the charging efficiency information of the two charging chips. Because the charging efficiency information of the charging chips indicates the corresponding relation between the input current of the charging chips under different charging voltages and the charging efficiency, the charging management module can acquire the input current corresponding to different charging efficiency points of the two charging chips under the same charging voltage, and the charging current of the first charger is combined to allocate proper input current for the two charging chips so as to balance the charging efficiency of each charging chip, thereby improving the overall charging efficiency of the equipment.
In an alternative embodiment of the first aspect, the charging parameters of the first charger include a charging voltage and a charging current of the first charger; the charging management module allocates a first current for the first charging chip and a second current for the second charging chip based on the charging parameters of the first charger, the charging efficiency information of the first charging chip, and the charging efficiency information of the second charging chip, including:
acquiring a first corresponding relation between an input current of a first charging chip under a charging voltage of a first charger and charging efficiency, and a second corresponding relation between an input current of a second charging chip under the charging voltage of the first charger and charging efficiency;
based on the first corresponding relation, the second corresponding relation and the charging current of the first charger, distributing a first current corresponding to a higher charging efficiency value for the first charging chip and distributing a second current corresponding to a higher charging efficiency value for the second charging chip;
the sum of the first current and the second current is less than or equal to the charging current of the first charger.
In some embodiments, the assigning the first current corresponding to the higher charging efficiency value to the first charging chip may be: the current corresponding to the highest charging efficiency value in the first correspondence relationship, and the second current corresponding to the higher charging efficiency value allocated to the second charging chip may be: and the current corresponding to the highest charging efficiency value in the second corresponding relation.
In this embodiment, the charging voltage of the first charger is the output voltage of the first charger, and the charging current of the first charger is the output current of the first charger.
In the above scheme, after the electronic device obtains the corresponding relation between the input currents of the two charging chips under the charging voltage of the first charger and the charging efficiency, the input currents corresponding to the higher values of the charging efficiency points are distributed to the two charging chips as much as possible, so that the overall charging efficiency of the device is improved.
In an optional embodiment of the first aspect, the electronic device is charged based on a first charger, comprising:
the charging management module of the electronic equipment dynamically adjusts the input current or the output current of the first charging chip by monitoring at least one of the charging voltage, the charging current, the battery temperature, the system temperature of the electronic equipment and the environment temperature of the first battery; and/or the number of the groups of groups,
the charging management module dynamically adjusts the input current or the output current of the second charging chip by monitoring at least one of the charging voltage, the charging current, the battery temperature, the system temperature of the electronic device and the ambient temperature of the second battery;
the system temperature includes at least one of:
a temperature of a processor of the electronic device;
Temperature of a display screen of an electronic device.
In the above scheme, the charging management module monitors parameters of the two batteries in the charging process, and the system temperature, the environment temperature and the like of the electronic equipment respectively, and comprehensively adjusts the input current or the output current of the first charging chip and/or the second charging chip, so as to dynamically control the charging current of the batteries.
In an optional embodiment of the first aspect, the charging management module of the electronic device dynamically adjusts the input current or the output current of the first charging chip by monitoring at least one of a charging voltage, a charging current, a battery temperature, a system temperature of the electronic device, and an ambient temperature of the first battery, including:
the charge management module monitors at least one of: the charging voltage of the first battery is smaller than the maximum charging voltage of the first battery; the charging current of the first battery is smaller than the maximum charging current of the first battery; the battery temperature of the first battery is greater than the first temperature value; the system temperature of the electronic equipment is larger than the second temperature value; the ambient temperature increases the input current or the output current of the first charging chip from the second temperature interval to the first temperature interval; or alternatively
The charge management module monitors at least one of: the charging voltage of the first battery is greater than the maximum charging voltage of the first battery; the charging current of the first battery is greater than the maximum charging current of the first battery; the battery temperature of the first battery is less than the third temperature value; the system temperature of the electronic device is less than the fourth temperature value; the ambient temperature is from the first temperature interval to the second temperature interval, and the input current or the output current of the first charging chip is reduced.
In this embodiment, the charging voltage of the first battery is the monitored real-time charging voltage of the first battery, and the charging current of the first battery is the monitored real-time charging current of the first battery. The maximum charging voltage of the first battery is also referred to as the off-voltage of the first battery, and the maximum charging current of the first battery is also referred to as the off-current of the first battery.
The scheme shows that the charging voltage, the charging current and the battery temperature of the first battery as well as the system temperature and the environment temperature of the equipment are monitored, and the input current or the output current of the first charging chip is regulated, so that the charging current of the first battery is dynamically controlled, the charging safety of the first battery is ensured, and the charging efficiency of the battery is improved.
In an optional embodiment of the first aspect, the charging management module of the electronic device dynamically adjusts the input current or the output current of the second charging chip by monitoring at least one of a charging voltage, a charging current, a battery temperature, a system temperature of the electronic device, and an ambient temperature of the second battery, including:
the charge management module monitors at least one of: the charging voltage of the second battery is smaller than the maximum charging voltage of the second battery; the charging current of the second battery is smaller than the maximum charging current of the second battery; the battery temperature of the second battery is greater than the first temperature value; the system temperature of the electronic equipment is larger than the second temperature value; the input current or the output current of the second charging chip is increased from the second temperature interval to the first temperature interval in the environment temperature; or alternatively
The charge management module monitors at least one of: the charging voltage of the second battery is greater than the maximum charging voltage of the second battery; the charging current of the second battery is greater than the maximum charging current of the second battery; the battery temperature of the second battery is less than the third temperature value; the system temperature of the electronic device is less than the fourth temperature value; the ambient temperature is from the first temperature interval to the second temperature interval, and the input current or the output current of the second charging chip is reduced.
The scheme shows that the charging voltage, the charging current and the battery temperature of the second battery as well as the system temperature and the environment temperature of the equipment are monitored, and the input current or the output current of the second charging chip is regulated, so that the charging current of the second battery is dynamically controlled, the charging safety of the second battery is ensured, and the charging efficiency of the battery is improved.
In an optional embodiment of the first aspect, the electronic device further includes a switch module, one end of the switch module is connected to the output end of the first charging chip, and the other end of the switch module is connected to the output end of the second charging chip; the method further comprises the steps of:
the charging management module of the electronic equipment controls the switch module to be disconnected, the first charging chip charges the first battery, and the second charging chip charges the second battery; or alternatively
The charging management module controls the switch module to be closed, the first charging chip charges the first battery and the second battery, and the second charging chip charges the first battery and the second battery.
In one example, the charge management module controls the switch module to be opened or closed through the first control module or the second control module.
In the scheme, the charging control of the charging chip on one battery or two batteries can be realized through the control of the charging management module on the opening and closing state of the switch module.
In an optional embodiment of the first aspect, the charging control method further includes: when the charging management module of the electronic equipment monitors that the first battery is fully charged, the switch module of the electronic equipment is controlled to be closed, and the first charging chip charges the second battery; or alternatively
When the charging management module monitors that the second battery is fully charged, the control switch module is closed, and the second charging chip charges the first battery.
In the above scheme, the charge management module is through the charge progress of monitoring two batteries, when one of them battery is full earlier, can control switch module closed for two charge chips can both charge for not full battery yet, can promote the charging efficiency of equipment.
In an optional embodiment of the first aspect, the charging control method further includes: when the charging management module of the electronic equipment monitors that the first charging chip fails, the switch module of the electronic equipment is controlled to be closed, and the second charging chip charges the first battery; or alternatively
When the charging management module monitors that the second charging chip fails, the switch module of the electronic equipment is controlled to be closed, and the first charging chip charges the second battery.
In the scheme, the charging management module is closed through the control switch module, so that the problem that a part of batteries in the equipment cannot be charged due to the failure of the charging chip can be avoided.
In a second aspect, an embodiment of the present application provides an electronic device including: comprising the following steps: a processor and a memory; the memory stores computer-executable instructions; the processor executes computer-executable instructions stored in the memory to cause the electronic device to perform the method of any of the first aspects.
In a third aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program. The computer program implementing the method according to any of the first aspects when executed by a processor.
In a fourth aspect, embodiments of the present application provide a computer program product comprising a computer program which, when run, causes a computer to perform the method as in any of the first aspects.
In a fifth aspect, embodiments of the present application provide a chip comprising a processor for invoking a computer program in memory to perform a method according to any of the first aspects.
It should be understood that the second to fifth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the advantages obtained by each aspect and the corresponding possible embodiments are similar, and are not repeated.
Drawings
Fig. 1 is a schematic diagram of a scenario of charging an electronic device according to an embodiment of the present application;
fig. 2 is a schematic hardware structure of an electronic device according to an embodiment of the present application;
fig. 3 is a software structural block diagram of an electronic device according to an embodiment of the present application;
fig. 4 is a schematic connection diagram of internal devices of an electronic device according to an embodiment of the present application;
fig. 5 is a schematic diagram of a charge control method according to an embodiment of the present disclosure;
fig. 6 is a charging efficiency graph of a charging chip according to an embodiment of the present disclosure;
fig. 7 is a schematic connection diagram of internal devices of an electronic device according to an embodiment of the present application;
fig. 8 is a flow chart of a charging control method according to an embodiment of the present application.
Detailed Description
For purposes of clarity in describing the embodiments of the present application, in the embodiments of the present application, words such as "exemplary" or "such as" are used to indicate by way of example, illustration, or description. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a alone, a and B together, and B alone, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b, or c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or plural.
Fig. 1 is a schematic diagram of a charging scenario of an electronic device according to an embodiment of the present application. As shown in fig. 1 (a), when the electronic device 100 needs to be charged, a user may connect one end of the charging wire 101 with an input interface of the electronic device 100, connect the other end with an output interface of a charger (also referred to as a power adapter) 102, and insert the charger 102 into a socket 103 on a wall surface to charge the electronic device 100. The user may view the charge through the display interface of the electronic device 100.
In some embodiments, a wireless charging module is disposed inside the electronic device 100, and a user may directly place the electronic device 100 on a wireless charger, for example, the back of a mobile phone contacts a charging panel of the wireless charger, as shown in fig. 1 (b), so as to realize wireless charging of the electronic device 100.
In some embodiments, the charger 102 is a charger that supports a fast charge function. The electronic device 100 is an electronic device supporting quick charging. The fast charging function refers to a charging function capable of enabling the battery to reach or approach a full charge state within a preset period of time (e.g., 1-2 hours).
The electronic device 100 according to the embodiment of the present application may be a mobile phone (mobile phone), a tablet computer, a notebook computer, a palm computer, a mobile internet device (mobile internet device, MID), a wearable device, a Virtual Reality (VR) device, an augmented reality (argmented reality, AR) device, a smart screen, an artificial intelligence (artificial intelligence, AI) sound, an earphone, a terminal in industrial control (industrial control), a terminal in unmanned (self driving), a terminal in teleoperation (remote medical surgery), a terminal in smart grid (smart grid), a terminal in transportation security (transportation safety), a terminal in smart city (smart city), a terminal in smart home (smart home), a personal digital assistant (personal digital assistant, PDA), or the like, which is not limited in any way.
Fig. 2 is a schematic hardware structure of an electronic device according to an embodiment of the present application. As shown in fig. 2, the electronic apparatus 200 of the present embodiment includes: processor 210, external memory interface 220, internal memory 221, universal serial bus (universal serial bus, USB) interface 230, charge management module 240, power management module 241, battery 242, antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, audio module 270, speaker 270A, receiver 270B, microphone 270C, headset interface 270D, sensor 280, keys 290, motor 291, indicator 292, camera 293, display 294, and subscriber identity module (subscriber identification module, SIM) card interface 295, among others. It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic apparatus 200.
In some embodiments, the electronic device 200 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 210 may include one or more processing units such as, for example: the processor 210 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, a display processing unit (display process unit, DPU), and/or a neural-network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors. In some embodiments, the electronic device 200 may also include one or more processors 210. The controller may be a neural hub and a command center of the electronic device 200, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution. A memory may also be provided in the processor 210 for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may hold instructions or data that the processor 210 has just used or recycled. If the processor 210 needs to reuse the instruction or data, it may be called directly from the memory. This avoids repeated accesses and reduces the latency of the processor 210, thereby improving the efficiency of the system of the electronic device 200.
In some embodiments, processor 210 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others. The USB interface 230 is an interface conforming to the USB standard, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 230 may be used to connect a charger to charge the electronic device 200, or may be used to transfer data between the electronic device 200 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset.
It should be understood that the connection relationship between the modules illustrated in the embodiment of the present invention is only illustrative, and does not limit the structure of the electronic device 200. In other embodiments of the present application, the electronic device 200 may also use different interfacing manners, or a combination of multiple interfacing manners, as in the above embodiments.
The charge management module 240 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 240 may receive a charging input of a wired charger through the USB interface 230. In some wireless charging embodiments, the charge management module 240 may receive wireless charging input through a wireless charging coil of the electronic device 200. The charging management module 240 may also power the electronic device 200 through the power management module 241 while charging the battery 242.
The power management module 241 is used for connecting the battery 242, and the charge management module 240 and the processor 210. The power management module 241 receives input from the battery 242 and/or the charge management module 240 and provides power to the processor 210, the internal memory 221, the display 294, the camera 293, the wireless communication module 260, and the like. The power management module 241 may also be configured to monitor battery capacity, battery cycle times, battery health (leakage, impedance), and other parameters. In other embodiments, the power management module 241 may also be disposed in the processor 210. In other embodiments, the power management module 241 and the charge management module 240 may be disposed in the same device.
The wireless communication function of the electronic device 200 can be implemented by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, a modem processor, a baseband processor, and the like. The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 200 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 250 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied on the electronic device 200. The mobile communication module 250 may include at least one filter, switch, power amplifier, low noise amplifier, etc. The mobile communication module 250 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 250 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 250 may be disposed in the processor 210. In some embodiments, at least some of the functional modules of the mobile communication module 250 may be provided in the same device as at least some of the modules of the processor 210.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 270A, receiver 270B, etc.), or displays images or video through display screen 294. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 250 or other functional module, independent of the processor 210.
The wireless communication module 260 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN), bluetooth, global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), NFC, infrared (IR), etc. applied on the electronic device 200. The wireless communication module 260 may be one or more devices that integrate at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 210. The wireless communication module 260 may also receive a signal to be transmitted from the processor 210, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
The electronic device 200 may implement display functions through a GPU, a display screen 294, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs that execute instructions to generate or change display information.
The display 294 is used to display images, videos, and the like. The display 294 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 200 may include 1 or N display screens 294, N being a positive integer greater than 1.
The electronic device 200 may implement photographing functions through an ISP, one or more cameras 293, video codecs, a GPU, one or more display screens 294, an application processor, and the like.
The external memory interface 220 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 200. The external memory card communicates with the processor 210 through an external memory interface 220 to implement data storage functions. For example, data files such as music, photos, videos, etc. are stored in an external memory card.
The internal memory 221 may be used to store one or more computer programs, including instructions. The processor 210 may cause the electronic device 200 to execute various functional applications, data processing, and the like by executing the above-described instructions stored in the internal memory 221. The internal memory 221 may include a storage program area and a storage data area. The storage program area can store an operating system; the storage area may also store one or more applications (e.g., gallery, contacts, etc.), and so forth. The storage data area may store data created during use of the electronic device 200 (e.g., photos, contacts, etc.), and so on. In addition, the internal memory 221 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. In some embodiments, the processor 210 may cause the electronic device 200 to perform various functional applications and data processing by executing instructions stored in the internal memory 221, and/or instructions stored in a memory provided in the processor 210.
The electronic device 200 may implement audio functions through an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an ear-headphone interface 270D, an application processor, and the like. Such as music playing, recording, etc.
The sensor 280 may include a pressure sensor, a gyroscope sensor, a barometric sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity sensor, a fingerprint sensor, a temperature sensor 280J, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like. In the embodiment of the present application, the temperature sensor 280J may be used to detect the temperature of the internal space or component of the electronic device. In some embodiments, the temperature sensor 280J includes multiple sets of temperature sensors distributed to key locations of the PCB (print circuit broad, printed circuit board) of the electronic device, such as chip location, display screen location, battery location, and the like. When the temperature of the chip exceeds the preset temperature threshold of the chip, or the temperature of the display screen exceeds the preset temperature threshold of the display screen, or the temperature of the battery exceeds the preset temperature threshold of the battery, the device can start a protection action, such as adjusting the current, the voltage value or the impedance value on a channel at a corresponding position in the PCB.
Keys 290 include a power on key, a volume key, etc. The keys 290 may be mechanical keys or touch keys. The electronic device 200 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 200.
The SIM card interface 295 is for interfacing with a SIM card. The SIM card may be inserted into the SIM card interface 295 or removed from the SIM card interface 295 to enable contact and separation from the electronic device 200. The electronic device 200 may support 1 or N SIM card interfaces, N being a positive integer greater than 1.
The software system of the electronic device may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the application, a software system of a hierarchical architecture is taken as an Android system as an example, and a software structure of electronic equipment is illustrated.
Fig. 3 is a software structural block diagram of an electronic device according to an embodiment of the present application. The layered architecture divides the software system of the electronic device into several layers, each of which has a distinct role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system may be divided into four layers, an application layer (applications), an application framework layer (application framework), an Zhuoyun rows (Android run) and system libraries, a kernel layer (kernel), and a hardware layer (hardware layer), respectively.
The application layer may include a series of application packages that run applications by calling an application program interface (application programming interface, API) provided by the application framework layer. As shown in fig. 3, the application package may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, etc.
The application framework layer provides APIs and programming frameworks for application programs of the application layer. The application framework layer includes a number of predefined functions. As shown in FIG. 3, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like. The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc. The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture. The telephony manager is used to provide the communication functions of the electronic device 100. Such as the management of call status (including on, hung-up, etc.). The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like. The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction.
The android runtime includes a core library and virtual machines. And the android running time is responsible for scheduling and managing an android system. The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android. The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media library (media library), three-dimensional graphics processing library (e.g., openGL ES), 2D graphics engine (e.g., SGL), etc. The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications. Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio video encoding formats, such as: MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc. The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like. The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The kernel layer is used for driving the hardware so that the hardware works. In this embodiment of the present application, the kernel layer may include a charging driver, a charging management module, and a control module.
The charge drive stores the number of charge chips of the electronic device. The path along which one charging chip is located may be regarded as one charging path, and if the electronic device includes two charging chips, the electronic device includes two charging paths, for example. Optionally, the charging driver further stores charging efficiency information of the charging chip.
The charging management module may obtain the number of charging chips in the electronic device and charging efficiency information of each charging chip from the charging driver. The charging management module may be further configured to monitor charging voltages, charging currents, and battery temperatures of a plurality of batteries of the electronic device, and a system temperature (e.g., a temperature of a display screen of the device, or a temperature of a processor, etc.) of the electronic device, an ambient temperature, and dynamically regulate currents of one or more charging chips, etc.
In some embodiments, the control module (which may also be referred to as a control module of the charging chip) may include a plurality of two control modules as shown in fig. 7. Generally, a control module corresponds to a charging chip, and is configured to adjust a current of the charging chip based on a control parameter issued by the charging management module.
In the following embodiments, adjusting the current of the charging chip includes adjusting the input current or the output current of the charging chip unless otherwise specified.
In some embodiments, the kernel layer may further include a display driver, a camera driver, an audio driver, a sensor driver, a motor driver, and the like, which embodiments of the present application do not limit.
The hardware layer may include hardware devices such as a charging chip, a charger detection chip, an electricity meter, a battery, and the like. The electronic equipment can be provided with a plurality of fuel gauges for monitoring the charging voltage, the charging current and the battery temperature of different batteries. The charger detection chip may include a charger detection module for detecting a charging capability of the charger, where the charging capability of the charger includes parameters such as a charging voltage and a charging current of the charger, for example, the charging voltage of the charger is 5V, and the charging current is 2A. The charging chip includes a normal charging chip (such as a buck circuit) and/or a fast charging chip. In some embodiments, the charging chip has the capability of a charger detection chip, i.e., the charging chip can be used to detect the charging capability of the charger.
In some embodiments, the application framework layer, an Zhuoyun row and system library shown in FIG. 3 may be referred to as a new application framework layer, and the communication interface between the application layer and the new application framework layer may be a separate toolkit (KIT) layer.
Exemplary, fig. 4 is a schematic connection diagram of internal devices of an electronic device according to an embodiment of the present application.
In one example, the electronic device incorporates a battery that is charged by a charging chip, as shown in fig. 4 (a). The electronic device of this example has only one charging chip, with a single charging path.
In an example, as shown in fig. 4 (b), a plurality of batteries are built in the electronic device, for example, 2 batteries are built in the electronic device, namely, a battery 1 and a battery 2 are respectively connected in parallel, and the capacities of the 2 batteries can be the same or different. The charging chip 1 can charge the 2 batteries at the same time, and the electronic device of this example has only one charging chip with a single charging path.
In an example, a plurality of batteries are built in the electronic device, as shown in fig. 4 (c), for example, 3 batteries are built in the electronic device, the 3 batteries are connected in parallel with each other, and the capacities of the 3 batteries may be the same or different. The charging chip 1 may charge at least one of the battery 1, the battery 2, and the battery 3, the charging chip 2 may charge at least one of the battery 1, the battery 2, and the battery 3, and the charging chip 3 may charge at least one of the battery 1, the battery 2, and the battery 3. In one example, the charging chip 1 charges the battery 1, and the charging chip 1 may also charge the battery 2 and/or the battery 3 when the battery 1 is charged first. The charging chip 2 charges the battery 2, and the charging chip 2 may also charge the battery 1 and/or the battery 3 when the battery 2 is charged first. The charging chip 3 charges the battery 3, and when the battery 3 is fully charged, the charging chip 3 can charge the battery 1 and the battery 2. The electronic device of the present example has a plurality of charging paths.
It should be noted that the plurality of charging chips may be the same type of charging chip or different types of charging chips. The charging chip may be a normal charging chip (also referred to as a slow charging chip, for example, the chip includes a buck circuit) or a fast charging chip, which is not limited in any way. Illustratively, in combination with fig. 4 (c), in one possible example, the charging chip 1 and the charging chip 2 are normal charging chips, the charging chip 3 is a quick charging chip, and the quick charging chip 3 may charge the battery 1 and/or the battery 3 after completing charging the battery 3.
For electronic devices with full screen functions, such as folding screen mobile phones and tablet computers, the power consumption of the electronic devices is high, so that the devices need to be provided with batteries with large capacity, and the battery capacity can be expanded in a mode of connecting a plurality of batteries in parallel. When an electronic device has a plurality of batteries and a plurality of charging chips, how to dynamically adjust the current of the plurality of charging chips so as to shorten the charging time and improve the charging efficiency of the electronic device is a problem to be solved currently.
Based on this, the embodiment of the application proposes a charging control method that is applicable to an electronic device having a plurality of charging chips. Fig. 5 is a schematic diagram of a charging control method according to an embodiment of the present application, as shown in fig. 5, in the method, by acquiring charging efficiency information of a plurality of charging chips and charging parameters of a charger, and monitoring parameters such as a battery temperature, a battery voltage, a battery current, a system temperature, an environmental temperature, etc. in real time, so as to adjust input currents or output currents of the plurality of charging chips of a device, shorten charging time of the device, and improve charging efficiency of the device, thereby improving user experience.
In this embodiment of the present application, the charging efficiency information of the charging chip refers to a charging efficiency curve of the charging chip, where the curve characterizes a relationship curve between an input current value and charging efficiency of the charging chip under different input voltages. Fig. 6 is a graph of charging efficiency of a charging chip according to an embodiment of the present application, and fig. 6 shows a graph of charging efficiency of the charging chip changing with a change of an input current value of the charging chip under different input voltages (e.g. 5V, 9V, 12V) of the same charging chip. As can be seen from fig. 6: when the input voltage is 5V, the current value corresponding to the highest charging efficiency point of the charging chip is about 0.8A; when the input voltage is 9V, the current value corresponding to the highest charging efficiency point of the charging chip is about 1A; when the input voltage is 12V, the current value corresponding to the highest charging efficiency point of the charging chip is about 1.5A.
In some embodiments, different charging chips may be disposed on different charging paths, and when the input currents of the plurality of charging chips are adjusted, the charging efficiency information of the charging chips on the different charging paths needs to be comprehensively considered so as to balance the input current values of the charging chips on each charging path.
In this embodiment of the present application, the charging parameters of the charger include a charging voltage and a charging current of the charger. Referring to fig. 1, one end of a charger is inserted into a socket of a wall surface, and the other end is connected with a charging interface of an electronic device through a charging wire, it is understood that the charging parameters of the charger are different, and the input voltage or input current to the electronic device is different. For example, the charger has a charging parameter of [5V, 2A ], which means that the charger outputs 5V and 2A.
Before describing the charging control method according to the embodiment of the present application, first, an explanation is given of the connection of internal devices of the electronic apparatus. For convenience of description, the following embodiments will be described by taking an example in which an electronic device includes two charging chips, and three or more charging chips may be extended on the basis of the two charging chips, and the connection relationships thereof are similar.
Fig. 7 is a schematic connection diagram of internal devices of an electronic device according to an embodiment of the present application. As shown in fig. 7, the electronic device 100 provided in this embodiment includes a power supply system 110 and an energy consumption system 120, where the power supply system 110 may be used to supply power to the energy consumption system 120. Wherein the energy consuming system 120 comprises a plurality of energy consuming devices, such as a processor 121, a display screen 122, a sensor 124, and the like. The power supply system 110 includes a charge management module 111, a first control module 112, a second control module 113, a first charging chip 114, a second charging chip 115, and a battery module 117, and the battery module 117 includes a first battery 1171 and a second battery 1172.
It should be noted that, the first charging chip 114 and the second charging chip 114 may be the same type of charging chip, or may be different types of charging chips, which is not limited in this embodiment. Illustratively, the first charging chip 114 is a normal charging chip and the second charging chip 115 is a fast charging chip. Alternatively, the first charging chip 114 and the second charging chip 115 are both common charging chips.
Note that the first battery 1171 and the second battery 1172 may be batteries of the same capacity or batteries of different capacities, and the present embodiment is not particularly limited. Illustratively, the battery capacity of the first battery 1171 is greater than the battery capacity of the second battery 1172, the first battery 1171 may also be referred to as a large battery or a main battery, and the second battery 1172 may also be referred to as a small battery or a secondary battery. In some embodiments, the electronic device 100 may be a folding-screen mobile phone, and the first battery 1171 and the second battery 1172 may be disposed in different internal spaces of the folding-screen mobile phone, for example, based on a folding edge of the mobile phone, where the first battery 1171 is disposed in an internal space of a half area (or a left half area) on the folding edge, and the second battery 1172 is disposed in an internal space of a lower half area (or a right half area) on the folding edge.
In this embodiment, the charging management module 111 is connected to the charger 102, the first control module 112 and the second control module 113, the first control module 112 is connected to the first charging chip 114, the second control module 113 is connected to the second charging chip 115, the first charging chip 114 is further connected to the first battery 1171 and the energy consumption system 120, and the second charging chip 115 is further connected to the second battery 1171 and the energy consumption system 120. The paths of the first control module 112 and the first charging chip 114 are first charging paths, and the paths of the second control module 113 and the second charging chip 115 are second charging paths. The path between the first charging chip 114 and the energy consumption system 120 is a first power supply path, the path between the second charging chip 115 and the energy consumption system 120 is a second power supply path, the path between the first battery 1171 and the energy consumption system 120 is a third power supply path, and the path between the second battery 1171 and the energy consumption system 120 is a fourth power supply path.
In some embodiments, the power supply system 110 further includes a switch module 116, one end of the switch module 116 is connected to the output terminal of the first charging chip 114, and the other end of the switch module 116 is connected to the output terminal of the second charging chip 115. The charging management module 111 can control the opening and closing states of the switch module 116. In an example, the charge management module 111 controls the opening and closing states of the switch module 116 through the first control module 112 or the second control module 113.
In one example, when the electronic device starts to charge, the charge management module 111 controls the switch module 116 to be in an off state, and at this time, the first charging chip 114 charges the first battery 1171, and the second charging chip 115 charges the second battery 1172. When the first battery 1171 is fully charged, the charging management module 111 controls the switch module 116 to be closed through the first control module 112, so that the first charging chip 114 charges the second battery 1172. Alternatively, when the second battery 1172 is fully charged, the charging management module 111 controls the switch module 116 to be closed through the second control module 113, so that the second charging chip 115 charges the first battery 1171.
In some embodiments, the first charging chip 114 may charge the first battery 1171 and the second battery 1172 simultaneously, and the second charging chip 115 may charge the first battery 1171 and the second battery 1172 simultaneously.
In some embodiments, the first control module 112 may be integrated in the first charging chip 114, and the first charging chip 114 is configured to control charging of the first battery based on the control parameters issued by the charging management module; the second control module 113 may be integrated in the second charging chip 115, where the second charging chip 115 is configured to control charging of the second battery based on the control parameter issued by the charging management module.
It is to be understood that the connection relationship of the internal devices of the electronic apparatus shown in fig. 7 is only used as an example, and does not constitute a specific limitation on the electronic apparatus 100 in which the technical solution of the present application may be implemented. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown in FIG. 7, or may combine certain components, or split certain components, or a different arrangement of components. The components shown in fig. 7 may be implemented in hardware, software, or a combination of hardware and software.
In some embodiments, the charge management module 111 may directly control the first and second charge chips 114 and 115.
The functions of some of the modules or devices in the electronic device 100 are described below.
In some embodiments, the charge management module 111 is configured to adjust the input current of the two charging chips according to the charger 102 capability in the event that the charger 102 capability is determined. For example, based on fig. 7, the charge management module 111 may allocate an input current of 1.5A to the first charging chip 114 and an input current of 0.5A to the second charging chip 115 based on the output current (ibus=2a) of the charger 102 when determining that the charging parameter of the charger 102 is [5v,2A ].
In some embodiments, the charging management module 111 is configured to adjust input currents of the plurality of charging chips according to charging efficiency information of the plurality of charging chips in a case where charging efficiency information of the plurality of charging chips is determined. Specifically, the charging management module 111 adjusts the input currents of the plurality of charging chips according to the charging efficiency information of the plurality of charging chips and the charging parameters of the charger 102.
For example, based on fig. 7, when the charge management module 111 determines that the charge efficiency information of the first charging chip 114 and the second charging chip 115 is as shown in fig. 6 and the charge parameter of the charger 102 is [9V,2A ], 1A (ibus_1=1a) may be allocated to the first charging chip 114 and 1A (ibus_2=1a) may be allocated to the second charging chip 115 and 1A (ibus_2=1a) may be allocated to the input current value corresponding to the highest charge efficiency point of the second charging chip 115 under the current charge condition based on the output current (ibus=2a) of the charger 102 and the charge efficiency curve of the charging chip corresponding to the output voltage (vbus=9v) of the charger 102 shown in fig. 6.
In some embodiments, the charge management module 111 is configured to regulate the current of the plurality of charging chips in the event that the real-time temperatures of the plurality of batteries are determined. Specifically, the charge management module 111 adjusts the current of the plurality of charging chips according to the real-time temperatures of the plurality of batteries and the charging parameters of the charger 102.
Illustratively, based on fig. 7, the charge management module 111 reduces the current of the first charging chip upon determining that the temperature of the first battery 1171 is greater than the first threshold; or the charge management module 111 increases the current of the first charging chip upon determining that the temperature of the first battery 1171 is less than the second threshold. The charge management module 111 reduces the current of the second charging chip upon determining that the temperature of the second battery 1172 is greater than the third threshold; or the charge management module 111 increases the current of the second charging chip upon determining that the temperature of the second battery 1172 is less than the fourth threshold.
In some embodiments, the charging management module 111 is configured to adjust the current of the plurality of charging chips according to the system temperature in a case where the system temperature of the electronic device 100 is determined. The system temperature of electronic device 100 includes the temperature of one or more devices (or modules) in energy consuming system 120, such as the temperature of processor 121, the temperature of display 122, and the like. Specifically, the charge management module 111 adjusts the current of the plurality of charging chips according to the temperature of the energy consumption system 120 and the charging parameters of the charger 102.
Illustratively, the charge management module 111 decreases the current of the first and/or second charging chips upon determining that the temperature of the processor 121 is greater than the fifth threshold; or the charge management module 111 increases the current of the first and/or second charging chips upon determining that the temperature of the processor 121 is less than the sixth threshold.
Illustratively, the charge management module 121 reduces the current of the first and/or second charging chips upon determining that the temperature of the display screen 122 is greater than the seventh threshold; or the charging management module 121 increases the current of the first charging chip and/or the second charging chip when it is determined that the temperature of the display screen 121 is less than the eighth threshold.
When the input currents of the plurality of charging chips are adjusted, the sum of the input currents of the plurality of charging chips is smaller than or equal to the charging current of the charger, for example, (ibus_1+ibus_2) +.ibus shown in fig. 7. It should be further noted that, when adjusting the output currents of the plurality of charging chips, the maximum value of the output current of each charging chip is also limited by the maximum charging current of the corresponding battery, for example, if the first charging chip 114 charges the first battery 1171 in fig. 7, the output current (ichg_1) of the first charging chip 114 is limited by the maximum charging current of the first battery 1171.
In some embodiments, the charging management module 111 is configured to adjust the current of the plurality of charging chips according to the ambient temperature in case that the ambient temperature of the electronic device 100 is determined. Ambient temperature affects the maximum charge current of the battery. Illustratively, based on fig. 7, the charge management module 111 reduces the current of the first and/or second charging chips when it is determined that the ambient temperature of the electronic device 100 falls from a first temperature interval (e.g., 10 ℃,45 ℃) to a second temperature interval (e.g., 0 ℃,10 ℃). The charge management module 111 increases the current of the first and/or second charging chips upon determining that the ambient temperature of the electronic device 100 increases from the second temperature interval to the first temperature interval.
It will be appreciated that the ambient temperature may affect the system temperature and battery temperature of the electronic device, but that the increase in system temperature may also result from other reasons, such as the user operating behavior of running a game while charging. The increase in battery temperature may also result from other causes, such as a mismatch between the charger and the device, etc.
In some embodiments, the charging management module 111 is configured to adjust the current of the plurality of charging chips according to the charging voltages of the plurality of batteries and the maximum charging voltage of the plurality of batteries in a case where the charging voltages of the plurality of batteries are determined. Illustratively, based on fig. 7, the charge management module 111 decreases the current of the first charging chip 114 upon determining that the current charging voltage of the first battery 1171 is greater than the maximum charging voltage of the first battery 1171; or determining that the present charge voltage of first battery 1171 is less than the maximum charge voltage of first battery 1171, the current of first charging chip 114 may be increased.
In some embodiments, the charging management module 111 is configured to adjust the current of the plurality of charging chips according to the charging currents of the plurality of batteries and the maximum charging current of the plurality of batteries in a case where the charging currents of the plurality of batteries are determined. Illustratively, based on fig. 7, the charge management module 111 reduces the current of the first charging chip 114 upon determining that the present charge current of the first battery 1171 is greater than the maximum charge current of the first battery 1171; or determining that the present charge current of first battery 1171 is less than the maximum charge current of first battery 1171, the current of first charging chip 114 may be increased.
In some embodiments, the charging management module 111 is configured to adjust the current of a plurality of charging chips of the electronic device by charging efficiency information of the charging chips and charging parameters of the charger, and at least one of a battery temperature, a battery voltage, a battery current, a system temperature, and an ambient temperature. It can be understood that the charging management module 111 performs initial configuration on the currents of the plurality of charging chips of the electronic device through the charging efficiency information of the charging chips and the charging parameters of the charger, and then can dynamically adjust the currents of the plurality of charging chips of the electronic device by further combining at least one of the battery temperature, the battery voltage, the battery current, the system temperature and the ambient temperature to improve the charging efficiency of the device.
In some embodiments, the first fuel gauge is configured to monitor at least one of the following parameters: the charge voltage, charge current, and battery temperature of the first battery 1171 and report its monitored parameters to the first control module 112. The second fuel gauge is configured to monitor at least one of the following parameters: the charge voltage, charge current, and battery temperature of the second battery 1172 and reports its monitored parameters to the second control module 115.
In some embodiments, the first charging chip 114 is configured to report charging efficiency information of the first charging chip 114 to the first control module 112. The second charging chip 115 is configured to report charging efficiency information of the second charging chip 115 to the second control module 113.
In some embodiments, the first control module 112 is configured to report the charging efficiency information of the first charging chip 114 to the charging management module 111, and at least one of the following parameters monitored by the first fuel gauge: the charge voltage, charge current, and battery temperature of the first battery 1171. The second control module 113 is configured to report charging message information of the second charging chip 115 to the charging management module 111, and at least one of the following parameters monitored by the second fuel gauge: the charging voltage, charging current, and battery temperature of the second battery 1172.
In some embodiments, after the charger 102 is connected to the charging interface of the electronic device, the charger 102 is configured to send charging parameters of the charger 102 to the charging management module 111. In some embodiments, the electronic device 100 further includes a charger detection chip for reporting the charging parameters of the charger 102 to the charging management module 111. In some embodiments, the charging management module 111 may obtain the charging parameters of the charger 102 through the first charging chip 114 or the second charging chip 115, for example, the charging management module 111 sends a request to the first charging chip 114 or the second charging chip 115 to obtain the charging parameters of the charger 102, where the first charging chip 114 and the second charging chip 115 have the function of charger detection.
In some embodiments, the charge management module 111 is configured to generate current control parameters to the plurality of control modules, the current control parameters being configured to regulate the current of the plurality of charging chips. The current control parameters include input current or output current of the charging chips on different charging paths.
In one example, the charge management module 111 issues a first current control parameter to the first control module 112, the first current control parameter including an input current ibus_1 and/or an output current ichg_1 of the first charging chip 114, and the first control module 112 adjusts the input current or the output current of the first charging chip 114 according to the first current control parameter.
In one example, the charge management module 111 issues a second current control parameter to the second control module 113, the second current control parameter including an input current ibus_2 and/or an output current ichg_2 of the second charging chip 115, and the second control module 113 adjusts the input current or the output current of the second charging chip 115 according to the second current control parameter.
In some embodiments, the charging management module 111 is configured to issue a switch control parameter to the first control module 112 or the second control module 113, where the switch control parameter is configured to control the open/close state of the switch module 116.
In one example, the switch module 116 is in an off state, the first charging chip 114 charges the first battery 1171, the second charging chip 115 charges the second battery 1172, and the charging paths are independent of each other.
In one example, the switch module 116 is in a closed state, the first charging chip 114 may charge the first battery 1171 and the second battery 1172 simultaneously, and the second charging chip 114 may charge the first battery 1171 and the second battery 1172 simultaneously.
In one example, when the first battery 1171 is fully charged, the charging management module 111 issues the switch control parameter to the first control module 112, so that the first control module 112 controls to close the switch module 116, so that the first charging chip 114 can charge the second battery 1172 that is not fully charged, and the charging efficiency of the device is improved.
In an example, when the second battery 1172 is fully charged, the charging management module 111 issues the switch control parameter to the second control module 113, so that the second control module 113 controls to close the switch module 116, so that the second charging chip 115 can charge the first battery 1171 that is not fully charged, and the charging efficiency of the device is improved.
In an example, when the first charging chip 114 fails and the first battery 1171 is not fully charged yet, the charging management module 111 issues the switch control parameter to the second control module 115 so that the second control module 113 controls to close the switch module 116, so that the second charging chip 115 can charge the first battery 1171, and a problem that the first battery 1171 cannot be fully charged due to the failure of the first charging chip 114 can be avoided.
In an example, when the second charging chip 115 fails and the second battery 1172 is not fully charged yet, the charging management module 111 issues the switch control parameter to the first control module 112, so that the first control module 112 controls to close the switch module 116, and thus the first charging chip 114 can charge the second battery 1172, so that the problem that the second battery 1172 cannot be fully charged due to the failure of the second charging chip 115 can be avoided.
It should be noted that the number of the substrates,
in other embodiments, the electronic device 100 may include three or more charging paths, so more control modules, charging chips, batteries and switch modules may be provided, and the principles and technical effects of the present invention are similar to those of the control modules, charging chips, batteries and switch modules shown above, which are not further developed herein.
Fig. 8 is a schematic flow chart of a charging control method according to an embodiment of the present application. As shown in fig. 8, the charge control method of the present embodiment may include the steps of:
s801, when the electronic equipment detects that the charger is connected, charging parameters of the charger are obtained.
And when the charging management module of the electronic equipment detects that the charger is connected, acquiring the charging parameters of the charger. The charging parameters of the charger include charging voltage, charging current and output power of the charger.
In an alternative embodiment, the charging management module obtains the charging parameters of the charger through the charging chip on any charging path. For example, based on fig. 7, the charging management module sends a request to the first charging chip through the first control module to obtain the charging parameters of the charger; or the charging management module sends a request to the second charging chip through the second control module so as to acquire the charging parameters of the charger.
In an alternative embodiment, after the charging management module establishes a connection with the charger, the charging management module sends a request to the charger to obtain charging parameters of the charger. Or after the charging management module is connected with the charger, the charger sends the charging parameters of the charger to the charging management module.
In an alternative embodiment, the charging management module obtains the charging parameters of the charger through the charger detection chip.
S802, the electronic equipment determines whether a plurality of charging chips exist.
If the electronic device determines that there are a plurality of charging chips, S803 is executed; or alternatively
If the electronic equipment determines that only one charging chip exists, the electronic equipment distributes input current for the charging chip according to the charging efficiency information of the charging chip and the charging parameters of the charger. The current of the charging chip can be dynamically adjusted in combination with the battery temperature, the battery voltage, the battery current, the system temperature, the ambient temperature, and the like.
In an alternative embodiment, the charging management module of the electronic device sends a request to the charging driver of the electronic device to obtain the number of charging chips, so as to determine whether the electronic device has a plurality of charging chips. S803, the electronic equipment distributes input currents for the plurality of charging chips according to the charging efficiency information of the plurality of charging chips and the charging parameters of the charger.
In an alternative embodiment, a charging management module of the electronic device obtains a charging current and a charging voltage of a charger, and a charging efficiency curve of a plurality of charging chips under the charging voltage of the charger; the charging management module distributes input current for the plurality of charging chips according to the charging current of the charger and the charging efficiency curve of the plurality of charging chips under the charging voltage of the charger.
In an alternative embodiment, an electronic device includes a first charging chip and a second charging chip. The charging management module acquires a charging current and a charging voltage of the charger, a first charging efficiency curve of the first charging chip under the charging voltage of the charger, and a second charging efficiency curve of the second charging chip under the charging voltage of the charger; the charging management module distributes input current for the first charging chip and the second charging chip according to the first charging efficiency curve, the second charging efficiency curve and the charging current of the charger.
In one example, the charge management module obtains a first current corresponding to a maximum charge efficiency of the first charging chip in a first charge efficiency curve, and a second current corresponding to a maximum charge efficiency of the second charging chip in a second charge efficiency curve. If the sum of the first current and the second current is smaller than or equal to the charging current of the charger, the charging management module can distribute the first current to the first charging chip and distribute the second current to the second charging chip, so that the charging efficiency of each charging chip is the highest, and the charging efficiency of the equipment is improved.
In the step, through analyzing the charging efficiency information of the plurality of charging chips and combining the charging parameters of the charger, proper input current is distributed to each charging chip so as to balance the charging efficiency of each charging chip and improve the overall charging efficiency of the equipment.
S804, the electronic device dynamically adjusts the current of the plurality of charging chips according to at least one of the charging voltage, the charging current, the battery temperature, the system temperature of the electronic device and the ambient temperature of the plurality of batteries.
In this embodiment, the charging management module of the electronic device dynamically adjusts the currents of the plurality of charging chips according to at least one of the charging voltages, the charging currents, the battery temperatures, and the system temperatures of the electronic device, including adjusting the input currents or the output currents of the plurality of charging chips.
How the currents of the plurality of charging chips are dynamically adjusted based on the respective parameters is described below.
(1) Electronic equipment dynamically adjusts currents of a plurality of charging chips according to charging voltages of a plurality of batteries
In an alternative embodiment, the charging management module of the electronic device obtains charging voltages of the plurality of batteries through the voltage detection module of the fuel gauge, and dynamically adjusts currents of the plurality of charging chips according to the charging voltages of the plurality of batteries and the maximum charging voltage of the plurality of batteries. For example, the charging voltage of a certain battery is greater than the maximum charging voltage thereof, the current of the charging chip corresponding to the battery may be reduced, or the charging voltage of a certain battery is less than the maximum charging voltage thereof, the current of the charging chip corresponding to the battery may be increased.
(2) The electronic device dynamically adjusts the current of the plurality of charging chips according to the charging currents of the plurality of batteries.
In an alternative embodiment, the charging management module of the electronic device obtains charging currents of the plurality of batteries through the current detection module of the fuel gauge, and dynamically adjusts currents of the plurality of charging chips according to the charging currents of the plurality of batteries. For example, the charging current of a certain battery is greater than the maximum charging current thereof, the current of the charging chip corresponding to the battery may be reduced, or the charging current of a certain battery is less than the maximum charging current thereof, the current of the charging chip corresponding to the battery may be increased.
(3) The electronic device dynamically adjusts the current of the plurality of charging chips according to the battery temperatures of the plurality of batteries.
In an alternative embodiment, the charging management module of the electronic device obtains the battery temperatures of the plurality of batteries through the battery temperature detection module of the fuel gauge, and dynamically adjusts the currents of the plurality of charging chips according to the battery temperatures of the plurality of batteries.
In an alternative embodiment, the plurality of batteries includes a first battery and a second battery. The plurality of charging chips comprise a first charging chip and a second charging chip, wherein the first charging chip charges the first battery, and the second charging chip charges the second battery.
In one example, the charge management module reduces a current of the first charging chip upon determining that a battery temperature of the first battery is greater than a first threshold; or the charging management module increases the current of the first charging chip when determining that the battery temperature of the first battery is less than the second threshold.
In one example, the charge management module reduces a current of the second charging chip upon determining that a battery temperature of the second battery is greater than a third threshold; or the charging management module increases the current of the second charging chip when determining that the battery temperature of the second battery is less than the fourth threshold.
Based on the above examples, by monitoring the battery temperatures of a plurality of batteries in real time, when the battery temperature is too high, the input current of a charging chip for charging the batteries is reduced, so that the charging safety is ensured; when the temperature of the battery is lower, the input current of the charging chip for charging the battery can be properly increased on the premise of meeting the maximum charging current of the battery, so that the charging efficiency of the battery is improved.
(4) The electronic device dynamically adjusts the current of the plurality of charging chips according to the system temperature of the electronic device.
The system temperature of the electronic device includes the temperature of one or more devices (or modules) in the energy consuming system of the electronic device, such as the temperature of the processor, the temperature of the display screen, etc.
In an alternative embodiment, the charge management module of the electronic device obtains the system temperature via a temperature sensor. The temperature sensor can be provided with a plurality of sensors which are respectively used for measuring and reporting the temperatures of different devices.
In an alternative embodiment, the charge management module reduces the current of the plurality of charge chips upon determining that the system temperature is greater than a fifth threshold. In an alternative embodiment, the charge management module increases the current of the plurality of charge chips upon determining that the system temperature is less than a sixth threshold.
In one example, the plurality of charging chips includes a first charging chip and a second charging chip, and the charging management module reduces current to the first charging chip and/or the second charging chip when the system temperature is determined to be greater than a fifth threshold. Or, the charging management module increases the current of the first charging chip and/or the second charging chip when the system temperature is determined to be less than the sixth threshold.
(5) The electronic device dynamically adjusts the current of the plurality of charging chips according to the ambient temperature.
In an alternative embodiment, the electronic device increases the current of the first charging chip and/or the second charging chip upon determining that the ambient temperature increases from the second temperature interval to the first temperature interval.
In an alternative embodiment, the electronic device reduces the current of the first charging chip and/or the second charging chip upon determining that the ambient temperature falls from the first temperature interval to the second temperature interval.
Illustratively, the first temperature interval is (10 ℃,45 ℃) and the second temperature interval is (0 ℃,10 ℃).
In an alternative embodiment, referring to fig. 7, an electronic device includes a plurality of batteries, such as a first battery and a second battery. The electronic device includes, for example, a first charging chip and a second charging chip. The first charging chip charges the first battery, and the second charging chip charges the second battery. Based on this, the charge control method further includes:
in an alternative embodiment, when the electronic device detects that the first battery is fully charged, S8051, the first charging chip is controlled to charge the second battery.
In an alternative embodiment, S8052, when the electronic device detects that the second charging chip fails, the first charging chip is controlled to charge the second battery.
In an alternative embodiment, S8053, when the electronic device detects that the second battery is first full, the second charging chip is controlled to charge the first battery.
In an alternative embodiment, S8054, when the electronic device detects that the first charging chip fails, the second charging chip is controlled to charge the first battery.
In an example, when the charging management module of the electronic device detects that the first battery is fully charged, the control switch module is closed, so that the first charging chip charges the second battery, and the charging efficiency of the device can be improved.
In one example, when the charging management module of the electronic device detects that the second charging chip fails, the control switch module is closed, so that the first charging chip can charge the second battery. In one example, when the charge management module of the electronic device detects that the second charging chip fails and the second battery is not yet fully charged, the control switch module is closed, so that the first charging chip can charge the second battery which is not yet fully charged. The above example can avoid the problem that the battery in the device cannot be charged due to the failure of the charging chip.
In an example, when the charging management module of the electronic device detects that the second battery is fully charged, the control switch module is closed, so that the second charging chip charges the first battery, and the charging efficiency of the device can be improved.
In one example, when the charging management module of the electronic device detects that the first charging chip fails, the control switch module is closed, so that the second charging chip can charge the first battery. In one example, when the charge management module of the electronic device detects that the first charging chip fails and the first battery is not yet fully charged, the control switch module is closed, so that the second charging chip can charge the first battery which is not fully charged. The above example can avoid the problem that the battery in the device cannot be charged due to the failure of the charging chip.
The charging control method shown in the embodiment of the application can be applied to electronic equipment with multiple charging chips and multiple batteries. When the electronic equipment detects that the charger is connected, firstly acquiring charging parameters of the charger and related information of charging chips, wherein the related information of the charging chips comprises the number of the charging chips and charging efficiency information of each charging chip; if a plurality of charging chips are provided, distributing current to the plurality of charging chips based on charging parameters of the charger and charging efficiency information of the plurality of charging chips. During charging, the current of the plurality of charging chips is dynamically adjusted by monitoring at least one of a charging voltage, a charging current, a battery temperature, a system temperature of the electronic device, and an ambient temperature of the plurality of batteries.
In the above scheme, on one hand, when the current is distributed to the charging chips on the multiple charging paths, the charging efficiency information of the charging chips on the multiple charging paths is considered, so that the current of the charging chips on the multiple charging paths can be balanced, and the charging efficiency of each charging path is improved, so that the overall charging efficiency of the equipment is improved. On the other hand, when the current of the charging chips on the multiple charging paths is dynamically adjusted, the system temperature of the electronic device is also considered, the system temperature is usually related to user behaviors, for example, a user runs a game application during charging of a mobile phone, so that the system temperature is increased, and the device monitors the system temperature to adjust the current of the charging chips on the multiple charging paths, so that the charging efficiency of the device in the charging scene is improved.
On the basis of the above embodiments, the embodiments of the present application provide a charging control method, which is applied to an electronic device, where the electronic device includes a first charging chip and a second charging chip, the first charging chip is used to control charging of a first battery in the electronic device, and the second charging chip is used to control charging of a second battery in the electronic device; the method comprises the following steps:
at a first moment, the electronic equipment is charged based on a first charger, the input current of a first charging chip is first current, and the input current of a second charging chip is second current; the first current is the current between the first charger and the first charging chip, and the second current is the current between the first charger and the second charging chip;
at a second moment, the electronic equipment is charged based on a second charger, the input current of the first charging chip is third current, and the input current of the first charging chip is fourth current; the third current is the current between the second charger and the first charging chip, and the fourth current is the current between the second charger and the second charging chip;
wherein the charging parameters of the first charger are different from the charging parameters of the second charger. The charging parameters of the charger include a charging voltage and a charging current of the charger.
In this embodiment, the electronic device allocates appropriate input currents to the first charging chip and the second charging chip in the electronic device by acquiring the charging parameters of the accessed charger, the first charging chip charges the first battery based on the allocated first current, and the second charging chip charges the second battery based on the allocated second current, so as to improve the charging efficiency of the device. In general, the electronic device is connected to different chargers, and input currents of the first charging chip and the second charging chip are different.
In an alternative embodiment, the first charging chip may be used to control charging of the first battery and/or the second battery in the electronic device, and the second charging chip may be used to control charging of the first battery and/or the second battery in the electronic device.
In an alternative embodiment, the electronic device further includes a charging management module, where the charging management module is configured to manage and control the first charging chip and the second charging chip;
the electronic device charges based on the first charger, including: the charging management module distributes a first current to the first charging chip and distributes a second current to the second charging chip based on the charging parameters of the first charger, the charging efficiency information of the first charging chip and the charging efficiency information of the second charging chip;
The charging efficiency information of the first charging chip is used for indicating the corresponding relation between the input current of the first charging chip under different charging voltages and the charging efficiency.
In this embodiment, the electronic device manages the first charging chip and the second charging chip through the charging management module, and the charging management module distributes appropriate input currents to the two charging chips based on the charging parameters of the first charger and the charging efficiency information of the two charging chips. Because the charging efficiency information of the charging chips indicates the corresponding relation between the input current of the charging chips under different charging voltages and the charging efficiency, the charging management module can acquire the input current corresponding to different charging efficiency points of the two charging chips under the same charging voltage, and the charging current of the first charger is combined to allocate proper input current for the two charging chips so as to balance the charging efficiency of each charging chip, thereby improving the overall charging efficiency of the equipment.
In an alternative embodiment, the charging parameters of the first charger include a charging voltage and a charging current of the first charger; the charging management module allocates a first current for the first charging chip and a second current for the second charging chip based on the charging parameters of the first charger, the charging efficiency information of the first charging chip, and the charging efficiency information of the second charging chip, including:
Acquiring a first corresponding relation between an input current of a first charging chip under a charging voltage of a first charger and charging efficiency, and a second corresponding relation between an input current of a second charging chip under the charging voltage of the first charger and charging efficiency;
based on the first corresponding relation, the second corresponding relation and the charging current of the first charger, distributing a first current corresponding to a higher charging efficiency value for the first charging chip and distributing a second current corresponding to a higher charging efficiency value for the second charging chip;
the sum of the first current and the second current is less than or equal to the charging current of the first charger.
In some embodiments, the assigning the first current corresponding to the higher charging efficiency value to the first charging chip may be: the current corresponding to the highest charging efficiency value in the first correspondence relationship, and the second current corresponding to the higher charging efficiency value allocated to the second charging chip may be: and the current corresponding to the highest charging efficiency value in the second corresponding relation.
In this embodiment, the charging voltage of the first charger is the output voltage of the first charger, and the charging current of the first charger is the output current of the first charger. After the electronic equipment obtains the corresponding relation between the input current of the two charging chips under the charging voltage of the first charger and the charging efficiency, the input current corresponding to the higher value of the charging efficiency point is distributed to the two charging chips as much as possible, and the overall charging efficiency of the equipment is improved.
In an alternative embodiment, the electronic device is charged based on a first charger, including:
the charging management module of the electronic equipment dynamically adjusts the input current or the output current of the first charging chip by monitoring at least one of the charging voltage, the charging current, the battery temperature, the system temperature of the electronic equipment and the environment temperature of the first battery; and/or the number of the groups of groups,
the charging management module dynamically adjusts the input current or the output current of the second charging chip by monitoring at least one of the charging voltage, the charging current, the battery temperature, the system temperature of the electronic device and the ambient temperature of the second battery;
the system temperature includes at least one of:
a temperature of a processor of the electronic device;
temperature of a display screen of an electronic device.
In this embodiment, the charging management module monitors parameters of the two batteries in the charging process, and the system temperature, the ambient temperature, and the like of the electronic device, and comprehensively adjusts the input current or the output current of the first charging chip and/or the second charging chip, so as to dynamically control the charging current of the batteries.
In an alternative embodiment, the charging management module of the electronic device dynamically adjusts the input current or the output current of the first charging chip by monitoring at least one of a charging voltage, a charging current, a battery temperature, a system temperature of the electronic device, and an ambient temperature of the first battery, including:
The charge management module monitors at least one of: the charging voltage of the first battery is smaller than the maximum charging voltage of the first battery; the charging current of the first battery is smaller than the maximum charging current of the first battery; the battery temperature of the first battery is greater than the first temperature value; the system temperature of the electronic equipment is larger than the second temperature value; the ambient temperature increases the input current or the output current of the first charging chip from the second temperature interval to the first temperature interval; or alternatively
The charge management module monitors at least one of: the charging voltage of the first battery is greater than the maximum charging voltage of the first battery; the charging current of the first battery is greater than the maximum charging current of the first battery; the battery temperature of the first battery is less than the third temperature value; the system temperature of the electronic device is less than the fourth temperature value; the ambient temperature is from the first temperature interval to the second temperature interval, and the input current or the output current of the first charging chip is reduced.
In this embodiment, the charging voltage of the first battery is the monitored real-time charging voltage of the first battery, and the charging current of the first battery is the monitored real-time charging current of the first battery. The maximum charging voltage of the first battery is also referred to as the off-voltage of the first battery, and the maximum charging current of the first battery is also referred to as the off-current of the first battery.
The embodiment shows that the charging voltage, the charging current and the battery temperature of the first battery, as well as the system temperature and the environment temperature of the equipment are monitored, and the input current or the output current of the first charging chip is adjusted, so that the charging current of the first battery is dynamically controlled, the charging safety of the first battery is ensured, and the charging efficiency of the battery is improved.
In an alternative embodiment, the charging management module of the electronic device dynamically adjusts the input current or the output current of the second charging chip by monitoring at least one of a charging voltage, a charging current, a battery temperature, a system temperature of the electronic device, and an ambient temperature of the second battery, including:
the charge management module monitors at least one of: the charging voltage of the second battery is smaller than the maximum charging voltage of the second battery; the charging current of the second battery is smaller than the maximum charging current of the second battery; the battery temperature of the second battery is greater than the first temperature value; the system temperature of the electronic equipment is larger than the second temperature value; the input current or the output current of the second charging chip is increased from the second temperature interval to the first temperature interval in the environment temperature; or alternatively
The charge management module monitors at least one of: the charging voltage of the second battery is greater than the maximum charging voltage of the second battery; the charging current of the second battery is greater than the maximum charging current of the second battery; the battery temperature of the second battery is less than the third temperature value; the system temperature of the electronic device is less than the fourth temperature value; the ambient temperature is from the first temperature interval to the second temperature interval, and the input current or the output current of the second charging chip is reduced.
The embodiment shows that the charging voltage, the charging current and the battery temperature of the second battery, as well as the system temperature and the environment temperature of the equipment are monitored, and the input current or the output current of the second charging chip is adjusted, so that the charging current of the second battery is dynamically controlled, the charging safety of the second battery is ensured, and the charging efficiency of the battery is improved.
In an alternative embodiment, the electronic device further includes a switch module, one end of the switch module is connected with the output end of the first charging chip, and the other end of the switch module is connected with the output end of the second charging chip; the method further comprises the steps of:
the charging management module of the electronic equipment controls the switch module to be disconnected, the first charging chip charges the first battery, and the second charging chip charges the second battery; or alternatively
The charging management module controls the switch module to be closed, the first charging chip charges the first battery and the second battery, and the second charging chip charges the first battery and the second battery.
In one example, the charge management module controls the switch module to be opened or closed through the first control module or the second control module.
In this embodiment, the charging control of the charging chip on one battery or two batteries can be achieved by controlling the opening and closing state of the switch module by the charging management module.
In an alternative embodiment, the charging control method further includes: when the charging management module of the electronic equipment monitors that the first battery is fully charged, the switch module of the electronic equipment is controlled to be closed, and the first charging chip charges the second battery; or alternatively
When the charging management module monitors that the second battery is fully charged, the control switch module is closed, and the second charging chip charges the first battery.
In this embodiment, the charge management module is through the charge progress of monitoring two batteries, when one of them battery is full earlier, can control the switch module to close for two charge chips can both charge for not full battery yet, can promote the charging efficiency of equipment.
In an alternative embodiment, the charging control method further includes: when the charging management module of the electronic equipment monitors that the first charging chip fails, the switch module of the electronic equipment is controlled to be closed, and the second charging chip charges the first battery; or alternatively
When the charging management module monitors that the second charging chip fails, the switch module of the electronic equipment is controlled to be closed, and the first charging chip charges the second battery.
In this embodiment, the charging management module is closed through the control switch module, so that the problem that a part of batteries in the device cannot be charged due to the failure of the charging chip can be avoided.
The embodiment of the application provides electronic equipment, which comprises: comprising the following steps: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the electronic device executes the technical scheme in the method embodiment, and the implementation principle and the technical effect are similar to those of the method embodiment, which are not repeated herein.
The embodiment of the application provides a chip. The chip includes a processor, and the processor is configured to call a computer program in the memory to execute the technical solution in the above embodiment, so that the implementation principle and the technical effect are similar to those of the above method embodiment, and are not repeated herein.
Embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. The computer program when executed by the processor implements the technical solution in the above method embodiment, and the implementation principle and technical effects are similar to those of the above method embodiment, and are not repeated herein.
The methods described in the above embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer readable media can include computer storage media and communication media and can include any medium that can transfer a computer program from one place to another. The storage media may be any target media that is accessible by a computer.
In one possible implementation, the computer readable medium may include RAM, ROM, compact disk-read only memory (CD-ROM) or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium targeted for carrying or storing the desired program code in the form of instructions or data structures and accessible by a computer. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (Digital Subscriber Line, DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes optical disc, laser disc, optical disc, digital versatile disc (Digital Versatile Disc, DVD), floppy disk and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The present embodiments provide a computer program product comprising a computer program which, when executed, causes a computer to perform the above-described method.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processing unit of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing detailed description of the invention has been presented for purposes of illustration and description, and it should be understood that the foregoing is by way of illustration and description only, and is not intended to limit the scope of the invention.

Claims (11)

1. The charging control method is characterized by being applied to electronic equipment, wherein the electronic equipment comprises a first charging chip and a second charging chip, the first charging chip is used for controlling the charging of a first battery in the electronic equipment, and the second charging chip is used for controlling the charging of a second battery in the electronic equipment; the method comprises the following steps:
at a first moment, the electronic equipment is charged based on a first charger, the input current of the first charging chip is a first current, and the input current of the second charging chip is a second current; the first current is the current between the first charger and the first charging chip, and the second current is the current between the first charger and the second charging chip;
at a second moment, the electronic equipment is charged based on a second charger, the input current of the first charging chip is a third current, and the input current of the first charging chip is a fourth current; the third current is the current between the second charger and the first charging chip, and the fourth current is the current between the second charger and the second charging chip;
Wherein the charging parameters of the first charger are different from the charging parameters of the second charger.
2. The method of claim 1, wherein the electronic device further comprises a charge management module for managing and controlling the first and second charging chips;
the electronic device is charged based on a first charger, comprising: the charging management module distributes the first current to the first charging chip and distributes the second current to the second charging chip based on the charging parameters of the first charger, the charging efficiency information of the first charging chip and the charging efficiency information of the second charging chip;
the charging efficiency information of the first charging chip is used for indicating the corresponding relation between the input current of the first charging chip under different charging voltages and the charging efficiency.
3. The method of claim 2, wherein the charging parameters of the first charger include a charging voltage and a charging current of the first charger; the charging management module allocates the first current to the first charging chip and the second current to the second charging chip based on the charging parameter of the first charger, the charging efficiency information of the first charging chip, and the charging efficiency information of the second charging chip, including:
Acquiring a first corresponding relation between the input current of the first charging chip under the charging voltage of the first charger and the charging efficiency, and a second corresponding relation between the input current of the second charging chip under the charging voltage of the first charger and the charging efficiency;
distributing the first current corresponding to a higher charging efficiency value to the first charging chip and distributing the second current corresponding to a higher charging efficiency value to the second charging chip based on the first corresponding relation, the second corresponding relation and the charging current of the first charger;
the sum of the first current and the second current is less than or equal to a charging current of the first charger.
4. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the electronic device is charged based on a first charger, comprising:
the charging management module of the electronic equipment dynamically adjusts the input current or the output current of the first charging chip by monitoring at least one of the charging voltage, the charging current, the battery temperature of the first battery, the system temperature of the electronic equipment and the environment temperature; and/or the number of the groups of groups,
the charging management module dynamically adjusts the input current or the output current of the second charging chip by monitoring at least one of the charging voltage, the charging current, the battery temperature, the system temperature of the electronic device and the ambient temperature of the second battery;
The system temperature includes at least one of:
a temperature of a processor of the electronic device;
the temperature of a display screen of the electronic device.
5. The method of claim 4, wherein the charging management module of the electronic device dynamically adjusts the input current or the output current of the first charging chip by monitoring at least one of a charging voltage, a charging current, a battery temperature of the first battery, a system temperature of the electronic device, and an ambient temperature, comprising:
the charge management module monitors at least one of: the charging voltage of the first battery is smaller than the maximum charging voltage of the first battery; the charging current of the first battery is less than the maximum charging current of the first battery; the battery temperature of the first battery is greater than a first temperature value; the system temperature of the electronic equipment is greater than a second temperature value; the ambient temperature increases the input current or the output current of the first charging chip from the second temperature interval to the first temperature interval; or alternatively
The charge management module monitors at least one of: the charging voltage of the first battery is greater than the maximum charging voltage of the first battery; the charging current of the first battery is greater than the maximum charging current of the first battery; the battery temperature of the first battery is less than a third temperature value; the system temperature of the electronic device is less than a fourth temperature value; and the ambient temperature is from the first temperature interval to the second temperature interval, so that the input current or the output current of the first charging chip is reduced.
6. The method of any one of claims 1 to 5, wherein the electronic device further comprises a switch module, one end of the switch module is connected to the output terminal of the first charging chip, and the other end of the switch module is connected to the output terminal of the second charging chip; the method further comprises the steps of:
the charging management module of the electronic equipment controls the switch module to be disconnected, the first charging chip charges the first battery, and the second charging chip charges the second battery; or alternatively
The charging management module controls the switch module to be closed, the first charging chip charges the first battery and the second battery, and the second charging chip charges the first battery and the second battery.
7. The method according to any one of claims 1 to 5, further comprising:
when the charging management module of the electronic equipment monitors that the first battery is fully charged, the switch module of the electronic equipment is controlled to be closed, and the first charging chip charges the second battery; or alternatively
And when the charging management module monitors that the second battery is fully charged, the switch module is controlled to be closed, and the second charging chip charges the first battery.
8. The method according to any one of claims 1 to 5, further comprising:
when the charging management module of the electronic equipment monitors that the first charging chip fails, the switch module of the electronic equipment is controlled to be closed, and the second charging chip charges the first battery; or alternatively
And when the charging management module monitors that the second charging chip fails, the switch module of the electronic equipment is controlled to be closed, and the first charging chip charges the second battery.
9. An electronic device, comprising: a processor and a memory;
the memory stores computer-executable instructions;
the processor executing computer-executable instructions stored in the memory to cause the electronic device to perform the method of any one of claims 1 to 8.
10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method according to any one of claims 1 to 8.
11. A computer program product comprising a computer program which, when run, causes a computer to perform the method of any one of claims 1 to 8.
CN202310639258.5A 2023-06-01 2023-06-01 Charging control method, device and storage medium Active CN116365670B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310639258.5A CN116365670B (en) 2023-06-01 2023-06-01 Charging control method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310639258.5A CN116365670B (en) 2023-06-01 2023-06-01 Charging control method, device and storage medium

Publications (2)

Publication Number Publication Date
CN116365670A true CN116365670A (en) 2023-06-30
CN116365670B CN116365670B (en) 2023-10-20

Family

ID=86905458

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310639258.5A Active CN116365670B (en) 2023-06-01 2023-06-01 Charging control method, device and storage medium

Country Status (1)

Country Link
CN (1) CN116365670B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103730924A (en) * 2013-12-16 2014-04-16 深圳市金立通信设备有限公司 Charging method, assembly and terminal
CN104505890A (en) * 2014-12-24 2015-04-08 广东欧珀移动通信有限公司 Mobile terminal
US20170222461A1 (en) * 2016-01-29 2017-08-03 Mediatek Inc. Method for performing performance control in an electronic device with aid of management of multiple charger circuits, and associated apparatus
CN110854939A (en) * 2018-08-20 2020-02-28 中兴通讯股份有限公司 Method for charging double batteries, electronic device and storage medium
CN114498865A (en) * 2022-04-14 2022-05-13 荣耀终端有限公司 Charging circuit, charging control method and electronic device
CN216904381U (en) * 2022-03-25 2022-07-05 北京小米移动软件有限公司 Multi-interface charging module and electronic equipment
CN115276173A (en) * 2022-08-15 2022-11-01 维沃移动通信有限公司 Charging circuit and electronic device
CN116031972A (en) * 2022-12-13 2023-04-28 合肥市芯海电子科技有限公司 Parameter adjustment method for charging chip, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103730924A (en) * 2013-12-16 2014-04-16 深圳市金立通信设备有限公司 Charging method, assembly and terminal
CN104505890A (en) * 2014-12-24 2015-04-08 广东欧珀移动通信有限公司 Mobile terminal
US20170222461A1 (en) * 2016-01-29 2017-08-03 Mediatek Inc. Method for performing performance control in an electronic device with aid of management of multiple charger circuits, and associated apparatus
CN110854939A (en) * 2018-08-20 2020-02-28 中兴通讯股份有限公司 Method for charging double batteries, electronic device and storage medium
CN216904381U (en) * 2022-03-25 2022-07-05 北京小米移动软件有限公司 Multi-interface charging module and electronic equipment
CN114498865A (en) * 2022-04-14 2022-05-13 荣耀终端有限公司 Charging circuit, charging control method and electronic device
CN115276173A (en) * 2022-08-15 2022-11-01 维沃移动通信有限公司 Charging circuit and electronic device
CN116031972A (en) * 2022-12-13 2023-04-28 合肥市芯海电子科技有限公司 Parameter adjustment method for charging chip, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN116365670B (en) 2023-10-20

Similar Documents

Publication Publication Date Title
CN113553130B (en) Method for executing drawing operation by application and electronic equipment
CN111555825B (en) Radio frequency resource allocation method and device
WO2021051982A1 (en) Method for calling hardware interface and electronic device
CN112817634B (en) COTA package downloading method and device
CN115794361A (en) Method for managing memory and electronic equipment
CN116010076A (en) Application running method and related equipment
CN115017534B (en) File processing authority control method, device and storage medium
CN115879088A (en) Authority checking method and electronic equipment
CN116365670B (en) Charging control method, device and storage medium
CN111381996A (en) Memory exception handling method and device
CN111581119B (en) Page recovery method and device
CN116780683A (en) Power supply control method and electronic equipment
CN116795476B (en) Wallpaper deleting method and electronic equipment
CN117135729B (en) Multi-device cooperation method, system and terminal device
CN116661584B (en) Resource scheduling method and related equipment
CN116707048B (en) OTG-based charging control method and related device
CN116719556B (en) System upgrading method and electronic equipment
CN116672707B (en) Method and electronic device for generating game prediction frame
CN116662150B (en) Application starting time-consuming detection method and related device
CN115016666B (en) Touch processing method, terminal equipment and storage medium
CN116088745A (en) Application opening method and related device
CN116931802A (en) Control method and central control equipment
CN116700982A (en) Multi-pressure management method and related device
CN116991532A (en) Virtual machine window display method, electronic equipment and system
CN118075916A (en) Equipment connection method, equipment and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant