Charging and discharging method, device, chip, and readable storage medium
By detecting the voltage of the dual battery in electronic devices such as folding screen mobile phones, disconnecting the charging and discharging circuit of the fully charged battery, and continuing to charge the unfilled battery, the overcharge and capacity loss problems in the charging and discharging management of dual battery are solved, and the problem of overcharge and capacity loss in the charging and discharging management of dual battery is realized. The dual battery is fully charged and discharged at the same time, improving the performance of the mobile phone.
Patent Information
- Application Number
- PCT/CN2024/079358
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-08-02
- Filing Date
- 2024-02-29
- Publication Date
- 2025-02-06
AI Technical Summary
In electronic devices such as folding screen mobile phones, the charging and discharging management of dual batteries has problems such as overcharging and capacity loss, resulting in poor performance of the mobile phone.
By detecting the voltage of the dual battery, if the first battery is full and the second battery is not fully charged, the charging and discharging circuit of the first battery is disconnected and the second battery continues to charge the second battery until it is fully charged. Then reconnect the first battery, stop charging, and ensure that the dual batteries are discharged at the same time.
The dual battery full charge is achieved, which avoids overcharging and capacity loss, improves the performance of the mobile phone, reduces costs, and avoids additional balanced circuit design.
Smart Images

Figure CN2024079358_06022025_PF_FP_ABST
Abstract
Description
Charging and discharging method, device, chip and readable storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on August 2, 2023, with application number 202310964440.8 and application name “Charging and discharging method, device, chip and readable storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of battery technology, and in particular to a charging and discharging method, device, chip, and readable storage medium. Background Art
[0003] At present, with the continuous development of terminal technology, the forms of electronic devices such as mobile phones are also diverse. Taking mobile phones as an example, mobile phones can be divided into single-screen mobile phones and foldable screen mobile phones. Foldable screen mobile phones usually have dual batteries (i.e. two batteries). When the user uses the mobile phone, the dual batteries can power the mobile phone, and the amount of storage capacity of the dual batteries directly affects the performance of the mobile phone, such as the standby time. Therefore, how to make the storage capacity of the dual batteries reach the rated capacity, that is, how to fully charge both batteries to improve the performance of the mobile phone is a technical problem that needs to be solved.
[0004] Summary of the Invention
[0005] To address the above issues, embodiments of the present application provide a charging and discharging method, device, chip, and readable storage medium. This method stops charging a battery in an electronic device after it is fully charged, and continues charging the remaining battery. This fully charges the battery, avoids overcharging or capacity loss, and improves the performance of the mobile phone.
[0006] In a first aspect, the present application provides a charging and discharging method, the method comprising: detecting that a battery module is in a charging state, the battery module comprising multiple batteries; detecting that the voltage of a first battery among the multiple batteries of the battery module reaches a first full-charge voltage of the first battery, and the voltage of a second battery among the multiple batteries does not reach a second full-charge voltage of the second battery, disconnecting the charging and discharging circuit of the first battery, and keeping the charging and discharging circuit of the second battery in a connected state.
[0007] Exemplarily, the charging and discharging method provided in the present application can be applied to an electronic device, and the electronic device can be a folding screen device. In this case, the electronic device includes two parts of the body, and the two parts of the body can be folded along the folding axis of the electronic device. This situation can be shown in Figure 1A later. The first body 101 and the second body 102 in Figure 1A are the two parts of the body of the electronic device. It can be understood that the battery 1 included in Figure 1A refers to the first battery, and the battery 2 refers to the second battery. In addition, Figure 1A also includes a charging module, that is, the electronic device in this application may also include a charging module, which can charge multiple batteries included in the electronic device.
[0008] In the case where the electronic device is a folding screen device, the first battery is usually located together with the charging module in one of the two parts of the electronic device. As shown in Figure 1A, the first battery (battery 1) is located together with the charging module in the first body 101. This layout makes the line between the first battery and the charging module shorter than the line between the second battery and the charging module, resulting in the first charging impedance corresponding to the first battery and the charging module being smaller than the second charging impedance corresponding to the second battery and the charging module. When the voltage is the same, the charging current of the first battery is greater than the charging current of the second battery, that is, the charging speed of the first battery is faster, and the first battery may be fully charged before the second battery, that is, when the voltage of the first battery reaches the first full-charge voltage, the voltage of the second battery has not yet reached the second full-charge voltage.
[0009] When the first battery is fully charged but the second battery is not, the charging of the first battery is discontinued by disconnecting its charge and discharge circuit, while the charging of the second battery, which is not yet fully charged, continues. This method can fully charge multiple batteries included in an electronic device, avoiding overcharging of the battery that is fully charged first, which is caused by continuously charging multiple batteries until all are fully charged, and also avoiding capacity loss of the battery that is not fully charged, which is caused by stopping charging all batteries after one battery is fully charged.
[0010] In a possible implementation of the first aspect above, the method further includes: setting a voltage of a switch control SW pin on the first battery to a first voltage, so that the first battery is disconnected from the first battery charge and discharge circuit.
[0011] In this application, the SW pin is a pin set on the battery protection board during the production line test of the battery. After the production line test, the pin can be retained on the battery protection board so that during the charging process of the battery, the connection or disconnection of the first battery in the charge and discharge circuit is controlled based on the pin according to the method provided in this application. If a first voltage is applied to the SW pin on the first battery, the SW pin will be disconnected, which can also be understood as removing the first battery from the charge and discharge circuit, and the first battery will not be able to perform charge and discharge operations. Among them, the first voltage can be a high level. For example, the first voltage can be the 1.8V mentioned later.
[0012] In a possible implementation of the first aspect above, the method further includes: detecting that the voltage of the second battery reaches a second fully-charged voltage of the second battery, reconnecting the first battery to the charge and discharge circuit of the first battery, and stopping charging of the first battery and the second battery.
[0013] If the voltage of the second battery reaches the second fully charged voltage, it means that the second battery is fully charged. At this time, the first battery needs to be reconnected to the charging and discharging circuit, and the first battery and the second battery are no longer charged. In this way, the first battery and the second battery can be discharged at the same time for consumption by the electronic device.
[0014] In a possible implementation of the first aspect above, the method further includes: setting a voltage of a switch control SW pin on the first battery to a second voltage, so that the first battery is reconnected to the charge and discharge circuit of the first battery, and the second voltage is less than the first voltage.
[0015] If a second voltage is applied to the SW pin, the SW pin will be turned on, that is, the second battery will be connected to the charge and discharge circuit again, and the second battery can perform subsequent charge and discharge operations. The second voltage can be a low level, for example, the second voltage can be 0V mentioned later.
[0016] In a possible implementation of the first aspect above, the method further includes: detecting that the second battery is in a discharging state; detecting that the voltage of the second battery is less than a voltage threshold and the first battery is not connected to the charge and discharge circuit of the first battery, setting the voltage of a switch control SW pin on the first battery to a second voltage so that the first battery is connected to the charge and discharge circuit of the first battery.
[0017] When the second battery is in a discharging state and the first battery is not connected to the charge and discharge circuit, that is, when the first battery is not discharging, if the voltage of the second battery is detected to be less than the voltage threshold, it means that the discharge of the second battery is insufficient to support the use of high-energy consumption applications in the electronic device, and the electronic device may experience lag, screen distortion, etc. Therefore, to avoid this situation, it is necessary to forcibly connect the first battery and set the voltage of the SW pin of the first battery to a second voltage (for example, 0V).
[0018] In a second aspect, the present application provides an electronic device, which includes: a charging module, a battery module, a detection module and a control module, the battery module including multiple batteries; the charging module is used to charge the battery module; the detection module is used to detect the voltage of each battery in the battery module when the battery module is in a charging state; the control module is used to: when the voltage of a first battery among the multiple batteries in the battery module reaches a first full-charge voltage of the first battery, and the voltage of a second battery among the multiple batteries does not reach a second full-charge voltage of the second battery, control the charging and discharging circuit of the first battery to be disconnected, and keep the charging and discharging circuit of the second battery in a connected state.
[0019] In a possible implementation of the second aspect, the electronic device includes two bodies, which are foldable along a folding axis of the electronic device; and the first battery and the charging module are co-located in either body of the two bodies.
[0020] This situation can still be shown in Figure 1A later, and will not be repeated here. As shown in Figure 1A, the line between the first battery and the charging module is shorter than the line between the second battery and the charging module, resulting in the first charging impedance corresponding to the first battery and the charging module being smaller than the second charging impedance corresponding to the second battery and the charging module, and the first battery may be fully charged before the second battery.
[0021] In a possible implementation of the second aspect above, the control module is further used to: when the voltage of the second battery in the discharge state is less than a voltage threshold and the first battery is not connected to the charge and discharge circuit of the first battery, set the voltage of the switch control SW pin on the first battery to the second voltage, so that the first battery is connected to the charge and discharge circuit of the first battery.
[0022] The second voltage may be 0V.
[0023] In a possible implementation of the second aspect above, the charge and discharge circuit of the first battery further includes a switch, which is located on the first battery; and the control module is further used to set the voltage of the switch on the first battery to a first voltage, so that the first battery is disconnected from the charge and discharge circuit of the first battery.
[0024] It can be understood that the switch here refers to the SW pin mentioned in the first aspect above, that is, the SW pin can act as a switch.
[0025] In a possible implementation of the second aspect above, the control module is further configured to, when the voltage of the second battery reaches the second fully-charged voltage of the second battery, reconnect the first battery to the charge and discharge circuit of the first battery and stop charging the first battery and the second battery.
[0026] In a possible implementation of the second aspect above, 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 port (GPIO); one end of the first resistor is connected to the output end of the second battery, the drain of the first field-effect transistor, and one end of the third resistor, and the other end of the first resistor is connected to one end of the second resistor; the other end of the third resistor is connected to the GPIO and one end of the fourth resistor; one end of the fourth resistor is connected to the GPIO, and the other end is connected to the switch on the first battery; the gate of the first field-effect transistor is connected to the other end of the first resistor, and one end of the second resistor; the other end of the second resistor, the source of the first field-effect transistor, and the output end of the second battery are grounded.
[0027] The first resistor corresponds to the resistor R1 in FIG. 4 ; the second resistor corresponds to the resistor R2 ; the third resistor corresponds to the resistor R3 ; the fourth resistor corresponds to the resistor R4 ; and the first field effect transistor corresponds to the MOS transistor.
[0028] In a possible implementation of the second aspect above, the control module further includes a signal processing unit, which is configured to, when the voltage of the first battery reaches a first full-charge voltage, send a first signal to the GPIO to disconnect the first battery from the first battery's charge and discharge circuit; and, when the voltage of the second battery reaches a second full-charge voltage, send a second signal to the GPIO to reconnect the first battery to the first battery's charge and discharge circuit.
[0029] It can be understood that the first signal is used to pull up the voltage of the GPIO. For example, the GPIO voltage can be set to 1.8V. Due to the small resistance of the fourth resistor, the voltage on the SW pin of the first battery can be ensured to remain high, thereby disconnecting the first battery from the charge and discharge circuit. The second signal is used to pull down the voltage of the GPIO. For example, the GPIO voltage can be set to 0V. When the first battery is disconnected from the circuit, the GPIO voltage is 0V, and the voltage on the SW pin of the first battery is also 0V, thereby reconnecting the first battery to the charge and discharge circuit.
[0030] In a third aspect, the present application provides an electronic device comprising: one or more processors; one or more memories; one or more memories storing one or more programs, which, when executed by one or more processors, enables the electronic device to execute the first aspect and any possible charging and discharging method of the first aspect.
[0031] In a fourth aspect, the present application provides a chip for detecting that a battery module is in a charging state, and when the voltage of a first battery among multiple batteries in the battery module reaches a first full-charge voltage of the first battery, and the voltage of a second battery among the multiple batteries does not reach a second full-charge voltage of the second battery, the chip controls the charge and discharge circuit of the first battery to be disconnected, and keeps the charge and discharge circuit of the second battery in a connected state.
[0032] In a fifth aspect, the present application provides an electronic device comprising a battery module and the chip of the fourth aspect.
[0033] In a sixth aspect, the present application provides a computer-readable storage medium having instructions stored thereon, which, when executed on a computer, causes the computer to execute the first aspect and any possible charging and discharging method of the first aspect.
[0034] In the seventh aspect, the present application also provides a computer program product, including: execution instructions, the execution instructions are stored in a readable storage medium, at least one processor of the electronic device can read the execution instructions from the readable storage medium, and at least one processor executes the execution instructions to enable the electronic device to implement the first aspect and any possible charging and discharging method of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] FIG1A is a schematic diagram showing the positional relationship between dual batteries and a charging module within a foldable screen mobile phone according to some embodiments of the present application;
[0036] FIG1B shows a schematic diagram of providing an equalization circuit between a charging module and a battery 1 according to some embodiments of the present application;
[0037] FIG2 is a schematic diagram showing a flow chart of a charging and discharging method according to some embodiments of the present application;
[0038] FIG3 is a schematic diagram showing the structure of a charging and discharging circuit included in an electronic device according to some embodiments of the present application;
[0039] FIG4 shows a schematic diagram of a circuit for forcibly connecting to the battery 1 when the battery is discharging, according to some embodiments of the present application;
[0040] FIG5 shows a schematic structural diagram of an electronic device according to some embodiments of the present application. DETAILED DESCRIPTION
[0041] The illustrative embodiments of the present application include, but are not limited to, battery charging and discharging methods, devices, chips, and readable storage media.
[0042] The following first explains the proper nouns involved in the embodiments of this application.
[0043] Batteries: These typically consist of a battery protection board (PB) and battery cells, which are connected via board-to-board connectors (BTBs). For example, in mobile phones, the batteries typically used are lithium-ion batteries.
[0044] Impedance: In a circuit with resistance, inductance, and capacitance, the resistance to current flow is called impedance. Impedance is often represented by Z, a complex number measured in ohms.
[0045] Battery Fully Charged Voltage: This refers to the maximum charging voltage limit for a battery, also known as the voltage of a fully charged battery. For example, for lithium batteries, the maximum charging voltage limit (full-charge voltage) is typically 4.2V. If the voltage reaches 4.2V, the battery is considered fully charged. Furthermore, during charging, the battery voltage gradually rises to the fully charged voltage. This means that the higher the battery charge, the higher the voltage.
[0046] Battery overcharge: This refers to the act of continuing to charge a battery after it has been fully charged. This also means that when a battery is overcharged, the battery voltage exceeds the full-charge voltage. For example, a lithium battery's full-charge voltage is typically 4.2V. Therefore, if the voltage exceeds 4.2V during charging, the battery will be overcharged.
[0047] When the battery is overcharged, the battery voltage rises rapidly, causing irreversible changes in the structure of the positive electrode active material inside the battery and decomposition of the electrolyte, generating a large amount of gas and releasing a large amount of heat, causing the battery temperature and internal pressure to increase sharply, and the internal diaphragm to melt or shrink, posing hidden dangers of battery explosion and combustion.
[0048] Metal Oxide Semiconductor Field Effect Transistor (MOS): Also known as an insulated gate field effect transistor, MOS transistors are commonly used in amplifiers or switching circuits in general electronic circuits. MOS transistors consist of a source electrode (S), a gate electrode (G), and a drain electrode (D), and are classified into two categories: P-channel enhancement-mode MOS transistors and N-channel enhancement-mode MOS transistors. P-channel enhancement-mode MOS transistors, also known as PMOS transistors, operate in the case where the voltage Vgs between the gate electrode (G) and the source electrode (S) is less than a certain threshold, while N-channel enhancement-mode MOS transistors, also known as NMOS transistors, operate in the case where the voltage Vgs between the gate electrode (G) and the source electrode (S) is greater than a certain threshold, turning on the NMOS transistor.
[0049] Fuel meter: A device used to monitor the charge level of a battery. It uses Faraday's law to accurately calculate the amount of charge passing through the circuit using the amount of substance reacting at the electrodes.
[0050] The following describes the background of the battery charging and discharging method in the embodiment of the present application.
[0051] With the continuous advancement of terminal technology, electronic devices can now include dual batteries—that is, two batteries. Compared to a single battery, dual batteries can store more power. During use, the dual batteries discharge simultaneously, resulting in a greater discharge capacity than a single battery. This simultaneous discharge can also support high-power applications within the electronic device, making the display smoother.
[0052] Taking mobile phones as an example, current mobile phones mainly fall into two categories: single-screen phones and foldable phones. Whether single-screen or foldable, both phones can contain one or more batteries. Taking a foldable phone with dual batteries as an example, when charging a foldable phone, you are essentially charging the dual batteries inside the phone. When the foldable phone is in use, such as when the user is watching a video on the phone, the dual batteries are discharged. In some examples, the dual batteries need to be charged first and then discharged. That is, the dual batteries are charged first. After charging, when the phone is turned on, the dual batteries can be discharged for consumption by the phone.
[0053] When charging the dual batteries of a foldable phone, the dual batteries are charged through a charging module located inside the phone. Because foldable phones typically include two or more parts that can fold together, each part of the phone typically contains a battery. For example, if a foldable phone includes two parts, each part contains a battery. The charging module inside the phone is typically located to one side of one of the dual batteries. As a result, the charging module is closer to one battery and farther from the other.
[0054] Figure 1A shows a schematic diagram illustrating the positional relationship between the dual batteries and the charging module within a foldable phone. In Figure 1A, the foldable phone can be folded up and down, and is in the unfolded state. The upper half of the phone is a first body 101, and the lower half is a second body 102. The first body 101 and the second body 102 each contain a battery: battery 1, and battery 2. Furthermore, the charging module (Charger) is located within the first body 101, meaning it is located on one side of battery 1. As can be seen from Figure 1A, the charging module is connected to both battery 1 and battery 2 via wires, and the length of the wire between the charging module and battery 1 is shorter than the length of the wire between the charging module and battery 2. This is because shorter wires have lower impedance. Therefore, in Figure 1A, the impedance between the charging module and battery 1 is lower than the impedance between the charging module and battery 2.
[0055] When the output voltage of the charging module (i.e., the voltage at point A) is equal to the voltage difference between Battery 1 and Battery 2, the lower the impedance, the greater the current. This means the first current between the charging module and Battery 1 is greater than the second current between the charging module and Battery 2. The greater the current, the faster the charging speed. For batteries of the same model, the battery voltage increases faster, resulting in a shorter full charge time for Battery 1 than for Battery 2. This means that when Battery 1 is fully charged, Battery 2 is not yet fully charged. It can be understood that "fully charged" refers to when the battery voltage reaches the full charge voltage, while "not fully charged" refers to when the battery voltage does not reach the full charge voltage.
[0056] In some implementation schemes, if battery 1 is fully charged, the charging operation of battery 1 and battery 2 is terminated, but battery 2 is not fully charged at this time, which will cause capacity loss of battery 2; if battery 1 is fully charged and charging continues until battery 2 is fully charged, it will cause overcharging of battery 1, resulting in a decrease in the performance of battery 1.
[0057] In order to avoid the situation where the two batteries are fully charged one after another, causing battery capacity loss or overcharging, some embodiments add a balancing circuit between the charging module and the battery on the side with smaller impedance. For example, a balancing circuit is added between the above-mentioned battery 1 and the charging module to increase the impedance between the charging module and battery 1, thereby reducing the current of battery 1 to achieve the purpose of balancing the voltages of the two batteries, so that the two batteries take the same time to be fully charged, reducing the risk of battery capacity loss or overcharging.
[0058] Figure 1B shows a schematic diagram of a balancing circuit positioned between the charging module and battery 1. It should be understood that the arrows in Figure 1B indicate the direction of current flow during charging. In Figure 1B , the impedance between the charging module and battery 1 is lower than the impedance between the charging module and battery 2. Therefore, the balancing circuit is placed on the side with lower impedance, that is, between the charging module and battery 1. Because the balancing circuit increases impedance, the impedance between the charging module and battery 1 increases, resulting in a decrease in the current flowing through battery 1. Since the total current output by the charging module remains constant, the current flowing through battery 2 increases, thus achieving the goal of balancing the currents of batteries 1 and 2. As the current of battery 1 decreases and the current of battery 2 increases, the rate of increase in the voltage of battery 1 slows down while the rate of increase in the voltage of battery 2 accelerates. This balances the voltages of batteries 1 and 2, allowing the voltages of batteries 1 and 2 to reach full charge simultaneously, effectively enabling simultaneous full charge of batteries 1 and 2.
[0059] However, this approach requires the addition of an additional balancing circuit, which is cumbersome and expensive to design. Therefore, to address the aforementioned technical issues, the present application provides a charging and discharging method. In this method, during the charging process of battery 1 and battery 2, the first voltage and second voltage corresponding to battery 1 and battery 2, respectively, at the current moment are detected in real time. If the first voltage reaches the first fully charged voltage of battery 1 but the second voltage has not yet reached the second fully charged voltage of battery 2, the charging and discharging circuit of battery 1 is disconnected, preventing battery 1 from continuing to charge. The charging operation for battery 2 continues until battery 2 is fully charged. This eliminates the need for an additional balancing circuit and effectively reduces costs.
[0060] In some embodiments, a switch control (Switch, SW) pin can be pre-added to battery 1 which is closer to the charging module (or has a smaller impedance to the charging module) so that when it is detected that the first voltage reaches the first full-charge voltage of battery 1 but the second voltage has not yet reached the second full-charge voltage of battery 2, a high level (for example, 1.8V) is input to the SW pin on battery 1 to disconnect the charging and discharging circuit of battery 1.
[0061] It can be understood that the SW pin can be set on the battery protection board in the battery 1. The working principle of the SW pin is that if a high level is given to the SW pin, the SW pin will be disconnected. It can also be understood that the battery protection board of the battery disconnects the output of the battery through the SW pin. This step is equivalent to removing the battery, that is, the battery cannot be charged or discharged. If a low level is given to the SW pin, the SW pin will be turned on, that is, the battery is reconnected to the circuit, and the battery can perform subsequent charging and discharging operations. In the embodiment of the present application, whether the battery is connected to the circuit can be controlled by controlling the level of the SW pin.
[0062] In some embodiments, the battery 1 may be disconnected by any other feasible method to stop charging the battery 1. For example, a switch or a control circuit may be added to the circuit to control the charging process of the battery 1.
[0063] This method discontinues charging of Battery 1 after it is fully charged by disconnecting it from the circuit, thus avoiding the risk of overcharging. Furthermore, Battery 2 continues to charge until the second voltage reaches the second full-charge voltage, ensuring that Battery 2 is fully charged and preventing capacity loss due to an incomplete charge. Furthermore, this method requires no additional balancing circuitry, requiring only the addition of a single SW pin, resulting in lower costs.
[0064] The method provided in the embodiments of the present application can be applied not only to electronic devices containing dual batteries, but also to electronic devices containing more than two batteries. Regardless of the number of batteries, it is sufficient to disconnect the charged batteries from the circuit one by one until the last battery is fully charged.
[0065] It can be understood that the charging and discharging method provided in the embodiment of the present application is applicable to any electronic device with communication functions, including but not limited to mobile phones, tablet computers, computers, wearable devices, augmented reality (AR) devices and other electronic devices. The embodiment of the present application does not limit the type and form of the electronic device.
[0066] The following is a detailed description of the charging and discharging method provided in the embodiments of the present application. The method can be performed by an electronic device. For example, the electronic device includes a battery 1 and a battery 2. As shown in FIG2 , the method may include the following steps:
[0067] 201: Obtain a first voltage of battery 1 and a second voltage of battery 2.
[0068] The embodiments of the present application do not limit the timing at which the electronic device obtains the first voltage and the second voltage. For example, the electronic device can obtain the first voltage and the second voltage in real time, or it can obtain the first voltage and the second voltage only when battery 1 and battery 2 are in a charging state. Taking the example of the electronic device obtaining the first voltage and the second voltage when battery 1 and battery 2 are in a charging state, if battery 1 and battery 2 are being charged, the first voltage of battery 1 in the current charging state and the second voltage of battery 2 in the current charging state can be obtained. The electronic device can obtain the first voltage and the second voltage through a fuel meter or the like.
[0069] 202: If the first voltage reaches the first full-charge voltage and the second voltage does not reach the second full-charge voltage, increase the voltage of the SW pin on battery 1 to disconnect battery 1, stop charging battery 1, and continue charging battery 2.
[0070] It can be understood that the first fully charged voltage is the voltage when battery 1 is fully charged, and the second fully charged voltage is the voltage when battery 2 is fully charged. Taking the electronic device as a mobile phone as an example, under normal circumstances, the fully charged voltage of the battery inside the mobile phone is 4.2V.
[0071] As the batteries continue to charge, their voltage increases. When the battery voltage reaches the full-charge voltage, it indicates that the battery is fully charged. Therefore, in the embodiment of the present application, if the first voltage reaches the first full-charge voltage, it indicates that Battery 1 is fully charged; if the second voltage does not reach the second full-charge voltage, it indicates that Battery 2 is not yet fully charged. At this point, charging of Battery 1 can be discontinued and charging of Battery 2 can continue.
[0072] Methods for stopping battery 1 from charging include, but are not limited to, disconnecting battery 1 from the circuit by setting a high level to the SW pin on battery 1, so that the electronic device can no longer charge battery 1. In some embodiments, the SW pin is a pin provided on the battery protection board during production line testing of the battery. After production line testing, this pin can be retained on the battery protection board so that during the battery charging process, the connection or disconnection of battery 1 in the circuit can be controlled based on this pin according to the methods provided in the embodiments of the present application.
[0073] 203: If the second voltage reaches the second full-charge voltage, the charging operation of the battery 2 is terminated.
[0074] It can be understood that when the second voltage reaches the second fully charged voltage, it means that battery 2 is fully charged and charging of battery 2 can be terminated. At this point, the charging operation of battery 1 and battery 2 has been completed, and both battery 1 and battery 2 are in a fully charged state. Therefore, this battery charging method avoids the risk of overcharging battery 1 and avoids capacity loss of battery 2.
[0075] Figure 3 shows a schematic diagram of the structure of a charge-discharge circuit to which the method provided in an embodiment of the present application is applied, and the charge-discharge circuit is located in an electronic device.
[0076] As shown in FIG3 , 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 a battery 1 and a battery 2 .
[0077] The detection module 301 can detect the voltages of the battery 1 and battery 2 included in the battery module 304 in real time, and obtain a first voltage and a second voltage respectively. Among them, the embodiment of the present application does not limit the timing of the detection module 301 detecting the first voltage and the second voltage. For example, the detection module 301 can detect the first voltage and the second voltage in real time, or it can detect the first voltage and the second voltage only when the battery 1 and the battery 2 are in a charging state. Taking the detection module 301 detecting the first voltage and the second voltage in the charging state of the battery 1 and the battery 2 as an example, 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 can be obtained. It can be understood that the voltage of the battery will increase as the battery is continuously charged, that is, the higher the battery power is during the charging process, the greater the battery voltage will be.
[0078] After the detection module 301 obtains the first and second voltages, the control module 302 can read the first and second voltages from the detection module 301 in real time. For example, the detection module 301 can be a fuel gauge. Alternatively, the detection module 301 can be any other module capable of performing detection functions and having storage capabilities. For example, using the detection module 301 with storage capabilities, after obtaining the first and second voltages, the detection module 301 stores the first and second voltages internally for easy access by the control module 302.
[0079] After the control module 302 reads the first voltage and the second voltage, it compares the first voltage with the first full-charge voltage and the second voltage with the second full-charge voltage to determine whether the first voltage has reached the first full-charge voltage and whether the second voltage has reached the second full-charge voltage. If neither the first voltage nor the second voltage has reached the corresponding full-charge voltage, the control module 302 may send an instruction to the charging module 303 to notify the charging module 303 to continue charging battery 1 and battery 2. The charging module may be a charging chip, etc. It can be understood that the first full-charge voltage is the voltage of battery 1 in a fully charged state, the second full-charge voltage is the voltage of battery 2 in a fully charged state, and the first full-charge voltage and the second full-charge voltage may be the same or different, and the embodiment of the present application does not limit this.
[0080] If the first voltage reaches the first full-charge voltage, but the second voltage does not reach the second full-charge voltage, it means that battery 1 is fully charged, but battery 2 is not yet fully charged. At this time, in order to avoid the risk of overcharging battery 1 by continuing to charge battery 1, the control module 302 gives the SW pin on battery 1 a high level (for example, 1.8V). At this time, the SW pin will be disconnected, that is, battery 1 is disconnected from the circuit, the charging module 303 can no longer charge battery 1, and the detection module 301 cannot detect the voltage of battery 1. In addition, the control module 302 can also send instructions to the charging module 303, notifying the charging module 303 to continue charging. Because battery 1 has been disconnected from the circuit at this time, the charging module 303 cannot continue to charge battery 1, but battery 2 is still in the circuit, so the charging module 303 can continue to charge battery 2.
[0081] When battery 1 has finished charging and battery 2 is still charging, if detection module 301 detects that the third voltage of battery 2 has reached the second fully-charged voltage, it indicates that battery 2 is fully charged. The third voltage can also be understood as the voltage of battery 2 at the moment immediately following the current moment. In other words, detection module 301 needs to monitor the voltage of battery 2 in real time so that control module 302 can control charging module 303 to terminate charging of battery 2 and reconnect battery 1 to the circuit when battery 2 is fully charged.
[0082] After detecting that the third voltage of battery 2 has reached the second fully-charged voltage, battery 1 can be reconnected to the circuit to discharge both batteries 1 and 2 simultaneously. Control module 302 can set the SW pin on battery 1 to a low level (e.g., 0V) to reconnect battery 1 to the circuit. At this point, both batteries 1 and 2 are in the circuit. In this case, batteries 1 and 2 will discharge together at full charge to maintain the electronic device's power-on state and be consumed by various applications within the electronic device.
[0083] In addition, the control module 302 sends a charging stop instruction to the charging module 303, notifying the charging module 303 not to perform the charging operation any more, so as to avoid continuing to charge the battery 2 and causing the risk of overcharging the battery 2.
[0084] As described above, the electronic device including the charging and discharging circuit provided in the embodiment of the present application stops charging one battery after detecting that the battery is fully charged, while continuing to charge the other battery that is not yet fully charged until charging is complete. This method can avoid overcharging the battery that is fully charged first due to continuously charging both batteries until both are fully charged, and can also avoid capacity loss in the battery that is not fully charged due to stopping charging both batteries after one battery is fully charged.
[0085] When Battery 2 is fully charged and the control module reconnects Battery 1 to the circuit, if the control module fails, meaning Battery 1 is not reconnected, only Battery 2 will discharge, supplying power to the phone. When the phone experiences high energy consumption, this is manifested by a rapid drop in Battery 2's voltage. If the discharge of Battery 2 is insufficient to support high-energy applications on the phone, the phone may experience freezing or screen distortion, impacting the user experience.
[0086] Therefore, the charging and discharging circuit in the embodiment of the present application also has the function of forcing Battery 1 to be connected to the circuit when the voltage of Battery 2 is lower than the first threshold and Battery 1 is not connected to the circuit, so that Battery 1 and Battery 2 discharge together to supply power to the mobile phone. The embodiment of the present application does not limit the value of the first threshold. For example, the first threshold can be set based on experience or flexibly adjusted according to actual application scenarios.
[0087] Figure 4 shows a schematic diagram of a circuit for forcibly connecting battery 1. As shown in Figure 4, the circuit includes battery 1, battery 2, a MOS tube, resistors R1, R2, R3, and R4. Battery 1 has an SW pin, which is connected to one end of resistor R4. In addition, the other end of resistor R4 is connected to the general purpose input output (GPIO) and one end of resistor R3. One end of resistor R3 is connected to the GPIO and resistor R4, and the other end is connected to the drain of the MOS tube, one end of resistor R1, and the positive electrode of battery 2.
[0088] It is understood that GPIO can also be referred to as "IO port" for short. GPIO can be used as both an input port and an output port, and is usually used for switch control. In the embodiment of the present application, the disconnection 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 can be controlled by software code. For example, a high level (for example, 1.8V) can be given to the GPIO by calling a GPIO pull-up function, and a low level (for example, 0V) can be given to the GPIO by calling a GPIO pull-down function.
[0089] In addition, resistors R1 and R2 are connected in series to divide the voltage of battery 2. One end of resistor R1 is connected to one end of resistor R3, the drain of the MOS transistor, and the positive electrode of battery 2. The other end of resistor R1 is connected to one end of resistor R2. The other end of resistor R2 is grounded. The negative electrode of battery 2 is also grounded.
[0090] The MOS transistor is a PMOS transistor. The source of the MOS transistor is grounded, and the gate is connected to point B, the voltage divider between resistors R1 and R2. That is, the gate voltage of the MOS transistor is the voltage at point B. The characteristic of this MOS transistor is that when the voltage difference Vgs between the gate and the source is less than a threshold, the MOS transistor is turned on; otherwise, the MOS transistor is turned off.
[0091] Because the source of the MOS transistor in Figure 4 is grounded, the source voltage is 0. That is, when the gate voltage of the MOS transistor is less than the second threshold value of the MOS transistor's turn-on voltage, the MOS transistor is turned on. It will be understood that the second threshold value is determined according to the different models of the MOS transistor. After determining the first threshold value of battery 2, a MOS transistor with a turn-on voltage of the second threshold value can be selected based on the first threshold value. This application does not limit the value of the second threshold value, as long as the second threshold value is less than the first threshold value. In addition, after both the first and second threshold values are determined, the resistance values of resistors R1 and R2 for voltage division can be determined based on the values of the first and second threshold values. As long as the voltage at point B in Figure 4 is the second threshold value after the voltage of the first threshold value of battery 2 is divided by resistors R1 and R2, it can be ensured that the voltage at the gate of the MOS transistor is less than the second threshold value. That is, when the voltage of battery 2 is less than the first threshold value, the MOS transistor can be turned on.
[0092] The control principle of the circuit is introduced below based on the circuit structure in FIG4 .
[0093] In the circuit shown in Figure 4, when battery 1 is fully charged but battery 2 is not, the control module can pull the GPIO high (i.e., give the GPIO a high level), for example, setting the GPIO voltage to 1.8V. Since the MOS transistor is disconnected at this time, resistor R4 is connected in parallel with resistor R3 and in series with battery 1. The GPIO voltage, after being divided by resistor R4, is distributed to the SW interface of battery 1. Since resistor R4 is a small resistor, the voltage division is small, which can ensure a high voltage at the SW pin. Disconnecting the SW pin disconnects battery 1 from the circuit, preventing battery 1 from charging or discharging.
[0094] After battery 1 is disconnected from the circuit, it continues to charge battery 2. When battery 2 is also fully charged, battery 1 needs to be reconnected to the circuit so that both batteries 1 and 2 can be discharged simultaneously for consumption by the mobile phone. Therefore, the control module can pull down the GPIO (i.e., give the GPIO a low level), for example, by setting the GPIO voltage to 0V. The voltage of the SW pin is low, so that battery 1 can be connected to the circuit.
[0095] When battery 2 is fully charged, if the control module fails—that is, adjusting the GPIO voltage does not reconnect battery 1 to the circuit, meaning only battery 2 is discharging—if the voltage across battery 2 is less than the first threshold, and the gate voltage of the MOS transistor is less than the second threshold, the MOS transistor conducts. At this point, the right end of resistor R3 is grounded through the conducting MOS transistor, and the voltage is 0. Because battery 1 is disconnected from the circuit, the voltage at the SW pin is 0V regardless of whether the GPIO voltage is high or low. At this point, the SW pin conducts, connecting battery 1 to the circuit. At this point, battery 1 can discharge together with battery 2 to power the phone.
[0096] In the circuit provided above, when the voltage of the SW pin is controlled by the GPIO voltage to allow battery 1 to be reconnected to the circuit, if this method does not work, that is, battery 1 is not connected to the circuit, resulting in battery 1 and battery 2 being unable to discharge together, the MOS tube can be connected to ground to force the voltage of the SW pin to 0V, and then battery 1 can be connected to the circuit.
[0097] Therefore, compared to discharging Battery 2 before it's fully charged, the method and circuit provided above can fully charge Battery 1 and Battery 2, allowing Battery 1 and Battery 2 to be charged more fully and thus discharged more. Furthermore, this method and corresponding charging and discharging circuit can also prevent phone freezes, screen distortion, and other issues caused by Battery 1 not being connected to the circuit after Battery 2 is fully charged, and Battery 2's power level being insufficient to support the phone's consumption, thereby improving the user experience.
[0098] In addition, it can be understood that the charging and discharging method provided in the embodiment of the present application is not only applicable to charging dual batteries, but also applicable to full charging of more than two batteries. Taking the charging of three batteries, battery 1, battery 2 and battery 3 as an example, if it is detected that battery 1 is fully charged, but battery 2 and battery 3 are not fully charged, battery 1 is disconnected from the circuit so that battery 1 cannot be charged or discharged, and then battery 2 and battery 3 are continued to be charged. If it is detected that battery 2 is also fully charged, but battery 3 is still not fully charged, battery 2 is disconnected from the circuit so that battery 2 cannot be charged or discharged, and then battery 3 is continued to be charged. If it is detected that battery 3 is fully charged, battery 3 is not charged anymore, and battery 1 and battery 2 are connected to the circuit again, so that battery 1, battery 2 and battery 3 are discharged at the same time for consumption by the mobile phone.
[0099] In addition, the present application provides an electronic device comprising: one or more processors; one or more memories; one or more memories storing one or more programs, and when one or more programs are executed by one or more processors, the electronic device executes the charging and discharging method provided in an embodiment of the present application.
[0100] The present application provides a chip that is used to detect that a battery module is in a charging state. When the voltage of a first battery among multiple batteries in the battery module reaches a first full-charge voltage of the first battery and the voltage of a second battery among the multiple batteries does not reach a second full-charge voltage of the second battery, the chip controls the charge and discharge circuit of the first battery to be disconnected and keeps the charge and discharge circuit of the second battery in a connected state. In addition, the chip can also be used to execute the charge and discharge method provided in an embodiment of the present application.
[0101] The present application provides an electronic device, comprising the aforementioned battery module and chip.
[0102] The present application provides a computer-readable storage medium having instructions stored thereon. When the instructions are executed on a computer, the computer executes the charging and discharging method provided in an embodiment of the present application.
[0103] The present application also provides a computer program product, including: execution instructions, the execution instructions are stored in a readable storage medium, at least one processor of an electronic device can read the execution instructions from the readable storage medium, and at least one processor executes the execution instructions so that the electronic device implements the charging and discharging method provided in an embodiment of the present application.
[0104] 5 shows a schematic structural diagram of an electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging 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, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195. 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 light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, etc.
[0105] It should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0106] The power management module 141 may include the charging and discharging circuits provided in the embodiments of the present application, so that the batteries 142 included in the electronic device 100 can be fully charged. The batteries 142 may include multiple batteries such as the aforementioned battery 1 and battery 2, and the embodiments of the present application are not limited thereto.
[0107] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0108] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0109] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can directly call it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves system efficiency. The processor can be used to execute the battery charging method described in this application.
[0110] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0111] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0112] The mobile communication module 150 can provide wireless communication solutions including 2G / 3G / 4G / 5G applied on the electronic device 100.
[0113] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0114] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0115] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with a network and other devices via wireless communication technologies. Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. The GPU is a microprocessor for image processing that connects display screen 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.
[0116] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0117] The internal memory 121 can be used to store computer executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.
[0118] The SIM card interface 195 is used to connect a SIM card.
[0119] It will be understood that, as used herein, the term "module" may refer to or include, or be part of, an application specific integrated circuit (ASIC), an electronic circuit, a processor (shared, dedicated, or group) and / or memory that executes one or more software or firmware programs, a combinational logic circuit, and / or other appropriate hardware components that provide the described functionality.
[0120] It is understood that in each embodiment of the present application, the processor can be a microprocessor, a digital signal processor, a microcontroller, etc., and / or any combination thereof. According to another aspect, the processor can be a single-core processor, a multi-core processor, etc., and / or any combination thereof.
[0121] The various embodiments disclosed in this application can be implemented in hardware, software, firmware, or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes 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.
[0122] Program code can be applied to input instructions to perform the functions described herein and generate output information. The output information can be applied to one or more output devices in a known manner. For 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.
[0123] Program code can be implemented with a high-level programming language or an object-oriented programming language to communicate with the processing system. Where necessary, program code can also be implemented in assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any particular programming language. In either case, the language can be a compiled language or an interpreted language.
[0124] 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 or stored on one or more temporary or non-temporary 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. Therefore, 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 disks, optical disks, optical discs, 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 a tangible machine-readable memory for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in electrical, optical, acoustic, or other forms of propagation signals. Therefore, 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).
[0125] In the accompanying drawings, some structural or method features may be shown in a particular arrangement and / or order. However, it should be understood that such a particular arrangement and / or order may not be required. Rather, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of a structural or method feature in a particular figure does not imply that such feature is required in all embodiments, and in some embodiments, such features may not be included or may be combined with other features.
[0126] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems raised by this application. In addition, in order to highlight the innovative part of this application, the above-mentioned device embodiments of this application do not introduce units / modules that are not closely related to solving the technical problems raised by this application. This does not mean that other units / modules do not exist in the above-mentioned device embodiments.
[0127] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "including a" does not exclude the presence of other identical elements in the process, method, article or device that includes the element.
[0128] While the present 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 present application.
Claims
1. A charging and discharging method, characterized in that: The method comprises: detecting that a battery module is in a charging state, wherein the battery module includes a plurality of batteries; Detecting that the voltage of a first battery among the multiple batteries of the battery module reaches a first full-charge voltage of the first battery, and the voltage of a second battery among the multiple batteries does not reach a second full-charge voltage of the second battery, disconnecting a charge and discharge circuit of the first battery, and keeping a charge and discharge circuit of the second battery in a connected state; When the voltage of the second battery in the discharge state is less than the voltage threshold and the first battery is not connected to the charge and discharge circuit of the first battery, the voltage of the switch control SW pin on the first battery is set to a second voltage by turning on the first field effect transistor and grounding it, so that the first battery is connected to the charge and discharge circuit of the first battery; Among them, the source of the first field effect transistor is grounded, the gate of the first field effect transistor is connected to one end of the first resistor and one end of the second resistor, the drain of the first field effect transistor is connected to the second battery and one end of the third resistor, the other end of the third resistor is connected to one end of the fourth resistor, and the other end of the fourth resistor is connected to the first battery.
2. The method according to claim 1, characterized in that: The step of disconnecting the charge and discharge circuit of the first battery includes: The voltage of the switch control SW pin on the first battery is set to a first voltage, so that the first battery is disconnected from the charge and discharge circuit of the first battery.
3. The method according to claim 1, characterized in that The method further comprises: When it is detected that the voltage of the second battery reaches the second full-charge voltage of the second battery, the first battery is reconnected to the charging and discharging circuit of the first battery, and charging of the first battery and the second battery is stopped.
4. The method according to claim 3, characterized in that The step of reconnecting the first battery to the charge and discharge circuit of the first battery includes: The voltage of the switch control SW pin on the first battery is set to a second voltage, so that the first battery is reconnected to the charge and discharge circuit of the first battery, and the second voltage is lower than the first voltage.
5. The method according to any one of claims 1 to 4, characterized in that: The method is applied to an electronic device, wherein the electronic device comprises a charging module, and a first charging impedance corresponding to the first battery and the charging module is smaller than a second charging impedance corresponding to the second battery and the charging module.
6. The method according to claim 5, characterized in that The electronic device comprises two parts of the body, and the two parts of the body can be folded along the folding axis of the electronic device; The first battery and the charging module are located together in any one of the two parts of the body.
7. The method according to claim 1, characterized in that The method further comprises: detecting that the second battery is in a discharging state; It is detected that the voltage of the second battery is less than a voltage threshold and the first battery is not connected to the charge and discharge circuit of the first battery, and the voltage of the switch control SW pin on the first battery is set to a second voltage so that the first battery is connected to the charge and discharge circuit of the first battery.
8. An electronic device, characterized in that: include: A charging module, a battery module, a detection module and a control module, wherein the battery module includes a plurality of batteries; The charging module is used to charge the battery module; The detection module is used to detect the battery module when the battery module is in a charging state. Pressure; The control module is used for: When the voltage of a first battery among the multiple batteries of the battery module reaches a first full-charge voltage of the first battery, and the voltage of a second battery among the multiple batteries does not reach a second full-charge voltage of the second battery, 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 connected state; When the voltage of the second battery in the discharge state is less than the voltage threshold and the first battery is not connected to the charge and discharge circuit of the first battery, the voltage of the switch control SW pin on the first battery is set to a second voltage by turning on the first field effect transistor and grounding it, so that the first battery is connected to the charge and discharge circuit of the first battery; Among them, the source of the first field effect transistor is grounded, the gate of the first field effect transistor is connected to one end of the first resistor and one end of the second resistor, the drain of the first field effect transistor is connected to the second battery and one end of the third resistor, the other end of the third resistor is connected to one end of the fourth resistor, and the other end of the fourth resistor is connected to the first battery.
9. The electronic device according to claim 8, characterized in that: The charging and discharging circuit of the first battery further includes a switch, and the switch is located on the first battery; and The control module is further used to set the voltage of the switch on the first battery to a first voltage, so that the first battery is disconnected from the charging and discharging circuit of the first battery.
10. The electronic device according to claim 8, characterized in that: The control module is further used to reconnect the first battery to the charging and discharging 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 according to claim 10, characterized in that: The control module also includes a first resistor, a second resistor, a third resistor, a fourth resistor, a first field effect transistor and a general purpose input and output port GPIO; One end of the first resistor is connected to the output end of the second battery, the drain of the first field effect transistor and one end of the third resistor, and the other end of the first resistor is connected to one end of the second resistor; The other end of the third resistor is connected to the GPIO and one end of the fourth resistor; One end of the fourth resistor is connected to the GPIO, and the other end is connected to the switch on the first battery; The gate of the first field effect transistor is connected to the other end of the first resistor and one end of the second resistor; The other end of the second resistor, the source of the first field effect transistor and the output end of the second battery are grounded.
12. The electronic device according to claim 11, characterized in that: The control module also includes a signal processing unit, The signal processing unit is configured to, when the voltage of the first battery reaches the first full-charge voltage, send a first signal to the GPIO so that the first battery is disconnected from the charging and discharging circuit of the first battery; When the voltage of the second battery reaches the second fully-charged voltage, a second signal is given to the GPIO, so that the first battery is reconnected to the charging and discharging circuit of the first battery.
13. The electronic device according to any one of claims 8 to 12, characterized in that: A first charging impedance corresponding to the first battery and the charging module is smaller than a second charging impedance corresponding to the second battery and the charging module.
14. The electronic device according to claim 13, characterized in that: The electronic device comprises two parts of the body, and the two parts of the body can be folded along the folding axis of the electronic device; The first battery and the charging module are located together in any one of the two parts of the body.
15. An electronic device, characterized in that: include: one or more processors; One or more memories; the one or more memories store one or more programs, and when the one or more programs are executed by the one or more processors, the electronic device executes the charging and discharging method according to any one of claims 1 to 7.
16. A chip, characterized in that: The chip is used to detect that the battery module is in a charging state, and when the voltage of a first battery among the multiple batteries of the battery module reaches a first full-charge voltage of the first battery and the voltage of a second battery among the multiple batteries does not reach a second full-charge voltage of the second battery, control the charging and discharging circuit of the first battery to be disconnected, and keep the charging and discharging circuit of the second battery in a connected state; When the voltage of the second battery in the discharge state is less than the voltage threshold and the first battery is not connected to the charge and discharge circuit of the first battery, the voltage of the switch control SW pin on the first battery is set to a second voltage by turning on the first field effect transistor and grounding it, so that the first battery is connected to the charge and discharge circuit of the first battery; Among them, the source of the first field effect transistor is grounded, the gate of the first field effect transistor is connected to one end of the first resistor and one end of the second resistor, the drain of the first field effect transistor is connected to the second battery and one end of the third resistor, the other end of the third resistor is connected to one end of the fourth resistor, and the other end of the fourth resistor is connected to the first battery.
17. An electronic device, characterized in that: Comprising a battery module and the chip according to claim 16.
18. A computer-readable storage medium, characterized in that: The readable storage medium stores instructions, and when the instructions are executed on a computer, the computer is caused to execute the charging and discharging method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Double-battery circuit, control method thereof and electronic equipment
CN113809812A
Charging circuit, method and device, electronic equipment and medium
CN116111659A
Charging and discharging method and device, chip and readable storage medium
CN116707097A
Self dormancy control circuit and battery system
CN201022151Y
Control circuit
CN206628884U