Dual battery power supply circuit and method

CN122203477BActive Publication Date: 2026-08-07SHENZHEN CHUANGYINGXIN IND CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN CHUANGYINGXIN IND CO LTD
Filing Date
2026-05-12
Publication Date
2026-08-07

AI Technical Summary

Technical Problem

[0003]本发明提供一种双电池供电电路、方法及计算机设备,用于解决电池利用率低、供电连续性差,难以满足设备在长时间运行及突发断电场景下的稳定供电需求的问题

Benefits of technology

[0007]上述双电池供电电路、方法及计算机设备所提供的一个方案中,首先,根据对适配器接入状态的检测以及对内置电池单元与外置电池单元的电池状态信息的实时获取,从而使电路具备对当前供电环境及电池运行状态的感知能力;其次,根据适配器的接入状态与电池状态信息对第一电池管理芯片与第二电池管理芯片的充电参数进行动态设置,从而实现对不同电池单元充电过程的针对性调节;再者,根据对第一开关单元与第二开关单元的通断控制,实现内置电池单元与外置电池单元电能传输路径的切换。在整个技术方案中,在双电池使用场景下实现了参数调节与路径切换的协同控制,从而确保双电池的充放电过程的连续性与稳定性,满足设备在长时间运行及突发断电场景下的稳定供电需求。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122203477B_ABST
    Figure CN122203477B_ABST
Patent Text Reader

Abstract

The application is suitable for the technical field of device power management, and provides a double-battery power supply circuit and method. The circuit involves: a controller detecting the access state of an adapter and reading the battery state information of a built-in battery unit and an external battery unit in real time through a communication bus; the controller dynamically setting the first charging parameter of a first battery management chip and the second charging parameter of a second battery management chip through the communication bus according to the access state of the adapter and the battery state information; and the controller controlling the on-off of a first switch unit and a second switch unit to switch the power transmission path of the external battery unit and the built-in battery unit under the corresponding charging parameters. The application can realize the cooperative control of parameter adjustment and path switching in the double-battery use scene, and meet the stable power supply demand of the device in the long-time running and sudden power failure scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power management technology for equipment, and in particular to a dual-battery power supply circuit and method. Background Technology

[0002] In the field of equipment power management technology, the charging and discharging control of equipment with single or multiple power sources is involved to achieve continuous and stable operation of the equipment. Related single-battery or simple dual-battery management methods achieve power switching through independent charging and discharging. However, this method suffers from a single charging and discharging strategy and the inability to dynamically adjust according to battery status, resulting in low battery utilization, poor power supply continuity, and difficulty in meeting the stable power supply requirements of equipment during long-term operation and sudden power outages. Summary of the Invention

[0003] This invention provides a dual-battery power supply circuit, method, and computer device to solve the problems of low battery utilization, poor power supply continuity, and difficulty in meeting the stable power supply requirements of the device during long-term operation and sudden power outage scenarios.

[0004] In a first aspect, embodiments of this application provide a dual-battery power supply circuit, including: Controller; The built-in battery module includes a first switching unit and a built-in battery unit; An external battery module includes a second switching unit and an external battery unit; The first battery management chip has its output terminal connected to the power supply terminal of the device motherboard and connected to the built-in battery unit through the first switching unit; The second battery management chip has an input terminal for connecting to an adapter, an output terminal for connecting to the input terminal of the first battery management chip, and is connected to the external battery unit through the second switching unit. The first switching unit and the second switching unit are controlled by the controller. The controller is connected to the first battery management chip and the built-in battery module via a communication bus, and is also connected to the second battery management chip and the external battery module. The second battery management chip and the first battery management chip form a front-to-back power management structure. The second battery management chip and the first battery management chip are respectively used to transmit or control power at different stages, so that a stage-reconstructed power transmission path is formed between the adapter, the external battery module, the internal battery module and the device motherboard. The controller is configured to: The connection status of the adapter is detected, and the battery status information of the built-in battery unit and the external battery unit is read in real time through the corresponding communication bus; Based on the adapter's access status and the battery status information, the first charging parameters of the first battery management chip and the second charging parameters of the second battery management chip are dynamically set via the corresponding communication bus. Controlling the on / off state of the first switch unit and the second switch unit to switch the power transmission path between the external battery unit and the internal battery unit under corresponding charging parameters.

[0005] Secondly, embodiments of this application provide a computer device, the computer device including a device motherboard and the aforementioned dual-battery power supply circuit, the output terminal of the dual-battery power supply circuit being connected to the power supply terminal of the device motherboard and supplying power to the device motherboard.

[0006] Thirdly, embodiments of this application provide a dual-battery power supply method, including: The controller detects the connection status of the adapter and reads the battery status information of the built-in battery unit and the external battery unit in real time through the corresponding communication bus. The controller dynamically sets the first charging parameters of the first battery management chip and the second charging parameters of the second battery management chip through the corresponding communication bus based on the access status of the adapter and the battery status information. The controller controls the on / off state of the first and second switching units to switch the power transmission paths of the external battery unit and the internal battery unit under corresponding charging parameters.

[0007] In one solution provided by the aforementioned dual-battery power supply circuit, method, and computer equipment, firstly, by detecting the adapter connection status and acquiring real-time battery status information of the built-in and external battery units, the circuit gains the ability to perceive the current power supply environment and battery operating status. Secondly, based on the adapter connection status and battery status information, the charging parameters of the first and second battery management chips are dynamically set, thereby achieving targeted adjustment of the charging process of different battery units. Thirdly, by controlling the on / off state of the first and second switching units, the power transmission path between the built-in and external battery units is switched. In this entire technical solution, coordinated control of parameter adjustment and path switching is achieved in a dual-battery usage scenario, ensuring the continuity and stability of the charging and discharging process of the dual batteries and meeting the stable power supply requirements of the equipment under long-term operation and sudden power outage scenarios. Attached Figure Description

[0008] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0009] Figure 1 This is a schematic diagram of the dual-battery power supply circuit in one embodiment of the present invention; Figure 2(a) is a schematic diagram of the dual-battery power supply circuit charging the built-in battery unit and supplying power to the device motherboard in an embodiment of the present invention when the adapter is connected; Figure 2(b) is a schematic diagram of the dual-battery power supply circuit charging the external battery unit and supplying power to the device motherboard in an embodiment of the present invention when the adapter is connected; Figure 3(a) is a schematic diagram of the dual-battery power supply circuit charging the built-in battery unit and supplying power to the device motherboard in an embodiment of the present invention when the adapter is not connected; Figure 3(b) is a schematic diagram of the dual-battery power supply circuit supplying power to the device motherboard in an embodiment of the present invention when the adapter is not connected; Figure 4 This is a flowchart illustrating a dual-battery power supply method according to an embodiment of the present invention; Figure 5 This is one embodiment of the present invention. Figure 4 The flowchart of step S20 is shown below; Figure 6 This is another embodiment of the present invention. Figure 4 The flowchart of step S20 is shown. Detailed Implementation

[0010] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0011] It should be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or collections thereof. It should also be understood that, as used in this specification and the appended claims, the term "and / or" refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0012] Furthermore, in the description of this invention and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0013] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of the invention include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0014] It should be understood that the sequence number of each step in the following embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0015] To illustrate the technical solution of the present invention, specific embodiments are described below.

[0016] In existing power management solutions for equipment, single-cell or simple dual-cell systems often employ independent charging and discharging control and fixed strategies. The main technical problem lies in the lack of dynamic sensing and collaborative scheduling capabilities for battery status. On one hand, the absence of a unified status assessment and linkage control mechanism among the batteries results in them still charging and discharging according to preset paths even when their charge level, health status, or load changes, failing to achieve dynamic optimization of power supply paths and power allocation. On the other hand, charging voltage, current, and switching strategies are typically statically configured and cannot be adaptively adjusted based on battery differences, easily leading to overuse or underutilization of some batteries, thereby reducing overall battery utilization.

[0017] To address the above problems, this application proposes a dual-battery power supply circuit, such as... Figure 1 As shown, the dual-battery power supply circuit includes: Controller 10; The built-in battery module 20 includes a first switching unit 21 and a built-in battery unit 22, which is used to provide power to the built-in battery. The external battery module 30 includes a second switching unit 31 and an external battery unit 32, which are used to provide external battery power; The first battery management chip 40 has its output terminal connected to the power supply terminal of the device motherboard 70 and connected to the built-in battery unit 22 through the first switching unit 21, for controlling the charging and discharging process of the built-in battery unit 22. The second battery management chip 50 has an input terminal for connecting to the adapter 60, an output terminal for connecting to the input terminal of the first battery management chip 40, and is connected to the external battery unit 32 through the second switch unit 31, for controlling the charging and discharging process of the external battery unit 32.

[0018] Furthermore, the first switch unit 21 and the second switch unit 31 are controlled by the controller 10; that is, the first switch unit 21 controls the charging and discharging path of the built-in battery unit 22 based on the controller 10, and the second switch unit 31 controls the charging and discharging path of the external battery unit 32 based on the controller 10.

[0019] Furthermore, the controller 10 is connected to the first battery management chip 40 and the built-in battery module 20 via a communication bus, and is also connected to the second battery management chip 50 and the external battery module 30 via a communication bus; that is, the controller 10 is connected to the first battery management chip 40 and the built-in battery module 20 via the first communication bus, and is connected to the second battery management chip 50 and the external battery module 30 via the second communication bus.

[0020] Furthermore, the second battery management chip 50 and the first battery management chip 40 form a power management structure that connects the front and rear stages. The second battery management chip 50 and the first battery management chip 40 are used to transmit or control power at different stages, so that a stage-reconstructed power transmission path is formed between the adapter 60, the external battery module 30, the internal battery module 20 and the device motherboard 70.

[0021] In other words, the second battery management chip 50 is located near the adapter 60 and the external battery module 30, while the first battery management chip 40 is located near the internal battery module 20 and the device motherboard 70. The two form a power processing relationship that connects the front-end path to the back-end path. According to this power processing relationship, in different charging and discharging stages, the second battery management chip 50 and the first battery management chip 40 respectively transmit or control the power in the corresponding power transmission path, so that the power between the adapter 60, the external battery module 30, the internal battery module 20 and the device motherboard 70 can establish corresponding power transmission paths according to different operating stages, and enable the dual-battery structure to simultaneously have the circuit control relationship for external power supply and internal power transfer between batteries.

[0022] Furthermore, compared to the method of connecting the two battery management chips in parallel to the adapter 60, this technical solution uses the front-to-back connection between the two battery management chips, and puts one battery management chip in the main working state while the other battery management chip is in the auxiliary transmission or idle state, thereby avoiding the power distribution conflict and control coupling problem caused by the two battery management chips independently regulating the input power at the same time.

[0023] Controller 10 is configured as follows: The connection status of the adapter 60 is detected, and the battery status information of the built-in battery unit 22 and the external battery unit 32 is read in real time through the corresponding communication bus. Based on the connection status and battery status information of the adapter 60, the first charging parameters of the first battery management chip 40 and the second charging parameters of the second battery management chip 50 are dynamically set through the corresponding communication bus. The first switch unit 21 and the second switch unit 31 are controlled to switch the power transmission path between the external battery unit 32 and the internal battery unit 22 under the corresponding charging parameters.

[0024] For example, the controller 10 detects the connection status of the adapter 60, where the adapter 60 represents a power supply device for providing external power input to the circuit, such as a DC power adapter or an AC-to-DC power adapter, and its connection status is used to characterize whether the current circuit has external power input. After identifying the connection status of the adapter 60 or at the same time as identifying the connection status of the adapter 60, the controller 10 establishes a communication connection with the built-in battery unit 22 and the first battery management chip 40 through a first communication bus, and establishes a communication connection with the external battery unit 32 and the second battery management chip 50 through a second communication bus; wherein, the first communication bus represents a communication interaction path for data interaction between the controller 10 and the built-in battery management path, and the second communication bus represents a communication interaction path for data interaction between the controller 10 and the external battery management path, such as an I2C bus or an SMBUS bus. After establishing communication interaction, the controller 10 sends a status read request to the detection interface corresponding to the built-in battery unit 22 and the external battery unit 32 according to the established communication protocol, so that the battery unit returns the currently collected battery status information to the controller 10; wherein, the battery status information represents a set of data used to reflect the current operating status of the battery, such as parameters such as battery voltage, battery current, battery temperature and remaining battery power.

[0025] For example, based on the access status of the adapter 60 and the battery status information of the built-in battery unit 22 and the external battery unit 32, the controller 10 determines the power transmission path of the current circuit. That is, the access status of the adapter 60 is used to distinguish whether the current circuit is in an operating environment with external power supply or only relies on battery power supply, and the battery status information is used to reflect the current energy level and working status of each battery unit. Based on this, it is determined whether the adapter 60 charges the built-in battery unit 22 or the external battery unit 32, or whether the built-in battery unit 22 or the external battery unit 32 discharges power to the device motherboard 70. Based on the above determination results, the controller 10 sends a configuration command for the first charging parameters to the first battery management chip 40 via the first communication bus, and sends a configuration command for the second charging parameters to the second battery management chip 50 via the second communication bus, so that the corresponding battery management chip adjusts its internal charging control process according to the received configuration command. The first charging parameter represents the control parameters used to adjust and limit the charging process of the built-in battery unit 22, and the second charging parameter represents the control parameters used to adjust and limit the charging process of the external battery unit 32, such as charging voltage, charging current, charging cut-off voltage, charging current limit value, or charging power limit value. Based on this, the controller 10 sets different combinations of charging parameters for each battery unit, so that the first battery management chip 40 and the second battery management chip 50 can adjust the charging of the built-in battery unit 22 and the external battery unit 32 according to the corresponding charging parameter settings when performing charging control, thereby completing the dynamic configuration process of the charging parameters.

[0026] For example, after setting the corresponding charging parameters for the battery management chip, the controller 10 determines the transmission sequence of electrical energy in the charging or discharging direction based on the connection status of the adapter 60 and the battery status information of each battery unit, and generates corresponding control signals accordingly. Then, the controller 10 outputs control signals to the first switch unit 21 and the second switch unit 31 through the corresponding communication bus, and changes the connection relationship in the circuit by adjusting the on and off states of the two switch units, so that the built-in battery unit 22 and the external battery unit 32 form corresponding power transmission paths under different power supply scenarios. When the adapter 60 is connected, the charging sequence can be set according to the charging priority of the battery units. For example, the charging path of the built-in battery unit 22 can be established first, or the charging path of the battery unit in normal condition or with low charge can be established first. After the corresponding stage is completed, the charging path of the other battery unit is switched. When the adapter 60 is not connected, the discharging and power supply sequence is set according to the charging priority of the battery units. For example, the discharging path of the external battery unit 32 to the device motherboard 70 can be established first, or the discharging path of the battery unit in normal condition or with high charge to the device motherboard 70 can be established first. After the corresponding stage is completed, the discharging path of the other battery unit is switched. Furthermore, the external battery unit 32 can also discharge power to the built-in battery unit 22. Based on this, through the dynamic control of the on / off relationship between the first switch unit 21 and the second switch unit 31, different power sources can establish or switch power transmission paths in a set order during charging and discharging, thereby completing the adjustment process of the power flow direction in the circuit.

[0027] Therefore, this circuit does not simply disperse the controller 10, the first battery management chip 40, and the second battery management chip 50 in different power transmission paths. Instead, it connects the output of the second battery management chip 50 to both the charging / discharging terminal of the external battery module 30 and the input of the first battery management chip 40, and simultaneously connects the output of the first battery management chip 40 to both the charging / discharging terminal of the internal battery module 20 and the power supply terminal of the device motherboard 70. This creates a hierarchical relationship between the adapter 60 input, battery charging / discharging control, and motherboard power supply within the same integrated circuit. Simultaneously, the controller 10 is not directly connected in series to the main power path. Instead, it coordinates the first battery management chip 40, the second battery management chip 50, the first switch unit 21, and the second switch unit 31 through communication connections and switch controls, ensuring that parameter adjustments and path switching work together. Compared to conventional dual-battery power supply circuits that only use parallel power supply, single management, or simple switching, this configuration provides a clearer hierarchical control logic for the power relationship between the internal battery unit 22, the external battery unit 32, the adapter 60, and the device motherboard 70.

[0028] In other words, on the one hand, the connection relationship between the built-in battery unit 22 and the external battery unit 32 is independently controlled by the first switch unit 21 and the second switch unit 31, so that the power is not distributed in parallel between the batteries at the same time, but flows sequentially between the battery units according to the control instructions at different stages, thereby avoiding the problems of uneven current distribution and mutual interference between batteries under parallel power supply; on the other hand, with the division of labor of the first battery management chip 40 and the second battery management chip 50, the power is controlled separately on the input side and the battery side, rather than being handled uniformly by a single management unit, so that the control of different battery units during the charging and discharging process is more targeted; and on the other hand, through the coordinated scheduling of the switch units and charging parameters by the controller 10, the power transmission path and the charging and discharging process are adjusted synchronously, thereby forming a power supply and charging relationship that switches in stages.

[0029] Optionally, controller 10 may represent an embedded control unit, such as an EC controller, microcontroller, or single-chip microcomputer, for performing logic control and scheduling decisions; built-in battery module 20 may represent an internal energy storage unit set for providing basic power supply capability, i.e., a battery module consisting of a built-in battery and its corresponding switching control structure; external battery module 30 may represent an external energy storage unit set for providing extended power supply capability, such as a battery module consisting of a removable battery pack and its corresponding switching control structure.

[0030] Optionally, the first switch unit 21 represents a switch control structure for controlling the on / off state of the charging and discharging path of the built-in battery unit 22, and the second switch unit 31 represents a switch control structure for controlling the on / off state of the charging and discharging path of the external battery unit 32, such as a power switch circuit composed of MOSFETs, a relay switch circuit, or a switch control logic that connects and disconnects the charging and discharging path through a control signal.

[0031] Optionally, the first battery management chip 40 represents a battery management device for controlling the charging and discharging and managing the state of the built-in battery unit 22, and the second battery management chip 50 represents a battery management device for controlling the charging and discharging and managing the state of the external battery unit 32 and receiving external power input, such as a lithium battery charging management IC or a battery protection management chip.

[0032] In this embodiment, firstly, by detecting the adapter's connection status and acquiring real-time battery status information of the built-in and external battery units, the circuit gains the ability to perceive the current power supply environment and battery operating status. Secondly, based on the adapter's connection status and battery status information, the charging parameters of the first and second battery management chips are dynamically set, thereby achieving targeted adjustment of the charging process for different battery units. Furthermore, by controlling the on / off state of the first and second switching units, the power transmission path between the built-in and external battery units is switched. In this entire technical solution, coordinated control of parameter adjustment and path switching is achieved in a dual-battery usage scenario, ensuring the continuity and stability of the charging and discharging process of the dual batteries and meeting the stable power supply requirements of the device under long-term operation and sudden power outage scenarios.

[0033] In one embodiment, when the controller 10 detects that the adapter 60 has been connected, the controller 10 is further configured to: As shown in Figure 2(a), the first switch unit 21 is controlled to be in the on state and the second switch unit 31 is controlled to be in the off state, so as to form a power transmission path from the adapter 60, the second battery management chip 50, the first battery management chip 40 to the built-in battery unit 22 in sequence, so that the built-in battery unit 22 is in the charging state and the external battery unit 32 is in the idle state, and the power of the adapter 60 is also used to power the device motherboard 70. As shown in Figure 2(b), when the built-in battery unit 22 is detected to be finished charging, the first switch unit 21 is controlled to be in the off state and the second switch unit 31 is controlled to be in the on state, so as to form a power transmission path from the adapter 60, the second battery management chip 50 to the external battery unit 32 in sequence, so that the built-in battery unit 22 is in the idle state and the external battery unit 32 is in the charging state, and the power of the adapter 60 is also used to power the device motherboard 70.

[0034] For example, with adapter 60 connected, the circuit already has a stable external power input. At this time, the controller 10 centrally allocates the power flow, prioritizing the adapter's power to the built-in battery unit 22. The processing logic is to first use the adapter's power to supplement the energy storage portion fixed inside the circuit, so that basic power supply capacity can still be maintained when the external power is removed. Based on this, the controller 10 outputs a control signal to turn on the first switch unit 21 and turn off the second switch unit 31, thereby forming a power transmission path in the circuit from adapter 60 through the second battery management chip 50 and then through the first battery management chip 40 to the built-in battery unit 22. At the same time, the external battery unit 32 is disconnected from this path to avoid diverting its power. In the process of constructing this path, the controller 10's role is to select the circuit connection relationship according to the current power source and battery status, so that the adapter's power flows to the designated battery unit in a predetermined order, while the device motherboard 70 continuously obtains power through the existing power supply connection, so that power supply and charging exist in parallel in the same circuit.

[0035] For example, after the built-in battery unit 22 finishes charging, the demand for power in the circuit changes; that is, the built-in battery unit 22 no longer needs to receive power, while the external battery unit 32 remains in a state where it can receive power. Therefore, the controller 10 redistributes the power transmission path, directing the adapter power to the external battery unit 32. During this process, the controller 10 changes the on / off relationship between the first switch unit 21 and the second switch unit 31, thereby cutting off the original power transmission path to the built-in battery unit 22 and establishing a new path from the adapter 60 through the second battery unit 32. The management chip 50 directs the power transmission path of the external battery unit 32, while simultaneously causing the internal battery unit 22 to exit from that path. Under this circuit logic, the flow of power changes from a single target to a sequential distribution based on stage switching. The controller 10 plays the role of decision-making and execution in path reconstruction. It triggers path switching by continuously judging the battery status, so that the adapter power in the circuit always flows to the battery unit that needs to receive power, and keeps parallel to the power supply path of the device motherboard 70, thereby forming a continuous connection between different stages of the entire power distribution process.

[0036] Optionally, the controller 10 detects the connection status of the adapter 60 in the following ways: based on the voltage of the connection node between the adapter 60 and the second battery management chip 50, for example, detecting whether the voltage of the connection node reaches a preset threshold to determine whether the adapter 60 outputs power; based on the identification of the connection pin level status of the adapter 60, for example, detecting the level change of the adapter identification pin or power supply pin to determine whether the adapter 60 is connected; based on the determination of changes in the direction of power flow, for example, detecting the change in the direction and magnitude of the current supplied by the adapter 60 to the circuit to identify its connection status; and based on the confirmation of communication interaction information, for example, obtaining its current adapter connection status through communication interaction between the controller 10 and the adapter 60.

[0037] Optionally, the conditions for the controller 10 to detect the end of charging of the built-in battery unit 22 include: determining whether the remaining battery power is greater than a preset power threshold by acquiring the power information of the built-in battery unit 22, such as detecting that the remaining battery power is greater than the target power set by the user or the upper limit of the power dynamically adjusted according to the manufacturer's settings and the battery health status, to determine the end of charging; determining whether there is an abnormal situation by acquiring the operating status information of the built-in battery unit 22, such as detecting that the battery voltage, current, temperature or charging time exceeds the preset range, to determine the end of charging; and determining that the current charging process needs to be terminated by receiving a control command for switching charging batteries, such as receiving a control command from the controller 10's internal scheduling logic or an external system, to determine the end of charging.

[0038] Furthermore, when battery charging and device motherboard 70 are powered simultaneously, the voltage is maintained at a relatively stable power supply level by the power supply side, while the current is distributed according to the load and charging demand of the device motherboard. Usually, the power demand of the device motherboard 70 is given priority, and the remaining current is used for battery charging. When the load current increases, the charging current allocated to the battery decreases accordingly, while when the load is light, more current is allocated to the battery to speed up the charging process. Based on this, power supply and charging form a coordinated current distribution relationship in the same circuit.

[0039] In this embodiment, firstly, with the adapter connected, a power transmission path to the built-in battery unit is established by turning on the first switch unit and turning off the second switch unit. This allows the adapter's power to preferentially enter the built-in battery unit along a predetermined path, electrically isolating the external battery unit while maintaining the adapter's power supply to the device's motherboard. Secondly, after the built-in battery unit finishes charging, the first switch unit is turned off and the second switch unit is turned on to reconstruct the power transmission path to the external battery unit. This switches the adapter's power from the original path to the built-in battery unit to the external battery unit, causing the built-in battery unit to exit the charging state, while maintaining the adapter's power supply to the device's motherboard. Based on this, in the entire technical solution, the sequential construction and switching of the power transmission path between different battery units is achieved by controlling the sequential connection of the switch units, allowing the adapter's power to be distributed sequentially among the battery units.

[0040] In one embodiment, when the controller 10 detects that the adapter 60 is not connected, the controller 10 is further configured to: As shown in Figure 3(a), the first switch unit 21 is controlled to be in the conducting state and the second switch unit 31 is controlled to be in the conducting state, so as to form a power transmission path from the external battery unit 32, the first battery management chip 40 to the internal battery unit 22 in sequence, so that the internal battery unit 22 is in the charging state and the external battery unit 32 is in the discharging state, and the power of the external battery is also used to power the device motherboard 70. As shown in Figure 3(b), when the external battery unit 32 is detected to be discharging, the first switch unit 21 is controlled to be in the on state and the second switch unit 31 is controlled to be in the off state, so as to form a power transmission path from the built-in battery unit 22 to the device motherboard 70. The built-in battery power is used to power the device motherboard 70, so that the built-in battery unit 22 is in the discharging state and the external battery unit 32 is in the idle state.

[0041] For example, when adapter 60 is not connected, there is no external power input in the circuit. At this time, the power comes only from the external battery unit 32 and the internal battery unit 22. Therefore, the limited power needs to be allocated in an orderly manner to balance the power supply to the load and the internal energy storage. Based on this, the controller 10 prioritizes the establishment of a power transmission relationship where the external battery unit 32 supplies power to the internal battery unit 22 and the device motherboard 70 simultaneously, according to the current power supply conditions and the status of the two battery units. The processing logic is that the external battery unit 32 is usually used as a replaceable or expandable power source. Prioritizing the consumption of its power can reduce the use of the internal battery unit 22, thereby reserving the internal battery unit 22 as a subsequent power source. During this process, the controller 10 outputs a control signal to make both the first switch unit 21 and the second switch unit 31 in the conducting state, so that the external battery power of the external battery unit 32 is transferred to the device motherboard 70 to maintain system operation, and enters the internal battery unit 22 through the corresponding power transmission path, thereby forming a state in which the external battery unit 32 simultaneously undertakes the power supply and replenishes the energy of the internal battery unit 22.

[0042] For example, when the controller 10 detects that the external battery unit 32 has finished discharging, the power source in the circuit needs to be switched to avoid power interruption. At this time, the controller 10 reconstructs the power transmission path according to the state change of the external battery unit 32. Its processing logic is that when the external battery unit 32 can no longer provide stable power, the main power supply is switched to the internal battery unit 22 to maintain the continuous operation of the device motherboard 70. Based on this, the controller 10 outputs a control signal to switch the second switch unit 31 from the on state to the off state, so that the external battery unit 32 is disconnected in the circuit, while the first switch unit 21 is kept in the on state, so that a stable power transmission path is formed between the internal battery unit 22 and the device motherboard 70. During this process, the built-in battery power of the built-in battery unit 22 is guided to the device motherboard 70 to perform the power supply function, while the external battery unit 32 is in an idle state because the corresponding switch unit is in the off state. This completes the smooth transition from power supply from the external battery unit 32 to power supply from the built-in battery unit 22, so that the power transmission path switches between different power sources in a predetermined order and maintains the continuous connection of power transmission relationship in the circuit.

[0043] Optionally, the conditions for the controller 10 to detect the end of discharge of the external battery unit 32 include: determining whether the remaining battery power is less than a preset power threshold by acquiring the power information of the external battery unit 32, such as detecting that the remaining battery power is less than a manually set target power or a power limit dynamically adjusted according to the manufacturer's settings and the battery's health status, to determine the end of discharge; determining whether there is an abnormal situation by acquiring the operating status information of the external battery unit 32, such as detecting that the battery voltage, current, temperature, or charging time exceeds a preset range, to determine the end of discharge; determining that the current discharge process needs to be terminated by receiving a control command for switching the discharge battery, such as receiving a control command from the controller 10's internal scheduling logic or an external system, to determine the end of discharge; and determining whether the external battery unit 32 has been removed by detecting the connection status of the external battery unit 32, such as detecting that the battery interface signal is interrupted or the battery access voltage disappears to confirm that the external battery unit 32 has been disconnected from the circuit, thereby determining the end of discharge.

[0044] In the overall technical solution, the controller 10 does not only perform single switch control or parameter distribution, but combines the access status of the adapter 60 and the battery status of the built-in battery unit 22 and the external battery unit 32 to make collaborative decisions on the power transmission path and power supply sequence. By simultaneously controlling the on and off relationship of the first switch unit 21 and the second switch unit 31, the power can be switched between different battery units in a predetermined order in the charging and discharging scenarios, and a linkage relationship is formed between path construction and parameter control, so that the power distribution in the circuit has the control characteristics of staged adjustment.

[0045] In this embodiment, firstly, when the adapter is not connected, a power transmission path is established pointing to the built-in battery unit by turning on the first and second switching units. This allows the external battery power to preferentially enter the built-in battery unit along a predetermined path, while maintaining the external battery power supply to the device motherboard. Secondly, after the external battery power discharges, the power supply is switched from the external battery unit to the built-in battery unit by turning on the first switching unit and turning off the second switching unit, thus maintaining the power supply to the device motherboard. Based on this, in the entire technical solution, the sequential construction and switching of the power transmission path between different battery units is achieved by controlling the sequential connection of the switching units, ensuring continuous connection between different power sources.

[0046] In one embodiment, as shown in FIG2(a), when the controller 10 detects that the adapter 60 has been connected, the second battery management chip 50 is configured to: transfer adapter power to the first battery management chip 40; and the first battery management chip 40 is configured to: control the adapter power transferred from the second battery management chip 50 to charge the built-in battery unit 22 and supply power to the device motherboard 70 according to the first charging parameters.

[0047] As shown in Figure 2(b), when the controller 10 detects that the built-in battery unit 22 has finished charging, the second battery management chip 50 is configured to: control the adapter power according to the second charging parameters to charge the external battery unit 32, and transfer the controlled adapter power to the first battery management chip 40; and the first battery management chip 40 is configured to: transfer the adapter power transferred from the second battery management chip 50 to the device motherboard 70 to power the device motherboard 70.

[0048] For example, with adapter 60 connected, the second battery management chip 50 does not regulate the adapter power from adapter 60, but instead acts as a power transfer channel to guide the adapter power to the first battery management chip 40. During this transfer, the continuous input of adapter power is maintained, allowing subsequent stages to process the received adapter power. The first battery management chip 40 controls the received adapter power according to the first charging parameters issued by the controller 10. This control involves setting the charging voltage and charging current to ensure that the adapter power input to the built-in battery unit 22 meets the current charging requirements (e.g., charging with a larger current at the beginning of charging, and gradually reducing the charging current to enter a stable charging state when the battery voltage approaches the set upper limit). Simultaneously, within the same circuit, a portion of the power is allocated to the device motherboard 70 to maintain its operation. In this process, the second battery management chip 50 is responsible for the transmission of power on the input side, so that the power from the adapter can be stably delivered to the subsequent stage, while the first battery management chip 40 is responsible for charging control and power distribution, so that the power enters the built-in battery unit 22 according to the set parameters and supplies it to the device motherboard 70, thereby forming a power transmission relationship that combines transmission and control.

[0049] After the built-in battery unit 22 finishes charging, the controller 10 adjusts the energy flow, directing the energy from the adapter 60 to the external battery unit 32. At this time, the second battery management chip 50 controls the adapter energy according to the second charging parameters issued by the controller 10. The control is manifested in the setting of the charging voltage and charging current, so that the adapter energy input to the external battery unit 32 meets the current charging requirements (for example, charging with a larger current at the beginning of charging, and gradually reducing the charging current to enter a stable charging state when the battery voltage is close to the set upper limit). At the same time, the controlled adapter energy continues to be transferred to the first battery management chip 40. The first battery management chip 40 no longer regulates the charging energy, but acts as an energy transfer channel, directly outputting the controlled adapter energy transferred from the second battery management chip 50 to the device motherboard 70 to maintain its operation. In this process, the second battery management chip 50 is responsible for the charging control of the external battery unit 32, while the first battery management chip 40 is responsible for the power supply to the device motherboard 70, forming a power transmission relationship that combines transmission and control, thereby completing the orderly distribution of adapter power among the various power-consuming units.

[0050] In this embodiment, firstly, with the adapter connected, the second battery management chip transfers power to the adapter, and the first battery management chip controls the charging of the transferred adapter power according to the first charging parameters, guiding the adapter power to the built-in battery unit and simultaneously powering the device's motherboard. Secondly, after the built-in battery unit finishes charging, the second battery management chip controls the charging of the adapter power according to the second charging parameters and guides it to the external battery unit, while simultaneously using the controlled adapter power via the first battery management chip to power the device's motherboard. Based on this, in the entire technical solution, by dividing the power transfer and charging control among different battery management chips, the adapter power is distributed among different battery units according to a predetermined switching logic.

[0051] In one embodiment, as shown in FIG3(a), when the controller 10 detects that the adapter 60 is not connected, the second battery management chip 50 is configured to be in an idle state, and the first battery management chip 40 is configured to: control the external battery power to charge the built-in battery unit 22 and supply power to the device motherboard 70 according to the first charging parameters.

[0052] As shown in Figure 3(b), when the controller 10 detects that the external battery unit 32 has finished discharging, both the second battery management chip 50 and the first battery management chip 40 are configured to be in an idle state.

[0053] For example, when the adapter 60 is not connected, the power source in the circuit is only provided by the external battery unit 32. At this time, the second battery management chip 50 is placed in an idle state that does not participate in power processing, so that the external battery power output by the external battery unit 32 enters the subsequent path directly without being regulated by the second battery management chip 50. The first battery management chip 40 takes over the processing of the external battery power. The controller 10 sends the first charging parameters to the first battery management chip 40 according to the acquired battery status information, so that after receiving the external battery power from the external battery unit 32, the controller 10 controls and distributes the external battery power. The control content is reflected in limiting and regulating the voltage and current output to the built-in battery unit 22, so that the external battery power can enter the built-in battery unit 22 in accordance with the current charging requirements. At the same time, in this circuit relationship, the first battery management chip 40 also guides some power to the device motherboard 70 to maintain the normal operation of the device motherboard. During this process, the first battery management chip 40 controls the charging of the built-in battery unit 22 according to the first charging parameters, and completes the power supply and charging distribution in the same circuit. The controller 10 coordinates the battery power between discharging and charging by setting the charging parameters and monitoring the battery status.

[0054] For example, after the external battery unit 32 has finished discharging, the controller 10 terminates the current external battery power transmission and control process, and puts both the second battery management chip 50 and the first battery management chip 40 into an idle state so that they no longer process or transmit power. In this state, since the power output of the external battery unit 32 has been terminated, the first battery management chip 40 no longer receives valid power input, thereby stopping the charging of the built-in battery unit 22. At this time, the built-in battery unit 22 supplies power to the device motherboard 70 to maintain its normal operation.

[0055] Furthermore, the reason why the built-in battery unit 22 directly supplies power to the device motherboard 70 is that, as a stable power source inside the device, its output voltage range matches the power supply requirements of the device motherboard 70. This eliminates the intermediate adjustment process via the battery management chip, which helps reduce power loss and delay during power transmission and makes the power supply response more direct.

[0056] In the overall technical solution, the first battery management chip 40 and the second battery management chip 50 do not simply perform fixed charging and discharging control on their respective battery cells. Instead, they combine with the controller 10 to allocate the power flow and perform hierarchical processing of the adapter power and battery power. The second battery management chip 50 is responsible for the introduction and transmission of adapter power and the charging control of the external battery cell 32. The first battery management chip 40 is responsible for the charging control of the internal battery cell 22 and the power output to the device motherboard 70. At different stages, they form a cooperative relationship through parameter control and power transmission, so that the power is distributed and switched between each battery cell and the load in stages.

[0057] In this embodiment, firstly, when the adapter is not connected, the first battery management chip controls the charging of the external battery power according to the first charging parameters, so that the external battery power is guided to the built-in battery unit and simultaneously used to power the device motherboard; secondly, after the external battery unit finishes discharging, the built-in battery power is directly used to power the device motherboard. Based on this, in the entire technical solution, by dividing the power transfer and discharge control among different battery management chips, the power from different batteries is distributed among different power-consuming units according to a predetermined switching logic.

[0058] In one embodiment, when the controller 10 detects that the adapter 60 has been connected and the built-in battery unit 22 has entered the charging state, the initial first charging parameter is determined by the initial battery state information of the built-in battery unit 22. The first charging parameter before the built-in battery unit 22 finishes charging is dynamically set by the electrical detection results collected in real time by the first battery management chip 40 and the real-time battery state information of the built-in battery unit 22.

[0059] When the built-in battery unit 22 finishes charging and the external battery unit 32 enters the charging state, the initial second charging parameter is determined by the initial battery status information of the external battery unit 32. The second charging parameter before the external battery unit 32 finishes charging is dynamically set by the electrical detection results collected in real time by the second battery management chip 50 and the real-time battery status information of the external battery unit 32.

[0060] For example, when the adapter 60 is connected and the built-in battery unit 22 enters the charging state, the first charging parameter is not set fixedly all at once, but is divided into two charging stages: initial setting and process adjustment. The initial first charging parameter is determined by the battery state information of the built-in battery unit 22 before charging begins, so that the starting conditions of the charging process match the current voltage and temperature conditions of the built-in battery unit 22. For example, when the initial voltage of the built-in battery unit 22 is low and the temperature is within the normal range, the initial first charging parameter is set to a higher charging current and a corresponding charging voltage, so that the adapter's power enters the built-in battery unit 22 at a faster rate. When the initial voltage is close to the set upper limit or the temperature is close to the preset range boundary, the initial first charging parameter is set to a lower charging current to limit the power input rate.

[0061] During subsequent charging, the first battery management chip 40 continuously collects electrical detection results from the circuit and dynamically adjusts the first charging parameters based on the real-time battery status information of the built-in battery unit 22, thereby enabling the charging process to change with the battery status. The electrical detection results represent the overall electrical level of the circuit during the power supply from the adapter 60, the power consumption of the device motherboard 70, and the charging of the built-in battery unit 22. Examples include changes in the output voltage and current of the adapter 60, the load voltage and current of the device motherboard 70, and the charging voltage and current of the built-in battery unit 22. By acquiring this data, the first battery management chip 40 can determine the current power distribution in the circuit and adjust the charging voltage and current accordingly, ensuring that the adapter power entering the built-in battery unit 22 is both suitable for its current charging stage and coordinated with the power requirements of the device motherboard 70. For example, when the load current of the device motherboard 70 is detected to increase, the charging current allocated to the built-in battery unit 22 is reduced accordingly to ensure stable power supply to the motherboard. When the load current of the device motherboard 70 is detected to decrease and the output capacity of the adapter 60 has a margin, the charging current of the built-in battery unit 22 is increased so that the excess power can be used for charging.

[0062] Optionally, the first charging parameter, dynamically set by the electrical detection results collected in real time by the first battery management chip 40 and the real-time battery status information of the built-in battery unit 22, can be set in the following ways: According to a power supply priority constraint, for example, based on the power supply capacity of the adapter 60 and the real-time load current of the device motherboard 70, the power demand of the device motherboard 70 is first met, and then the voltage and current for charging the built-in battery unit 22 are determined within the remaining power supply capacity; According to a state linkage, for example, the charging current is increased when the power is low and the temperature is within the normal range, and decreased when the voltage is close to the upper limit or the temperature rises; According to a stage change, for example, a higher charging current is set at the beginning of charging when the battery voltage is low, the current is gradually reduced in the middle of charging as the voltage rises, and the charging current is further reduced when the voltage is close to the set upper limit in the later stage of charging; According to a threshold trigger, for example, the first charging parameter is lowered when the load current of the device motherboard 70 exceeds a preset range or the voltage and temperature of the built-in battery unit 22 reach a preset threshold, and the first charging parameter is raised after the above parameters return to the normal range.

[0063] In these methods, the controller 10 does not only generate the first charging parameters based on the battery status information, but also calculates and updates the parameters by combining the electrical detection results fed back by the first battery management chip 40, and sends the updated first charging parameters to the first battery management chip 40 through the first communication bus; after receiving the first charging parameters, the first battery management chip 40 performs specific adjustments to the voltage and current, and at the same time continuously collects the electrical detection results in the circuit and sends them back to the controller 10; the two form a two-way signal interaction through the uploading of electrical detection data and the sending of charging parameters, so that parameter setting and power regulation are carried out in coordination on the same data basis.

[0064] For example, after the built-in battery unit 22 finishes charging, the adapter's power is transferred to the external battery unit 32. At this time, the second charging parameters also adopt two charging stages: initial setting and process adjustment. The initial second charging parameters are determined by the battery status information of the external battery unit 32 before charging begins, so that the starting conditions of the charging process are adapted to the current voltage, capacity and temperature conditions of the external battery unit 32. In the subsequent charging process, the second battery management chip 50 continuously acquires the electrical detection results in the circuit and dynamically adjusts the second charging parameters in combination with the real-time changing battery status information of the external battery unit 32, so that the charging process can change with the battery status. The electrical test results represent the overall electrical level of the circuit during the power supply of the adapter 60, the power consumption of the device motherboard 70, and the charging of the external battery unit 32. For example, the output voltage and current changes on the output side of the adapter 60, the load voltage and current changes on the device motherboard 70, and the charging voltage and current changes on the external battery unit 32. By acquiring this data, the second battery management chip 50 can determine the current power distribution in the circuit and adjust the charging voltage and charging current accordingly, so that the power entering the external battery unit 32 is both in line with its current charging stage and coordinated with the power consumption requirements of the device motherboard 70.

[0065] Optionally, the second charging parameters, dynamically set by the electrical detection results collected in real time by the second battery management chip 50 and the real-time battery status information of the external battery unit 32, can be set in the following ways: According to a power supply priority constraint, for example, based on the output capacity of the adapter 60 and the real-time load current of the device motherboard 70, the power demand of the device motherboard 70 is first met, and then the voltage and current for charging the external battery unit 32 are determined within the remaining power supply capacity; According to a state linkage, for example, the charging current is increased when the power is low and the temperature is within the normal range, and decreased when the voltage is close to the upper limit or the temperature rises; According to a stage change, for example, a higher charging current is set at the beginning of charging when the battery voltage is low, the current is gradually reduced in the middle of charging as the voltage rises, and the charging current is further reduced when the voltage is close to the upper limit in the later stage of charging; According to a threshold trigger, for example, the second charging parameters are lowered when the load current of the device motherboard 70 exceeds a preset range or the voltage and temperature of the external battery unit 32 reach a preset threshold, and the second charging parameters are raised after the above parameters return to the normal range.

[0066] In these methods, the controller 10 does not only generate the second charging parameters based on the battery status information, but also calculates and updates the parameters by combining the electrical detection results fed back by the second battery management chip 50, and sends the updated second charging parameters to the second battery management chip 50 through the second communication bus; after receiving the second charging parameters, the second battery management chip 50 performs specific adjustments to the voltage and current, and at the same time continuously collects the electrical detection results in the circuit and sends them back to the controller 10; the two form a two-way signal interaction through the uploading of electrical detection data and the sending of charging parameters, so that parameter setting and power regulation are carried out in coordination on the same data basis.

[0067] In the overall technical solution, on the one hand, the controller 10 is not only used to issue fixed parameters, but also to uniformly schedule the two charging stages of initial setting and process adjustment of charging parameters based on the real-time status information of the battery cells and / or the electrical detection results of the battery management chip, so that the charging process has a control basis that updates with changes in the electrical level of the circuit. On the other hand, the first battery management chip 40 and the second battery management chip 50 respectively adjust the voltage and current based on the received charging parameters and their respective collected electrical detection results, so that the power meets the current electrical level of the circuit when entering the corresponding battery cell or flowing to the device motherboard 70. In summary, by combining the parameter decision of the controller 10 with the execution adjustment of the battery management chip, the power control is transformed from a single setting to a process that adjusts with changes in the electrical level of the circuit.

[0068] In this embodiment, firstly, initial first charging parameters are determined based on the initial battery state information of the built-in battery. These parameters are then dynamically adjusted in conjunction with real-time electrical detection results and real-time battery state information to form a built-in battery charging control method that dynamically changes with the circuit's electrical level. Secondly, initial second charging parameters are determined based on the initial battery state information of the external battery. These parameters are then dynamically adjusted in conjunction with real-time electrical detection results and real-time battery state parameters to form an external battery charging control method that dynamically changes with the circuit's electrical level. Based on this, the entire technical solution utilizes battery state information and / or electrical detection results to enable dynamic setting and updating of parameters for different batteries during the charging process.

[0069] In one embodiment, when the controller 10 detects that the adapter 60 is not connected and the external battery unit 32 enters a discharge state, the initial first charging parameter is determined by the initial battery status information of the built-in battery unit 22. The first charging parameter before the external battery unit 32 finishes discharging is dynamically set by the electrical detection results collected in real time by the first battery management chip 40, the real-time battery status information of the external battery unit 32, and the real-time battery status information of the built-in battery unit 22.

[0070] When the controller 10 detects that the external battery unit 32 has finished discharging, the parameters for the built-in battery unit 22 to supply power to the device motherboard 70 are dynamically set by the real-time battery status information of the built-in battery unit 22.

[0071] For example, when the adapter 60 is not connected and the external battery unit 32 is in a discharging state, the first charging parameter is not set fixedly all at once, but is divided into two charging stages: initial setting and process adjustment. The initial first charging parameter is determined by the battery state information of the built-in battery unit 22 before charging begins, so that the starting conditions of the charging process match the current voltage and temperature conditions of the built-in battery unit 22. For example, when the starting voltage of the built-in battery unit 22 is low and the temperature is within the normal range, the initial first charging parameter is set to a higher charging current and a corresponding charging voltage, so that the external battery power enters the built-in battery unit 22 at a faster rate. When the starting voltage is close to the upper limit of the setting or the temperature is close to the boundary of the preset range, the initial first charging parameter is set to a lower charging current to limit the power input rate.

[0072] During subsequent charging, the first battery management chip 40 continuously collects electrical detection results from the circuit and dynamically adjusts the first charging parameters based on the real-time battery status information of the built-in battery unit 22 and the external battery unit 32, so that the charging process can change with the battery status. The electrical detection results represent the overall electrical level of the circuit during the discharge of the external battery unit 32, the power consumption of the device motherboard 70, and the charging of the built-in battery unit 22. Examples include changes in the output voltage and current of the external battery unit 32, the load voltage and current of the device motherboard 70, and the charging voltage and current of the built-in battery unit 22. By acquiring this data, the first battery management chip 40 can determine the current power distribution in the circuit and adjust the charging voltage and current accordingly, ensuring that the external battery power entering the built-in battery unit 22 meets both its current charging stage and the power requirements of the device motherboard 70. For example, when the load current of the device motherboard 70 is detected to increase, the charging current allocated to the built-in battery unit 22 is reduced accordingly to ensure stable power supply to the motherboard. When the load current of the device motherboard 70 is detected to decrease and the output capacity of the external battery unit 32 has a margin, the charging current of the built-in battery unit 22 is increased so that the excess power can be used for charging.

[0073] For example, after the external battery unit 32 finishes discharging, the main discharge target changes from the external battery unit 32 to the internal battery unit 22. At this time, the power supply parameters to the device motherboard 70 are set by the real-time status information of the internal battery unit 22. During this process, the battery status information of the internal battery unit 22, such as voltage, charge, and temperature, is used to determine its power supply capability to the device motherboard 70, and the power supply parameters are adjusted accordingly. For example, when the battery voltage is high and the load demand is large, a more stable output voltage and a larger output current are maintained, while when the battery charge decreases or the temperature approaches the limit range, the output current is limited to control the power consumption rate. By acquiring this data, the power demand entering the device motherboard 70 is both in line with the power supply capability of the internal battery unit 22 and coordinated with the power demand of the device motherboard 70.

[0074] Optionally, the first charging parameter is dynamically set based on the electrical detection results collected in real time by the first battery management chip 40, the real-time battery status information of the external battery unit 32, and the real-time battery status information of the internal battery unit 22. The dynamic setting methods include: setting according to a power supply priority constraint method, for example, first determining the available power based on the output capacity of the external battery unit 32, then prioritizing the power demand of the device motherboard 70, and determining the first charging parameter within the remaining power range; setting according to a state linkage method, for example, linking the discharge state of the external battery unit 32 with the charging demand of the internal battery unit 22, reducing the first charging parameter when the power of the external battery unit 32 decreases or the load on the device motherboard 70 increases; setting according to a stage change method, for example, gradually adjusting the first charging parameter according to different stages of the discharge process of the external battery unit 32, setting a higher charging current initially, and reducing the charging current as the discharge capacity decreases later; and setting according to a threshold trigger method, for example, lowering the first charging parameter when the voltage of the external battery unit 32 or the load on the device motherboard 70 exceeds a preset range, and raising the first charging parameter after it returns to the normal range.

[0075] In the overall technical solution, on the one hand, the controller 10 is not only used to issue fixed parameters, but also to uniformly schedule the two charging stages of initial setting and process adjustment of charging parameters based on the real-time status information of the battery cells and / or the electrical detection results of the battery management chip, so that the charging process has a control basis that updates with changes in the electrical level of the circuit. On the other hand, the first battery management chip 40 adjusts the voltage and current according to the received first charging parameters and the collected electrical detection results, so that the external battery power meets the current electrical level of the circuit when entering the built-in battery power or flowing to the device motherboard 70. In summary, by combining the parameter decision of the controller 10 with the execution adjustment of the battery management chip, the power control is transformed from a single setting to a process that adjusts with changes in the electrical level of the circuit. In this embodiment, firstly, initial first charging parameters are determined based on the initial battery state information of the built-in battery. These parameters are then dynamically adjusted based on real-time electrical detection results and the real-time battery state information of both the internal and external batteries to form an external battery discharge control method that dynamically changes with the circuit's electrical level. Secondly, the parameters used to power the device's motherboard are dynamically adjusted based on the real-time battery state information of the built-in battery to form a built-in battery discharge control method that also dynamically changes with the circuit's electrical level. Based on this, the entire technical solution utilizes battery state information and / or electrical detection results to enable dynamic setting and updating of parameters for different batteries during the discharge process.

[0076] In one embodiment, a computer device is provided, which includes a dual-battery power supply circuit as described in any of the above embodiments and a device motherboard, wherein the output terminal of the dual-battery power supply circuit is connected to the power supply terminal of the device motherboard and supplies power to the device motherboard.

[0077] In practical applications, firstly, the controller detects the adapter's connection status and reads the battery status information of the built-in battery unit and the external battery unit in real time through the first and second communication buses. Secondly, based on the adapter's connection status and battery status information, the controller dynamically sets the first charging parameters of the first battery management chip and the second charging parameters of the second battery management chip through the first and second communication buses. The charging parameters include at least charging voltage and charging current. The controller controls the on / off state of the first and second switching units to switch the power transmission paths of the external battery unit and the built-in battery unit under the corresponding charging parameters, and continuously supplies power to the device motherboard.

[0078] Optionally, the computer device may be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices may include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. Portable wearable devices may include smartwatches, smart bracelets, head-mounted devices, etc.

[0079] In one embodiment, such as Figure 4 As shown, a dual-battery power supply method is provided, which is applied in... Figure 1 The following steps are used as an example to illustrate the dual-battery power supply circuit: S10: The controller detects the connection status of the adapter and reads the battery status information of the built-in battery unit and the external battery unit in real time through the corresponding communication bus. S20: The controller dynamically sets the first charging parameters of the first battery management chip and the second charging parameters of the second battery management chip through the corresponding communication bus according to the adapter's connection status and battery status information. S30: The controller controls the on / off state of the first switching unit and the second switching unit to switch the power transmission path between the external battery unit and the internal battery unit under the corresponding charging parameters.

[0080] In one embodiment, the method further includes: the controller controlling the first switch unit to be in an ON state and controlling the second switch unit to be in an OFF state to form a power transmission path sequentially from the adapter, the second battery management chip, the first battery management chip to the built-in battery unit, such that the built-in battery unit is in a charging state and the external battery unit is in an idle state, and the adapter power is also used to power the device motherboard; when the controller detects that the built-in battery unit has finished charging, it controls the first switch unit to be in an OFF state and controls the second switch unit to be in an ON state to form a power transmission path sequentially from the adapter, the second battery management chip to the external battery unit, such that the built-in battery unit is in an idle state and the external battery unit is in a charging state, and the adapter power is also used to power the device motherboard.

[0081] In one embodiment, the method further includes: the controller controlling the first switch unit to be in a conducting state and controlling the second switch unit to be in a conducting state to form a power transmission path sequentially from the external battery unit, the first battery management chip to the internal battery unit, such that the internal battery unit is in a charging state and the external battery unit is in a discharging state, and the external battery power is also used to power the device motherboard; when the controller detects that the external battery unit has finished discharging, it controls the first switch unit to be in a conducting state and controls the second switch unit to be in a de-converted state to form a power transmission path from the internal battery unit to the device motherboard, such that the internal battery power is used to power the device motherboard, such that the internal battery unit is in a discharging state and the external battery unit is in an idle state.

[0082] In one embodiment, the method further includes: when the controller detects that an adapter has been connected, the second battery management chip transfers adapter power to the first battery management chip; the first battery management chip controls the adapter power transferred from the second battery management chip to charge the built-in battery unit and supply power to the device motherboard according to the first charging parameters; when the controller detects that the built-in battery unit has finished charging, the second battery management chip controls the adapter power to charge the external battery unit according to the second charging parameters and transfers the controlled adapter power to the first battery management chip; the first battery management chip transfers the adapter power transferred from the second battery management chip to the device motherboard to supply power to the device motherboard.

[0083] In one embodiment, such as Figure 5As shown, step S20, "The controller dynamically sets the first charging parameters of the first battery management chip and the second charging parameters of the second battery management chip through the corresponding communication bus according to the adapter's connection status and battery status information," includes: Step S21A, when the adapter is detected to be connected and the built-in battery unit enters the charging state, the controller determines the initial first charging parameters according to the initial battery status information of the built-in battery unit; Step S21B, during the charging process of the built-in battery unit, the controller dynamically sets the first charging parameters of the built-in battery unit before the charging ends according to the electrical detection results collected in real time by the first battery management chip and the real-time battery status information of the built-in battery unit; Step S21C, when the built-in battery unit is detected to have finished charging and the external battery unit enters the charging state, the controller determines the initial second charging parameters according to the initial battery status information of the external battery unit; Step S24, during the charging process of the external battery unit, the controller dynamically sets the second charging parameters of the external battery unit before the charging ends according to the electrical detection results collected in real time by the second battery management chip and the real-time battery status information of the external battery unit.

[0084] In one embodiment, the method further includes: when the controller detects that the adapter is not connected, the second battery management chip is configured to an idle state, and the first battery management chip controls the external battery power to charge the built-in battery unit and supply power to the device motherboard according to the first charging parameters; when the controller detects that the external battery unit has finished discharging, both the second battery management chip and the first battery management chip are configured to an idle state.

[0085] In one embodiment, such as Figure 6 As shown, step S20, "The controller dynamically sets the first charging parameters of the first battery management chip and the second charging parameters of the second battery management chip through the corresponding communication bus according to the adapter's connection status and battery status information," includes: Step S22A, when it is detected that the adapter is not connected and the external battery unit enters the discharge state, the controller determines the initial first charging parameters according to the initial battery status information of the built-in battery unit; Step S22B, during the discharge state of the external battery unit, the controller dynamically sets the first charging parameters before the discharge of the external battery unit ends according to the real-time battery status information of the external battery unit and the real-time battery status information of the built-in battery unit; Step S22C, when it is detected that the discharge of the external battery unit ends, the controller dynamically sets the parameters for the built-in battery unit to supply power to the device motherboard according to the real-time battery status information of the built-in battery unit.

[0086] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0087] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods.

[0088] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0089] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A dual-battery power supply circuit, characterized in that, include: Controller; The built-in battery module includes a first switching unit and a built-in battery unit; An external battery module includes a second switching unit and an external battery unit; The first battery management chip has its output terminal connected to the power supply terminal of the device motherboard and connected to the built-in battery unit through the first switching unit; The second battery management chip has an input terminal for connecting to the adapter, an output terminal for connecting to the input terminal of the first battery management chip, and is connected to the external battery unit through the second switching unit. The first switching unit and the second switching unit are controlled by the controller. The controller is connected to the first battery management chip and the built-in battery module via a communication bus, and is also connected to the second battery management chip and the external battery module. The second battery management chip and the first battery management chip form a front-to-back power management structure. The second battery management chip and the first battery management chip are respectively used to transmit or control power at different stages, so that a stage-reconstructed power transmission path is formed between the adapter, the external battery module, the internal battery module and the device motherboard. The controller is configured to: The connection status of the adapter is detected, and the battery status information of the built-in battery unit and the external battery unit is read in real time through the corresponding communication bus; Based on the adapter's access status and the battery status information, the first charging parameters of the first battery management chip and the second charging parameters of the second battery management chip are dynamically set via the corresponding communication bus. Control the on / off state of the first switch unit and the second switch unit to switch the power transmission path of the external battery unit and the internal battery unit under corresponding charging parameters; When the controller detects that the adapter is not connected, the second battery management chip is configured to be in an idle state, and the first battery management chip is configured to: control the power of the external battery to charge the built-in battery unit and supply power to the device motherboard according to the first charging parameters; When the controller detects that the external battery unit has finished discharging, both the second battery management chip and the first battery management chip are configured to be in an idle state.

2. The circuit as described in claim 1, characterized in that, When the controller detects that the adapter has been connected, the controller is further configured to: The first switch unit is controlled to be in the on state and the second switch unit is controlled to be in the off state, so as to form a power transmission path from the adapter, the second battery management chip, the first battery management chip to the built-in battery unit in sequence, so that the built-in battery unit is in the charging state and the external battery unit is in the idle state, and the adapter power is also used to power the device motherboard. When the built-in battery unit is detected to be finished charging, the first switch unit is controlled to be in the off state and the second switch unit is controlled to be in the on state, so as to form a power transmission path from the adapter, the second battery management chip to the external battery unit in sequence, so that the built-in battery unit is in the idle state and the external battery unit is in the charging state, and the adapter power is also used to power the device motherboard.

3. The circuit as described in claim 1, characterized in that, When the controller detects that the adapter is not connected, the controller is further configured to: The first switch unit is controlled to be in the conducting state and the second switch unit is controlled to be in the conducting state, so as to form a power transmission path from the external battery unit, the first battery management chip to the internal battery unit in sequence, so that the internal battery unit is in the charging state and the external battery unit is in the discharging state, and the power of the external battery is also used to power the device motherboard. When the discharge of the external battery unit is detected to be finished, the first switch unit is controlled to be in the on state and the second switch unit is controlled to be in the off state, so as to form a power transmission path from the built-in battery unit to the device motherboard. The built-in battery power is used to power the device motherboard, so that the built-in battery unit is in the discharge state and the external battery unit is in the idle state.

4. The circuit as described in claim 1, characterized in that, When the controller detects that the adapter has been connected, the second battery management chip is configured to: transfer adapter power to the first battery management chip; and the first battery management chip is configured to: control the adapter power transferred from the second battery management chip to charge the built-in battery unit and supply power to the device motherboard according to the first charging parameters. When the controller detects that the built-in battery unit has finished charging, the second battery management chip is configured to: control the adapter power to charge the external battery unit according to the second charging parameters, and transfer the controlled adapter power to the first battery management chip; and the first battery management chip is configured to: transfer the adapter power transferred from the second battery management chip to the device motherboard to power the device motherboard.

5. The circuit as described in claim 1 or 4, characterized in that, When the controller detects that the adapter has been connected and the built-in battery unit has entered the charging state, the initial first charging parameter is determined by the initial battery status information of the built-in battery unit. The first charging parameter before the built-in battery unit finishes charging is dynamically set by the electrical detection results collected in real time by the first battery management chip and the real-time battery status information of the built-in battery unit. When the built-in battery unit finishes charging and the external battery unit enters the charging state, the initial second charging parameter is determined by the initial battery status information of the external battery unit. The second charging parameter before the external battery unit finishes charging is dynamically set by the electrical detection results collected in real time by the second battery management chip and the real-time battery status information of the external battery unit.

6. The circuit as described in claim 1, characterized in that, When the controller detects that the adapter is not connected and the external battery unit enters the discharge state, the initial first charging parameter is determined by the initial battery status information of the built-in battery unit. The first charging parameter before the external battery unit finishes discharging is dynamically set by the electrical detection results collected in real time by the first battery management chip, the real-time battery status information of the external battery unit, and the real-time battery status information of the built-in battery unit. When the controller detects that the external battery unit has finished discharging, the parameters for the built-in battery unit to supply power to the device motherboard are dynamically set by the real-time battery status information of the built-in battery unit.

7. A dual-battery power supply method, characterized in that, The method, applied to the dual-battery power supply circuit according to any one of claims 1 to 6, comprises: The controller detects the connection status of the adapter and reads the battery status information of the built-in battery unit and the external battery unit in real time through the corresponding communication bus. The controller dynamically sets the first charging parameters of the first battery management chip and the second charging parameters of the second battery management chip through the corresponding communication bus based on the access status of the adapter and the battery status information. The controller controls the on / off state of the first and second switching units to switch the power transmission paths of the external battery unit and the internal battery unit under corresponding charging parameters.

8. The method as described in claim 7, characterized in that, The controller dynamically sets the first charging parameters of the first battery management chip and the second charging parameters of the second battery management chip via a corresponding communication bus based on the adapter's connection status and the battery status information, including: When the controller detects that the adapter has been connected and the built-in battery unit has entered the charging state, the controller determines the initial first charging parameters based on the initial battery state information of the built-in battery unit. During the charging process of the built-in battery unit, the controller dynamically sets the first charging parameters before the charging of the built-in battery unit ends, based on the electrical detection results collected in real time by the first battery management chip and the real-time battery status information of the built-in battery unit. When the built-in battery unit is detected to have finished charging and the external battery unit has entered the charging state, the controller determines the initial second charging parameters based on the initial battery state information of the external battery unit. During the charging process of the external battery unit, the controller dynamically sets the second charging parameters before the external battery unit finishes charging, based on the electrical detection results collected in real time by the second battery management chip and the real-time battery status information of the external battery unit.

9. The method as described in claim 8, characterized in that, The controller dynamically sets the first charging parameters of the first battery management chip and the second charging parameters of the second battery management chip via a corresponding communication bus based on the adapter's connection status and the battery status information, including: When the adapter is not connected and the external battery unit enters a discharging state, the controller determines the initial first charging parameters based on the initial battery state information of the built-in battery unit. During the discharge process of the external battery unit, the controller dynamically sets the first charging parameters before the discharge of the external battery unit ends, based on the real-time battery status information of the external battery unit and the real-time battery status information of the internal battery unit. When the external battery unit is detected to have finished discharging, the controller dynamically sets the parameters for the built-in battery unit to supply power to the device motherboard based on the real-time battery status information of the built-in battery unit.

Citation Information

Patent Citations

  • Double-battery system, double-battery switching method, double-battery charging method and tablet personal computer

    CN111835057A