CN116707097A - Charging and discharging method, device, chip and readable storage medium - Google Patents

Charging and discharging method, device, chip and readable storage medium Download PDF

Info

Publication number
CN116707097A
CN116707097A CN202310964440.8A CN202310964440A CN116707097A CN 116707097 A CN116707097 A CN 116707097A CN 202310964440 A CN202310964440 A CN 202310964440A CN 116707097 A CN116707097 A CN 116707097A
Authority
CN
China
Prior art keywords
battery
voltage
charge
charging
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310964440.8A
Other languages
Chinese (zh)
Inventor
邓旭同
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202310964440.8A priority Critical patent/CN116707097A/en
Publication of CN116707097A publication Critical patent/CN116707097A/en
Pending legal-status Critical Current

Links

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/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/007182Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters in response to battery voltage
    • 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/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • H02J7/00302Overcharge protection
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • H02J7/0031Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits using battery or load disconnect circuits
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • 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)
  • Secondary Cells (AREA)

Abstract

The application relates to the technical field of batteries and discloses a charge and discharge method, a device, a chip and a readable storage medium. The method is applied to an electronic device, and the electronic device comprises a plurality of batteries, and the method comprises: and in the charging process of the batteries, detecting the voltage of each battery in real time, if the voltage of a first battery in the batteries reaches a first full-charge voltage, but the voltage of a second battery does not reach a second full-charge voltage, disconnecting the first battery from a charging and discharging circuit so that the first battery cannot continue to be charged, and continuing to charge the second battery until the voltage of the second battery reaches the second full-charge voltage, and not charging the second battery any more. Therefore, full charge of a plurality of batteries included in the electronic equipment can be realized, and overcharge or capacity loss of the batteries is avoided.

Description

Charging and discharging method, device, chip and readable storage medium
Technical Field
The present application relates to the field of battery technologies, and in particular, to a charging and discharging method, a device, a chip, and a readable storage medium.
Background
At present, with the continuous development of terminal technology, the forms of electronic devices such as mobile phones are also various. Taking an electronic device as an example of a mobile phone, the mobile phone can be classified into a single-screen mobile phone and a folding-screen mobile phone. The folding screen mobile phone is usually provided with two batteries (namely two batteries), the two batteries can supply power for the mobile phone in the process of using the mobile phone by a user, and the storage capacity of the two batteries directly influences the performances such as the standby time of the mobile phone. Therefore, how to make the storage capacity of the double batteries reach the rated electric quantity, that is, the double batteries are fully charged so as to improve the service performance of the mobile phone is a technical problem to be solved.
Disclosure of Invention
In order to solve the above problems, embodiments of the present application provide a charge and discharge method, apparatus, chip, and readable storage medium. According to the method, after one battery of the electronic equipment is fully charged, the battery is stopped to be continuously charged, and the battery which is not fully charged is continuously charged, so that full charge of the battery can be realized, overcharge or capacity loss of the battery is avoided, and the service performance of the mobile phone is improved.
In a first aspect, the present application provides a charge-discharge method, the method comprising: detecting that the battery module is in a charged state, wherein the battery module comprises a plurality of batteries; and detecting that the voltage of a first battery in the plurality of batteries of the battery module reaches a first full-charge voltage of the first battery, and the voltage of a second battery in the plurality of batteries does not reach a second full-charge voltage of the second battery, disconnecting a charge-discharge circuit of the first battery, and keeping the charge-discharge circuit of the second battery in a connection state.
The charge and discharge method provided by the application can be applied to electronic equipment, and the electronic equipment can be folding screen equipment, and in this case, the electronic equipment comprises two parts of machine bodies which can be folded along the folding axis of the electronic equipment. As shown in fig. 1A, the first body 101 and the second body 102 in fig. 1A are two parts of the electronic device. It will be understood that the battery 1 included in fig. 1A is referred to as a first battery, and the battery 2 is referred to as a second battery. In addition, fig. 1A further includes a charging module, that is, the electronic device in the present application may further include a charging module, and the charging module may charge a plurality of batteries included in the electronic device.
In the case of a folding screen device, the first battery is typically co-located with the charging module in either of the two parts of the electronic device. As shown in fig. 1A, the first battery (battery 1) and the charging module are located in the first body 101 together, so that the circuit between the first battery and the charging module is shorter than the circuit between the second battery and the charging module, and the corresponding first charging impedance between the first battery and the charging module is smaller than the corresponding second charging impedance between the second battery and the charging module. Under the condition of the same voltage, the charging current of the first battery is larger than that of the second battery, namely, the charging speed of the first battery is higher, and the first battery is possibly filled earlier than the second battery, namely, when the voltage of the first battery reaches the first full-charge voltage, the voltage of the second battery does not reach the second full-charge voltage yet.
In the case where the first battery is already full but the second battery is not yet full, the first battery is no longer charged by disconnecting the charge-discharge circuit of the first battery, and charging of the second battery that is not full is continued. The method can realize full charge of a plurality of batteries included in the electronic equipment, avoid the phenomenon of overcharging of the battery which is charged first caused by continuously charging the plurality of batteries until all the batteries are charged, and avoid the capacity loss of the battery which is not charged fully caused by stopping charging all the batteries after one battery is charged.
In a possible implementation of the first aspect, the method further includes: the voltage of the switch control SW pin on the first battery is set to a first voltage such that the first battery is disconnected from the charge-discharge circuit of the first battery.
In the present application, the SW pins are pins provided on the battery protection plate during the production line test of the battery. After the production line test, the pin can be reserved on the battery protection board, so that the method provided by the application can control the connection or disconnection of the first battery in the charging and discharging circuit based on the pin in the charging process of the battery. If the SW pin on the first battery is given a first voltage, the SW pin is disconnected, which is also understood as removing the first battery from the charge-discharge circuit, and the first battery cannot perform the charge-discharge operation. The first voltage may be a high level, and may be, for example, 1.8V, which will be mentioned later.
In a possible implementation of the first aspect, the method further includes: detecting that the voltage of the second battery reaches the second full-charge voltage of the second battery, re-connecting the first battery into a charge-discharge circuit of the first battery, and stopping charging the first battery and the second battery.
If the voltage of the second battery reaches the second full voltage, the second battery is fully charged, and the first battery is required to be re-connected into the charging and discharging circuit, and the first battery and the second battery are not continuously charged, so that the first battery and the second battery can be discharged at the same time, and the power supply equipment consumes.
In a possible implementation of the first aspect, the method further includes: and setting the voltage of the switch control SW pin on the first battery to be a second voltage, so that the first battery is re-connected into the charge-discharge circuit of the first battery, and the second voltage is smaller than the first voltage.
If a second voltage is applied to the SW pin, the SW pin is turned on, that is, the second battery is connected to the charge-discharge circuit again, and the second battery can perform subsequent charge-discharge operation. The second voltage may be a low level, and may be, for example, 0V, which will be mentioned later.
In a possible implementation of the first aspect, the method further includes: detecting that the second battery is in a discharge state; and detecting that the voltage of the second battery is smaller than the voltage threshold value, and the first battery is not connected to the charge-discharge circuit of the first battery, setting the voltage of the switch control SW pin on the first battery to be the second voltage, so that the first battery is connected to the charge-discharge circuit of the first battery.
When the second battery is in a discharging state and the first battery is not connected to the charging and discharging circuit, that is, the first battery is not discharged, if the voltage of the second battery is detected to be smaller than the voltage threshold, the fact that the discharging of the second battery is insufficient to support the use of high-energy consumption application of the electronic equipment at the moment is indicated, and the electronic equipment may have the phenomena of clamping, screen display and the like. Therefore, in order to avoid this, the first battery needs to be forcibly connected at this time, and the voltage of the SW pin of the first battery may be set to the second voltage (e.g., 0V).
In a second aspect, the present application provides an electronic device comprising: the device comprises a charging module, a battery module, a detection module and a control module, wherein the battery module comprises a plurality of batteries; the charging module is used for charging the battery module; the detection module is used for detecting the voltage of each battery in the battery module in a charging state; a control module for: and when the voltage of a first battery in the plurality of batteries of the battery module reaches a first full-charge voltage of the first battery and the voltage of a second battery in the plurality of batteries does not reach a second full-charge voltage of the second battery, the charge-discharge circuit of the first battery is controlled to be disconnected, and the charge-discharge circuit of the second battery is kept in a connected state.
In a possible implementation of the second aspect, the electronic device includes a two-part body, the two-part body being foldable along a folding axis of the electronic device; the first battery and the charging module are located in any one of the two parts of the machine body together.
This situation may still be shown in fig. 1A, which is not described herein, and as shown in fig. 1A, the circuit between the first battery and the charging module is shorter than the circuit between the second battery and the charging module, so that the corresponding first charging impedance between the first battery and the charging module is smaller than the corresponding second charging impedance between the second battery and the charging module, and the first battery may be filled earlier than the second battery.
In a possible implementation of the second aspect, the control module is further configured to: and setting the voltage of the switch control SW pin on the first battery to be a second voltage under the condition that the voltage of the second battery in the discharging state is smaller than a voltage threshold and the first battery is not connected to the charging and discharging circuit of the first battery, so that the first battery is connected to the charging and discharging circuit of the first battery.
Wherein the second voltage may be 0V.
In a possible implementation manner of the second aspect, the charge-discharge circuit of the first battery further includes a switch, and the switch is located on the first battery; and the control module is also used for setting the voltage of the switch on the first battery to be a first voltage so that the first battery is disconnected from a charging and discharging circuit of the first battery.
It will be appreciated that the switch herein means that the SW pin mentioned in the first aspect above, i.e. the SW pin may act as a switch.
In a possible implementation manner of the second aspect, the control module is further configured to re-connect the first battery to the charge-discharge circuit of the first battery and stop charging the first battery and the second battery when the voltage of the second battery reaches the second full-charge voltage of the second battery.
In a possible implementation manner of the second aspect, the control module further includes a first resistor, a second resistor, a third resistor, a fourth resistor, a first field effect transistor, and a general purpose input output GPIO; one end of the first resistor is connected with the output end of the second battery, the drain electrode of the first field effect transistor and one end of the third resistor, and the other end of the first resistor is connected with one end of the second resistor; the other end of the third resistor is connected with one end of the GPIO and one end of the fourth resistor; one end of the fourth resistor is connected with the GPIO, and the other end of the fourth resistor is connected with a switch on the first battery; the grid electrode of the first field effect transistor is connected with the other end of the first resistor and one end of the second resistor; the other end of the second resistor, the source electrode of the first field effect transistor and the output end of the second battery are grounded.
Wherein the first resistor corresponds to resistor R1 in fig. 4 hereinafter; the second resistor corresponds to resistor R2; the third resistor corresponds to resistor R3; the fourth resistor corresponds to resistor R4; the first field effect transistor corresponds to the MOS transistor.
In a possible implementation manner of the second aspect, the control module further includes a signal processing unit, where the signal processing unit is configured to send a first signal to the GPIO when the voltage of the first battery reaches the first full voltage, so that the first battery is disconnected from the charging and discharging circuit of the first battery; and under the condition that the voltage of the second battery reaches the second full-charge voltage, giving a second signal to the GPIO so that the first battery is re-connected into a charge-discharge circuit of the first battery.
It will be appreciated that the first signal is used to pull the voltage of the GPIO high, and that the voltage of the GPIO may be set to 1.8V, for example. Because the resistance value of the fourth resistor is smaller, the voltage on the SW pin of the first battery can be ensured to be still high, and the first battery can be disconnected from the charge-discharge circuit. The second signal is used to pull the voltage of the GPIO low, for example, the voltage of the GPIO may be set to 0V, and in a state where the first battery is disconnected from the circuit, the voltage of the SW pin on the first battery is also 0V, so that the first battery may be re-connected to the charge-discharge circuit.
In a third aspect, the present application provides an electronic device, comprising: one or more processors; one or more memories; the one or more memories store one or more programs that, when executed by the one or more processors, cause the electronic device to perform the first aspect and any of the possible charge and discharge methods of the first aspect.
In a fourth aspect, the present application provides a chip for detecting that a battery module is in a charged state, and controlling a charge-discharge circuit of a first battery to be disconnected and maintaining the charge-discharge circuit of a second battery in a connected state when a voltage of the first battery reaches a first full-charge voltage of the first battery and a voltage of the second battery does not reach a second full-charge voltage of the second battery.
In a fifth aspect, the present application provides an electronic device comprising a battery module and the chip of the fourth aspect.
In a sixth aspect, the present application provides a computer readable storage medium having instructions stored thereon which, when executed on a computer, cause the computer to perform the first aspect and any one of the possible charge and discharge methods of the first aspect.
In a seventh aspect, the present application also provides a computer program product comprising: executing instructions stored in a readable storage medium, the executing instructions being readable from the readable storage medium by at least one processor of the electronic device, the executing instructions being executable by the at least one processor to cause the electronic device to implement the first aspect and any one of the possible charging and discharging methods of the first aspect.
Drawings
FIG. 1A is a schematic diagram showing the positional relationship between a dual battery and a charging module within a folding screen phone, according to some embodiments of the present application;
fig. 1B shows a schematic diagram of an equalization circuit disposed intermediate a charging module and a battery 1, according to some embodiments of the present application;
FIG. 2 illustrates a flow diagram of a charge-discharge method, according to some embodiments of the application;
FIG. 3 is a schematic diagram of a charge-discharge circuit included in an electronic device, according to some embodiments of the application;
fig. 4 shows a schematic circuit diagram of a forced access battery 1 when the battery is discharged, according to some embodiments of the application;
fig. 5 illustrates a schematic diagram of an electronic device, according to some embodiments of the application.
Description of the embodiments
Illustrative embodiments of the application include, but are not limited to, battery charge and discharge methods, apparatus, chips, and readable storage media.
The following first explains proper nouns involved in the embodiments of the present application.
A battery: typically consists of a battery protection plate and a battery cell, wherein the battery protection plate and the battery cell are connected by a Board-to-Board Connectors (BTB). Taking an electronic device as an example of a mobile phone, a battery in the mobile phone is usually a lithium battery.
Impedance: in a circuit having a resistance, an inductance and a capacitance, the impeding effect on the current in the circuit is called impedance. Impedance is commonly denoted by Z and is a complex number in ohms.
Full voltage of battery: the highest limit voltage at which the battery is charged is also understood to be the voltage of the battery at full charge. Taking a lithium battery as an example, the highest limiting voltage (full voltage) of the lithium battery is usually 4.2V, and if the voltage of the lithium battery is increased to 4.2V, the electric quantity of the lithium battery can be considered to be full. In addition, the voltage of the battery gradually rises to the full-charge voltage during the charging process of the battery, and it is also understood that the higher the charge amount of the battery, the higher the voltage of the battery.
Overcharging of the battery: i.e., overcharge of the battery, refers to the act of continuing to charge the battery after the battery is charged through a certain charging process, and it can be understood that the voltage of the battery exceeds the full charge voltage of the battery when the battery is overcharged. Taking a lithium battery as an example, because the full voltage of the lithium battery is typically 4.2V, i.e., if the voltage of the lithium battery is greater than 4.2V during charging, overcharge of the battery may occur.
When the battery is overcharged, the voltage of the battery rapidly rises, irreversible change of the structure of an anode active material in the battery and decomposition of electrolyte can be caused, a large amount of gas is generated, a large amount of heat is emitted, the temperature and the internal pressure of the battery are rapidly increased, an internal diaphragm is melted or contracted, and hidden dangers such as explosion and combustion of the battery can exist.
Metal oxide semiconductor field effect transistor (Metal Oxide Semiconductor Field Effect Transistor, MOS transistor): which may also be referred to as insulated gate field effect transistors, MOS transistors are commonly used in amplification circuits or switching circuits in general electronic circuits. The MOS tube comprises a source electrode S, a grid electrode G and a drain electrode D, and is divided into two main types: a P-channel enhanced MOS tube and an N-channel enhanced MOS tube. The P-channel enhancement type MOS transistor may also be referred to as a PMOS transistor, where the PMOS transistor is turned on when a voltage Vgs between the gate G and the source S is less than a certain threshold. The N-channel enhancement type MOS tube can also be called an NMOS tube, and the working characteristic of the NMOS tube is that the NMOS tube is conducted when the voltage Vgs between the grid G and the source S is larger than a certain threshold value.
Electricity meter: the principle of the device for monitoring the electric quantity of the battery is to precisely calculate the electric quantity passing through the circuit by using the quantity of the substance reacting on the electrode according to Faraday's law.
The following describes the background of the battery charge and discharge method in the embodiment of the present application.
Currently, with the continuous development of terminal technology, an electronic device may internally include a dual battery, i.e., two batteries. The double battery can store more electricity than the single battery. In the use process of the electronic equipment, the double batteries are discharged simultaneously, the discharge capacity is larger than that of the single battery, and the double batteries are discharged simultaneously, so that the consumption of high-power application in the electronic equipment can be supported, and the display of the electronic equipment is smoother.
Taking electronic equipment as an example of a mobile phone, current mobile phones mainly include two types: single screen handsets and folding screen handsets. Either a single screen handset or a folding screen handset may contain one or more batteries within it. Taking a folding screen mobile phone with double batteries as an example, when the folding screen mobile phone is charged, the essence is that the double batteries in the folding screen mobile phone are charged. When the folding screen mobile phone is in a use state, for example, a user watches videos by using the mobile phone, the double battery discharges. In some examples, the dual battery needs to be charged and then discharged, that is, the dual battery is charged first, and after the charging is completed, the dual battery can be discharged when the mobile phone is in a power-on state, so as to be consumed by the mobile phone.
When the double batteries of the folding screen mobile phone are charged, the double batteries are charged through the charging module positioned in the mobile phone. Because a folding screen phone generally includes two or more parts of the body that can be folded with each other, based on such form factors of the folding screen phone, each part of the body of the folding screen phone generally includes a battery, and taking the folding screen phone as an example, the two parts of the body each include a battery, and a charging module inside the phone is generally located on one side of one of the two batteries, so that a situation that the charging module is located closer to the one battery and farther from the other battery occurs.
Fig. 1A is a schematic diagram showing a positional relationship between a dual battery and a charging module in a folding screen mobile phone. In fig. 1A, the folding mobile phone can perform an up-down folding operation, and in fig. 1A, the folding mobile phone is in an unfolded state, and an upper half of the folding mobile phone is a first body 101, and a lower half of the folding mobile phone is a second body 102. The first body 101 and the second body 102 each contain one battery therein, that is, the first body 101 contains the battery 1 therein, and the second body 102 contains the battery 2 therein. Furthermore, a charging module (Charger) is located inside the first body 101, that is, the charging module is located at the battery 1 side. As can be seen from fig. 1A, the charging module and the battery 1 and the battery 2 are connected via the wires, and the length of the wires between the charging module and the battery 1 is shorter than the length of the wires between the charging module and the battery 2, because the shorter the wires are, the smaller the impedance is, and therefore, in fig. 1A, the impedance between the charging module and the battery 1 is smaller than the impedance between the charging module and the battery 2.
In the case where the output voltage of the charging module (i.e., the a-point voltage) is the same as the voltage difference between the battery 1 and the battery 2, respectively, the smaller the impedance, the larger the current, i.e., the first current between the charging module and the battery 1 is larger than the second current between the charging module and the battery 2. The larger the current, the faster the charging speed, and the faster the battery voltage increases under the same battery model, which results in the battery 1 being charged for a shorter period of time than the battery 2, i.e., when the battery 1 is charged, the battery 2 is not charged yet, and it is understood that charging means that the battery voltage reaches the full voltage, and not charging means that the battery voltage does not reach the full voltage.
In some embodiments, when the battery 1 is full, the charging operation of the battery 1 and the battery 2 is finished, but when the battery 2 is not full, the capacity of the battery 2 is lost; if the battery 1 is charged after being charged until the battery 2 is charged, the overcharge of the battery 1 may occur, resulting in degradation of the performance of the battery 1.
In order to avoid the situation that the two batteries are charged in sequence, so that capacity loss or overcharge of the batteries is caused, in some embodiments, an equalization circuit is added between the charging module and the battery on the side with smaller impedance, for example, an equalization circuit is added between the battery 1 and the charging module to increase impedance between the charging module and the battery 1, and then current of the battery 1 is reduced, so that the purpose of equalizing voltages of the two batteries is achieved, the charging time of electric quantity of the two batteries is the same, and the capacity loss or overcharge risk of the batteries is reduced.
Fig. 1B shows a schematic diagram of an equalization circuit provided between a charging module and a battery 1. It is understood that the indicated direction of the arrow in fig. 1B represents the flow direction of the current at the time of charging. In fig. 1B, the impedance between the charging module and the battery 1 is smaller than the impedance between the charging module and the battery 2, so that the equalizing circuit is disposed on the side with smaller impedance, i.e., between the charging module and the battery 1. Since the equalization circuit can increase the impedance, the impedance between the charging module and the battery 1 increases, resulting in a decrease in the current flowing through the battery 1, and the total current output from the charging module is constant, so that the current flowing through the battery 2 increases, i.e., the purpose of equalizing the currents of the battery 1 and the battery 2 is achieved. The current of the battery 1 is reduced, the current of the battery 2 is increased, the voltage of the battery 1 is increased, the voltage of the battery 2 is increased, so that the voltage of the battery 1 and the voltage of the battery 2 are balanced, the voltages of the battery 1 and the battery 2 can reach full-charge voltage at the same time, and the simultaneous filling of the battery 1 and the battery 2 can be realized.
However, in the mode, an equalization circuit is additionally added, the design process of the equalization circuit is complex, and the cost is high. Therefore, in order to solve the technical problems, the application provides a charging and discharging method. In the method, during the charging process of the battery 1 and the battery 2, the first voltage and the second voltage corresponding to the battery 1 and the battery 2 at the current moment are detected in real time, if the first voltage reaches the first full voltage of the battery 1 but the second voltage does not reach the second full voltage of the battery 2 yet, the charging and discharging circuit of the battery 1 is disconnected, so that the battery 1 cannot be continuously charged, and the charging operation of the battery 2 is continuously performed until the charging of the battery 2 is completed. Therefore, the cost can be effectively reduced without adding an additional equalization circuit.
In some embodiments, the Switch control (SW) pin may be added to the battery 1 that is closer to the charging module (or has a smaller impedance with the charging module) in advance, so as to implement that when the first voltage is detected to reach the first full voltage of the battery 1, but the second voltage has not reached the second full voltage of the battery 2, a high level (for example, 1.8V) is input to the SW pin on the battery 1, so as to implement that the charge-discharge circuit of the battery 1 is disconnected.
It will be appreciated that the SW pins may be provided on a battery protection plate in the battery 1. The working principle of the SW pin is that if the SW pin is given a high level, the SW pin is disconnected, and it can be understood that the battery protection board of the battery disconnects the output of the battery through the SW pin, and this step is equivalent to removing the battery, that is, the battery cannot be charged or discharged. If the SW pin is at a low level, the SW pin is turned on, that is, the battery is connected to the circuit again, and the battery can perform subsequent charge and discharge operations. In the embodiment of the application, whether the battery is connected into the circuit or not can be controlled by controlling the level of the SW pin.
In some embodiments, the battery 1 may be disconnected by any other practical way, so as to achieve the purpose of no longer charging the battery 1. For example, a switch may be added to the circuit, or a control circuit may be added to control the charging process of the battery 1.
This method avoids the risk of overcharging the battery 1 by disconnecting the battery 1 from the circuit after the battery 1 is full and not continuing to charge the battery 1. In addition, the battery 2 is continuously charged until the second voltage reaches the second full-charge voltage, so that the battery 2 can be ensured to be full, and the capacity loss of the battery 2 caused by the underfilling is avoided. In addition, the method does not need to additionally add an equalizing circuit, only needs to add one SW pin, and has low cost.
The method provided by the embodiment of the application can be applied to electronic equipment comprising two batteries and also can be applied to electronic equipment comprising more than two batteries. No matter how many batteries are, the charged batteries are disconnected from the circuit in sequence until the last battery is charged.
It can be understood that the charge and discharge method provided by the embodiment of the application is suitable for any electronic device with a communication function, including, but not limited to, any electronic device such as a mobile phone, a tablet computer, a wearable device, an augmented reality (Augmented Reality, AR) device, and the like, and the embodiment of the application is not limited to the type and the form of the electronic device.
The following describes in detail a charge and discharge method provided in an embodiment of the present application, which may be performed by an electronic device, where the electronic device includes a battery 1 and a battery 2, as shown in fig. 2, and the method may include the following steps:
201: a first voltage of the battery 1 and a second voltage of the battery 2 are obtained.
The embodiment of the application does not limit the time for the electronic equipment to acquire the first voltage and the second voltage. The electronic device may acquire the first voltage and the second voltage in real time, or may acquire the first voltage and the second voltage only when the battery 1 and the battery 2 are in a charged state, for example. Taking the electronic device to obtain the first voltage and the second voltage in the charging states of the battery 1 and the battery 2 as an example, if the battery 1 and the battery 2 are being charged, the first voltage of the battery 1 in the current charging state and the second voltage of the battery 2 in the current charging state may be obtained. Wherein the electronic device may obtain the first voltage and the second voltage by means of an electricity meter or the like.
202: if the first voltage reaches the first full voltage and the second voltage does not reach the second full voltage, the voltage of the SW pin on the battery 1 is raised to disconnect the battery 1, not charge the battery 1 any more, and continue to charge the battery 2.
It will be appreciated that the first full charge voltage is the voltage at which the charge of the battery 1 is full, and the second full charge voltage is the voltage at which the charge of the battery 2 is full. Taking an electronic device as an example of a mobile phone, the full charge voltage of a battery inside the mobile phone is typically 4.2V.
As the battery is charged, the voltage of the battery increases. If the voltage of the battery reaches the full voltage, it indicates that the battery is full at this time. Thus, in the embodiment of the present application, when the first voltage reaches the first full voltage, it is indicated that the battery 1 is already full; if the second voltage does not reach the second full voltage, it indicates that the battery 2 is not yet full. At this time, the battery 1 may not be charged any more, and the battery 2 may continue to be charged.
Among other things, the method of not continuing to charge the battery 1 includes, but is not limited to, disconnecting the battery 1 from the circuit by giving a high level to the SW pin on the battery 1, so that the electronic device cannot continue to charge the battery 1. Wherein in some embodiments, the SW pins are pins provided on the battery protection plate during production line testing of the battery. After the production line test, the pin may be reserved on the battery protection board, so that the method provided according to the embodiment of the application controls the connection or disconnection of the battery 1 in the circuit based on the pin during the charging process of the battery.
203: if the second voltage reaches the second full-charge voltage, the charging operation of the battery 2 is ended.
It will be appreciated that the second voltage reaching the second full voltage, indicating that the battery 2 is already full, may end charging the battery 2. At this time, both the battery 1 and the battery 2 end the charging operation, and both the battery 1 and the battery 2 are in the full-charge state, so that the battery charging method avoids the risk of overcharging the battery 1 and the capacity loss of the battery 2.
Fig. 3 is a schematic structural diagram of a charge-discharge circuit applied to the method according to the embodiment of the present application, where the charge-discharge circuit is located in an electronic device. The method provided by the application is described in detail below in connection with the circuit structure.
As shown in fig. 3, the charge and discharge circuit includes a detection module 301, a control module 302, a charging module 303, and a battery module 304. Wherein the battery module 304 includes the battery 1 and the battery 2.
The detection module 301 may detect voltages of the battery 1 and the battery 2 included in the battery module 304 in real time, to obtain a first voltage and a second voltage, respectively. The timing of detecting the first voltage and the second voltage by the detection module 301 is not limited in the embodiment of the present application. The detection module 301 may detect the first voltage and the second voltage in real time, or may detect the first voltage and the second voltage only when the battery 1 and the battery 2 are in a charged state, for example. Taking the example that the detection module 301 detects the first voltage and the second voltage in the charging state of the battery 1 and the battery 2, if the detection module 301 detects that the battery 1 and the battery 2 are being charged, the first voltage of the battery 1 in the current charging state and the second voltage of the battery 2 in the current charging state may be obtained. It will be appreciated that the voltage of the battery increases as the battery is charged, i.e., the higher the charge of the battery during charging, the higher the voltage of the battery.
After the detection module 301 obtains the first voltage and the second voltage, the control module 302 may read the first voltage and the second voltage from the detection module 301 in real time. The detection module 301 may be an electricity meter, for example. The detection module 301 may be any other module that can realize a detection function and has a storage function. Taking the detection module 301 with a storage function as an example, after the detection module 301 obtains the first voltage and the second voltage, the first voltage and the second voltage are stored inside the module so as to be read by the control module 302.
After the control module 302 reads the first voltage and the second voltage, it compares the first voltage with the first full voltage and compares the second voltage with the second full voltage, and determines whether the first voltage reaches the first full voltage and whether the second voltage reaches the second full voltage. If the first voltage and the second voltage do not reach the corresponding full voltage, the control module 302 may issue an instruction to the charging module 303 to notify the charging module 303 to continue charging the battery 1 and the battery 2. The charging module may be a charging chip or the like. It is understood that the first full-charge voltage is the voltage of the battery 1 in the full-charge state, the second full-charge voltage is the voltage of the battery 2 in the full-charge state, and the first full-charge voltage and the second full-charge voltage may be the same or different, which is not limited in the embodiment of the present application.
If the first voltage reaches the first full voltage but the second voltage does not reach the second full voltage, it indicates that the battery 1 is already full and the battery 2 is not yet full. At this time, in order to avoid the risk of overcharging the battery 1 caused by continuing to charge the battery 1, the control module 302 applies a high level (e.g., 1.8V) to the SW pin on the battery 1, and at this time, the SW pin is disconnected, that is, the battery 1 is disconnected from the circuit, the charging module 303 cannot continue to charge the battery 1, and the detection module 301 cannot detect the voltage of the battery 1. In addition, the control module 302 may also issue an instruction to the charging module 303 to notify the charging module 303 to continue charging. Because the battery 1 has been disconnected from the circuit at this time, the charging module 303 cannot continue to charge the battery 1, but the battery 2 is still in the circuit, so the charging module 303 can continue to charge the battery 2.
In the case where the battery 1 has ended charging and the battery 2 is still in a charged state, if the detection module 301 detects that the third voltage of the battery 2 reaches the second full-charge voltage, it indicates that the battery 2 is already full. The third voltage is also understood to be the voltage of the battery 2 at the time next to the current time. That is, the detection module 301 needs to detect the voltage of the battery 2 in real time so that the control module 302 can control the charging module 303 to end the charging of the battery 2 and the operation of re-switching the battery 1 into the circuit, etc. when the battery 2 is fully charged.
After detecting that the third voltage of the battery 2 reaches the second full voltage, the battery 1 may be re-connected to the circuit to allow the battery 1 and the battery 2 to discharge simultaneously. The control module 302 may give the SW pin on battery 1 a low level (e.g., 0V) to allow battery 1 to be connected to the circuit again, at which point both battery 1 and battery 2 are in the circuit. In this case, the battery 1 and the battery 2 are discharged together in a full-power mode to support the power-on state of the electronic device, so as to supply the consumption of various applications inside the electronic device.
In addition, the control module 302 issues an instruction to stop charging to the charging module 303, and notifies the charging module 303 not to perform charging operation any more, so as to avoid the risk of overcharging the battery 2 caused by continuing to charge the battery 2.
Through the above description, the electronic device including the charging and discharging circuit provided by the embodiment of the application stops charging a battery after detecting that the electric quantity of the battery is full, and simultaneously charges another battery which is not full until the charging is completed. The method can avoid the overcharge phenomenon of the first full battery caused by continuously charging the two batteries until all the batteries are full, and can also avoid the capacity loss of the unfilled battery caused by stopping charging the two batteries after one battery is full.
When the battery 2 is fully charged and the control module re-connects the battery 1 to the circuit, if the control of the control module fails, that is, the battery 1 is not re-connected to the circuit, only the battery 2 is discharged for consumption of the mobile phone. The mobile phone experiences high energy and time consumption, and the voltage of the battery 2 is reduced rapidly, and if the discharging of the battery 2 is insufficient to support the use of the high energy consumption application of the mobile phone, the mobile phone can be blocked, screen-printed and the like, so that the user experience is affected.
Therefore, the charge-discharge circuit in the embodiment of the application also has the function of forcibly switching the battery 1 into the circuit when the voltage of the battery 2 is lower than the first threshold and the battery 1 is not switched into the circuit, so that the battery 1 and the battery 2 are discharged together for consumption of the mobile phone. The magnitude of the first threshold is not limited, and the first threshold may be set empirically or flexibly adjusted according to an actual application scenario.
Fig. 4 shows a schematic circuit diagram of a forced access battery 1. As shown in fig. 4, the circuit includes a battery 1, a battery 2, a MOS transistor, a resistor R1, a resistor R2, a resistor R3, and a resistor R4. The battery 1 has an SW pin, the battery 1 is connected with one end of a resistor R4, and the other end of the resistor R4 is connected with a general purpose input output port (General Purpose Input Output, GPIO) and one end of a resistor R3. One end of the resistor R3 is connected with the GPIO and the resistor R4, and the other end is connected with the drain electrode of the MOS tube, one end of the resistor R1 and the positive electrode of the battery 2.
It will be appreciated that GPIOs may also be referred to simply as "IO ports" and that GPIOs may be used both as input ports and as output ports, typically for on-off control. In the embodiment of the application, the off state and the on state of the SW pin on the battery can be controlled by adjusting the level (voltage) of the GPIO. The level of the GPIO may be controlled by software code, for example by calling a GPIO high function (e.g., 1.8V) to give the GPIO a high level, and by calling a GPIO low function to give the GPIO a low level (e.g., 0V).
The resistor R1 and the resistor R2 are connected in series, and divide the voltage of the battery 2. One end of the resistor R1 is connected with one end of the resistor R3, the drain electrode of the MOS tube and the positive electrode of the battery 2, the other end of the resistor R1 is connected with one end of the resistor R2, the other end of the resistor R2 is grounded, and the negative electrode of the battery 2 is also grounded.
The MOS tube is a PMOS tube, the source electrode of the MOS tube is grounded, the grid electrode is connected to the point B at the voltage division position of the resistor R1 and the resistor R2, namely the grid electrode voltage of the MOS tube is the point B voltage. The MOS tube is characterized in that when the voltage difference Vgs between the grid electrode and the source electrode is smaller than a threshold value, the MOS tube is conducted, otherwise, the MOS tube is disconnected.
Because the source of the MOS transistor in fig. 4 is grounded, the source voltage is 0, i.e., when the gate voltage of the MOS transistor is less than the second threshold of the turn-on voltage of the MOS transistor, the MOS transistor is turned on. It can be appreciated that the second threshold is determined according to different types of MOS transistors. After determining the first threshold of the battery 2, the MOS transistor with the turn-on voltage being the second threshold may be selected according to the first threshold. The present application is not limited in the magnitude of the second threshold value as long as the second threshold value is smaller than the first threshold value. In addition, after the first threshold value and the second threshold value are both determined, the resistance values of the resistor R1 and the resistor R2 for voltage division can be determined according to the magnitudes of the first threshold value and the second threshold value, so long as the voltage at the point B in fig. 4 is the second threshold value after the voltage division of the resistor R1 and the resistor R2 on the first threshold value of the battery 2, at this time, the voltage of the gate electrode of the MOS transistor can be ensured to be smaller than the second threshold value, that is, when the voltage of the battery 2 is smaller than the first threshold value, the MOS transistor can be turned on.
The control principle of the circuit will be described based on the circuit configuration in fig. 4.
In the circuit shown in fig. 4, when the battery 1 is full but the battery 2 is not full, the control module may pull the GPIO high (i.e. give the GPIO a high level), for example, set the voltage of the GPIO to 1.8V, and since the MOS transistor is in the off state at this time, the resistor R4 is connected in parallel with the resistor R3 and connected in series with the battery 1, and then the voltage of the GIPO is distributed to the SW interface of the battery 1 after the voltage is divided by the resistor R4. Since the resistor R4 is a small resistor, the voltage division is small, so that the voltage of the SW pin can be ensured to be high, the SW pin is disconnected, the battery 1 is disconnected from the circuit, and the battery 1 cannot be charged or discharged.
After the battery 1 is disconnected from the circuit, the battery 2 continues to be charged. When the battery 2 is charged, the battery 1 needs to be connected to the circuit again, so that the battery 1 and the battery 2 are discharged simultaneously for consumption of the mobile phone, so the control module can pull the GPIO low (i.e. give the GPIO low level), for example, set the voltage of the GPIO to 0v, and the voltage of the sw pin is lower, so that the battery 1 is connected to the circuit.
When the battery 2 is fully charged, if the control of the control module fails, that is, the voltage of the GPIO is adjusted, the battery 1 is not connected to the circuit again, that is, only the battery 2 is discharged, if the voltage at two ends of the battery 2 is smaller than a first threshold, that is, the gate voltage of the MOS transistor is smaller than a second threshold, the MOS transistor is turned on, and at this time, the right end of the resistor R3 is grounded through the turned-on MOS transistor, and the voltage is 0. Because the battery 1 is disconnected from the circuit at this time, i.e., the voltage at the SW pin is 0V no matter the voltage of the GPIO is high or low, the SW pin is on at this time, and the battery 1 is connected to the circuit. At this time, the battery 1 and the battery 2 can be discharged together for consumption of the mobile phone.
In the above-mentioned circuit, when the voltage of the SW pin is controlled by the voltage of the GPIO, so that the battery 1 is connected to the circuit again, if the method is not active, that is, the battery 1 is not connected to the circuit, and the battery 1 and the battery 2 cannot be discharged together, the voltage of the SW pin is forced to become 0V by conducting the ground through the MOS tube, and then the battery 1 can be connected to the circuit.
Therefore, the above-provided method and circuit can enable full charge of the battery 1 and the battery 2, respectively, and more charge and thus more discharge of the battery 1 and the battery 2, than in the case where the battery 2 is discharged without being full. In addition, the method and the corresponding charging and discharging circuit can also avoid the phenomena of blocking, screen display and the like of the mobile phone caused by insufficient electric quantity of the battery 2 to support the consumption of the mobile phone because the battery 1 is not connected into the circuit after the battery 2 is fully charged, thereby improving the use experience of a user.
In addition, it can be understood that the charging and discharging method provided by the embodiment of the application is suitable for charging double batteries and is also suitable for fully charging more than two batteries. Taking the example of charging three batteries, battery 1, battery 2 and battery 3, if it is detected that battery 1 is already full, but battery 2 and battery 3 are not full, battery 1 is disconnected from the circuit so that battery 1 cannot be charged and discharged, and then charging of battery 2 and battery 3 is continued. If it is detected that the battery 2 is also full, but the battery 3 is still not full, the battery 2 is disconnected from the circuit so that the battery 2 cannot be charged and discharged, and then the charging of the battery 3 is continued. If the battery 3 is detected to be full, the battery 3 is not charged continuously, and the battery 1 and the battery 2 are connected into the circuit again, so that the battery 1, the battery 2 and the battery 3 are discharged at the same time for consumption of the mobile phone.
Furthermore, the present application provides an electronic apparatus including: one or more processors; one or more memories; the one or more memories store one or more programs, which when executed by the one or more processors, cause the electronic device to perform the charge and discharge method provided by the embodiments of the present application.
The application provides a chip which is used for detecting that a battery module is in a charging state, controlling a charging and discharging circuit of a first battery to be disconnected and keeping the charging and discharging circuit of a second battery in a connecting state under the condition that the voltage of the first battery in a plurality of batteries of the battery module reaches a first full-charge voltage of the first battery and the voltage of the second battery in the plurality of batteries does not reach a second full-charge voltage of the second battery.
The application provides an electronic device comprising the battery module and the chip.
The present application provides a computer-readable storage medium having instructions stored thereon that, when executed on a computer, cause the computer to perform the charge and discharge method provided by the embodiments of the present application.
The present application also provides a computer program product comprising: and executing the instruction, wherein the executing instruction is stored in the readable storage medium, and at least one processor of the electronic device can read the executing instruction from the readable storage medium, so that the executing instruction is executed by the at least one processor to enable the electronic device to realize the charging and discharging method provided by the embodiment of the application.
Fig. 5 shows a schematic structural diagram of the electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, and the like.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The power management module 141 may include a charging and discharging circuit provided in the embodiment of the present application, so that the battery 142 included in the electronic device 100 may be fully charged respectively. The battery 142 may include a plurality of batteries such as the aforementioned battery 1 and battery 2, which is not limited in the embodiment of the present application.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system. The processor may be used to perform the battery charging method referred to in the present application.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100.
The 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 the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code that includes instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 110 performs various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The SIM card interface 195 is used to connect a SIM card.
It is to be appreciated that as used herein, the term module may refer to or include an Application Specific Integrated Circuit (ASIC), an electronic circuit, a processor (shared, dedicated, or group) and/or memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable hardware components that provide the described functionality.
It is to be appreciated that in various embodiments of the application, the processor may be a microprocessor, a digital signal processor, a microcontroller, or the like, and/or any combination thereof. According to another aspect, the processor may be a single core processor, a multi-core processor, or the like, and/or any combination thereof.
Embodiments of the present disclosure may be implemented in hardware, software, firmware, or a combination of these implementations. Embodiments of the application may be implemented as a computer program or program code that is executed on a programmable system comprising at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device.
Program code may be applied to input instructions to perform the functions described herein and generate output information. The output information may be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a Digital Signal Processor (DSP), a microcontroller, an Application Specific Integrated Circuit (ASIC), or a microprocessor.
The program code may be implemented in a high level procedural or object oriented programming language to communicate with a processing system. Program code may also be implemented in assembly or machine language, if desired. Indeed, the mechanisms described in the present application are not limited in scope by any particular programming language. In either case, the language may be a compiled or interpreted language.
In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried by or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed over a network or through other computer readable media. Thus, a machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including but not limited to floppy diskettes, optical disks, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROMs), random Access Memories (RAMs), erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, flash memory, or tangible machine-readable memory for transmitting information (e.g., carrier waves, infrared signal digital signals, etc.) in an electrical, optical, acoustical or other form of propagated signal using the internet. Thus, a machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).
In the drawings, some structural or methodological features may be shown in a particular arrangement and/or order. However, it should be understood that such a particular arrangement and/or ordering may not be required. Rather, in some embodiments, these features may be arranged in a different manner and/or order than shown in the illustrative figures. Additionally, the inclusion of structural or methodological features in a particular figure is not meant to imply that such features are required in all embodiments, and in some embodiments, may not be included or may be combined with other features.
It should be noted that, in the embodiments of the present application, each unit/module mentioned in each device is a logic unit/module, and in physical terms, one logic unit/module may be one physical unit/module, or may be a part of one physical unit/module, or may be implemented by a combination of multiple physical units/modules, where the physical implementation manner of the logic unit/module itself is not the most important, and the combination of functions implemented by the logic unit/module is only a key for solving the technical problem posed by the present application. Furthermore, in order to highlight the innovative part of the present application, the above-described device embodiments of the present application do not introduce units/modules that are less closely related to solving the technical problems posed by the present application, which does not indicate that the above-described device embodiments do not have other units/modules.
It should be noted that in the examples and descriptions of this patent, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
While the application has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the application.

Claims (19)

1. A charge-discharge method, the method comprising:
detecting that a battery module is in a charged state, the battery module including a plurality of batteries;
detecting that the voltage of a first battery in a plurality of batteries of the battery module reaches a first full-charge voltage of the first battery, and the voltage of a second battery in the plurality of batteries does not reach a second full-charge voltage of the second battery, disconnecting a charge-discharge circuit of the first battery, and keeping the charge-discharge circuit of the second battery in a connected state.
2. The method of claim 1, wherein said disconnecting the charge-discharge circuit of the first battery comprises:
and setting the voltage of a switch control SW pin on the first battery to be a first voltage so that the first battery is disconnected from a charge-discharge circuit of the first battery.
3. The method according to claim 1, wherein the method further comprises:
detecting that the voltage of the second battery reaches the second full-charge voltage of the second battery, re-connecting the first battery into a charge-discharge circuit of the first battery, and stopping charging the first battery and the second battery.
4. The method of claim 3, wherein the re-accessing the first battery into the charge-discharge circuit of the first battery comprises:
and setting the voltage of a switch control SW pin on the first battery to be a second voltage, so that the first battery is re-connected into a charge-discharge circuit of the first battery, and the second voltage is smaller than the first voltage.
5. The method of any of claims 1-4, wherein the method is applied to an electronic device that includes a charging module, a first charging impedance between the first battery and the charging module being less than a second charging impedance between the second battery and the charging module.
6. The method of claim 5, wherein the electronic device comprises a two-part body that is foldable along a folding axis of the electronic device;
the first battery and the charging module are located in any one of the two parts of the machine body.
7. The method according to claim 1, wherein the method further comprises:
detecting that the second battery is in a discharge state;
And detecting that the voltage of the second battery is smaller than a voltage threshold value, and the first battery is not connected into a charging and discharging circuit of the first battery, setting the voltage of a switch control SW pin on the first battery to be a second voltage, so that the first battery is connected into the charging and discharging circuit of the first battery.
8. An electronic device, comprising: the device comprises a charging module, a battery module, a detection module and a control module, wherein the battery module comprises a plurality of batteries;
the charging module is used for charging the battery module;
the detection module is used for detecting the voltage of each battery in the battery module in a charging state;
the control module is used for:
and when the voltage of a first battery in the plurality of batteries of the battery module reaches a first full-charge voltage of the first battery and the voltage of a second battery in the plurality of batteries does not reach a second full-charge voltage of the second battery, controlling a charge-discharge circuit of the first battery to be disconnected and keeping the charge-discharge circuit of the second battery in a connected state.
9. The electronic device of claim 8, wherein the charge-discharge circuit of the first battery further comprises a switch located on the first battery; and is also provided with
The control module is further configured to set a voltage of a switch on the first battery to a first voltage, so that the first battery is disconnected from a charge-discharge circuit of the first battery.
10. The electronic device of claim 8, wherein the electronic device comprises a memory device,
the control module is further configured to re-connect the first battery to the charge-discharge circuit of the first battery and stop charging the first battery and the second battery when the voltage of the second battery reaches the second full-charge voltage of the second battery.
11. The electronic device of claim 10, wherein the control module further comprises a first resistor, a second resistor, a third resistor, a fourth resistor, a first field effect transistor, and a general purpose input output GPIO;
one end of the first resistor is connected with the output end of the second battery, the drain electrode of the first field effect transistor and one end of the third resistor, and the other end of the first resistor is connected with one end of the second resistor;
the other end of the third resistor is connected with one end of the GPIO and one end of the fourth resistor;
one end of the fourth resistor is connected with the GPIO, and the other end of the fourth resistor is connected with a switch on the first battery;
The grid electrode of the first field effect transistor is connected with the other end of the first resistor and one end of the second resistor;
the other end of the second resistor, the source electrode of the first field effect transistor and the output end of the second battery are grounded.
12. The electronic device of claim 11, wherein the control module further comprises a signal processing unit,
the signal processing unit is used for giving a first signal to the GPIO when the voltage of the first battery reaches the first full-charge voltage so that the first battery is disconnected from a charging and discharging circuit of the first battery;
and under the condition that the voltage of the second battery reaches the second full-charge voltage, a second signal is given to the GPIO so that the first battery is re-connected into a charge-discharge circuit of the first battery.
13. The electronic device of any of claims 8-12, wherein a first charging impedance corresponding between the first battery and the charging module is less than a second charging impedance corresponding between the second battery and the charging module.
14. The electronic device of claim 13, wherein the electronic device comprises a two-part body that is foldable along a folding axis of the electronic device;
The first battery and the charging module are located in any one of the two parts of the machine body.
15. The electronic device of claim 8, wherein the control module is further configured to:
and setting the voltage of a switch control SW pin on the first battery to be a second voltage when the voltage of the second battery in a discharging state is smaller than a voltage threshold and the first battery is not connected to a charging and discharging circuit of the first battery, so that the first battery is connected to the charging and discharging circuit of the first battery.
16. An electronic device, comprising: one or more processors; one or more memories; the one or more memories store one or more programs that, when executed by the one or more processors, cause the electronic device to perform the charge-discharge method of any of claims 1-7.
17. A chip is characterized in that,
the chip is used for detecting that the battery module is in a charging state, and controlling the charge and discharge circuit of the first battery to be disconnected and keeping the charge and discharge circuit of the second battery in a connection state when the voltage of the first battery in the plurality of batteries of the battery module reaches a first full-charge voltage of the first battery and the voltage of the second battery in the plurality of batteries does not reach a second full-charge voltage of the second battery.
18. An electronic device comprising a battery module and the chip of claim 17.
19. A computer readable storage medium having stored thereon instructions that, when executed on a computer, cause the computer to perform the charge and discharge method of any one of claims 1 to 7.
CN202310964440.8A 2023-08-02 2023-08-02 Charging and discharging method, device, chip and readable storage medium Pending CN116707097A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310964440.8A CN116707097A (en) 2023-08-02 2023-08-02 Charging and discharging method, device, chip and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310964440.8A CN116707097A (en) 2023-08-02 2023-08-02 Charging and discharging method, device, chip and readable storage medium

Publications (1)

Publication Number Publication Date
CN116707097A true CN116707097A (en) 2023-09-05

Family

ID=87826062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310964440.8A Pending CN116707097A (en) 2023-08-02 2023-08-02 Charging and discharging method, device, chip and readable storage medium

Country Status (1)

Country Link
CN (1) CN116707097A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117096993A (en) * 2023-10-13 2023-11-21 荣耀终端有限公司 Battery charging control method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201022151Y (en) * 2006-12-13 2008-02-13 比亚迪股份有限公司 Self dormancy control circuit and battery system
US20150306964A1 (en) * 2014-04-28 2015-10-29 Wang's International, Inc. Automobile Charger
CN113809812A (en) * 2020-06-12 2021-12-17 北京小米移动软件有限公司 Double-battery circuit, control method thereof and electronic equipment
CN116111659A (en) * 2021-11-09 2023-05-12 北京小米移动软件有限公司 Charging circuit, method, device, electronic equipment and medium
CN116529981A (en) * 2022-07-22 2023-08-01 荣耀终端有限公司 Dual battery management circuit and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201022151Y (en) * 2006-12-13 2008-02-13 比亚迪股份有限公司 Self dormancy control circuit and battery system
US20150306964A1 (en) * 2014-04-28 2015-10-29 Wang's International, Inc. Automobile Charger
CN113809812A (en) * 2020-06-12 2021-12-17 北京小米移动软件有限公司 Double-battery circuit, control method thereof and electronic equipment
CN116111659A (en) * 2021-11-09 2023-05-12 北京小米移动软件有限公司 Charging circuit, method, device, electronic equipment and medium
CN116529981A (en) * 2022-07-22 2023-08-01 荣耀终端有限公司 Dual battery management circuit and electronic device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117096993A (en) * 2023-10-13 2023-11-21 荣耀终端有限公司 Battery charging control method and electronic equipment
CN117096993B (en) * 2023-10-13 2024-04-19 荣耀终端有限公司 Battery charging control method and electronic equipment

Similar Documents

Publication Publication Date Title
US11923705B2 (en) Battery control system and method, and electronic device
US11411422B2 (en) Battery charging method, battery charging apparatus and storage medium
CN114859258B (en) Electricity meter and electronic equipment applied to multiple batteries
US20230042691A1 (en) Charging circuit, charging chip, and electronic device
CN116365079B (en) Electronic device, method for determining whether battery is old or new, and computer-readable storage medium
CN116707097A (en) Charging and discharging method, device, chip and readable storage medium
EP4283826A1 (en) Charging circuit, charging control method and electronic device
CN114844182B (en) Charging circuit, charging method and electronic equipment
CN114865755B (en) Multi-battery power supply, charging and discharging method and electronic equipment
CN116529981A (en) Dual battery management circuit and electronic device
CN116569441A (en) Dual battery management circuit and electronic device
CN116418092B (en) Charging control circuit, charging control method and electronic equipment
CN112531803A (en) Method for operating an electronic device comprising at least two batteries and electronic device
CN116707055B (en) Charging circuit, electronic device and reverse charging method
CN115065128B (en) Electronic device and charging control method
US9685808B2 (en) USB energy harvesting
US20230208156A1 (en) Method for switching connection status of cell, power supply system, and electronic device
CN111384754B (en) Charging method, charging device, storage medium and mobile terminal
CN116774092B (en) Battery detection method, circuit, device, chip and readable storage medium
CN112448039B (en) Lithium ion battery and lithium ion battery charging and discharging control method and device
CN116742106B (en) Battery module, charging control method and electronic equipment
CN218829139U (en) Dual-battery management circuit and electronic equipment
CN218829140U (en) Dual-battery management circuit and electronic equipment
CN112688388B (en) Charging device, electronic equipment and charging method
CN116207828B (en) Charging method and electronic equipment

Legal Events

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