Electronic equipment and power supply method
By comparing battery voltage and controlling the charging function through the battery control module, the problems of current backflow and device power failure during battery switching are solved, which improves the battery life and safety of terminal devices, simplifies the design and reduces costs.
Patent Information
- Application Number
- CN202411153500.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2026-03-17
AI Technical Summary
When switching batteries in a terminal device, mutual charging of batteries may lead to problems such as shortened battery life and device power failure and shutdown, especially in dual-battery systems, which are complex to design and costly.
The battery control module compares battery voltages to control the charging function to prevent reverse current flow and automatically switches the power channel during battery switching to avoid mutual charging of batteries and power outages.
It prevents battery current backflow and device power loss during battery switching, improving battery life and battery safety, simplifying design and reducing costs.
Smart Images

Figure CN121689336A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic technology, and more particularly to an electronic device and a power supply method. Background Technology
[0002] Currently, some terminal devices use a removable battery design. When the battery is removed, the device shuts down, which cannot meet user needs. Therefore, more and more terminal devices are using dual batteries to ensure battery life. Typically, two batteries are installed in the terminal device, and the other battery is switched on to maintain power supply when one needs to be removed or charged. However, this solution may encounter problems when switching batteries: after connecting the new battery, the higher-charge battery may charge the lower-charge battery, affecting battery life and safety; or the original battery may be removed before the new battery is fully connected, causing the terminal device to shut down. Summary of the Invention
[0003] In view of this, this application provides an electronic device and a power supply method that can prevent battery charging during battery switching and prevent the electronic device from shutting down due to power loss, thereby ensuring the battery life of the electronic device and the safety of battery use.
[0004] In a first aspect, embodiments of this application provide an electronic device, including: a first connector, a second connector, a battery control module, and a load. The battery control module connects to the first connector, the second connector, and the load, and connects to a corresponding battery through at least one of the first and second connectors. The battery control module is configured to: acquire a first voltage of the first connector and a second voltage of the second connector; output a charging prohibition signal to a spare connector and a charging permission signal to a main connector based on the first and second voltages; the spare connector is the connector among the first and second connectors used to connect a battery to be removed, and the main connector is the connector among the first and second connectors used to connect a power supply battery; the charging prohibition signal is used to indicate that the battery connected to the spare connector is prohibited from charging, and the charging permission signal is used to indicate that the battery connected to the main connector is allowed to charge. After outputting the charging prohibition signal and the charging permission signal, the main connector and the spare connector are respectively connected to the load. After both the main connector and the spare connector are connected to the load, the spare connector is disconnected from the load, so that the battery connected to the main connector supplies power to the load alone.
[0005] Based on this design, electronic devices can control the battery charging function to prevent reverse current from flowing back into the battery. They can automatically switch the battery path when a single battery is in place or when both batteries are in place, while also preventing the electronic device from shutting down due to power loss. This makes the battery life and battery safety of electronic devices more secure, thereby improving the user experience.
[0006] In one embodiment, when the first voltage and the second voltage are not equal, the connector corresponding to the larger of the first and second voltages is the main connector, and the connector corresponding to the smaller of the first and second voltages is the spare connector. Alternatively, when the first voltage and the second voltage are equal, either the first connector or the second connector is the main connector, and the other of the first connector and the second connector is the spare connector.
[0007] In one embodiment, the battery control module includes a voltage comparison control unit, a first output switch, a second output switch, and a power output terminal. The voltage comparison control unit is connected to a first connector, a second connector, the first output switch, and the second output switch. The first output switch is connected between the first connector and the power output terminal, and the second output switch is connected between the second connector and the power output terminal. The power output terminal is used to connect a load. The voltage comparison control unit is used to compare a first voltage and a second voltage. Based on the comparison result, it outputs a charging prohibition signal to the backup connector and a charging enable signal to the main connector. After outputting the charging prohibition signal and the charging enable signal, the voltage comparison control unit is also used to control the backup output switch to turn on to connect the backup connector to the load, and to control the main output switch to turn on to connect the main connector to the load. After both the backup output switch and the main output switch are turned on, it controls the backup output switch to turn off to disconnect the backup connector from the load. The backup output switch is the output switch connected to the backup connector among the first and second output switches, and the main output switch is the output switch connected to the main connector among the first and second output switches. It can be understood that the line containing the first output switch constitutes one power channel for the load, and the line containing the second output switch constitutes another power channel for the load. The embodiments of this application can compare a first voltage and a second voltage, and control the battery charging function and switch the power supply channel accordingly, thereby enabling battery power supply switching while preventing battery current backflow and avoiding load power failure.
[0008] In one embodiment, the voltage comparison control unit includes a comparator, an inverter, and a delay controller. The two input terminals of the comparator are connected one-to-one with a first connector and a second connector, and the output terminal of the comparator is connected to the delay controller and the inverter. The comparator compares a first voltage and a second voltage, and outputs a first control signal to the delay controller and the inverter based on the comparison result. The inverter is connected to the delay controller and inverts the first control signal to output a second control signal to the delay controller. The delay controller is also connected to the first connector and the second connector, and outputs a charging disable signal to the backup connector and a charging enable signal to the main connector based on the first and second control signals. The delay controller is also connected to a first output switch and a second output switch, and outputs a backup drive signal to the backup output switch and a main drive signal to the main output switch based on the charging disable signal and the charging enable signal. The backup drive signal controls the switching state of the backup output switch to control the on / off state between the backup connector and the load, and the main drive signal controls the switching state of the main output switch to control the on / off state between the main connector and the load. The main drive signal lags behind the backup drive signal. Therefore, by working together with the comparator, inverter and delay controller, the switching states of the battery charging control switch, the first output switch and the second output switch can be accurately controlled, thereby enabling battery power switching to be completed while preventing battery current backflow and avoiding load power loss.
[0009] In one embodiment, the first control signal is opposite to the second control signal, and the backup drive signal is opposite to the main drive signal. The backup drive signal lags behind the charging prohibition signal by a first preset delay time, and the main drive signal lags behind the backup drive signal by a second preset delay time. It can be understood that the first preset delay time is set to ensure that the backup output switch and the main output switch are turned on only after the charging control switch of the battery to be removed is turned off and the charging control switch of the power supply battery is turned on, thereby preventing reverse current flow from the battery. The second preset delay time is set to prevent the main connector and the backup connector from simultaneously disconnecting from the load due to the slow turn-on of the backup output switch and the main output switch, resulting in a power outage. It ensures that the backup output switch is turned off only when both the main connector and the backup connector are connected to the load, thereby preventing a power outage.
[0010] In one embodiment, the delay controller is further configured to receive a first control signal and a second control signal at intervals. If at least two consecutive first control signals are consistent, and at least two consecutive second control signals are consistent, then a charging prohibition signal is output to the backup connector and a charging enable signal is output to the main connector. This allows for monitoring of signal stability, preventing fluctuations in the first and second control signals caused by voltage jitter, which could lead to frequent switching of the charging control switch, backup output switch, and main output switch, resulting in frequent power channel switching and thus inducing surge voltage and current, and the risk of power failure in electronic devices. Therefore, this design is beneficial for the power supply guarantee and safety performance of electronic devices.
[0011] In one embodiment, the battery control module is further configured to: when the backup connector and the load are disconnected, if the voltage of the main connector drops below a preset voltage threshold, control the backup output switch to turn on to connect the backup connector to the load. Based on this design, it avoids the risk of power loss to the electronic device due to the battery connected to the main connector being accidentally removed while the battery connected to the backup connector remains in place but cannot provide power.
[0012] In one embodiment, the battery includes a charging control switch, which is configured to: turn on the charging control switch to allow charging when a charging permission signal is received and the battery voltage is within a preset battery operating voltage range; and turn off the charging control switch to prohibit charging when a charging prohibition signal is received, or when the battery voltage is not within the preset battery operating voltage range. Thus, the battery can be controlled by the battery control module while ensuring safe charging.
[0013] In one embodiment, both the first connector and the second connector have a positive terminal, a negative terminal, and a control terminal. The battery control module is used to connect to the positive terminal of the battery via the positive terminal and to connect to the negative terminal of the battery via the negative terminal. The battery control module is used to communicate with the battery via the control terminal and to output a charging disable signal or a charging enable signal to the battery via the control terminal. Therefore, the first connector and the second connector can transmit both electrical energy and control signals.
[0014] In one embodiment, each battery includes a cell unit, a charging control switch, and a battery protection unit. The cell unit is connected in series with the charging control switch, and the battery protection unit is connected to both the cell unit and the charging control switch. The battery protection unit controls the switching state of the charging control switch based on the voltage of the cell unit and a received charging prohibition signal or charging enable signal. Therefore, the battery protection unit is controlled by the battery control module, and can thus cooperate with the battery control module to achieve switching between different battery power supplies.
[0015] In one embodiment, a first connector is used to connect a first battery, and a second connector is used to connect a second battery. The cell unit of the first battery has L pairs of positive and negative tabs, where L is a positive integer, and each of the L pairs of positive and negative tabs is connected to one of the L first connectors. The cell unit of the second battery has K pairs of positive and negative tabs, where K is a positive integer, and each of the K pairs of positive and negative tabs is connected to one of the K second connectors. That is, both the first and second batteries can be single-tab batteries or multi-tab batteries. Therefore, the electronic device in this embodiment can flexibly set the battery connectors and flexibly select the appropriate batteries according to actual needs.
[0016] In one embodiment, L first connectors and K second connectors are arranged alternately in the same direction, wherein an adjacent first connector and a second connector constitute a group of connectors, and different groups of connectors are spaced apart. This design allows the trace lengths of different groups of connectors to be as consistent as possible, thereby reducing power consumption differences.
[0017] In one embodiment, the battery connected to the first connector or the battery connected to the second connector is housed within the electronic device. Therefore, the electronic device of this embodiment employs a single-battery structure, or a single-battery system. Alternatively, both the battery connected to the first connector and the battery connected to the second connector are housed within the electronic device. Therefore, the electronic device of this embodiment employs a dual-battery structure, or a dual-battery system.
[0018] Secondly, embodiments of this application provide a power supply method applied to an electronic device. The power supply method includes: first, acquiring a first voltage of a first connector and a second voltage of a second connector; connecting at least one of the first and second connectors to a corresponding battery; then, outputting a charging prohibition signal to a spare connector and a charging permission signal to a main connector based on the first and second voltages; the spare connector is the connector among the first and second connectors used to connect a battery to be removed, and the main connector is the connector among the first and second connectors used to connect a power supply battery; the charging prohibition signal is used to indicate that the battery connected to the spare connector is prohibited from charging, and the charging permission signal is used to indicate that the battery connected to the main connector is allowed to charge; after outputting the charging prohibition signal and the charging permission signal, connecting the main connector and the spare connector to a load respectively; after both the main connector and the spare connector are connected to the load, disconnecting the spare connector from the load, so that the battery connected to the main connector supplies power to the load alone.
[0019] In one embodiment, the power supply method further includes: when the first voltage and the second voltage are not equal, using the connector corresponding to the larger voltage of the first voltage and the second voltage as the main connector and the connector corresponding to the smaller voltage of the first voltage and the second voltage as the spare connector; or, when the first voltage and the second voltage are equal, using either the first connector or the second connector as the main connector and the other as the spare connector.
[0020] In one embodiment, outputting a charging prohibition signal to a backup connector and an enabling charging signal to a main connector based on a first voltage and a second voltage includes: comparing the first voltage and the second voltage and generating a first control signal based on the comparison result; inverting the first control signal to generate a second control signal; and generating a charging prohibition signal to the backup connector and outputting an enabling charging signal to the main connector based on the first control signal and the second control signal.
[0021] In one embodiment, outputting a charging prohibition signal to a backup connector and an enabling charging signal to a main connector based on a first voltage and a second voltage includes: if at least two consecutive first control signals are consistent and at least two consecutive second control signals are consistent, then outputting a charging prohibition signal to the backup connector and an enabling charging signal to the main connector.
[0022] In one embodiment, after outputting a charging disable signal and a charging enable signal, connecting the main connector and the backup connector to the load respectively includes: after outputting the charging disable signal and the charging enable signal, controlling the backup output switch to turn on to connect the backup connector to the load, and controlling the main output switch to turn on to connect the main connector to the load. Correspondingly, after both the main connector and the backup connector are connected to the load, disconnecting the backup connector from the load includes: after both the backup output switch and the main output switch are turned on, controlling the backup output switch to turn off to disconnect the backup connector from the load; wherein the backup output switch is connected between the backup connector and the load, and the main output switch is connected between the main connector and the load.
[0023] In one embodiment, the power supply method further includes: when the backup connector and the load are disconnected, if the voltage of the main connector drops below a preset voltage threshold, controlling the backup output switch to turn on to connect the backup connector to the load.
[0024] Furthermore, the technical effects brought about by the second aspect and any of the embodiments in the second aspect can be referred to the technical effects brought about by the embodiments in the first aspect, and will not be repeated here. Attached Figure Description
[0025] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below.
[0026] Figure 1 This is a schematic diagram of the structure of an electronic device.
[0027] Figure 2 This is a schematic diagram of an electronic device provided in an embodiment of this application.
[0028] Figure 3 This is a schematic diagram of the layout structure of an electronic device provided in an embodiment of this application.
[0029] Figures 4A to 4D yes Figure 2 The diagram shows a battery replacement process for an electronic device.
[0030] Figure 5 This is a schematic diagram of another layout structure of the electronic device provided in the embodiments of this application.
[0031] Figure 6 This is a schematic diagram of a traditional BTB connector.
[0032] Figure 7 This is a schematic diagram of a first connector provided in an embodiment of this application.
[0033] Figure 8 yes Figure 3 A schematic diagram showing the battery control module connected to the first battery via a first connector and to the second battery via a second connector.
[0034] Figure 9 yes Figure 8 A control logic diagram of the charging control switch in the circuit.
[0035] Figure 10 yes Figure 8 A control logic diagram of the discharge control switch in the circuit.
[0036] Figure 11 yes Figure 3 Another schematic diagram shows the battery control module connected to the first battery via a first connector and to the second battery via a second connector.
[0037] Figure 12 yes Figure 3 A control logic diagram of the battery control module in the system.
[0038] Figure 13 yes Figure 3 A signal waveform diagram of the battery control module in the system.
[0039] Figure 14 This is a flowchart of a power supply method provided in an embodiment of this application. Detailed Implementation
[0040] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.
[0041] It is understood that the connection relationships described in this application refer to direct or indirect connections. For example, the connection between A and B can be a direct connection between A and B, or an indirect connection between A and B through one or more other electrical components. For instance, A can be directly connected to C, and C can be directly connected to B, thus achieving a connection between A and B through C. It is also understood that the "A connects to B" described in this application can be a direct connection between A and B, or an indirect connection between A and B through one or more other electrical components.
[0042] In the description of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B. The term "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. It is understood that, without conflict, the following embodiments and features described herein can be combined with each other.
[0043] Currently, some terminal devices use a removable battery design. However, removing the battery powers off the device, which doesn't meet user needs. Therefore, more and more terminal devices are adopting dual batteries to ensure longer battery life. Typically, such as... Figure 1 As shown, battery 1 and battery 2 are installed in a terminal device. Switch 1 is installed between battery 1 and the load, and switch 2 is installed between battery 2 and the load. When neither battery 1 nor battery 2 needs charging, switches 1 and 2 are closed simultaneously, and both batteries supply power to the load. When battery 1 needs to be removed or charged, switch 1 is opened and switch 2 is closed, and battery 2 continues to supply power to the load. When battery 2 needs to be removed or charged, switch 2 is opened and switch 1 is closed, and battery 1 continues to supply power to the load.
[0044] However, this solution may encounter problems when switching batteries: after connecting the new battery, the high-charge battery may charge the low-charge battery, causing reverse current flow and affecting battery life and safety; or the original battery may be removed before the new battery is fully connected, leading to power loss and shutdown of the terminal device. Furthermore, this solution requires the terminal device to have dual batteries (i.e., a dual-battery system), and also necessitates battery balancing circuits for both batteries, resulting in complex design, increased weight and size, and higher cost.
[0045] Therefore, this application provides an electronic device that avoids battery charging and power outages during battery switching, thus ensuring better battery life and safer battery use. Furthermore, the electronic device of this application can be a single-battery system and does not require a battery balancing circuit, making its design simpler and less costly.
[0046] The technical solution of this application will be further described below with reference to the accompanying drawings.
[0047] Figure 2 This is a schematic diagram of an electronic device 100 provided in an embodiment of this application.
[0048] like Figure 2 As shown, electronic device 100 is a mobile phone. It can be understood that electronic device 100 can be any electrical device with a removable battery design. For example, electronic device 100 can also be a tablet computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR) device, virtual reality (VR) device, artificial intelligence (AI) device, wearable device, in-vehicle device, smart home device, or smart city device, etc.
[0049] Figure 3 This is a schematic diagram of the layout of an electronic device 100 according to an embodiment of this application. Figure 3 The electronic device 100 shown includes a motherboard 10, a battery 20, a small board 30, and a flexible printed circuit (FPC) 40. The motherboard 10 can also be referred to as the first circuit board, and the small board 30 can also be referred to as the second circuit board.
[0050] In the embodiments of this application, see Figure 2 and Figure 3The electronic device 100 also includes a housing 50 and a display screen 60. The display screen 60 may be disposed on one side of the housing 50 and connected to the housing 50. It is understood that the housing 50 may be a one-piece structure. Alternatively, the housing 50 may also be a modular structure, for example, it may include a middle frame and a rear shell, with the middle frame connecting the display screen 60 and the rear shell. A receiving space is formed between the display screen 60 and the housing 50, and the main board 10, battery 20, and small board 30 of the electronic device 100 can be housed in this receiving space. The space in the receiving space used to house the battery 20 may be referred to as the battery compartment 70 (see reference). Figure 4C ).
[0051] like Figure 3 As shown, the motherboard 10 is equipped with a first connector 11, a second connector 12, a battery control module 13, and N loads 14 (corresponding to...). Figure 3 The loads are defined as follows: load 1, ..., load N, where N is a positive integer. The first connector 11, the second connector 12, and the N loads 14 are connected to the battery control module 13. Both the first connector 11 and the second connector 12 can be used to connect to the battery 20. The path from the first connector 11 to the load 14 constitutes one power channel for the load 14, and the path from the second connector 12 to the load 14 constitutes another power channel for the load 14.
[0052] The load 14 can be any component, module, unit or circuit that requires power, such as a power management IC (PMIC) or power management unit (PMU), or a processor unit, or a peripheral device or peripheral circuit of the processor unit.
[0053] Processor units include, but are not limited to, general-purpose central processing units (CPUs), graphics processing units (GPUs), application processors (APs), controllers, image signal processors (ISPs), modem processors, video codecs, digital signal processors (DSPs), baseband processors, neural network processing units (NPUs), application-specific integrated circuits (ASICs), or field-programmable gate arrays (FPGAs). Different processor units can be independent devices or at least partially integrated to form a system-on-a-chip (SoC). Peripheral devices or peripheral circuits of the processor unit include, but are not limited to, memory, audio modules, mobile communication modules, wireless communication modules, cameras, buttons, various sensors, and / or various interface circuits.
[0054] The battery 20 is located between the main board 10 and the small board 30. There can be only one battery 20; therefore, the electronic device 100 in this embodiment can be a single-battery structure. The battery 20 can be connected to the main board 10 via either the first connector 11 or the second connector 12. For ease of distinction, the battery 20 connected to the first connector 11 can be referred to as the first battery 20A, and the battery 20 connected to the second connector 12 can be referred to as the second battery 20B. Figure 3 The example shown is that the battery 20 is connected to the first connector 11, that is, the battery 20 inside the electronic device 100 is the first battery 20A.
[0055] The small board 30 can be connected to the motherboard 10 via PFC. The small board 30 is equipped with a charging interface 31. The charging interface 31 can be, for example, a universal serial bus (USB) interface, specifically a Mini USB interface, a MicroUSB interface, a USB Type-C interface, etc. In some embodiments, the USB interface can also serve as a communication interface for data transfer between the electronic device 100 and other devices, or it can be used to connect headphones for audio playback. It is understood that the small board 30 can also accommodate additional circuit modules and peripheral hardware such as a charging management module, a speaker, and / or a microphone.
[0056] Based on this design, the electronic device 100 can be powered by the first battery 20A. Specifically, the power from the first battery 20A can be sequentially transmitted to the load 14 through the first connector 11 and the battery control module 13, enabling the load 14 to power on and operate. Furthermore, the power from the first battery 20A can also be sequentially transmitted to the small board 30 through the motherboard 10 and the FPC 40, enabling the circuit modules and peripheral hardware on the small board 30 to power on and operate, thus realizing the relevant functions of the electronic device 100.
[0057] The electronic device 100 can also be connected to a charging device via the charging interface 31, and be powered by the charging device to charge the first battery 20A. Specifically, the electrical energy provided by the charging device can be input into the charging interface 31 and transmitted sequentially through the small board 30 and FPC 40 to the main board 10, so that the loads 14, etc. on the main board 10 can be powered. Figure 3 (Illustrated by the voltage Vout input to load 14). Additionally, electrical energy can be transferred from the first connector 11 on the motherboard 10 to the first battery 20A to charge the first battery 20A, thereby extending the battery life of the electronic device 100. The charging device can be, for example, a power adapter, charger, or power bank.
[0058] Several energy storage capacitors (also known as board-level capacitors, not shown in the figure) can be connected to the power supply input path of load 14. These energy storage capacitors can serve as voltage regulators and supplementary power in case of insufficient power supply. In some embodiments, load 14 can also be equipped with a corresponding power supply circuit to convert the electrical energy provided by the first battery 20A or the charging device into electrical energy that meets the specifications of load 14. The power supply circuit can be, for example, a direct current to direct current (DC-DC) converter circuit, a low dropout regulator (LDO), a charge pump, or other power supply circuits. The DC-DC converter circuit includes, but is not limited to, boost circuits, buck circuits, buck-boost circuits, and flyback circuits, and can be configured according to actual conditions; this application does not impose any special limitations on this.
[0059] Additionally, the battery life of electronic device 100 can be extended by replacing battery 20. Please refer to [link / reference]. Figures 4A to 4D , Figures 4A to 4D The process of replacing the first battery 20A with the second battery 20B is shown. For a more intuitive demonstration, [details omitted]. Figures 4A to 4D The connection between battery 20 and the connector only shows the positive tab (+) of battery 20 connected to the corresponding positive terminal B+ of the connector. It should be understood that... Figures 4A to 4DThe dimensions and shapes of the various components shown are merely illustrative and do not constitute a specific limitation on the scope of protection of this application.
[0060] like Figure 4A As shown, the electronic device 100 has a first battery 20A installed inside. This first battery 20A is connected to the first connector 11 and supplies power to the electronic device 100 independently, while the second connector 12 is idle. When the first battery 20A is low on power, it can be replaced with a second battery 20B with higher power. During battery replacement, the higher-power second battery 20B can be connected to the second connector 12 first (see [reference]). Figure 4B At this time, the second battery 20B is an external battery located outside the battery compartment 70, and the first battery 20A is an internal battery located inside the battery compartment 70. The first battery 20A and the second battery 20B can simultaneously power the electronic device 100. Then, the first battery 20A is removed, at which point the battery compartment 70 and the first connector 11 are both in an idle state (see [reference]). Figure 4C The second battery 20B remains outside the battery compartment 70 and supplies power to the electronic device 100 independently. Finally, the second battery 20B is rotated a certain angle relative to the motherboard 10 to be inserted into the battery compartment 70. The second battery 20B then becomes the internal battery of the electronic device 100, thus completing the battery replacement. It is understandable that because the FPC40 has excellent flexibility and can be bent and folded arbitrarily according to spatial layout requirements, the FPC40 does not affect the installation of the battery 20.
[0061] During the battery replacement process described above, the battery control module 13 can be used to manage the switching of the power channel between the first connector 11 and the load 14 and the power channel between the second connector 12 and the load 14, so that the electronic device 100 can switch from being powered by the first battery 20A to being powered by the second battery 20B without losing power or the battery current flowing back.
[0062] In this embodiment, the battery 20 may include a connected cell unit 21 and a battery protection board 22. The cell unit 21 stores electrical energy and can be used to supply power. In one embodiment, the cell unit 21 may be, for example, a lithium battery cell.
[0063] The battery cell unit 21 may include a battery cell body (not shown in the figure), tabs 211 disposed on the battery cell body, and a packaging film (not shown in the figure) wrapping the battery cell body. The packaging film may be, for example, an aluminum-plastic film, and may be sealed on one side of the battery cell body to form a top seal. The tabs 211 may extend from the top seal to the outside of the packaging film. The material used for the tabs 211 has a certain degree of ductility, and the tabs 211 may employ a bending design to improve strength, facilitating the installation of the battery cell unit 21. The tabs 211 include a positive tab (+) and a negative tab (-), wherein the positive tab constitutes the positive electrode of the battery 20, and the negative tab constitutes the negative electrode of the battery 20.
[0064] The specifications (such as capacity) of the cell units 21 in the first battery 20A and the second battery 20B can be the same or different, depending on actual needs. The cell unit 21 of the first battery 20A has L pairs of positive and negative tabs, and the cell unit 21 of the second battery 20B has K pairs of positive and negative tabs, where L and K are both positive integers. When the cell unit 21 has only one pair of positive and negative tabs, it is a single-tab cell, and the battery 20 is a single-tab battery. When the cell unit 21 has multiple pairs of positive and negative tabs, it is a multi-tab cell, and the battery 20 is a multi-tab battery 20. Generally, the more tabs 211 there are, the better it is to reduce the impedance of the battery 20 during charging and discharging, improve the current carrying capacity of the battery 20, and thus increase the charging speed.
[0065] Correspondingly, the number of first connectors 11 is the same as the number of tab pairs of the first battery 20A, which is also L, and L pairs of positive and negative tabs are connected one-to-one with L first connectors 11. For example, as Figure 3 As shown, when the cell unit 21 of the first battery 20A has only one pair of positive and negative tabs, that is, when the cell unit 21 is a single-tab cell and L=1, a corresponding first connector 11 is provided on the main board 10, and the positive and negative tabs of the first battery 20A are connected to the first connector 11. For example, as... Figure 5 As shown, when the cell unit 21 of the first battery 20A has two pairs of tabs 211, that is, the cell unit 21 is a bitab cell, and L=2, two first connectors 11 are correspondingly provided on the main board 10. Each pair of positive and negative tabs of the first battery 20A is connected to a corresponding first connector 11. The number of second connectors 12 is the same as the number of tab pairs of the second battery 20B, which is also K, and the K pairs of positive and negative tabs are connected one-to-one with the K second connectors 12. The setting of the second connectors 12 can be referred to the relevant description of the first connectors 11, and will not be repeated here.
[0066] Furthermore, such as Figure 3 and Figure 5As shown, L first connectors 11 and K second connectors 12 can be arranged alternately in the same direction. For example, taking the arrangement direction of the motherboard 10, battery 20, and small board 30 as the vertical direction, the L first connectors 11 and K second connectors 12 can be arranged alternately in the horizontal direction (i.e., the left-right direction). This facilitates the connection, removal, and replacement of the battery 20. Adjacent first connectors 11 and second connectors 12 form a group of connectors. First connectors 11 and second connectors 12 within the same group are arranged adjacent to each other, while connectors from different groups are spaced apart. This design ensures that the trace lengths of different groups of connectors are as consistent as possible, reducing power consumption differences. For example, as... Figure 5 As shown, the two sets of connectors are spaced a certain distance apart, with one set located on the left side of the motherboard 10 and the other on the right side of the motherboard 10. The wiring distribution of the two sets of connectors on the motherboard 10 is roughly symmetrical, so the wiring lengths can be basically the same.
[0067] It is understandable that if the battery 20 in the electronic device 100 uses a unipolar cell, then the replacement battery 20 will also use a unipolar cell (in which case K = L = 1). If the battery 20 in the electronic device 100 uses a bipolar cell, then the replacement battery 20 can use either a bipolar cell (in which case K = L = 2) or a unipolar cell (in which case L > K, L = 2, K = 1).
[0068] More specifically, when the internal battery of the electronic device 100 is a first battery 20A, and the replacement battery is a second battery 20B, and both the first battery 20A and the second battery 20B are bipolar batteries, before battery replacement, the first battery 20A is simultaneously connected to two first connectors 11, while the two second connectors 12 are idle. During battery replacement, one pair of positive and negative tabs of the second battery 20B can be connected to one second connector 12 on the motherboard 10, at which point one second connector 12 is idle. After removing the first battery 20A and installing the second battery 20B into the battery compartment 70, the other pair of positive and negative tabs is connected to the other second connector 12 on the motherboard 10. Therefore, the second battery 20B is ultimately connected to two second connectors 12 simultaneously. However, if the second battery 20B uses a unipolar cell, battery replacement is completed after the second battery 20B is installed into the battery compartment 70. Therefore, the replaced second battery 20B is ultimately connected to only one second connector 12.
[0069] In some embodiments, the first connector and the second connector can be board-to-board (BTB) connectors. For ease of description, this application uses the structure of the first connector as an example. The second connector has the same structure as the first connector, and therefore will not be described again.
[0070] Figure 6 A schematic diagram of a traditional BTB connector is shown. Figure 7 A schematic diagram of the structure of the first connector according to an embodiment of this application is shown.
[0071] In one example, such as Figure 6 As shown in Figure (a), a traditional BTB connector may include four terminals: a positive terminal B+, an identity detection terminal ID, a temperature detection terminal TS, and a negative terminal B-. Figure 7 As shown in Figure (a), the first connector 11 of this embodiment is... Figure 6 Based on the structure of the traditional BTB connector shown in Figure (a), a control terminal SW is added.
[0072] The positive terminal B+ connects the positive tab of the battery cell 21 to the battery control module 13, the negative terminal B- connects the negative tab of the battery cell 21 to the battery control module 13, and the identification terminal ID connects the battery protection board 22 to the main board 10 for the main board 10 to detect and identify battery information such as the model and manufacturer of the first battery 20A. The temperature detection terminal TS connects the battery protection board 22 to the main board 10 for the main board 10 to detect the temperature information of the first battery 20A. The control terminal SW connects the battery protection board 22 to the battery control module 13 to transmit electrical signals generated by the battery control module 13 to the battery protection board 22. For easy distinction, the electrical signal transmitted by the control terminal SW of the first connector 11 is designated as SW1, and the electrical signal transmitted by the control terminal SW of the second connector 12 is designated as SW2. The electrical signals include a prohibition signal indicating that charging of the battery 20 is prohibited, or a permit signal indicating that charging of the battery 20 is permitted.
[0073] In another example, such as Figure 6 As shown in Figure (b), a traditional BTB connector may include five terminals: positive terminal B+, temperature sensing terminal TS, data transmission terminal SDA, clock transmission terminal SCL, and negative terminal B-. Figure 7 As shown in Figure (b), the first connector 11 of this embodiment is... Figure 6 Based on the structure of the traditional BTB connector shown in Figure (b), a control terminal SW is added.
[0074] The data transmission terminal SDA and the clock transmission terminal SCL can form an I2C interface, which is a bidirectional synchronous serial bus interface. Both the data transmission terminal SDA and the clock transmission terminal SCL are used to connect the battery protection board 22 and the motherboard 10 so that the motherboard 10 can detect and identify the battery 20 information of the first battery 20A. Figure 7 Further descriptions of Figure (b) can be found in [reference]. Figure 7 The relevant description of Figure (a) will not be repeated here.
[0075] It should be understood that Figure 7 The terminal labels of the first connector 11 shown are merely examples and do not constitute a specific limitation on the embodiments of this application. In practical applications, the first connector 11 may also include more terminals (e.g., more positive terminals B+, negative terminals B-, or control terminals SW) or fewer terminals (e.g., omitting the identity detection terminal ID, temperature detection terminal TS, or data transmission terminal SDA and clock transmission terminal SCL), or may use other terminal labels. Figure 7 The function of the terminals shown in the diagram.
[0076] In the first battery 20A and the second battery 20B, the battery protection board 22 can protect the cell unit 21 and prevent the cell unit 21 from being overcharged, over-discharged, over-currented, or experiencing reverse current flow.
[0077] Please see Figure 8 In some embodiments, the battery protection board 22 includes a circuit board ( Figure 8 (Not shown in the diagram) and the battery protection unit 221 and switching transistors M1 and M2 are disposed on the circuit board. Switching transistors M1 and M2 are connected back to back and connected in series with the battery cell unit 21.
[0078] For ease of description, this embodiment uses battery protection unit 221 as the battery protection chip, and both switching transistors M1 and M2 are N-channel depletion-type MOSFETs connected in series with the negative electrode tab of cell unit 21. Switching transistor M1 serves as a discharge control switch, and switching transistor M2 serves as a charging control switch. Both switching transistors have body diodes. Furthermore, for simplicity... Figure 8 , Figure 9 Only the positive terminal B+, control terminal SW, and negative terminal B- of the first and second connectors are shown.
[0079] Under normal circumstances, the discharge control switch M1 and the charging control switch M2 are both on, forming a charging circuit and a discharging circuit, respectively. Therefore, when the first battery 20A is charging, the charging current flows into the positive terminal and out of the negative terminal. When the first battery 20A is discharging, the discharging current flows into the negative terminal and out of the positive terminal. In some cases, if the charging control switch M2 is turned off, the first battery 20A can form a discharging current circuit through the body diode of the charging control switch M2 and the on-state discharge control switch M1, but cannot form a charging current circuit. Therefore, in this case, the first battery 20A can only discharge and cannot be charged. In other cases, if the discharge control switch M1 is turned off, the first battery 20A can form a charging current circuit through the body diode of the discharge control switch M1 and the on-state charging control switch M2, but cannot form a discharging current circuit. Therefore, in this case, the first battery 20A can only be charged and cannot be discharged.
[0080] It should be understood that in other embodiments, switching transistors M1 and M2 may also be other MOSFETs, or other types of switching devices such as IGBTs, or may be connected in series with the positive electrode tab of the battery cell unit 21. When switching transistors M1 and M2 are connected in series with the positive electrode tab of the battery cell unit 21, switching transistor M1 acts as a charging control switch, and switching transistor M2 acts as a discharging control switch.
[0081] like Figure 8 As shown, the battery protection unit 221 has a first power supply pin VDD, a second power supply pin VSS, a discharge control pin OD, a charge control pin OC, and a detection pin VM. The first power supply pin VDD is connected to the positive terminal of the battery cell 21, the second power supply pin VSS is connected to the negative terminal of the battery cell 21, the discharge control pin OD is connected to the control terminal of the discharge control switch M1, the charge control pin OC is connected to the control terminal of the charge control switch M2, and the detection pin VM is connected to the charge control switch M2 through a detection resistor Rs.
[0082] Therefore, the battery protection unit 221 can detect the voltage between the first power supply pin VDD and the second power supply pin VSS, which is the voltage between the positive and negative terminals of the cell unit 21, i.e., the battery voltage of the first battery 20A, and determine whether the battery 20A is overcharged or over-discharged based on the battery voltage. Specifically, if the battery voltage is less than the set overvoltage charging protection threshold VOC and greater than the set overvoltage discharging protection threshold VOD, it indicates that the cell unit 21 is not overcharged or over-discharged. If the battery voltage is greater than or equal to the set overvoltage charging protection threshold VOC, it indicates that the cell unit 21 is overcharged. If the battery voltage is less than or equal to the set overvoltage discharging protection threshold VOD, it indicates that the cell unit 21 is over-discharged.
[0083] The battery protection unit 221 can also monitor the voltage difference ΔV between the detection pin VM and the second power supply pin VSS to determine whether the charging or discharging function of the first battery 20A is normal and whether the battery current is too high. For example, the greater the current, the greater the voltage of the detection resistor Rs, that is, the greater the voltage of the detection pin VM, and the greater the voltage difference ΔV between the second power supply pin VSS and the detection pin VM.
[0084] Specifically, during charging, under normal circumstances, the voltage of the detection pin VM is lower than the voltage of the second power supply pin VSS, meaning the voltage difference ΔV between the detection pin VM and the second power supply pin VSS is negative. If the voltage difference between the detection pin VM and the second power supply pin VSS is negative and does not exceed the set overcurrent charging protection threshold, it indicates that the first battery 20A can be charged and the charging current is normal. If the voltage difference ΔV is positive, it indicates that the first battery 20A cannot be charged normally. If the voltage difference ΔV is negative and exceeds the set overcurrent charging protection threshold, it indicates that the first battery 20A can be charged, but the charging current is too high.
[0085] During discharge, under normal circumstances, the voltage of the second power supply pin VSS is lower than the voltage of the detection pin VM, meaning the voltage difference ΔV between the detection pin VM and the second power supply pin VSS is positive. If the voltage difference between the detection pin VM and the second power supply pin VSS is positive and does not exceed the set overcurrent discharge protection threshold, it indicates that the first battery 20A can discharge and the discharge current is normal. If the voltage difference ΔV is negative, it indicates that the first battery 20A cannot discharge normally. If the voltage difference ΔV is positive and exceeds the set overcurrent discharge protection threshold, it indicates that the first battery 20A can discharge, but the discharge current is too large.
[0086] In addition, the battery protection unit 221 also has a communication pin IO. The communication pin IO is connected to the control terminal SW of the first connector 11, so that the battery protection board 22 of the first battery 20A can receive electrical signals from the battery control module 13 through the first connector 11.
[0087] Therefore, it can be used as a reference. Figure 9 The control logic of the charging control switch M2 is as follows:
[0088] When the battery voltage is greater than or equal to the set overvoltage charging protection threshold VOC, or the voltage difference ΔV between the detection pin VM and the second power supply pin VSS exceeds the set overcurrent charging protection threshold, or a charging prohibition signal is received, the charging control pin OC of the battery protection unit 221 can output a first level to control the charging control switch M2 to turn off, so as to prohibit the first battery 20A from charging.
[0089] When the battery voltage is less than the set overvoltage charging protection threshold VOC, and the voltage difference ΔV between the detection pin VM and the second power supply pin VSS does not exceed the set overcurrent charging protection threshold, and a charging prohibition signal is received, the charging control pin OC of the battery protection unit 221 can output a second level to control the charging control switch M2 to be turned on, so as to allow the first battery 20A to be charged.
[0090] You can refer to this. Figure 10 The control logic of the discharge control switch M1 is as follows:
[0091] If the battery voltage is less than or equal to the set overvoltage discharge protection threshold VOD, or if the voltage difference ΔV between the detection pin VM and the second power supply pin VSS exceeds the set overcurrent discharge protection threshold, the discharge control pin OD of the battery protection unit 221 can output a third level to control the discharge control switch M1 to turn off, so as to prevent the first battery 20A from discharging.
[0092] When the battery voltage is greater than the set overvoltage discharge protection threshold VOD, and the voltage difference ΔV between the detection pin VM and the second power supply pin VSS does not exceed the set overcurrent discharge protection threshold, the discharge control pin OD of the battery protection unit 221 can output a fourth level to control the discharge control switch M1 to turn on, so as to allow the first battery 20A to discharge.
[0093] In this context, the first voltage level differs from the second voltage level, and the third voltage level differs from the fourth voltage level. For example, when the charging control switches M1 and M2 use N-channel MOSFETs, the first and third voltage levels can be low, while the second and fourth voltage levels can be high.
[0094] The structure of the second battery 20B is similar to that of the first battery 20A. In the second battery 20B, the battery protection board 22 includes a battery protection unit 221, a discharge control switch M3, and a charging control switch M4. For details, please refer to the relevant description of the first battery 20A, which will not be repeated here. The communication pin IO of the battery protection unit 221 of the second battery 20B is connected to the control terminal SW of the second connector 12, allowing the battery protection board 22 of the second battery 20B to receive electrical signals from the battery control module 13 through the second connector 12. It can be understood that the control logic of the charging control switch M4 can be referenced to that of the charging control switch M2, and the control logic of the discharge control switch M3 can be referenced to that of the discharge control switch M1; therefore, it will not be described again here.
[0095] The battery protection board 22 outputs drive signals to the charging control switch and the discharging control switch to control their switching states. For ease of distinction, Figure 8The drive signal received by the discharge control switch M1 is denoted as S1, the drive signal received by the charging control switch M2 is denoted as S2, the drive signal received by the discharge control switch M3 is denoted as S3, and the drive signal received by the charging control switch M4 is denoted as S4.
[0096] It should be understood that Figure 8 The pin labels of the battery protection unit 221 shown are merely examples and do not constitute a specific limitation on the embodiments of this application. In practical applications, other pin labels can also be used. Figure 8 The pin functions are shown in the diagram.
[0097] In this embodiment of the application, the voltage between the positive and negative terminals of the first connector 11 is referred to as the first voltage (corresponding to...). Figure 3 The voltage between the positive and negative terminals of the second connector 12 (as per V1) is called the second voltage (corresponding to V1). Figure 3 (V2 in the text).
[0098] It should be understood that when the first connector 11 is connected to the first battery 20A, the first voltage is also the battery voltage of the first battery 20A; when the second connector 12 is connected to the second battery 20B, the second voltage is also the battery voltage of the second battery 20B. When the first connector 11 is not connected to the first battery 20A, the first voltage is equal to 0; when the second connector 12 is not connected to the first battery 20A, the second voltage is equal to 0.
[0099] Furthermore, the first voltage and the second voltage may be equal or unequal. For example, Figure 4A As shown, when the first battery 20A is in place (i.e., the first connector 11 is connected to the first battery 20A) and the second battery 20B is not in place (i.e., the second connector 12 is not connected to the second battery 20B), the second voltage is 0, and the first voltage is greater than the second voltage. Figure 4C and Figure 4D As shown, when the first battery 20A is not in place (that is, the first connector 11 is not connected to the first battery 20A) and the second battery 20B is in place (that is, the second connector 12 is connected to the second battery 20B), the first voltage is 0, and the first voltage is less than the second voltage.
[0100] like Figure 4BAs shown, when both the first battery 20A and the second battery 20B are in place, i.e., the first connector 11 is connected to the first battery 20A and the second connector 12 is connected to the second battery 20B, the charge of the first battery 20A may be higher than that of the second battery 20B, resulting in a first voltage greater than a second voltage. Alternatively, the charge of the first battery 20A may be lower than that of the second battery 20B, resulting in a first voltage less than a second voltage. Or, the charge of the first battery 20A may be approximately the same as that of the second battery 20B, resulting in a first voltage equal to a second voltage.
[0101] Based on the above description, it can be understood that when the electronic device 100 is not turned off, if the first voltage and the second voltage are not equal, the connector corresponding to the larger voltage may be connected to the battery 20, while the connector corresponding to the smaller voltage may or may not be connected to the battery 20. When the first voltage and the second voltage are equal, both connectors corresponding to the first and second voltages are usually connected to the battery 20.
[0102] Therefore, when the first voltage and the second voltage are not equal, the connector corresponding to the larger of the first and second voltages can be used as the main connector, and the connector corresponding to the smaller of the first and second voltages can be used as the spare connector. When the first voltage and the second voltage are equal, either the first connector 11 or the second connector 12 can be used as the main connector, and the other of the first connector 11 and the second connector 12 can be used as the spare connector.
[0103] The main connector refers to the connector in the first connector 11 and the second connector 12 used to connect the power supply battery, while the spare connector refers to the connector in the first connector 11 and the second connector 12 used to connect the battery to be removed. Therefore, when both the first battery 20A and the second battery 20B are in place, the battery 20 connected to the main connector is the battery in the first battery 20A and the second battery 20B used to supply power to the load 14, and the battery 20 connected to the spare connector is the battery in the first battery 20A and the second battery 20B to be removed.
[0104] In this embodiment, when both the first battery 20A and the second battery 20B are present and their voltages are unequal, the high-charge, high-voltage battery 20 will charge the low-charge, low-voltage battery 20, causing reverse current flow in the low-charge, low-voltage battery 20 and damaging its lifespan. Therefore, to avoid mutual charging and reverse current flow between batteries 20, the battery control module 13 can be used to obtain the first voltage V1 of the first connector 11 and the second voltage V2 of the second connector 12, and output a charging prohibition signal to the spare connector in the first connector 11 and the second connector 12, and output a charging allow signal to the main connector in the first connector 11 and the second connector 12, based on the first voltage V1 and the second voltage V2.
[0105] Based on this, when the backup connector is connected to battery 20, the backup connector can transmit a charging prohibition signal to the connected battery 20 to prevent it from charging. When the main connector is connected to battery 20, the main connector can transmit a charging enable signal to the connected battery 20 to allow it to charge. Thus, when both the main connector and the backup connector are connected to battery 20, because the battery 20 connected to the backup connector cannot be charged, even if the first voltage and the second voltage are not equal, there will be no situation where the high-charge battery 20 charges the low-charge battery 20, causing the low-charge battery 20 to experience reverse current flow. When the main connector is connected to battery 20 and the backup connector is not connected to battery 20, since there is only one battery 20 at this time, there is no situation where the batteries 20 charge each other. Moreover, while avoiding the situation where the batteries 20 charge each other, the normal charging of the battery 20 connected to the main connector will not be affected.
[0106] Furthermore, after outputting the charging disable signal and the charging enable signal, the battery control module 13 can also be used to connect the main connector and the backup connector to the load 14 respectively. After both the main connector and the backup connector are connected to the load 14, the battery control module 13 can also be used to disconnect the backup connector from the load 14, so that the battery 20 connected to the main connector supplies power to the load 14 alone.
[0107] It is understandable that if the main connector is connected to battery 20, and the backup connector is also connected to a corresponding battery 20, then during the process of connecting both the main connector and the backup connector to load 14 and then disconnecting the backup connector from load 14, the battery 20 connected to the main connector can continuously supply power to load 14. The battery 20 connected to the backup connector can initially supply power to load 14 together with the battery 20 connected to the main connector, and then stop supplying power. If the main connector is connected to battery 20, but the backup connector is not connected to battery 20, then during the process of connecting both the main connector and the backup connector to load 14 and then disconnecting the backup connector from load 14, the battery 20 connected to the main connector can continuously supply power to load 14. Therefore, this design ensures that a battery 20 connected to a connector always supplies power to load 14, thus ensuring that load 14 is never powered down.
[0108] Furthermore, after the backup connector and load 14 are disconnected, if the backup connector is connected to battery 20, since battery 20 connected to the backup connector has stopped supplying power to load 14, the user can safely remove battery 20 connected to the backup connector. Moreover, since battery 20 connected to the main connector can continuously supply power to load 14, removing battery 20 will not affect the normal operation of load 14.
[0109] To better understand the battery control module 13, the following will be combined with... Figure 8 , Figures 11 to 13 The example provides a more detailed explanation of the structure and operation of the battery control module 13.
[0110] In some embodiments, please refer to Figure 8 The battery control module 13 may include a voltage comparison control unit 131, a first output switch Q1, a second output switch Q2, and a power output terminal 132. For ease of description, this embodiment illustrates that the first output switch Q1 and the second output switch Q2 are P-channel enhancement-mode MOSFETs. In other embodiments, the first output switch Q1 and the second output switch Q2 may also be other MOSFETs, or other types of switching devices such as IGBTs.
[0111] The first output switch Q1 is connected between the first connector 11 and the power output terminal 132, and the second output switch Q2 is connected between the second connector 12 and the power output terminal 132. The power output terminal 132 is used to connect the load 14. Therefore, the line containing the first output switch Q1 constitutes one power channel, and the line containing the second output switch Q1 constitutes another power channel. The power channel can be switched by changing the switching state of the first output switch Q1 and the second output switch Q2.
[0112] The voltage comparison control unit 131 is connected to the control terminal of the first output switch Q1 and the control terminal of the second output switch Q2. The voltage comparison control unit 131 is also connected to the positive terminal B+, the negative terminal B- and the control terminal SW of the first connector 11, and the positive terminal B+, the negative terminal B- and the control terminal SW of the second connector 12, wherein the negative terminal B- of the first connector 11 and the negative terminal B- of the second connector 12 are grounded.
[0113] In this context, the output switch connected to the spare connector in the first output switch Q1 and the second output switch Q2 can be called the spare output switch, and the output switch connected to the main connector in the first output switch Q1 and the second output switch Q2 can be called the main output switch. For ease of description, Figure 8 The example shown uses the first connector 11 as a spare connector connected to the first battery 20A, and the second connector 12 as the main connector connected to the second battery 20B. Therefore, the first output switch Q1 is the spare output switch, and the second output switch Q2 is the main output switch. It can be understood that the voltage comparison control unit 131 outputs drive signals to the first output switch Q1 and the second output switch Q2 to control their switching states. For ease of distinction, Figure 8 and Figure 11 , Figure 13 The drive signal received by the first output switch Q1 is denoted as D1, and the drive signal received by the second output switch Q2 is denoted as D2.
[0114] Therefore, the voltage comparison control unit 131 can obtain a first voltage V1 from the positive terminal B+ of the first connector 11 and a second voltage V2 from the positive terminal B+ of the second connector 12, and then compare the magnitudes of the first voltage V1 and the second voltage V2. Based on the comparison result of the first voltage V1 and the second voltage V2, it outputs a charging prohibition signal to the control terminal SW of the first connector 11 and a charging permission signal to the control terminal SW of the second connector 12. The first battery 20A can then receive the charging prohibition signal, and the second battery 20B can receive the charging permission signal.
[0115] Subsequently, the voltage comparison control unit 131 can control the standby output switch Q1 to turn on, connecting the standby connector to the load 14, and control the main output switch Q2 to turn on, connecting the main connector to the load 14. At this time, both power channels are on to avoid switching before the two power channels are simultaneously turned on, which could cause the load 14 to lose power. After both the standby output switch Q1 and the main output switch Q2 are on, the voltage comparison control unit 131 then controls the standby output switch Q1 to turn off, disconnecting the standby connector from the load 14, thereby completing the selection of the power channels.
[0116] It can be understood that the structure of the voltage comparison control unit 131 is not limited, as long as the corresponding functions can be achieved. For example, in some embodiments, the voltage comparison control unit 131 may adopt a microcontroller (MCU), and the MCU has multiple interfaces to be connected to the first connector 11, the second connector 12, the main output switch Q1, and the auxiliary output switch Q2.
[0117] For another example, in other embodiments, as Figure 11 shown, the voltage comparison control unit 131 may include a comparator 1311, an inverter 1312, and a delay controller 1313.
[0118] Among them, the comparator 1311 may adopt an inverting comparator, a non-inverting comparator, or other comparison circuits. The inverter 1312 may adopt any inverting circuit with a signal inverting function, and the delay controller 1313 may adopt any controller or circuit with a signal delay and control function. For the convenience of description, Figure 11 the case where the comparator 1311 is an inverting comparator, the first connector 11 is a spare connector, the first battery 20A is a battery to be removed, the second connector 12 is a main connector, and the second battery 20B is a power supply battery is taken as an example for display.
[0119] Specifically, the two input terminals of the comparator 1311 are connected to the first connector 11 and the second connector 12 in a one-to-one correspondence, and the output terminal of the comparator 1311 is connected to the delay controller 1313 and the inverter 1312. Based on such a design, the comparator 1311 can be used to compare the first voltage and the second voltage, and output a first control signal P1 to the delay controller 1313 and the inverter 1312 according to the comparison result.
[0120] Among them, when the comparator 1311 is an inverting comparator 1311, the inverting input terminal of the comparator 1311 is connected to the first voltage V1 on the positive terminal B+ in the first connector ①, and the non-inverting input terminal of the comparator 1311 is connected to the second voltage V2 on the positive terminal B+ in the second connector 12. If V1 > V2, the comparator ① outputs a first control signal P1 with a low level. If V1 < V2, the comparator 1311 outputs a first control signal P1 with a high level.
[0121] The inverter 1312 is also connected to the delay controller 1313. Therefore, in the case of receiving the first control signal P1, the inverter 1312 can be used to invert the first control signal P1 to output a second control signal P2 to the delay controller 1313.
[0122] The delay controller 1313 is also connected to the first connector 11, the second connector 12, the first output switch Q1, and the second output switch Q2. Therefore, upon receiving the first control signal P1 and the second control signal P2, the delay controller 1313 can output a charging prohibition signal to the backup connector and a charging enable signal to the main connector according to the first control signal P1 and the second control signal P2. It can also output a backup drive signal to the backup output switch Q1 according to the charging prohibition signal and output a main drive signal to the main output switch Q2 according to the charging enable signal.
[0123] The charging prohibition signal instructs (or controls) the battery connected to the backup connector to disconnect the charging control switch M2 to prohibit charging. The charging enable signal instructs (or controls) the battery connected to the main connector to turn on the charging control switch M4 to allow charging. The backup drive signal controls the switching state of the backup output switch Q1 to control the on / off state between the backup connector and the load 14. The main drive signal controls the switching state of the main output switch Q2 to control the on / off state between the main connector and the load 14.
[0124] It is worth mentioning that the first connector 11 and the second connector 12 may experience unstable fluctuations in the first and second voltages due to poor contact with the battery 20, which may cause fluctuations in the first and second control signals. If the first and second control signals fluctuate frequently, generating charging prohibition signals, charging enable signals, main drive signals, and backup drive signals, it will cause frequent switching of the charging control switch M2, charging control switch M4, backup output switch Q1, and main output switch Q2, resulting in frequent switching of the power supply channel. This will lead to surge voltage and surge current, and may also cause the electronic equipment to lose power.
[0125] Therefore, in order to reduce the safety risks and power failure risks of electronic device 100, in one embodiment, the delay controller 1313 may also perform signal stability monitoring before generating the charging prohibition signal and the charging allow signal.
[0126] Specifically, such as Figure 12 As shown, when a change is detected in the first control signal and the second control signal, the delay controller 1313 can receive the signals (i.e., the first control signal P1 and the second control signal P2) at preset time intervals. The preset time interval can be set according to the actual situation, for example, 100 milliseconds.
[0127] If the first control signal and the second control signal are consistent at least twice consecutively, it indicates that the first voltage and the second voltage are stable, thus stabilizing the first control signal and the second control signal accordingly. Therefore, the delay controller 1313 can output a charging prohibition signal and a charging enable signal. Otherwise, it indicates that the first voltage and the second voltage are not stable, so signal reception continues until the first control signal and the second control signal are stable. When the first control signal and the second control signal are stable, the delay controller 1313 can output the charging prohibition signal and the charging enable signal based on the first control signal and the second control signal.
[0128] In one embodiment, the delay controller 1313 may generate a charging enable signal based on one of the first control signal P1 and the second control signal P2 and output it to the first connector 11, and generate a charging disable signal based on the other of the first control signal P1 and the second control signal P2 and output it to the second connector 12. For example, the low-level control signal in the first control signal P1 and the second control signal P2 may be used as the charging disable signal, and the high-level control signal in the first control signal P1 and the second control signal P2 may be used as the charging enable signal. Moreover, the delay controller 1313 may output a backup drive signal to a backup output switch and a main drive signal to a main output switch based on the charging disable signal and the charging enable signal.
[0129] Since the waveforms of the first control signal P1 and the second control signal P2 are opposite, the waveforms of the charging enable signal and the charging disable signal are also opposite, and correspondingly, the waveforms of the main drive signal and the standby drive signal are also opposite. Furthermore, refer to... Figure 12 The backup drive signal lags behind (or is delayed by) the charging prohibition signal and the charging enable signal by a first preset delay time T1. The main drive signal lags behind the backup drive signal by a second preset delay time T2, that is, the main drive signal lags behind the charging prohibition signal and the charging enable signal by a time T1+T2.
[0130] The durations of the first preset delay time T1 and the second preset delay time T2 can be set according to actual needs. For example, T1 can be set to 200 milliseconds and T2 can be set to 10 milliseconds.
[0131] It is understandable that the first preset delay time T1 is set to ensure that the backup output switch and the main output switch are turned on only after the charging control switch of the battery to be removed is turned off and the charging control switch of the power supply battery is turned on, thereby preventing current backflow from battery 20. The second preset delay time T2 is set to prevent the main connector and the backup connector from disconnecting from the load 14 simultaneously due to the slow turn-on of the backup output switch and the main output switch, which would cause the load 14 to lose power. It ensures that the backup output switch is turned off only when both the main connector and the backup connector are connected to the load 14, thereby preventing the load 14 from losing power.
[0132] In one embodiment, after the backup output switch is turned off, a situation may occur where the power supply battery is accidentally removed while the battery to be removed remains inserted in the backup connector. Continuing with the example of the second battery 20B as the power supply battery and the first battery 20A as the battery to be removed, if the user accidentally removes the second battery 20B, it disconnects from the second connector 12, and the second voltage instantly drops to 0. Although the first battery 20A remains connected to the backup connector, since the backup output switch is off, neither the first battery 20A nor the second battery 20B can supply power to the load 14 at this time. The load 14 can only draw power from the energy storage capacitor. However, the energy stored in the energy storage capacitor is limited and has a short duration (e.g., milliseconds). If the power supply is not restored in time, the electronic device 100 will instantly shut down.
[0133] In response to this situation, the delay controller 1313 of this embodiment can perform interruption detection and control when the spare connector and the load 14 are disconnected.
[0134] Specifically, the delay controller 1313 can be connected to the non-inverting input and the inverting input of the comparator 1311, that is, to the positive terminal B+ of the first connector 11 and the second connector 12. Based on this, the delay controller 1313 can receive the first voltage and the second voltage. Furthermore, when the backup connector and the load 14 are disconnected, if the voltage of the main connector drops below a preset voltage threshold, it indicates that the power supply battery may have been accidentally removed, causing the voltage drop of the main connector. Therefore, the delay controller 1313 performs interrupt control, that is, the delay controller 1313 quickly (e.g., within tens of microseconds) controls the backup output switch to turn on to connect the backup connector to the load 14, so that the backup connector can supply power to the load 14 in a timely manner, preventing the electronic device 100 from shutting down due to power failure.
[0135] Please see Figure 13 , showed Figure 11 The diagram shows a signal waveform of the first connector 11, the second connector 12, and the battery control module 13. The following is in conjunction with... Figure 13 Example signal waveform diagram, for Figure 11The operation of the battery control module 13 is illustrated by way of example.
[0136] For ease of description, it is assumed that the battery voltages of the first battery 20A and the second battery 20B are both within a preset operating voltage range for battery 20. This operating voltage range can refer to the voltage range between a set overvoltage charging protection threshold and a set overvoltage discharging protection threshold. The battery currents of both the first battery 20A and the second battery 20B are assumed to be within a set safe current range. Furthermore, in the first and second voltage waveforms, a high level indicates that the corresponding battery 20 has a certain amount of charge, while a low level indicates that the corresponding battery 20 has insufficient charge. In waveforms SW1 and SW2, a high level represents a charging-enabled signal, and a low level represents a charging-disabled signal.
[0137] During the first period, the first battery 20A is in place and serves as the internal battery of the electronic device 100, while the second battery 20B is not in place (see reference). Figure 4A At this time, the first battery 20A has a certain amount of power and can stably supply power to the load 14. Therefore, the states of the charging control switch M2, the charging control switch M4, the backup output switch Q1, and the main output switch Q2 remain unchanged during the first period.
[0138] Specifically, during the first time period, V1 > V2, so comparator 1311 outputs a low-level first control signal P1 to delay controller 1313 and inverter 1312. Inverter 1312 then outputs a high-level second control signal P2, opposite to the first control signal P1, to delay controller 1313. Delay controller 1313 outputs a low-level charging disable signal to control terminal SW of second connector 12 and a high-level charging enable signal to control terminal SW of first connector 11. Therefore, the communication pin IO of battery protection board 22 in first battery 20A can receive a high-level charging enable signal from control terminal SW of first connector 11 and correspondingly output a high-level drive signal S2 to turn on charging control switch M2, allowing first battery 20A to charge normally. Delay controller 1313 also outputs a high-level standby drive signal to turn off second output switch Q2 and a low-level main drive signal to turn on first output switch Q1. Therefore, first battery 20A can supply power to load 14 independently.
[0139] Because load 14 continuously consumes the power of the first battery 20A, it needs to be replaced with the higher-capacity second battery 20B when the first battery 20A is low on power. Therefore, at time a, the electronic device 100 connects to the second battery 20B, at which point both the first battery 20A and the second battery 20B are in place (see reference). Figure 4B ).
[0140] In the second period, V1 < V2, so the comparator 1311 outputs a high-level first control signal P1 to the delay controller 1313 and the inverter 1312. The inverter 1312 then outputs a second control signal P2, which is opposite to the first control signal P1 and is at a low level, to the delay controller 1313. The delay controller 1313 outputs a low-level charging inhibition signal to the control terminal SW of the first connector 11 and outputs a high-level charging permission signal to the control terminal SW of the second connector 12.
[0141] Therefore, the communication pin IO of the battery protection board 22 in the first battery 20A can receive a low-level charging inhibition signal from the control terminal SW of the first connector 11 and correspondingly output a low-level drive signal S2 to turn off the charging control switch M2, so the first battery 20A cannot be charged. The communication pin IO of the battery protection board 22 in the second battery 20B can receive a high-level charging permission signal from the control terminal SW of the second connector 12 and correspondingly output a high-level drive signal S4 to turn on the charging control switch M4, and the second battery 20B is charged normally.
[0142] After waiting for the first preset delay time T1, the delay controller 1313 outputs a low-level standby drive signal to turn on the first output switch Q1 and outputs a low-level main drive signal to turn on the second output switch Q2. At this time, the first battery 20A and the second battery 20B jointly supply power to the load 14. Since the first battery 20A cannot be charged by the second battery 20B at this time, there will be no problem of current backflow.
[0143] After waiting for the second preset delay time T2, the delay controller 1313 outputs a high-level standby drive signal to turn off the first output switch Q1 and at the same time keeps outputting a low-level main drive signal to keep the second output switch Q2 turned on. Therefore, the second battery 20B can supply power to the load 14 alone, and the first battery 20A stops supplying power to the load 14.
[0144] Furthermore, the first battery 20A can be removed (refer to Figure 4C ), and the removed first battery 20A can be charged by the battery 20 charging device. The second battery 20B can be installed in the electronic device 100 (refer to Figure 4D ) and supply stable power to the load 14. Therefore, in the third period, the states of the charging control switch M2, the charging control switch M4, the standby output switch Q1, and the main output switch Q2 remain unchanged.
[0145] After that, if the power of the second battery 20B is insufficient, it is replaced with the first battery 20A with a high power. Therefore, at time b, the first battery 20A is reconnected to the electronic device 100, and at this time both the first battery 20A and the second battery 20B are in place.
[0146] In the fourth time period, V1 > V2, so comparator 1311 outputs a low-level first control signal P1 to delay controller 1313 and inverter 1312. Inverter 1312 then outputs a high-level second control signal P2 to delay controller 1313. Delay controller 1313 outputs a low-level charging disable signal to control terminal SW of second connector 12 and a high-level charging enable signal to control terminal SW of first connector 11. Therefore, battery protection board 22 in first battery 20A outputs a high-level drive signal S2 to turn on charging control switch M2, and first battery 20A charges normally. Battery protection board 22 in second battery 20B outputs a low-level drive signal S4 to turn off charging control switch M4, and second battery 20B cannot be charged.
[0147] After waiting for the first preset delay time T1, the delay controller 1313 outputs a low-level standby drive signal to turn on the second output switch Q2, and outputs a low-level main drive signal to turn on the first output switch Q1. At this time, the first battery 20A and the second battery 20B jointly supply power to the load 14. Since the second battery 20B cannot be charged by the first battery 20A at this time, there is no reverse current problem.
[0148] After waiting for the second preset delay time T2, the delay controller 1313 outputs a high-level standby drive signal to turn off the second output switch Q2, while maintaining a low-level main drive signal to keep the first output switch Q1 on. Therefore, the first battery 20A can supply power to the load 14 independently, and the second battery 20B stops supplying power to the load 14.
[0149] Furthermore, the second battery 20B can be removed, and the first battery 20A can be installed in the electronic device 100 to provide stable power to the load 14 (see reference). Figure 4A Therefore, during the fifth time period, the states of charging control switch M2, charging control switch M4, standby output switch Q1, and main output switch Q2 remain unchanged.
[0150] Through the above working process, the battery control module 13 can accurately switch the power channel and the power supply battery, thereby ensuring that the electronic device 100 can be continuously powered on and operated.
[0151] It should be noted that the above Figure 8 , Figures 11 to 13The described embodiments are merely illustrative examples provided in this application. This application does not limit the specific composition of the battery control module 13. For example, some units in the battery control module 13 can be combined, split, or replaced, etc., and can be adjusted accordingly according to the actual situation, all of which are within the protection scope of this application. It should be understood that as the structure of the battery control module 13 is adjusted, the specific working process of the battery control module 13 will also be adjusted accordingly, but the function is essentially the same, and therefore all of which are within the protection scope of this application.
[0152] It is understood that the layout and structure of the electronic device 100 illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In practical applications, the layout and structure of the electronic device 100 can be adjusted according to actual needs. For example, in one embodiment, the electronic device 100 may also adopt a dual-battery structure, that is, the first battery 20A and the second battery 20B are both housed in the same battery compartment or different battery compartments in the electronic device 100. Other descriptions of this embodiment can be adjusted accordingly by referring to the embodiments of this application or based on the relevant descriptions of the embodiments of this application. For another example, the electronic device 100 may also include... Figure 3 This may involve more or fewer components, or combining or separating certain components, or arranging them differently. Components or functional modules may be at least partially integrated together, or they may be implemented independently. Components or functional modules may be implemented in hardware, or a combination of software and hardware.
[0153] Based on the aforementioned electronic device 100, this application embodiment also provides a power supply method for the electronic device. This power supply method can be executed by the battery control module 13.
[0154] like Figure 14 As shown, the power supply method may include:
[0155] Step S1: Obtain the first voltage of the first connector and the second voltage of the second connector; at least one of the first connector and the second connector is connected to the corresponding battery.
[0156] Step S2: Output a charging prohibition signal to the backup connector and a charging enable signal to the main connector based on the first voltage and the second voltage.
[0157] As previously described, the spare connector is one of the first connectors 11 and the second connector 12 used to connect the battery to be removed, and the main connector is one of the first connectors 11 and the second connector 12 used to connect the power supply battery. A charging prohibition signal indicates that the battery 20 connected to the spare connector is prohibited from charging, and a charging enable signal indicates that the battery 20 connected to the main connector is allowed to charge.
[0158] In step S2, the main connector and the spare connector can be determined based on the relationship between the magnitude of the first voltage and the second voltage.
[0159] Specifically, when the first voltage and the second voltage are not equal, the battery control module 13 can use the connector corresponding to the larger of the first and second voltages as the main connector and the connector corresponding to the smaller of the first and second voltages as the backup connector. This facilitates the high-capacity battery 20 to supply power to the load 14, thereby improving the long-term battery life of the electronic device 100.
[0160] When the first voltage is equal to the second voltage, the battery control module 13 can use either the first connector 11 or the second connector 12 as the main connector and the other of the first connector 11 and the second connector 12 as the spare connector.
[0161] In some embodiments, for example Figure 8 and Figure 11 The illustrated embodiment, the process of outputting a charging disable signal to the backup connector and a charging enable signal to the main connector based on a first voltage and a second voltage, may include:
[0162] Step S21: Compare the first voltage and the second voltage, and generate a first control signal based on the comparison result.
[0163] Step S22: Invert the first control signal to generate the second control signal.
[0164] Step S23: Based on the first control signal and the second control signal, generate a charging prohibition signal to the backup connector and output a charging enable signal to the main connector.
[0165] Understandable, can be used as a reference Figure 9 For the battery 20 connected to the main connector, when a charging permission signal is received and the battery voltage is within a preset operating voltage range for the battery 20, the battery 20 connected to the main connector will turn on the charging control switch to allow charging. The operating voltage range for the battery 20 can refer to the voltage range between a set overvoltage charging protection threshold and a set overvoltage discharging protection threshold. For the battery 20 connected to the backup connector, when a charging prohibition signal is received, the battery 20 connected to the backup connector will turn off the charging control switch to prohibit charging. Furthermore, both the battery 20 connected to the main connector and the battery 20 connected to the backup connector can refer to... Figure 10 The control logic controls the discharge control switch.
[0166] In one embodiment, step S23 may involve using one of the first control signal P1 and the second control signal P2 as a charging enable signal, and using the other of the first control signal P1 and the second control signal P2 as a charging disable signal.
[0167] In one embodiment, such as Figure 10 As shown, the battery control module 13 can monitor in real time whether the generated first control signal and second control signal change. If the first control signal and second control signal change, the first control signal and second control signal can be received intermittently in step S1.
[0168] Furthermore, in step S23, if the first control signal received at least R times is consistent, and the second control signal received at least R times is consistent, then a charging disable signal is output to the backup connector and a charging enable signal is output to the main connector. Here, R is a positive integer not less than 2, for example, it can be set to 2.
[0169] In this way, the risk of power failure and safety risks to electronic device 100 can be avoided, which would be caused by fluctuations in the first and second control signals due to unstable first and second voltages, leading to frequent switching of charging control switches and power channels.
[0170] Step S3: After outputting the charging disable signal and the charging enable signal, connect the main connector and the backup connector to the load respectively.
[0171] Step S4: After both the main connector and the spare connector are connected to the load 14, disconnect the spare connector from the load 14, so that the battery 20 connected to the main connector supplies power to the load 14 alone.
[0172] In some embodiments, such as Figure 8 and Figure 11 As shown, the spare connector is connected to the load 14 via a spare output switch, and the main connector is connected to the load 14 via a main output switch.
[0173] Therefore, step S3 may include:
[0174] After outputting the charging disable signal and the charging enable signal, control the backup output switch to turn on so that the backup connector is connected to the load, and control the main output switch to turn on so that the main connector is connected to the load.
[0175] At this time, the power channel of the main connector and the power channel of the backup connector are both connected. If the backup connector is also connected to a corresponding battery 20 in addition to the main connector, then the batteries 20 connected to both the main connector and the backup connector can supply power to the load 14.
[0176] Among them, such as Figure 12 and Figure 13As shown, the calculation can start from the output of the charging prohibition signal and the charging allow signal, and after a first preset delay time T1, the backup drive signal is output to control the backup output switch to be turned on, and the main drive signal is output to control the main output switch to be turned on, so that both the backup connector and the main connector are connected to the load 14.
[0177] Further, step S4 may include:
[0178] After both the standby output switch and the main output switch are turned on, a standby drive signal is output to control the standby output switch to turn off, so that the standby connector is disconnected from the load. A main drive signal is output to control the main output switch to remain on, so that the standby connector remains connected to the load.
[0179] Among them, such as Figure 12 and Figure 13 As shown, the backup output switch can be turned off after a second preset delay time T2, starting when both the backup output switch and the main output switch are turned on.
[0180] At this point, the power supply path to the backup connector is cut off. Therefore, the battery 20 connected to the main connector supplies power to the load 14 alone. If the backup connector has a corresponding battery 20 connected, the battery 20 connected to the backup connector cannot supply power to the load 14. Afterwards, the battery 20 connected to the backup connector can be removed.
[0181] In some embodiments, considering the possibility of accidental removal of the battery 20 connected to the main connector while the battery 20 connected to the backup connector remains in place but cannot supply power, resulting in a risk of power loss for the electronic device 100, the power supply method may further include the following after step S4:
[0182] When the backup connector and the load are disconnected, if the voltage of the main connector drops below a preset voltage threshold, the backup output switch is turned on to connect the backup connector to the load.
[0183] At this time, the power channel where the backup connector is located is connected, and the battery 20 connected to the backup connector can supply power to the load 14, thereby reducing the risk of power failure of the electronic device 100.
[0184] It should be understood that the method embodiments can also refer to the relevant descriptions of the embodiments of the aforementioned electronic device 100, which will not be repeated here.
[0185] For the sake of simplicity, the voltage adjustment method is described as a series of actions in the method embodiments. However, those skilled in the art should know that the method of this application is not limited to the described order of actions, because according to this application, some steps can be performed in other orders or simultaneously.
[0186] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. An electronic device, comprising: The method comprises the following steps: a first connector, a second connector, a battery control module and a load, the battery control module is connected with the first connector, the second connector and the load, and a corresponding battery is connected through at least one of the first connector and the second connector; the battery control module is used for: obtaining a first voltage of the first connector and a second voltage of the second connector; outputting a charging prohibition signal to a backup connector and outputting a charging permission signal to a main connector according to the first voltage and the second voltage; the backup connector is a connector used for connecting a battery to be removed among the first connector and the second connector, and the main connector is a connector used for connecting a power supply battery among the first connector and the second connector; the charging prohibition signal is used for indicating that the battery connected by the backup connector is prohibited from charging, and the charging permission signal is used for indicating that the battery connected by the main connector is permitted to charge; after the charging prohibition signal and the charging permission signal are outputted, the main connector and the backup connector are respectively communicated with the load; after the main connector and the backup connector are both communicated with the load, the backup connector and the load are disconnected, so that the battery connected by the main connector powers the load alone.
2. The electronic device of claim 1, wherein, when the first voltage is not equal to the second voltage, the connector corresponding to the larger voltage among the first voltage and the second voltage is the main connector, and the connector corresponding to the smaller voltage among the first voltage and the second voltage is the backup connector; or, when the first voltage is equal to the second voltage, any one of the first connector and the second connector is the main connector, and the other one of the first connector and the second connector is the backup connector.
3. The electronic device of claim 1 or 2, wherein, the battery control module comprises a voltage comparison control unit, a first output switch, a second output switch and a power output terminal, the voltage comparison control unit is connected with the first connector, the second connector, the first output switch and the second output switch, the first output switch is connected between the first connector and the power output terminal, the second output switch is connected between the second connector and the power output terminal, and the power output terminal is used for connecting a load; the voltage comparison control unit is used for comparing the first voltage and the second voltage, and outputting the charging prohibition signal to the backup connector and outputting the charging permission signal to the main connector according to the comparison result of the first voltage and the second voltage; the voltage comparison control unit is further used for controlling the backup output switch to be turned on to make the backup connector communicate with the load and controlling the main output switch to be turned on to make the main connector communicate with the load after the charging prohibition signal and the charging permission signal are outputted, and the backup output switch is controlled to be turned off to make the backup connector disconnect with the load after the backup output switch and the main output switch are both turned on. The standby output switch is an output switch connected with the standby connector among the first output switch and the second output switch, and the main output switch is an output switch connected with the main connector among the first output switch and the second output switch.
4. The electronic device of claim 3, wherein, The voltage comparison control unit comprises a comparator, an inverter and a delay controller, wherein, two inputs of the comparator are connected with the first connector and the second connector one by one, and an output of the comparator is connected with the delay controller and the inverter; the comparator is used for comparing the first voltage and the second voltage, and outputting a first control signal to the delay controller and the inverter according to a comparison result; the inverter is connected with the delay controller, and the inverter is used for inverting the first control signal to output a second control signal to the delay controller; the delay controller is also connected with the first connector and the second connector, and the delay controller is used for outputting the forbidden charging signal to the standby connector and outputting the allowed charging signal to the main connector according to the first control signal and the second control signal; the delay controller is also connected with the first output switch and the second output switch, and the delay controller is also used for outputting a standby drive signal to the standby output switch and outputting a main drive signal to the main output switch according to the forbidden charging signal and the allowed charging signal; the standby drive signal is used for controlling a switching state of the standby output switch to control a connection / disconnection state between the standby connector and the load, the main drive signal is used for controlling a switching state of the main output switch to control a connection / disconnection state between the main connector and the load, and the main drive signal lags behind the standby drive signal.
5. The electronic device of claim 4, wherein, The first control signal is opposite to the second control signal, the standby drive signal is opposite to the main drive signal, the standby drive signal lags behind the forbidden charging signal by a first preset delay time, and the main drive signal lags behind the standby drive signal by a second preset delay time.
6. The electronic device of claim 4, wherein, The delay controller is also used for receiving the first control signal and the second control signal at intervals, and if the first control signal received at least twice continuously is consistent and the second control signal received at least twice continuously is consistent, the forbidden charging signal is output to the standby connector and the allowed charging signal is output to the main connector.
7. The electronic device of claim 1, wherein, The battery control module is also used for: when the standby connector and the load are disconnected, if the voltage of the main connector drops below a preset voltage threshold, the standby output switch is controlled to be turned on to connect the standby connector with the load.
8. The electronic device of claim 1, wherein, The battery comprises a charging control switch, and the battery is used for: when the allowed charging signal is received and the voltage of the battery is in a preset battery working voltage range, the charging control switch is turned on to allow charging; when the forbidden charging signal is received or the voltage of the battery is not in the preset battery working voltage range, the charging control switch is turned off to prohibit charging.
9. The electronic device according to any one of claims 1 to 8, wherein The first connector and the second connector each have a positive terminal, a negative terminal and a control terminal, and the battery control module is configured to connect a positive electrode of the battery through the positive terminal, connect a negative electrode of the battery through the negative terminal, and communicate with the battery through the control terminal and output the charge prohibition signal or the charge permission signal to the battery through the control terminal. The battery control module is configured to communicate with the battery through the control terminal and output the charge prohibition signal or the charge permission signal to the battery through the control terminal.
10. The electronic device according to any one of claims 1 to 9, wherein Each of the batteries includes a cell unit, a charge control switch and a battery protection unit, the cell unit is connected in series with the charge control switch, and the battery protection unit is connected to the cell unit and the charge control switch, and the battery protection unit is configured to control a switching state of the charge control switch according to a voltage of the cell unit and the received charge prohibition signal or charge permission signal.
11. The electronic device of claim 10, wherein, The first connector is configured to connect a first battery, and the second connector is configured to connect a second battery. The cell unit of the first battery has L pairs of positive and negative electrode tabs, L is a positive integer, and the L pairs of positive and negative electrode tabs are connected to the L first connectors one by one. The cell unit of the second battery has K pairs of positive and negative electrode tabs, K is a positive integer, and the K pairs of positive and negative electrode tabs are connected to the K second connectors one by one.
12. The electronic device of claim 11, wherein, The L first connectors and the K second connectors are arranged alternately in the same direction, wherein one first connector and one second connector arranged adjacently constitute a group of connectors, and different groups of connectors are arranged at intervals.
13. The electronic device of claim 1, wherein, The battery connected by the first connector and / or the battery connected by the second connector is accommodated in the electronic device.
14. A power supply method characterized by, The power supply method is applied to an electronic device, and the power supply method comprises: obtaining a first voltage of a first connector and a second voltage of a second connector; at least one of the first connector and the second connector is connected to a corresponding battery; outputting a charge prohibition signal to a backup connector and a charge permission signal to a main connector according to the first voltage and the second voltage; the backup connector is a connector of the first connector and the second connector used to connect a battery to be detached, and the main connector is a connector of the first connector and the second connector used to connect a power supply battery; the charge prohibition signal is used to indicate that the battery connected by the backup connector is prohibited from charging, and the charge permission signal is used to indicate that the battery connected by the main connector is allowed to charge; after the charge prohibition signal and the charge permission signal are outputted, the main connector and the backup connector are respectively communicated with a load; after the main connector and the backup connector are both communicated with the load, the backup connector and the load are disconnected, so that the battery connected by the main connector supplies power to the load alone.
15. The power supply method according to claim 14, wherein The power supply method further comprises: when the first voltage and the second voltage are not equal, the connector corresponding to the larger voltage of the first voltage and the second voltage is taken as the main connector, and the connector corresponding to the smaller voltage of the first voltage and the second voltage is taken as the backup connector. Or, when the first voltage is equal to the second voltage, any one of the first connector and the second connector is the master connector, and the other one is the backup connector.
16. The power supply method of claim 14, wherein, The outputting of the inhibit charging signal to the backup connector and the outputting of the allow charging signal to the master connector according to the first voltage and the second voltage comprises: comparing the first voltage and the second voltage, and generating a first control signal according to the comparison result; inverting the first control signal to generate a second control signal; generating the inhibit charging signal to the backup connector and the allow charging signal to the master connector according to the first control signal and the second control signal.
17. The power supply method of claim 16, wherein, The outputting of the inhibit charging signal to the backup connector and the outputting of the allow charging signal to the master connector according to the first voltage and the second voltage comprises: if the first control signal received at least twice continuously is consistent and the second control signal received at least twice continuously is consistent, outputting the inhibit charging signal to the backup connector and the allow charging signal to the master connector.
18. The power supply method of claim 14, wherein, The connecting of the master connector and the backup connector to the load after the outputting of the inhibit charging signal and the allow charging signal comprises: controlling the backup output switch to be turned on to connect the backup connector to the load and controlling the master output switch to be turned on to connect the master connector to the load after the outputting of the inhibit charging signal and the allow charging signal. Correspondingly, the disconnecting of the backup connector from the load after the connecting of the master connector and the backup connector to the load comprises: controlling the backup output switch to be turned off to disconnect the backup connector from the load after the backup output switch and the master output switch are both turned on. The backup output switch is connected between the backup connector and the load, and the master output switch is connected between the master connector and the load.
19. The power supply method of claim 14, wherein, The power supply method further comprises: controlling the backup output switch to be turned on to connect the backup connector to the load if the voltage of the master connector drops below a preset voltage threshold when the backup connector is disconnected from the load.