WO2019218821A1 - Dual-battery switching method and circuit, mobile terminal and storage medium - Google Patents

Dual-battery switching method and circuit, mobile terminal and storage medium Download PDF

Info

Publication number
WO2019218821A1
WO2019218821A1 PCT/CN2019/082364 CN2019082364W WO2019218821A1 WO 2019218821 A1 WO2019218821 A1 WO 2019218821A1 CN 2019082364 W CN2019082364 W CN 2019082364W WO 2019218821 A1 WO2019218821 A1 WO 2019218821A1
Authority
WO
WIPO (PCT)
Prior art keywords
battery
circuit
power supply
external battery
resistor
Prior art date
Application number
PCT/CN2019/082364
Other languages
French (fr)
Chinese (zh)
Inventor
刘永亮
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2019218821A1 publication Critical patent/WO2019218821A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/36Arrangements using end-cell switching

Definitions

  • the present disclosure relates to, but is not limited to, the field of battery technology.
  • the dual-battery power supply scheme has the effect of adding another battery to the product, which causes the product to increase in size, does not conform to the trend of miniaturization of today's products, and the product looks cumbersome.
  • Providing electronic products with a simple power supply solution in addition to their own batteries to extend their use time has become one of the advantages of increasing the competition of electronic products.
  • a dual battery powered system is implemented by powering the terminal device using two internal batteries.
  • the dual battery power supply system includes a first circuit and a second circuit that respectively supply power to the terminal device through two built-in batteries.
  • the switching of the circuit is controlled by software.
  • terminals employing such a dual battery power supply system increase the size and weight and are not convenient to carry.
  • a dual battery switching circuit including a charging management chip, an internal battery power supply circuit, an external battery power supply circuit, a switching circuit, a micro control unit MCU, and an external battery monitoring circuit, wherein the charging management An input end of the chip is connected to an output end of the inner battery power supply circuit and an output end of the outer battery power supply circuit, an input end of the inner battery power supply circuit is connected to the internal battery, and the built-in battery is built in the mobile terminal, An input end of the external battery power supply circuit is connected to an external battery, and the external battery is detachably mounted to the mobile terminal, and the external battery monitoring circuit is connected to the external battery and the MCU, wherein The external battery monitoring circuit is configured to detect whether the external battery is inserted, and the MCU is configured to adaptively switch to the insertion state or the unplugged state of the external battery detected by the external battery monitoring circuit An external battery power supply circuit or the inner battery power supply circuit.
  • a dual battery switching method of a mobile terminal comprising: responsive to an external battery being inserted into the mobile terminal and selectively switching to the external battery, such that the external battery The external battery power supply circuit is turned on to supply power to the mobile terminal by the external battery; and in response to the mobile terminal being disconnected from the external battery, connecting an internal battery power supply circuit of the built-in battery to The built-in battery supplies power to the mobile terminal.
  • a mobile terminal comprising a processor and a memory, wherein the memory stores therein a computer program, and when the processor executes the computer program, the processor executes according to The dual battery switching method of the present disclosure.
  • a computer readable storage medium having stored thereon one or more computer programs, when the one or more computer programs are executed by one or more processors, One or more processors perform a dual battery switching method in accordance with the present disclosure.
  • FIG. 1 is a schematic structural diagram of a dual battery switching system according to an embodiment of the present disclosure
  • FIG. 2 is a block diagram of a dual battery switching circuit in accordance with an embodiment of the present disclosure
  • FIG. 3 is a circuit schematic diagram of the inner battery power supply circuit and the inner battery switch control circuit shown in FIG. 2;
  • FIG. 4 is a circuit schematic diagram of the external battery power supply circuit and the external battery switch control circuit shown in FIG. 2;
  • FIG. 5 is a circuit schematic diagram of the switching circuit shown in Figure 2;
  • FIG. 6 is a circuit schematic diagram of the external battery monitoring circuit shown in FIG. 2;
  • FIG. 7 is a schematic circuit diagram showing a pull-up potential provided by a built-in battery and a charge management chip
  • FIG. 8 is a schematic flow chart of a dual battery switching method according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic diagram of a hardware architecture of a mobile terminal according to an embodiment of the present disclosure.
  • FIG. 10 is a block diagram showing the dual battery switching procedure shown in FIG. 9.
  • module means merely to facilitate the description of the present disclosure, and is not of a specific meaning per se. Therefore, “module”, “component” or “unit” can be used in combination.
  • FIG. 1 is a schematic structural diagram of a dual battery switching system according to an embodiment of the present disclosure.
  • the dual battery switching system may include a mobile terminal 10 and an external battery 20 detachably mounted to the mobile terminal 10, and the mobile terminal 10 may include a built-in battery 11 that powers the mobile terminal 10.
  • the contacts of the external battery 20 are electrically connected to the contacts corresponding to the mobile terminal 10 to provide power to the mobile terminal 10. According to actual needs of use, the mobile terminal 10 can select the internal battery 11 or the external battery 20 to supply power by switching the battery.
  • Mode 1 The mobile terminal 10 switches to the power supply circuit of the external battery 20, and the external battery 20 supplies power to the mobile terminal 10.
  • the amount of electric power of the external battery 20 is detected to be lower than a preset value, switching to the power supply circuit of the built-in battery 11 is performed by the built-in battery 11.
  • Mode 2 The mobile terminal 10 switches to the power supply circuit of the external battery 20, and the external battery 20 supplies power to the mobile terminal 10. When it is detected that the external battery 20 is disconnected from the mobile terminal 10, it is switched to the power supply circuit of the internal battery 11 and is powered by the internal battery 11.
  • Mode 3 The mobile terminal 10 continues to use the built-in battery 11 to supply power, and when the amount of the built-in battery 11 is lower than a preset value, it switches to the power supply circuit of the external battery 20 to supply power to the mobile terminal 10 from the external battery 20.
  • the mobile terminal 20 may include, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a personal digital assistant (PDA), a portable media player (Pable Media Player, PMP). ), navigation devices, wearable devices, smart bracelets, pedometers and other mobile terminals.
  • PDA personal digital assistant
  • PMP portable media player
  • navigation devices wearable devices, smart bracelets, pedometers and other mobile terminals.
  • FIG. 2 is a block diagram of a dual battery switching circuit in accordance with an embodiment of the present disclosure.
  • the dual battery switching circuit includes a charging management chip 210, an internal battery power supply circuit 220, an external battery power supply circuit 230, a switching circuit 240, a Microcontroller Unit (MCU) 250, and an external battery.
  • the CHGOUT pin of the charge management chip 210 is connected to the inner battery power supply circuit 220 and the outer battery power supply circuit 230, and the inner battery power supply circuit 220 or the outer battery power supply circuit 230 is selectively turned on by the control of the MCU 250.
  • the MCU 250 can control the inner battery power supply circuit 220 and the outer battery power supply circuit 230 to be respectively turned on by the inner battery switch control circuit 221 and the outer battery switch control circuit 231.
  • the internal battery power supply circuit 220 is connected to the internal battery 11, and the external battery power supply circuit 230 is connected to the external battery 20.
  • the MCU 250 includes GPIO1 to GPIO3 pins and ADC1 to ADC2 pins.
  • the GPIO3 pin is connected to the external battery monitoring circuit 260 for receiving an access signal of the external battery 20 provided by the external battery monitoring circuit 260.
  • the ADC2 pin is connected to the first voltage dividing circuit 270.
  • the GPIO2 pin is connected to the external battery switch control circuit 231.
  • the GPIO1 pin is connected to the internal battery switch control circuit 221.
  • the ADC1 pin is connected to the second voltage dividing circuit 280.
  • the first voltage dividing circuit 270 is connected to the external battery 20, and the second voltage dividing circuit 280 is connected to the internal battery 11.
  • the built-in battery 11 and the external battery 20 are connected to the ADC1 pin and the ADC2 pin of the MCU 250 via the second voltage dividing circuit 280 and the first voltage dividing circuit 270, respectively, so that the MCU 250 can monitor the built-in battery 11 and the external battery in real time.
  • the state of 20, which in turn determines whether to issue a command to switch the battery-powered circuit.
  • FIG. 3 is a circuit schematic diagram of the inner battery power supply circuit 220 and the inner battery switch control circuit 221 shown in FIG. 2.
  • the internal battery power supply circuit 220 includes two PMOS tubes P1 and P2.
  • the first end of the PMOS tube P1 is connected to the anode of the built-in battery 11, and the second end of the PMOS tube P1 is connected to the first end of the PMOS tube P2. connection.
  • the second end of the PMOS transistor P2 is connected to the CHGOUT pin of the charge management chip 210, and the control terminals of the PMOS transistors P1 and P2 are connected to the internal battery switch control circuit 221 via the internal battery power supply loop control node Node1.
  • the built-in battery 11 and the CHGOUT pin of the charge management chip 210 simultaneously provide the first pull-up potential PULL UP for the inner battery power supply loop control node Node1 via the second resistor R2, see FIG. 7 to avoid the built-in battery. 11
  • the built-in battery 11 cannot be charged without power.
  • the internal battery switch control circuit 221 includes two NMOS transistors N1 and N2, one of which functions as a level shifter and the other NMOS transistor serves as a control.
  • the control signal from the GPIO1 pin of the MUC is low to turn on the internal battery power supply circuit 220.
  • the inner battery power supply circuit 220 further includes a first resistor R1 and a first capacitor C1.
  • One end of the first resistor R1 is connected to the first end of the PMOS transistor P1, and the other end of the first resistor R1 is connected to the second end of the PMOS transistor P2.
  • One end of the first capacitor C1 is grounded, and the other end is connected to the second end of the PMOS transistor P2.
  • the internal battery switch control circuit 221 includes NMOS transistors N1 and N2 and third to fifth resistors R3 to R5.
  • One end of the third resistor R3 is connected to the MCU 250 (for example, the GPIO1 pin of the MCU 250), and the other end of the third resistor R3 is connected to the control terminal of the NMOS transistor N1.
  • One end of the fourth resistor R4 is connected to the control terminal of the NMOS transistor N1, and the other end is grounded.
  • the first end of the NMOS transistor N1 is grounded, and the second end of the NMOS transistor N1 is connected to the control terminal of the NMOS transistor N2.
  • One end of the fifth resistor R5 receives the first pull-up potential PULL UP, and the other end is connected to the control terminal of the NMOS transistor N2.
  • the first end of the NMOS transistor N2 is grounded, and the second end of the NMOS transistor N2 is connected to the control terminals of the PMOS transistors P1 and P2 via the internal battery power supply loop control node Node1.
  • FIG. 4 is a circuit schematic diagram of the outer battery power supply circuit 230 and the outer battery switch control circuit 231 shown in FIG. 2.
  • the outer battery power supply circuit 230 includes a PMOS transistor P3.
  • the first end of the PMOS transistor P3 is connected to the anode of the external battery 20, the second end of the PMOS transistor P3 is connected to the CHGOUT pin of the charge management chip 210, and the control end of the PMOS transistor P3 is connected to the node Node2 via the external battery power supply loop.
  • the external battery switch control circuit 231 is connected.
  • the external battery 20 provides a second pull-up potential for the external battery power supply loop control node Node2 via the sixth resistor R6.
  • the external battery switch control circuit includes an NMOS transistor N3 and a seventh resistor R7 and an eighth resistor R8.
  • One end of the seventh resistor R7 is connected to the MCU 250 (for example, the GPIO2 pin of the MCU 250), and the other end of the seventh resistor R7 is connected to the control terminal of the NMOS transistor N3.
  • One end of the eighth resistor R8 is connected to the control terminal of the NMOS transistor N3, and the other end is grounded.
  • the first end of the NMOS transistor N3 is grounded, and the second end of the NMOS transistor N3 is connected to the control terminal of the PMOS transistor P3 via the external battery power supply loop control node Node2.
  • FIG. 5 is a circuit schematic diagram of the switching circuit 240 shown in FIG. 2.
  • the switching circuit 240 includes a plurality of NMOS transistors N4 and N5, a ninth resistor R9 to an eleventh resistor R11, and a capacitor C2.
  • One end of the ninth resistor R9 receives the first pull-up potential PULL UP, and the other end of the ninth resistor is connected to the control terminal of the NMOS transistor N$.
  • the first end of the NMOS transistor N4 is grounded, and the second end of the NMOS transistor N4 is connected to the control terminals of the PMOS transistors P1 and P2 of the internal battery power supply circuit 220 via the internal battery power supply loop control node Node1.
  • the first end of the NMOS transistor N5 is grounded, and the second end of the NMOS transistor N5 is connected to the control terminal of the NMOS transistor N4.
  • One end of the tenth resistor R10 is grounded, and the other end is connected to the control end of the NMOS transistor N5.
  • One end of the eleventh resistor R11 is connected to the outer battery power supply circuit 230, and the other end is connected to the control end of the NMOS transistor N5.
  • One end of the second capacitor C2 is grounded, and the other end is connected to the control end of the NMOS transistor N5.
  • the NMOS transistor N5 of the switching circuit 240 When the external battery 20 is inserted, the NMOS transistor N5 of the switching circuit 240 is turned on, so that the control terminal of the NMOS transistor N4 is grounded, so the switching circuit 240 does not switch, and the internal battery power supply circuit 220 and the external battery power supply circuit 230 are switched. It is software controlled, that is, controlled by the signals provided by the GPIO1 and GPIO2 pins of the MCU 250.
  • the NMOS transistor N5 When the external battery 20 is suddenly pulled out from the mobile terminal 10, the NMOS transistor N5 is turned off, and the first pull-up potential PULL UP provided by the built-in battery 11 and the CHGOUT pin of the charge management chip 210 causes the NMOS transistor N4 to be guided.
  • the inner battery power supply loop control node Node1 provides a low level to the control terminals of the PMOS transistors P1 and P2 of the inner battery power supply circuit 220, so that the inner battery power supply circuit 220 is turned on, thereby switching to the inner battery power supply circuit in hardware. 220, so that the device will not lose power when the external battery is unplugged.
  • a capacitance having a capacitance value of a micro-level may be connected in parallel at the CHGOUT pin of the charge management chip 210, so that the mobile terminal 10 is within a few tens of microseconds during the switching process of the switch. Provide a short-lived current.
  • the switching circuit 240 the external battery 20 can be used to supply power to the mobile terminal 10 anytime and anywhere.
  • FIG. 6 is a circuit schematic diagram of the external battery monitoring circuit shown in FIG. 2.
  • the external battery monitoring circuit 260 includes an NMOS transistor N6 and a twelfth resistor R12. One end of the twelfth resistor R12 is connected to the MCU 250 (for example, the GPIO3 pin of the MCU 250), and the other end is connected to the second end of the NMOS transistor N6. The first end of the NMOS transistor N6 is grounded, and the control terminal of the NMOS transistor N6 is connected to the external battery 20.
  • the external battery monitoring circuit 260 outputs a low level, and the MCU 250 can detect whether or not the external battery 20 is inserted according to the level change.
  • the external battery monitoring circuit 260 determines whether the external battery 20 is inserted.
  • the external battery monitoring circuit 260 generates a low level and transmits it to the MCU 250 to enable the MCU.
  • the control 250 supplies power to the charging management chip 210 from the internal battery power supply circuit 220 or the external battery power supply circuit 230.
  • the switching circuit 240 turns on the internal battery power supply circuit 220, thereby achieving no Sew switch.
  • the power supply can be adaptively switched between the internal battery 11 and the external battery 20, and in the case of a sudden disconnection from the external battery 220, the battery is quickly switched to the internal battery.
  • Loop 220 is suitable for a variety of application scenarios.
  • FIG. 8 is a schematic flow chart of a dual battery switching method according to an embodiment of the present disclosure.
  • the dual battery switching method according to the present embodiment includes steps 710 to 770.
  • step 710 it is determined whether the external battery is inserted into the mobile terminal; if yes, the process proceeds to step 720; if not, the process returns to step 710 to continue the determination.
  • step 720 it is determined whether the internal battery is selected for power supply or the external battery is selected for power supply.
  • the process proceeds to step 730, and when the external battery power supply is selected, the process proceeds to step 750.
  • the internal battery power supply loop of the internal battery is turned on.
  • step 740 it is determined whether the power of the built-in battery is lower than the first preset value; if yes, the process proceeds to step 750; if not, then returns to step 740 to continue the determination.
  • the external battery power supply loop of the external battery is turned on.
  • step 760 it is detected whether it is disconnected from the external battery; if so, then proceeds to step 730, and if not, proceeds to step 770.
  • step 770 it is determined whether the power of the external battery is lower than the second preset value; if yes, the process proceeds to step 730; if not, the process returns to step 760.
  • the mobile terminal When the mobile terminal supplies power through the built-in battery, it can detect in real time or detect whether to insert an external battery every preset time period. Based on different usage scenarios and settings, there are two types of power supply when there is an external battery inserted, that is, continue to be powered by the built-in battery, or switch to an external battery.
  • the internal battery power circuit When the selection continues to be powered by the internal battery, keep the internal battery power circuit open. In this case, it is determined in real time whether the power of the internal battery is lower than the first preset value, and if so, switching to the external battery power supply, that is, the external battery power supply circuit is turned on and the internal battery power supply circuit is disconnected.
  • the external battery power supply circuit When the power is selected to be supplied from an external battery, the external battery power supply circuit is turned on. In this case, on the one hand, it is detected whether the external battery is pulled out, and on the other hand, it is judged whether the external battery is lower than the second preset value, when the external battery is pulled out or the external battery is lower than the first battery.
  • the preset value is two, the battery is switched to the internal battery, that is, the internal battery power supply circuit is turned on and the external battery power supply circuit is disconnected, wherein when the external battery is pulled out, the internal circuit is powered by the switching circuit hardware.
  • the loop is turned on.
  • the second preset value may be the same as the first preset value, or may be different from the first preset value, which is not specifically limited in the disclosure.
  • the external battery power supply circuit of the built-in battery is automatically disconnected.
  • the external battery power supply circuit of the external battery is turned on, the automatic The internal battery power supply circuit of the built-in battery is disconnected.
  • the switching between the internal battery power supply circuit and the external battery power supply circuit is controlled by monitoring whether an external battery is inserted, and the switch is quickly switched back to the built-in battery when the external battery is suddenly disconnected. Battery for a variety of application scenarios.
  • FIG. 9 is a schematic diagram of a hardware architecture of a mobile terminal in accordance with an embodiment of the present disclosure.
  • a mobile terminal in accordance with an embodiment of the present disclosure includes a memory 810, a processor 820, and a dual battery switching program 830 stored on the memory 810 and operable on the processor 820.
  • dual battery switching program 830 includes a series of computer program instructions stored on memory 810 that, when executed by processor 820, can implement a dual battery switching method in accordance with various embodiments of the present disclosure.
  • the dual battery switching procedure 830 can include one or more modules based on the particular operations implemented by the various portions of the computer program instructions.
  • FIG. 10 is a block diagram showing the dual battery switching procedure shown in FIG. 9.
  • the dual battery switching program 830 includes a determination module 910 and a connection module 920.
  • the determining module 910 is configured to determine whether the external battery is inserted into the mobile terminal; if yes, further determine whether to select the internal battery to supply power or select an external battery to supply power.
  • connection module 920 is configured to turn on the internal battery power supply circuit of the internal battery when the internal battery is selected for power supply, and to turn on the external battery power supply circuit of the external battery when the external battery is selected for power supply.
  • the determining module 910 is further configured to determine whether the power of the built-in battery is lower than the first preset value when the battery is powered by the built-in battery; if yes, the connection module 920 turns on the external battery power supply loop of the external battery, otherwise continues to remain The internal battery power supply circuit of the built-in battery is turned on.
  • the determining module 910 is further configured to detect whether the external battery is disconnected when the external battery is powered; if so, the connection module 920 turns on the internal battery power supply circuit of the built-in battery, otherwise the external battery is kept outside. The battery power circuit is turned on.
  • the determining module 910 is further configured to determine whether the power of the external battery is lower than a second preset value when the external battery is powered; if yes, the connection module 920 turns on the internal battery power supply loop of the built-in battery; The external battery power supply circuit of the external battery is turned on.
  • the determining module 910 can detect in real time or detect whether to insert an external battery every preset time period. Based on different usage scenarios and settings, there may be two power supply situations when there is an external battery inserted, that is, continue to be powered by the built-in battery, or switch to external battery power supply, which requires the determination module 910 to further judge and select by The built-in battery is also powered by an external battery.
  • the connection module 920 keeps the internal battery power supply loop conducting.
  • the determining module 910 determines in real time whether the power of the internal battery is lower than the first preset value, and if so, the connection module 920 switches to the external battery power supply, that is, the external battery power supply circuit is turned on and the internal battery is powered. The loop is broken.
  • the connection module 920 turns on the outer battery power supply loop.
  • the determining module 910 detects whether the external battery is pulled out on the one hand, and determines whether the external battery is lower than the second preset value on the other hand, when the external battery is pulled out or the external battery is discharged.
  • the connection module 920 switches to the internal battery power supply, that is, the internal battery power supply circuit is turned on and the external battery power supply circuit is disconnected, wherein when the external battery is pulled out, the switching circuit is The internal battery power supply circuit is electrically turned on.
  • the second preset value may be the same as the first preset value, or may be different from the first preset value, which is not specifically limited in the disclosure.
  • connection module 920 if the connection module 920 turns on the internal battery power supply circuit of the built-in battery, the external battery power supply circuit of the external battery is automatically disconnected. Similarly, if the connection module 920 is used to power the external battery of the external battery. When the loop is turned on, the internal battery power supply circuit of the internal battery is automatically disconnected.
  • the connection module 920 controls the switching between the internal battery power supply circuit and the external battery power supply circuit, and in the case of a sudden disconnection from the external battery, Quickly switch back to the internal battery for a variety of application scenarios.
  • Embodiments of the present disclosure also provide a computer readable storage medium having stored thereon one or more computer programs, the one or more computer programs being executed by one or more processors, the one or more The processor performs a dual battery switching method in accordance with various embodiments of the present disclosure.
  • the computer readable storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read only memory, flash memory, hard disk or solid state drive; the memory may also include a memory of the kind described above The combination.
  • volatile memory such as random access memory
  • non-volatile memory such as read only memory, flash memory, hard disk or solid state drive
  • the memory may also include a memory of the kind described above The combination.

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The present disclosure provides a dual-battery switching circuit, comprising: a charging management chip, an internal battery power-supply loop, an external battery power-supply loop, a switching circuit, an MCU and an external battery monitoring circuit. An input end of the charging management chip is connected with an output end of the internal battery power-supply loop and an output end of the external battery power-supply loop; an input end of the internal battery power-supply loop is connected with an internal battery, and the internal battery is disposed within a mobile terminal; an input end of the external battery power-supply loop is connected with an external battery, and the external battery is detachably mounted on the mobile terminal; and the external battery monitoring circuit is connected with the external battery and the MCU. The external battery monitoring circuit detects whether the external battery is inserted, and the MCU is self-adaptively switched to the external battery power-supply loop or the internal battery power-supply loop according to an insertion state or a pull-out state of the external battery. Besides, the present disclosure further provides a dual-battery switching method, a mobile terminal and a storage medium.

Description

双电池切换方法、电路、移动终端及存储介质Dual battery switching method, circuit, mobile terminal and storage medium 技术领域Technical field
本公开涉及(但不限于)电池技术领域。The present disclosure relates to, but is not limited to, the field of battery technology.
背景技术Background technique
如今的电子终端产品功能越来越多,功耗也越来越大,其使用及待机时间远远不能达到人们的要求。为了保证用户安全,已经将电池和终端产做成了一体,用户出远门时不必带带备用电池,但需要使用充电宝等储电设备为手机等设备充电。充电宝的转换效率比较低,其存储的很大一部分能量都以热量的形式浪费掉,而且使用充电宝充电会很不方便。Today's electronic terminal products are more and more functional, and the power consumption is getting bigger and bigger. Their use and standby time are far from meeting people's requirements. In order to ensure the safety of the user, the battery and the terminal have been integrated into one. When the user goes out, there is no need to bring a spare battery, but it is necessary to use a storage device such as a charging treasure to charge the mobile phone and other devices. The conversion efficiency of the charging treasure is relatively low, and a large part of the stored energy is wasted in the form of heat, and charging using the charging treasure is inconvenient.
双电池供电方案有的是在产品中添加另一块电池,这样会造成产品的体积增大,不符合当今产品小型化的趋势,而且产品看起来会比较笨重。为电子产品提供除本身电池之外的简单的供电方案,来延长其使用时间成为了增加电子产品竞争的优势之一。The dual-battery power supply scheme has the effect of adding another battery to the product, which causes the product to increase in size, does not conform to the trend of miniaturization of today's products, and the product looks cumbersome. Providing electronic products with a simple power supply solution in addition to their own batteries to extend their use time has become one of the advantages of increasing the competition of electronic products.
通常,双电池供电系统是通过使用两个内置电池为终端设备供电来实现的。为此,双电池供电系统包括分别通过两个内置电池对终端设备进行供电的第一回路和第二回路。通过检测双电池供电系统的供电状态,可以判断在使用哪个回路为系统供电。此外,通过软件控制回路的切换。但是,采用这样的双电池供电系统的终端增加了体积和重量,不方便携带。Typically, a dual battery powered system is implemented by powering the terminal device using two internal batteries. To this end, the dual battery power supply system includes a first circuit and a second circuit that respectively supply power to the terminal device through two built-in batteries. By detecting the power supply status of the dual battery power supply system, it can be determined which circuit is used to power the system. In addition, the switching of the circuit is controlled by software. However, terminals employing such a dual battery power supply system increase the size and weight and are not convenient to carry.
发明内容Summary of the invention
根据本公开的一个方面,提供了一种双电池切换电路,包括充电管理芯片、内电池供电回路、外电池供电回路、切换电路、微控制单元MCU以及外电池监测电路,其中,所述充电管理芯片的输入端与所述内电池供电回路的输出端和所述外电池供电回路的输出端连接,所述内电池供电回路的输入端连接内置电池,并且所述内置电池内置于移动终端内,所述外电池供电回路的输入端连接外置电池,并且所 述外置电池可拆卸地安装于移动终端,并且所述外电池监测电路与所述外置电池和所述MCU连接,其中,所述外电池监测电路构造为检测是否插入所述外电池,并且所述MCU构造为根据所述外电池监测电路检测的所述外置电池的插入状态或者拔出状态,自适应地切换至所述外电池供电回路或者所述内电池供电回路。According to an aspect of the present disclosure, a dual battery switching circuit is provided, including a charging management chip, an internal battery power supply circuit, an external battery power supply circuit, a switching circuit, a micro control unit MCU, and an external battery monitoring circuit, wherein the charging management An input end of the chip is connected to an output end of the inner battery power supply circuit and an output end of the outer battery power supply circuit, an input end of the inner battery power supply circuit is connected to the internal battery, and the built-in battery is built in the mobile terminal, An input end of the external battery power supply circuit is connected to an external battery, and the external battery is detachably mounted to the mobile terminal, and the external battery monitoring circuit is connected to the external battery and the MCU, wherein The external battery monitoring circuit is configured to detect whether the external battery is inserted, and the MCU is configured to adaptively switch to the insertion state or the unplugged state of the external battery detected by the external battery monitoring circuit An external battery power supply circuit or the inner battery power supply circuit.
根据本公开的另一方面,还提供了一种移动终端的双电池切换方法,包括:响应于外置电池插入所述移动终端并且选择切换至所述外置电池,使得所述外置电池的外电池供电回路导通,以由所述外置电池为所述移动终端供电;以及响应于所述移动终端与所述外置电池断开连接,连接内置电池的内电池供电回路,以由所述内置电池为所述移动终端供电。According to another aspect of the present disclosure, there is also provided a dual battery switching method of a mobile terminal, comprising: responsive to an external battery being inserted into the mobile terminal and selectively switching to the external battery, such that the external battery The external battery power supply circuit is turned on to supply power to the mobile terminal by the external battery; and in response to the mobile terminal being disconnected from the external battery, connecting an internal battery power supply circuit of the built-in battery to The built-in battery supplies power to the mobile terminal.
根据本公开的另一方面,还提供了一种移动终端,包括处理器以及存储器,其中,所述存储器中存储有计算机程序,所述处理器执行所述计算机程序时,所述处理器执行根据本公开的双电池切换方法。According to another aspect of the present disclosure, there is also provided a mobile terminal comprising a processor and a memory, wherein the memory stores therein a computer program, and when the processor executes the computer program, the processor executes according to The dual battery switching method of the present disclosure.
根据本公开的另一方面,还提供了一种计算机可读存储介质,其上存储有一个或者多个计算机程序,所述一个或者多个计算机程序被一个或者多个处理器执行时,所述一个或者多个处理器执行根据本公开的双电池切换方法。According to another aspect of the present disclosure, there is also provided a computer readable storage medium having stored thereon one or more computer programs, when the one or more computer programs are executed by one or more processors, One or more processors perform a dual battery switching method in accordance with the present disclosure.
附图说明DRAWINGS
图1为根据本公开实施例的双电池切换系统的结构示意图;1 is a schematic structural diagram of a dual battery switching system according to an embodiment of the present disclosure;
图2为根据本公开实施例的双电池切换电路的模块图;2 is a block diagram of a dual battery switching circuit in accordance with an embodiment of the present disclosure;
图3为图2所示的内电池供电回路和内电池开关控制电路的电路原理图;3 is a circuit schematic diagram of the inner battery power supply circuit and the inner battery switch control circuit shown in FIG. 2;
图4为图2所示的外电池供电回路和外电池开关控制电路的电路原理图;4 is a circuit schematic diagram of the external battery power supply circuit and the external battery switch control circuit shown in FIG. 2;
图5为图2所示的切换电路的电路原理图;Figure 5 is a circuit schematic diagram of the switching circuit shown in Figure 2;
图6为图2所示的外电池监测电路的电路原理图;6 is a circuit schematic diagram of the external battery monitoring circuit shown in FIG. 2;
图7示意性地示出了由内置电池和充电管理芯片共同提供上拉电位的电路原理图;FIG. 7 is a schematic circuit diagram showing a pull-up potential provided by a built-in battery and a charge management chip;
图8为根据本公开实施例的双电池切换方法的流程示意图;FIG. 8 is a schematic flow chart of a dual battery switching method according to an embodiment of the present disclosure; FIG.
图9为根据本公开实施例的移动终端硬件架构的示意图;以及9 is a schematic diagram of a hardware architecture of a mobile terminal according to an embodiment of the present disclosure;
图10为图9所示的双电池切换程序的模块示意图。FIG. 10 is a block diagram showing the dual battery switching procedure shown in FIG. 9.
本公开目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features and advantages of the present disclosure will be further described with reference to the accompanying drawings.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本公开,并不用于限定本公开。It is understood that the specific embodiments described herein are merely illustrative of the disclosure and are not intended to limit the disclosure.
在后续的描述中,使用诸如“模块”、“部件”或“单元”描述元件仅为了有利于本公开的说明,其本身没有特定的意义。因此,“模块”、“部件”或“单元”可以混合地使用。In the description that follows, the use of elements such as "module," "component," or "unit" is used merely to facilitate the description of the present disclosure, and is not of a specific meaning per se. Therefore, "module", "component" or "unit" can be used in combination.
图1为根据本公开实施例的双电池切换系统的结构示意图。FIG. 1 is a schematic structural diagram of a dual battery switching system according to an embodiment of the present disclosure.
如图1所示,双电池切换系统可以包括移动终端10以及可拆卸地安装在移动终端10的外置电池20,并且移动终端10可以包括为移动终端10供电的内置电池11。外置电池20的触点与移动终端10对应的触点电性连接,以为移动终端10提供电力。根据实际使用需要,移动终端10可以通过切换电池来选择内置电池11或者外置电池20进行供电。As shown in FIG. 1, the dual battery switching system may include a mobile terminal 10 and an external battery 20 detachably mounted to the mobile terminal 10, and the mobile terminal 10 may include a built-in battery 11 that powers the mobile terminal 10. The contacts of the external battery 20 are electrically connected to the contacts corresponding to the mobile terminal 10 to provide power to the mobile terminal 10. According to actual needs of use, the mobile terminal 10 can select the internal battery 11 or the external battery 20 to supply power by switching the battery.
在实际应用使用中,当移动终端10检测到与外置电池20电性连接时,可以存在三种供电模式。In practical application, when the mobile terminal 10 detects electrical connection with the external battery 20, there may be three power supply modes.
模式一:移动终端10切换至外置电池20的供电回路上,并由外置电池20为移动终端10供电。当检测外置电池20的电量低于预设值时,切换至内置电池11的供电回路,并由内置电池11供电。Mode 1: The mobile terminal 10 switches to the power supply circuit of the external battery 20, and the external battery 20 supplies power to the mobile terminal 10. When the amount of electric power of the external battery 20 is detected to be lower than a preset value, switching to the power supply circuit of the built-in battery 11 is performed by the built-in battery 11.
模式二:移动终端10切换至外置电池20的供电回路上,并由外置电池20为移动终端10供电。当检测到外置电池20与移动终端10断开连接时,切换至内置电池11的供电回路,并由内置电池11供电。Mode 2: The mobile terminal 10 switches to the power supply circuit of the external battery 20, and the external battery 20 supplies power to the mobile terminal 10. When it is detected that the external battery 20 is disconnected from the mobile terminal 10, it is switched to the power supply circuit of the internal battery 11 and is powered by the internal battery 11.
模式三:移动终端10继续使用内置电池11供电,并且当内置电池11的电量低于预设值时,切换至外置电池20的供电回路,以由 外置电池20为移动终端10供电。Mode 3: The mobile terminal 10 continues to use the built-in battery 11 to supply power, and when the amount of the built-in battery 11 is lower than a preset value, it switches to the power supply circuit of the external battery 20 to supply power to the mobile terminal 10 from the external battery 20.
在本实施例中,移动终端20可以包括(但不限于)诸如手机、平板电脑、笔记本电脑、掌上电脑、个人数字助理(Personal Digital Assistant,PDA)、便捷式媒体播放器(Portable Media Player,PMP)、导航装置、可穿戴设备、智能手环、计步器等移动终端。In this embodiment, the mobile terminal 20 may include, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a personal digital assistant (PDA), a portable media player (Pable Media Player, PMP). ), navigation devices, wearable devices, smart bracelets, pedometers and other mobile terminals.
图2为根据本公开实施例的双电池切换电路的模块图。2 is a block diagram of a dual battery switching circuit in accordance with an embodiment of the present disclosure.
如图2所示,根据本实施例的双电池切换电路包括充电管理芯片210、内电池供电回路220、外电池供电回路230、切换电路240、微控制单元(Microcontroller Unit,MCU)250、外电池监测电路260、第一分压电路270及第二分压电路280。As shown in FIG. 2, the dual battery switching circuit according to the embodiment includes a charging management chip 210, an internal battery power supply circuit 220, an external battery power supply circuit 230, a switching circuit 240, a Microcontroller Unit (MCU) 250, and an external battery. The monitoring circuit 260, the first voltage dividing circuit 270 and the second voltage dividing circuit 280.
充电管理芯片210的CHGOUT管脚与内电池供电回路220和外电池供电回路230连接,并且通过MCU 250的控制选择性地将内电池供电回路220或者外电池供电回路230导通。MCU 250可以通过内电池开关控制电路221和外电池开关控制电路231来分别控制内电池供电回路220和外电池供电回路230导通。内电池供电回路220连接内置电池11,并且外电池供电回路230连接外置电池20。The CHGOUT pin of the charge management chip 210 is connected to the inner battery power supply circuit 220 and the outer battery power supply circuit 230, and the inner battery power supply circuit 220 or the outer battery power supply circuit 230 is selectively turned on by the control of the MCU 250. The MCU 250 can control the inner battery power supply circuit 220 and the outer battery power supply circuit 230 to be respectively turned on by the inner battery switch control circuit 221 and the outer battery switch control circuit 231. The internal battery power supply circuit 220 is connected to the internal battery 11, and the external battery power supply circuit 230 is connected to the external battery 20.
MCU 250包括GPIO1至GPIO3管脚以及ADC1至ADC2管脚。GPIO3管脚与外电池监测电路260连接,用于接收外电池监测电路260提供的外置电池20的接入信号。ADC2管脚与第一分压电路270连接。GPIO2管脚与外电池开关控制电路231连接。GPIO1管脚与内电池开关控制电路221连接。ADC1管脚与第二分压电路280连接。The MCU 250 includes GPIO1 to GPIO3 pins and ADC1 to ADC2 pins. The GPIO3 pin is connected to the external battery monitoring circuit 260 for receiving an access signal of the external battery 20 provided by the external battery monitoring circuit 260. The ADC2 pin is connected to the first voltage dividing circuit 270. The GPIO2 pin is connected to the external battery switch control circuit 231. The GPIO1 pin is connected to the internal battery switch control circuit 221. The ADC1 pin is connected to the second voltage dividing circuit 280.
第一分压电路270与外置电池20连接,并且第二分压电路280与内置电池11连接。内置电池11和外置电池20分别经过第二分压电路280和第一分压电路270连到MCU 250的ADC1管脚和ADC2管脚,以使MCU 250可以实时监测内置电池11和外置电池20的状态,从而决定是否发出电池供电回路切换的指令。The first voltage dividing circuit 270 is connected to the external battery 20, and the second voltage dividing circuit 280 is connected to the internal battery 11. The built-in battery 11 and the external battery 20 are connected to the ADC1 pin and the ADC2 pin of the MCU 250 via the second voltage dividing circuit 280 and the first voltage dividing circuit 270, respectively, so that the MCU 250 can monitor the built-in battery 11 and the external battery in real time. The state of 20, which in turn determines whether to issue a command to switch the battery-powered circuit.
图3为图2所示的内电池供电回路220和内电池开关控制电路221的电路原理图。3 is a circuit schematic diagram of the inner battery power supply circuit 220 and the inner battery switch control circuit 221 shown in FIG. 2.
如图3所示,内电池供电回路220包括两个PMOS管P1和P2,PMOS管P1的第一端与内置电池11的正极连接,PMOS管P1的第二端 与PMOS管P2的第一端连接。PMOS管P2的第二端与充电管理芯片210的CHGOUT管脚连接,并且PMOS管P1和P2的控制端经内电池供电回路控制节点Node1与内电池开关控制电路221连接。As shown in FIG. 3, the internal battery power supply circuit 220 includes two PMOS tubes P1 and P2. The first end of the PMOS tube P1 is connected to the anode of the built-in battery 11, and the second end of the PMOS tube P1 is connected to the first end of the PMOS tube P2. connection. The second end of the PMOS transistor P2 is connected to the CHGOUT pin of the charge management chip 210, and the control terminals of the PMOS transistors P1 and P2 are connected to the internal battery switch control circuit 221 via the internal battery power supply loop control node Node1.
通过设置两个串联的PMOS管,能够在外置电池20为移动终端10供电时避免为内置电池11充电,进而导致电池电量状态显示错误。By providing two PMOS tubes connected in series, it is possible to avoid charging the built-in battery 11 when the external battery 20 supplies power to the mobile terminal 10, thereby causing a battery power status display error.
在本实施例中,内置电池11与充电管理芯片210的CHGOUT管脚同时经由第二电阻R2为内电池供电回路控制节点Node1提供第一上拉电位PULL UP,参见图7,以避免在内置电池11没有电量的情况下,无法为内置电池11充电。In this embodiment, the built-in battery 11 and the CHGOUT pin of the charge management chip 210 simultaneously provide the first pull-up potential PULL UP for the inner battery power supply loop control node Node1 via the second resistor R2, see FIG. 7 to avoid the built-in battery. 11 The built-in battery 11 cannot be charged without power.
内电池开关控制电路221包括两个NMOS管N1和N2,其中一个NMOS管起到电平转换的作用,另一个NMOS管为控制作用。在没有外置电池20插入时,来自MUC的GPIO1管脚的控制信号为低电平,以将内电池供电回路220导通。The internal battery switch control circuit 221 includes two NMOS transistors N1 and N2, one of which functions as a level shifter and the other NMOS transistor serves as a control. When no external battery 20 is inserted, the control signal from the GPIO1 pin of the MUC is low to turn on the internal battery power supply circuit 220.
根据本实施例,内电池供电回路220还包括第一电阻R1和第一电容C1。第一电阻R1的一端与PMOS管P1的第一端连接,第一电阻R1的另一端与PMOS管P2的第二端连接。第一电容C1的一端接地,另一端与PMOS管P2的第二端连接。According to the embodiment, the inner battery power supply circuit 220 further includes a first resistor R1 and a first capacitor C1. One end of the first resistor R1 is connected to the first end of the PMOS transistor P1, and the other end of the first resistor R1 is connected to the second end of the PMOS transistor P2. One end of the first capacitor C1 is grounded, and the other end is connected to the second end of the PMOS transistor P2.
根据本实施例,内电池开关控制电路221包括NMOS管N1和N2以及第三电阻R3至第五电阻R5。第三电阻R3的一端与MCU 250(例如,MCU 250的GPIO1管脚)连接,第三电阻R3的另一端与NMOS管N1的控制端连接。第四电阻R4的一端与NMOS管N1的控制端连接,另一端接地。NMOS管N1的第一端接地,NMOS管N1的第二端与NMOS管N2的控制端连接。第五电阻R5的一端接收第一上拉电位PULL UP,另一端与NMOS管N2的控制端连接。NMOS管N2的第一端接地,NMOS管N2的第二端经内电池供电回路控制节点Node1与PMOS管P1和P2的控制端连接。According to the present embodiment, the internal battery switch control circuit 221 includes NMOS transistors N1 and N2 and third to fifth resistors R3 to R5. One end of the third resistor R3 is connected to the MCU 250 (for example, the GPIO1 pin of the MCU 250), and the other end of the third resistor R3 is connected to the control terminal of the NMOS transistor N1. One end of the fourth resistor R4 is connected to the control terminal of the NMOS transistor N1, and the other end is grounded. The first end of the NMOS transistor N1 is grounded, and the second end of the NMOS transistor N1 is connected to the control terminal of the NMOS transistor N2. One end of the fifth resistor R5 receives the first pull-up potential PULL UP, and the other end is connected to the control terminal of the NMOS transistor N2. The first end of the NMOS transistor N2 is grounded, and the second end of the NMOS transistor N2 is connected to the control terminals of the PMOS transistors P1 and P2 via the internal battery power supply loop control node Node1.
图4为图2所示的外电池供电回路230和外电池开关控制电路231的电路原理图。4 is a circuit schematic diagram of the outer battery power supply circuit 230 and the outer battery switch control circuit 231 shown in FIG. 2.
如图4所示,外电池供电回路230包括PMOS管P3。PMOS管P3的第一端与外置电池20的正极连接,PMOS管P3的第二端与充电管 理芯片210的CHGOUT管脚连接,并且PMOS管P3的控制端经外电池供电回路控制节点Node2与外电池开关控制电路231连接。在本实施例中,由外置电池20经第六电阻R6为外电池供电回路控制节点Node2提供第二上拉电位。As shown in FIG. 4, the outer battery power supply circuit 230 includes a PMOS transistor P3. The first end of the PMOS transistor P3 is connected to the anode of the external battery 20, the second end of the PMOS transistor P3 is connected to the CHGOUT pin of the charge management chip 210, and the control end of the PMOS transistor P3 is connected to the node Node2 via the external battery power supply loop. The external battery switch control circuit 231 is connected. In the present embodiment, the external battery 20 provides a second pull-up potential for the external battery power supply loop control node Node2 via the sixth resistor R6.
根据本实施例,外电池开关控制电路包括NMOS管N3以及第七电阻R7和第八电阻R8。第七电阻R7的一端与MCU 250(例如,MCU 250的GPIO2管脚)连接,第七电阻R7的另一端与NMOS管N3的控制端连接。第八电阻R8的一端与NMOS管N3的控制端连接,另一端接地。NMOS管N3的第一端接地,NMOS管N3的第二端经外电池供电回路控制节点Node2与PMOS管P3的控制端连接。According to the embodiment, the external battery switch control circuit includes an NMOS transistor N3 and a seventh resistor R7 and an eighth resistor R8. One end of the seventh resistor R7 is connected to the MCU 250 (for example, the GPIO2 pin of the MCU 250), and the other end of the seventh resistor R7 is connected to the control terminal of the NMOS transistor N3. One end of the eighth resistor R8 is connected to the control terminal of the NMOS transistor N3, and the other end is grounded. The first end of the NMOS transistor N3 is grounded, and the second end of the NMOS transistor N3 is connected to the control terminal of the PMOS transistor P3 via the external battery power supply loop control node Node2.
图5为图2所示的切换电路240的电路原理图。FIG. 5 is a circuit schematic diagram of the switching circuit 240 shown in FIG. 2.
如图5所示,切换电路240包括多个NMOS管N4和N5、第九电阻R9至第十一电阻R11及电容C2。第九电阻R9的一端接收第一上拉电位PULL UP,第九电阻的另一端与NMOS管N$的控制端连接。NMOS管N4的第一端接地,NMOS管N4的第二端经内电池供电回路控制节点Node1与内电池供电回路220的PMOS管P1和P2的控制端连接。NMOS管N5的第一端接地,NMOS管N5的第二端与NMOS管N4的控制端连接。第十电阻R10的一端接地,另一端与NMOS管N5的控制端连接。第十一电阻R11的一端与外电池供电回路230连接,另一端与NMOS管N5的控制端连接。第二电容C2的一端接地,另一端与NMOS管N5的控制端连接。As shown in FIG. 5, the switching circuit 240 includes a plurality of NMOS transistors N4 and N5, a ninth resistor R9 to an eleventh resistor R11, and a capacitor C2. One end of the ninth resistor R9 receives the first pull-up potential PULL UP, and the other end of the ninth resistor is connected to the control terminal of the NMOS transistor N$. The first end of the NMOS transistor N4 is grounded, and the second end of the NMOS transistor N4 is connected to the control terminals of the PMOS transistors P1 and P2 of the internal battery power supply circuit 220 via the internal battery power supply loop control node Node1. The first end of the NMOS transistor N5 is grounded, and the second end of the NMOS transistor N5 is connected to the control terminal of the NMOS transistor N4. One end of the tenth resistor R10 is grounded, and the other end is connected to the control end of the NMOS transistor N5. One end of the eleventh resistor R11 is connected to the outer battery power supply circuit 230, and the other end is connected to the control end of the NMOS transistor N5. One end of the second capacitor C2 is grounded, and the other end is connected to the control end of the NMOS transistor N5.
当外电池20插入时,切换电路240的NMOS管N5导通,使得NMOS管N4的控制端接地,因此切换电路240起不到切换作用,而内电池供电回路220和外电池供电回路230的切换是通过软件控制的,即,是通过MCU 250的GPIO1管脚和GPIO2管脚提供的信号控制的。当外置电池20突然从移动终端10上拔出时,NMOS管N5断开,并且由内置电池11与充电管理芯片210的CHGOUT管脚同时提供的第一上拉电位PULL UP使得NMOS管N4导通,并且经内电池供电回路控制节点Node1向内电池供电回路220的PMOS管P1和P2的控制端提供低电平,使得内电池供电回路220导通,从而在硬件上切换至内电池供电 回路220,使得设备就在外置电池拔20被拔掉时不会掉电。When the external battery 20 is inserted, the NMOS transistor N5 of the switching circuit 240 is turned on, so that the control terminal of the NMOS transistor N4 is grounded, so the switching circuit 240 does not switch, and the internal battery power supply circuit 220 and the external battery power supply circuit 230 are switched. It is software controlled, that is, controlled by the signals provided by the GPIO1 and GPIO2 pins of the MCU 250. When the external battery 20 is suddenly pulled out from the mobile terminal 10, the NMOS transistor N5 is turned off, and the first pull-up potential PULL UP provided by the built-in battery 11 and the CHGOUT pin of the charge management chip 210 causes the NMOS transistor N4 to be guided. And the inner battery power supply loop control node Node1 provides a low level to the control terminals of the PMOS transistors P1 and P2 of the inner battery power supply circuit 220, so that the inner battery power supply circuit 220 is turned on, thereby switching to the inner battery power supply circuit in hardware. 220, so that the device will not lose power when the external battery is unplugged.
根据本公开本实施例,可以在充电管理芯片210的CHGOUT管脚处并联电容值为微法级(例如,几十μF)的电容,从而在开关切换过程中的几十微妙内为移动终端10提供短暂的电流。通过切换电路240,可以随时随地使用外置电池20为移动终端10供电。According to the present embodiment of the present disclosure, a capacitance having a capacitance value of a micro-level (for example, several tens of μF) may be connected in parallel at the CHGOUT pin of the charge management chip 210, so that the mobile terminal 10 is within a few tens of microseconds during the switching process of the switch. Provide a short-lived current. By the switching circuit 240, the external battery 20 can be used to supply power to the mobile terminal 10 anytime and anywhere.
图6为图2所示的外电池监测电路的电路原理图。6 is a circuit schematic diagram of the external battery monitoring circuit shown in FIG. 2.
如图6所示,外电池监测电路260包括NMOS管N6和第十二电阻R12。第十二电阻R12的一端与MCU 250(例如,MCU 250的GPIO3管脚)连接,另一端与NMOS管N6的第二端连接。NMOS管N6的第一端接地,并且NMOS管N6的控制端与外置电池20连接。当外置电池20插入时,外电池监测电路260输出低电平,MCU 250可以根据电平变化来检测是否插入外置电池20。As shown in FIG. 6, the external battery monitoring circuit 260 includes an NMOS transistor N6 and a twelfth resistor R12. One end of the twelfth resistor R12 is connected to the MCU 250 (for example, the GPIO3 pin of the MCU 250), and the other end is connected to the second end of the NMOS transistor N6. The first end of the NMOS transistor N6 is grounded, and the control terminal of the NMOS transistor N6 is connected to the external battery 20. When the external battery 20 is inserted, the external battery monitoring circuit 260 outputs a low level, and the MCU 250 can detect whether or not the external battery 20 is inserted according to the level change.
根据本实施例的双电池切换系统,通过外电池监测电路260监测是否插入外置电池20,当外置电池20插入时,外电池监测电路260产生低电平并发送至MCU 250,以使MCU 250控制由内电池供电回路220或者外电池供电回路230向充电管理芯片210供电,当外置电池20从移动终端10上拔出时,切换电路240将内电池供电回路220导通,从而实现无缝切换。采用本公开实施例的双电池切换系统,能够自适应的在内置电池11与外置电池20之间切换供电,并且在与外置电池220突然断开连接的情况下,快速切换至内电池供电回路220,适用于多种应用场景。According to the dual battery switching system of the present embodiment, whether the external battery 20 is inserted is monitored by the external battery monitoring circuit 260. When the external battery 20 is inserted, the external battery monitoring circuit 260 generates a low level and transmits it to the MCU 250 to enable the MCU. The control 250 supplies power to the charging management chip 210 from the internal battery power supply circuit 220 or the external battery power supply circuit 230. When the external battery 20 is pulled out from the mobile terminal 10, the switching circuit 240 turns on the internal battery power supply circuit 220, thereby achieving no Sew switch. With the dual battery switching system of the embodiment of the present disclosure, the power supply can be adaptively switched between the internal battery 11 and the external battery 20, and in the case of a sudden disconnection from the external battery 220, the battery is quickly switched to the internal battery. Loop 220 is suitable for a variety of application scenarios.
图8为根据本公开实施例的双电池切换方法的流程示意图。FIG. 8 is a schematic flow chart of a dual battery switching method according to an embodiment of the present disclosure.
如图8所示,根据本实施例的双电池切换方法包括步骤710至770。As shown in FIG. 8, the dual battery switching method according to the present embodiment includes steps 710 to 770.
在步骤710,判断外置电池是否插入移动终端;若是,则进入步骤720,若否,则返回步骤710继续进行判断。In step 710, it is determined whether the external battery is inserted into the mobile terminal; if yes, the process proceeds to step 720; if not, the process returns to step 710 to continue the determination.
在步骤720,判断选择内置电池供电或者选择外置电池供电。当选择内置电池供电时,则进入步骤730,当选择外置电池供电时,则进入步骤750。At step 720, it is determined whether the internal battery is selected for power supply or the external battery is selected for power supply. When the internal battery power supply is selected, the process proceeds to step 730, and when the external battery power supply is selected, the process proceeds to step 750.
在步骤730,使得内置电池的内电池供电回路导通。At step 730, the internal battery power supply loop of the internal battery is turned on.
在步骤740,判断内置电池的电量是否低于第一预设值;若是,则进入步骤750,若否,则返回步骤740继续进行判断。In step 740, it is determined whether the power of the built-in battery is lower than the first preset value; if yes, the process proceeds to step 750; if not, then returns to step 740 to continue the determination.
在步骤750,使得外置电池的外电池供电回路导通。At step 750, the external battery power supply loop of the external battery is turned on.
在步骤760,检测是否与外置电池断开连接;若是,则进入步骤730,若否,则进入步骤770。At step 760, it is detected whether it is disconnected from the external battery; if so, then proceeds to step 730, and if not, proceeds to step 770.
在步骤770,判断外置电池的电量是否低于第二预设值;若是,则进入步骤730,若否,则返回步骤760。In step 770, it is determined whether the power of the external battery is lower than the second preset value; if yes, the process proceeds to step 730; if not, the process returns to step 760.
当移动终端通过内置电池进行供电,可以实时检测或者每隔预设时间段检测是否插入外置电池。基于不同的使用场景和设置,在有外置电池插入时可以存在两种供电情况,即,继续由内置电池供电,或者切换至外置电池供电。When the mobile terminal supplies power through the built-in battery, it can detect in real time or detect whether to insert an external battery every preset time period. Based on different usage scenarios and settings, there are two types of power supply when there is an external battery inserted, that is, continue to be powered by the built-in battery, or switch to an external battery.
当选择继续由内置电池供电时,保持内电池供电回路导通。在此情况下,实时判断内置电池的电量是否低于第一预设值,若是,则切换至外置电池供电,即,使得外电池供电回路导通并使得内电池供电回路断开。When the selection continues to be powered by the internal battery, keep the internal battery power circuit open. In this case, it is determined in real time whether the power of the internal battery is lower than the first preset value, and if so, switching to the external battery power supply, that is, the external battery power supply circuit is turned on and the internal battery power supply circuit is disconnected.
当选择由外置电池供电时,使得外电池供电回路导通。在此情况下,一方面检测外置电池是否被拔出,另一方面判断外置电池的电量是否低于第二预设值,当外置电池被拔出或者外置电池的电量低于第二预设值时,切换至内电池供电,即,使得内电池供电回路导通并使得外电池供电回路断开,其中,当外置电池被拔出时,由切换电路硬件地使得内电池供电回路导通。在本实施例中,第二预设值可以与第一预设值相同,也可以与第一预设值不同,本公开对此不作具体限制。When the power is selected to be supplied from an external battery, the external battery power supply circuit is turned on. In this case, on the one hand, it is detected whether the external battery is pulled out, and on the other hand, it is judged whether the external battery is lower than the second preset value, when the external battery is pulled out or the external battery is lower than the first battery. When the preset value is two, the battery is switched to the internal battery, that is, the internal battery power supply circuit is turned on and the external battery power supply circuit is disconnected, wherein when the external battery is pulled out, the internal circuit is powered by the switching circuit hardware. The loop is turned on. In this embodiment, the second preset value may be the same as the first preset value, or may be different from the first preset value, which is not specifically limited in the disclosure.
在本实施例中,若使得内置电池的内电池供电回路导通,则自动使得外置电池的外电池供电回路断开,类似地,若使得外置电池的外电池供电回路导通,则自动使得内置电池的内电池供电回路断开。In this embodiment, if the internal battery power supply circuit of the built-in battery is turned on, the external battery power supply circuit of the external battery is automatically disconnected. Similarly, if the external battery power supply circuit of the external battery is turned on, the automatic The internal battery power supply circuit of the built-in battery is disconnected.
本领域技术人员可以理解的是,本实施例中各个步骤的顺序可以根据实际应用进行调整,本公开对此不作具体限制。It can be understood by those skilled in the art that the order of the steps in the embodiment can be adjusted according to the actual application, and the disclosure does not specifically limit this.
根据本实施例的双电池切换方法,通过监测是否插入外置电池,来控制内电池供电回路与外电池供电回路的切换,并且在与外置电池 突然断开连接的情况下,快速切换回内置电池,适用于多种应用场景。According to the dual battery switching method of the embodiment, the switching between the internal battery power supply circuit and the external battery power supply circuit is controlled by monitoring whether an external battery is inserted, and the switch is quickly switched back to the built-in battery when the external battery is suddenly disconnected. Battery for a variety of application scenarios.
图9为根据本公开实施例的移动终端硬件架构的示意图。9 is a schematic diagram of a hardware architecture of a mobile terminal in accordance with an embodiment of the present disclosure.
如图9所示,根据本公开实施例的移动终端包括存储器810、处理器820及存储在所述存储器810上并可在所述处理器820上运行的双电池切换程序830。在本实施例中,双电池切换程序830包括存储于存储器810上的一系列计算机程序指令,当这些计算机程序指令被处理器820执行时,可以实现根据本公开各实施例的双电池切换方法。As shown in FIG. 9, a mobile terminal in accordance with an embodiment of the present disclosure includes a memory 810, a processor 820, and a dual battery switching program 830 stored on the memory 810 and operable on the processor 820. In the present embodiment, dual battery switching program 830 includes a series of computer program instructions stored on memory 810 that, when executed by processor 820, can implement a dual battery switching method in accordance with various embodiments of the present disclosure.
在一些实施例中,基于这些计算机程序指令各部分所实现的特定的操作,双电池切换程序830可以包括一个或多个模块。图10为图9所示的双电池切换程序的模块示意图。In some embodiments, the dual battery switching procedure 830 can include one or more modules based on the particular operations implemented by the various portions of the computer program instructions. FIG. 10 is a block diagram showing the dual battery switching procedure shown in FIG. 9.
如图10所示,双电池切换程序830包括判断模块910和连接模块920。As shown in FIG. 10, the dual battery switching program 830 includes a determination module 910 and a connection module 920.
判断模块910构造为判断外置电池是否插入移动终端;若是,则进一步判断选择内置电池供电或者选择外置电池供电。The determining module 910 is configured to determine whether the external battery is inserted into the mobile terminal; if yes, further determine whether to select the internal battery to supply power or select an external battery to supply power.
连接模块920构造为当选择内置电池供电时,使得内置电池的内电池供电回路导通,以及当选择外置电池供电时,使得外置电池的外电池供电回路导通。The connection module 920 is configured to turn on the internal battery power supply circuit of the internal battery when the internal battery is selected for power supply, and to turn on the external battery power supply circuit of the external battery when the external battery is selected for power supply.
判断模块910还构造为,在内置电池供电的情况下,判断内置电池的电量是否低于第一预设值;若是,则连接模块920使得外置电池的外电池供电回路导通,否则继续保持内置电池的内电池供电回路导通。The determining module 910 is further configured to determine whether the power of the built-in battery is lower than the first preset value when the battery is powered by the built-in battery; if yes, the connection module 920 turns on the external battery power supply loop of the external battery, otherwise continues to remain The internal battery power supply circuit of the built-in battery is turned on.
判断模块910还构造为,在外置电池供电的情况下,检测是否与外置电池断开连接;若是,则连接模块920使得内置电池的内电池供电回路导通,否则继续保持外置电池的外电池供电回路导通。The determining module 910 is further configured to detect whether the external battery is disconnected when the external battery is powered; if so, the connection module 920 turns on the internal battery power supply circuit of the built-in battery, otherwise the external battery is kept outside. The battery power circuit is turned on.
判断模块910还构造为,在外置电池供电的情况下,判断外置电池的电量是否低于第二预设值;若是,则连接模块920使得内置电池的内电池供电回路导通,否则继续保持外置电池的外电池供电回路导通。The determining module 910 is further configured to determine whether the power of the external battery is lower than a second preset value when the external battery is powered; if yes, the connection module 920 turns on the internal battery power supply loop of the built-in battery; The external battery power supply circuit of the external battery is turned on.
当移动终端通过内置电池进行供电,判断模块910可以实时检测或者每隔预设时间段检测是否插入外置电池。基于不同的使用场景 和设置,在有外置电池插入时可以存在两种供电情况,即,继续由内置电池供电,或者切换至外置电池供电,这就需要判断模块910进一步进行判断并选择由内置电池还是外置电池供电。When the mobile terminal supplies power through the built-in battery, the determining module 910 can detect in real time or detect whether to insert an external battery every preset time period. Based on different usage scenarios and settings, there may be two power supply situations when there is an external battery inserted, that is, continue to be powered by the built-in battery, or switch to external battery power supply, which requires the determination module 910 to further judge and select by The built-in battery is also powered by an external battery.
当判断模块910选择由内置电池供电时,连接模块920保持内电池供电回路导通。在此情况下,判断模块910实时判断内置电池的电量是否低于第一预设值,若是,则连接模块920切换至外置电池供电,即,使得外电池供电回路导通并使得内电池供电回路断开。When the judging module 910 selects to be powered by the built-in battery, the connection module 920 keeps the internal battery power supply loop conducting. In this case, the determining module 910 determines in real time whether the power of the internal battery is lower than the first preset value, and if so, the connection module 920 switches to the external battery power supply, that is, the external battery power supply circuit is turned on and the internal battery is powered. The loop is broken.
当判断模块910选择由外置电池供电时,连接模块920使得外电池供电回路导通。在此情况下,判断模块910一方面检测外置电池是否被拔出,另一方面判断外置电池的电量是否低于第二预设值,当外置电池被拔出或者外置电池的电量低于第二预设值时,连接模块920切换至内电池供电,即,使得内电池供电回路导通并使得外电池供电回路断开,其中,当外置电池被拔出时,由切换电路硬件地使得内电池供电回路导通。在本实施例中,第二预设值可以与第一预设值相同,也可以与第一预设值不同,本公开对此不作具体限制。When the judging module 910 selects to be powered by an external battery, the connection module 920 turns on the outer battery power supply loop. In this case, the determining module 910 detects whether the external battery is pulled out on the one hand, and determines whether the external battery is lower than the second preset value on the other hand, when the external battery is pulled out or the external battery is discharged. When the second preset value is lower, the connection module 920 switches to the internal battery power supply, that is, the internal battery power supply circuit is turned on and the external battery power supply circuit is disconnected, wherein when the external battery is pulled out, the switching circuit is The internal battery power supply circuit is electrically turned on. In this embodiment, the second preset value may be the same as the first preset value, or may be different from the first preset value, which is not specifically limited in the disclosure.
在本实施例中,若连接模块920使得内置电池的内电池供电回路导通,则自动使得外置电池的外电池供电回路断开,类似地,若连接模块920使得外置电池的外电池供电回路导通,则自动使得内置电池的内电池供电回路断开。In this embodiment, if the connection module 920 turns on the internal battery power supply circuit of the built-in battery, the external battery power supply circuit of the external battery is automatically disconnected. Similarly, if the connection module 920 is used to power the external battery of the external battery. When the loop is turned on, the internal battery power supply circuit of the internal battery is automatically disconnected.
根据本实施例的移动终端,通过判断模块910监测是否插入外置电池,由连接模块920控制内电池供电回路与外电池供电回路的切换,并且在与外置电池突然断开连接的情况下,快速切换回内电池,适用于多种应用场景。According to the mobile terminal of the embodiment, by the determining module 910 monitoring whether an external battery is inserted, the connection module 920 controls the switching between the internal battery power supply circuit and the external battery power supply circuit, and in the case of a sudden disconnection from the external battery, Quickly switch back to the internal battery for a variety of application scenarios.
本公开实施例还提供了一种计算机可读存储介质,其上存储有一个或者多个计算机程序,所述一个或者多个计算机程序被一个或者多个处理器执行时,所述一个或者多个处理器执行根据本公开各实施例的双电池切换方法。Embodiments of the present disclosure also provide a computer readable storage medium having stored thereon one or more computer programs, the one or more computer programs being executed by one or more processors, the one or more The processor performs a dual battery switching method in accordance with various embodiments of the present disclosure.
计算机可读存储介质可以包括易失性存储器,例如随机存取存储器;存储器也可以包括非易失性存储器,例如只读存储器、快闪存储器、硬盘或固态硬盘;存储器还可以包括上述种类的存储器的组合。 需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。The computer readable storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read only memory, flash memory, hard disk or solid state drive; the memory may also include a memory of the kind described above The combination. It is to be understood that the term "comprises", "comprising", or any other variants thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes those elements. It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, article, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
上面结合附图对本公开的实施例进行了描述,但是本公开并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本公开的启示下,在不脱离本公开宗旨的情况下,还可做出很多形式,这些均属于本公开的保护之内。The embodiments of the present disclosure have been described above with reference to the drawings, but the present disclosure is not limited to the specific embodiments described above, and the specific embodiments described above are merely illustrative and not restrictive, and those skilled in the art In the light of the present disclosure, many forms may be made without departing from the spirit of the present disclosure, and these are all within the protection of the present disclosure.

Claims (19)

  1. 一种双电池切换电路,包括充电管理芯片、内电池供电回路、外电池供电回路、切换电路、微控制单元MCU以及外电池监测电路,其中,A dual battery switching circuit includes a charging management chip, an internal battery power supply circuit, an external battery power supply circuit, a switching circuit, a micro control unit MCU, and an external battery monitoring circuit, wherein
    所述充电管理芯片的输入端与所述内电池供电回路的输出端和所述外电池供电回路的输出端连接,An input end of the charge management chip is connected to an output end of the inner battery power supply circuit and an output end of the outer battery power supply circuit,
    所述内电池供电回路的输入端连接内置电池,并且所述内置电池内置于移动终端内,The input end of the inner battery power supply circuit is connected to the built-in battery, and the built-in battery is built in the mobile terminal,
    所述外电池供电回路的输入端连接外置电池,并且所述外置电池可拆卸地安装于移动终端,并且An input end of the outer battery power supply circuit is connected to an external battery, and the external battery is detachably mounted to the mobile terminal, and
    所述外电池监测电路与所述外置电池和所述MCU连接,The external battery monitoring circuit is connected to the external battery and the MCU,
    其中,所述外电池监测电路构造为检测是否插入所述外电池,并且所述MCU构造为根据所述外电池监测电路检测的所述外置电池的插入状态或者拔出状态,自适应地切换至所述外电池供电回路或者所述内电池供电回路。Wherein the external battery monitoring circuit is configured to detect whether the external battery is inserted, and the MCU is configured to adaptively switch according to an insertion state or an extraction state of the external battery detected by the external battery monitoring circuit. To the outer battery power supply circuit or the inner battery power supply circuit.
  2. 根据权利要求1所述的双电池切换电路,还包括内电池开关控制电路和外电池开关控制电路,其中The dual battery switching circuit according to claim 1, further comprising an internal battery switch control circuit and an external battery switch control circuit, wherein
    所述内电池开关控制电路连接在所述内电池供电回路和所述MCU之间,并且The internal battery switch control circuit is connected between the inner battery power supply circuit and the MCU, and
    所述外电池开关控制电路连接在所述外电池供电回路和所述MCU之间。The external battery switch control circuit is coupled between the outer battery power supply circuit and the MCU.
  3. 根据权利要求2所述的双电池切换电路,还包括第一分压电路和第二分压电路,The dual battery switching circuit according to claim 2, further comprising a first voltage dividing circuit and a second voltage dividing circuit,
    所述第一分压电路连接在所述外置电池和所述MCU之间,并且所述第二分压电路连接在所述内置电池和所述MCU连接之间。The first voltage dividing circuit is connected between the external battery and the MCU, and the second voltage dividing circuit is connected between the internal battery and the MCU connection.
  4. 根据权利要求2所述的双电池切换电路,其中,The dual battery switching circuit according to claim 2, wherein
    响应于所述外电池监测电路检测到所述外置电池的插入,所述MCU控制所述充电管理芯片与所述内电池供电回路或者所述外电池供电回路连接,并且In response to the outer battery monitoring circuit detecting the insertion of the external battery, the MCU controls the charge management chip to be connected to the inner battery power supply circuit or the outer battery power supply circuit, and
    响应于所述外电池监测电路检测到所述外置电池的拔出,所述MCU控制所述内电池开关控制电路以导通所述内电池供电回路,并且所述切换电路将所述充电管理芯片与所述内电池供电回路导通。The MCU controls the internal battery switch control circuit to turn on the inner battery power supply circuit in response to the outer battery monitoring circuit detecting the pullout of the external battery, and the switching circuit will perform the charge management The chip is electrically connected to the inner battery power supply circuit.
  5. 根据权利要求2所述的双电池切换电路,其中,所述内电池供电回路包括第一PMOS管和第二PMOS管,The dual battery switching circuit of claim 2, wherein the inner battery power supply circuit comprises a first PMOS transistor and a second PMOS transistor,
    其中,所述第一PMOS管的第一端与所述内置电池的正极连接,所述第一PMOS管的第二端与所述第二PMOS管的第一端连接,所述第二PMOS管的第二端与所述充电管理芯片连接,并且所述第一PMOS管的控制端和所述第二PMOS管的控制端经内电池供电回路控制节点与所述内电池开关控制电路连接。The first end of the first PMOS transistor is connected to the anode of the internal battery, the second end of the first PMOS transistor is connected to the first end of the second PMOS transistor, and the second PMOS transistor The second end is connected to the charging management chip, and the control end of the first PMOS transistor and the control end of the second PMOS transistor are connected to the internal battery switch control circuit via an internal battery power supply loop control node.
  6. 根据权利要求5所述的双电池切换电路,其中,所述内电池供电回路还包括第一电阻和第一电容,The dual battery switching circuit of claim 5, wherein the inner battery power supply circuit further comprises a first resistor and a first capacitor,
    其中,所述第一电阻的一端与所述第一PMOS管的第一端连接,所述第一电阻的另一端与所述第二PMOS管的第二端连接,并且Wherein one end of the first resistor is connected to the first end of the first PMOS tube, and the other end of the first resistor is connected to the second end of the second PMOS tube, and
    所述第一电容的一端接地,所述第一电容的另一端与所述第二PMOS管的第二端连接。One end of the first capacitor is grounded, and the other end of the first capacitor is connected to the second end of the second PMOS transistor.
  7. 根据权利要求5所述的双电池切换电路,其中,由所述内置电池与所述充电管理芯片经第二电阻共同为所述内电池供电回路控制节点提供第一上拉电位。The dual battery switching circuit according to claim 5, wherein said internal battery power supply loop control node is supplied with a first pull-up potential by said internal battery and said charge management chip via said second resistor.
  8. 根据权利要求7所述的双电池切换电路,其中,所述内电池开关控制电路包括第一NMOS管和第二NMOS管以及第三电阻至第五电阻,The dual battery switching circuit according to claim 7, wherein the internal battery switch control circuit comprises a first NMOS transistor and a second NMOS transistor, and a third to fifth resistor,
    其中,所述第三电阻的一端与所述MCU连接,所述第三电阻的 另一端与所述第一NMOS管的控制端连接,One end of the third resistor is connected to the MCU, and the other end of the third resistor is connected to the control end of the first NMOS transistor.
    所述第四电阻的一端与所述第一NMOS管的控制端连接,所述第四电阻的另一端接地,One end of the fourth resistor is connected to the control end of the first NMOS transistor, and the other end of the fourth resistor is grounded.
    所述第一NMOS管的第一端接地,所述第一NMOS管的第二端与所述第二NMOS管的控制端连接,The first end of the first NMOS transistor is grounded, and the second end of the first NMOS transistor is connected to the control end of the second NMOS transistor.
    所述第五电阻的一端接收所述第一上拉电位,所述第五电阻的另一端与所述第二NMOS管的控制端连接,并且One end of the fifth resistor receives the first pull-up potential, and the other end of the fifth resistor is connected to a control end of the second NMOS transistor, and
    所述第二NMOS管的第一端接地,所述第二NMOS管的第二端经所述内电池供电回路控制节点与所述第一PMOS管的控制端和所述第二PMOS管的控制端连接。The first end of the second NMOS transistor is grounded, and the second end of the second NMOS transistor is controlled by the inner battery power supply loop control node and the control end of the first PMOS transistor and the second PMOS transistor End connection.
  9. 根据权利要求2所述的双电池切换电路,其中,所述外电池供电回路包括第三PMOS管,The dual battery switching circuit of claim 2, wherein the outer battery power supply circuit comprises a third PMOS transistor,
    其中,所述第三PMOS管的第一端与所述外置电池的正极连接,所述第三PMOS管的第二端与所述充电管理芯片连接,并且所述第三PMOS管的控制端经外电池供电回路控制节点与所述外电池开关控制电路连接。The first end of the third PMOS transistor is connected to the anode of the external battery, the second end of the third PMOS transistor is connected to the charging management chip, and the control end of the third PMOS transistor The external battery power supply loop control node is connected to the external battery switch control circuit.
  10. 根据权利要求9所述的双电池切换电路,其中,由所述外置电池经第六电阻为所述外电池供电回路控制节点提供第二上拉电位。The dual battery switching circuit of claim 9 wherein said external battery provides a second pull-up potential to said external battery supply loop control node via said sixth resistor.
  11. 根据权利要求10所述的双电池切换电路,其中,所述外电池开关控制电路包括第三NMOS管以及第七电阻和第八电阻,The dual battery switching circuit according to claim 10, wherein said external battery switch control circuit comprises a third NMOS transistor and a seventh resistor and an eighth resistor,
    其中,所述第七电阻的一端与所述MCU连接,所述第七电阻的另一端与所述第三NMOS管的控制端连接,The one end of the seventh resistor is connected to the MCU, and the other end of the seventh resistor is connected to the control end of the third NMOS tube.
    所述第八电阻的一端与所述第三NMOS管的控制端连接,所述第八电阻的另一端接地,并且One end of the eighth resistor is connected to a control end of the third NMOS transistor, and the other end of the eighth resistor is grounded, and
    所述第三NMOS管的第一端接地,所述第三NMOS管的第二端经所述外电池供电回路控制节点与所述第三PMOS管的控制端连接。The first end of the third NMOS transistor is grounded, and the second end of the third NMOS transistor is connected to the control end of the third PMOS transistor via the external battery power supply loop control node.
  12. 根据权利要求7所述的双电池切换电路,其中,所述切换电路包括第四NMOS管、第五NMOS管、第九电阻至第十一电阻和第二电容,The dual battery switching circuit according to claim 7, wherein the switching circuit comprises a fourth NMOS transistor, a fifth NMOS transistor, a ninth resistor to an eleventh resistor, and a second capacitor,
    其中,所述第九电阻的一端接收所述第一上拉电位,所述第九电阻的另一端与所述第四NMOS管的控制端连接,Wherein, one end of the ninth resistor receives the first pull-up potential, and the other end of the ninth resistor is connected to a control end of the fourth NMOS transistor,
    所述第四NMOS管的第一端接地,所述第四NMOS管的第二端经所述内电池供电回路控制节点与所述第一PMOS管的控制端和所述第二PMOS管的控制端连接,The first end of the fourth NMOS transistor is grounded, and the second end of the fourth NMOS transistor is controlled by the inner battery power supply loop control node and the control end of the first PMOS transistor and the second PMOS transistor End connection,
    所述第五NMOS管的第一端接地,所述第五NMOS管的第二端与所述第四NMOS管的控制端连接,The first end of the fifth NMOS transistor is grounded, and the second end of the fifth NMOS transistor is connected to the control end of the fourth NMOS transistor.
    所述第十电阻的一端接地,所述第十电阻的另一端与所述第五NMOS管的控制端连接,One end of the tenth resistor is grounded, and the other end of the tenth resistor is connected to a control end of the fifth NMOS transistor.
    所述第十一电阻的一端与所述外电池供电回路连接,所述第十一电阻的另一端与所述第五NMOS管的控制端连接,并且One end of the eleventh resistor is connected to the outer battery power supply loop, and the other end of the eleventh resistor is connected to the control end of the fifth NMOS transistor, and
    所述第二电容的一端接地,所述第二电容的另一端与所述第五NMOS管的控制端连接。One end of the second capacitor is grounded, and the other end of the second capacitor is connected to a control end of the fifth NMOS transistor.
  13. 根据权利要求1所述的双电池切换电路,其中,所述外电池监测电路包括第六NMOS管和第十二电阻,The dual battery switching circuit according to claim 1, wherein said external battery monitoring circuit comprises a sixth NMOS transistor and a twelfth resistor,
    其中,所述第十二电阻的一端与所述MCU连接,所述第十二电阻的另一端与所述第六NMOS管的第二端连接,并且Wherein one end of the twelfth resistor is connected to the MCU, and the other end of the twelfth resistor is connected to the second end of the sixth NMOS tube, and
    所述第六NMOS管的第一端接地,所述第六NMOS管的控制端与所述外置电池连接。The first end of the sixth NMOS transistor is grounded, and the control end of the sixth NMOS transistor is connected to the external battery.
  14. 根据权利要求3所述的双电池切换电路,其中,所述MCU包括GPIO1管脚、GPIO2管脚、GPIO3管脚、ADC1管脚和ADC2管脚,The dual battery switching circuit according to claim 3, wherein the MCU comprises a GPIO1 pin, a GPIO2 pin, a GPIO3 pin, an ADC1 pin, and an ADC2 pin.
    其中,所述GPIO3管脚与所述外电池监测电路连接,用于接收所述外电池监测电路提供的外置电池接入信号,The GPIO3 pin is connected to the external battery monitoring circuit for receiving an external battery access signal provided by the external battery monitoring circuit.
    所述GPIO1管脚与所述内电池开关控制电路连接,The GPIO1 pin is connected to the internal battery switch control circuit,
    所述GPIO2管脚与所述外电池开关控制电路连接,The GPIO2 pin is connected to the external battery switch control circuit,
    所述ADC1管脚与所述第二分压电路连接,并且The ADC1 pin is connected to the second voltage dividing circuit, and
    所述ADC2管脚与所述第一分压电路连接。The ADC2 pin is connected to the first voltage dividing circuit.
  15. 一种移动终端的双电池切换方法,包括:A dual battery switching method for a mobile terminal, comprising:
    响应于外置电池插入所述移动终端并且选择切换至所述外置电池,使得所述外置电池的外电池供电回路导通,以由所述外置电池为所述移动终端供电;以及Inserting an external battery into the mobile terminal and selecting to switch to the external battery such that an external battery power supply loop of the external battery is turned on to power the mobile terminal by the external battery;
    响应于所述移动终端与所述外置电池断开连接,使得内置电池的内电池供电回路导通,以由所述内置电池为所述移动终端供电。In response to the mobile terminal being disconnected from the external battery, an internal battery power supply loop of the internal battery is turned on to supply power to the mobile terminal by the internal battery.
  16. 根据权利要求15所述的双电池切换方法,还包括:The dual battery switching method according to claim 15, further comprising:
    响应于外置电池插入所述移动终端并且选择继续由所述内置电池为所述移动终端进行供电,判断所述内置电池的电量是否低于预设值;以及Determining whether the power of the internal battery is lower than a preset value in response to the external battery being inserted into the mobile terminal and selecting to continue to supply power to the mobile terminal by the internal battery;
    响应于所述内置电池的电量低于预设值,使得所述外置电池的外电池供电回路导通,以由所述外置电池为所述移动终端供电。The external battery power supply loop of the external battery is turned on in response to the power of the internal battery being lower than a preset value to supply power to the mobile terminal by the external battery.
  17. 根据权利要求15所述的双电池切换方法,其中,在由所述外置电池为所述移动终端供电的步骤之后,所述方法还包括:The dual battery switching method according to claim 15, wherein after the step of powering the mobile terminal by the external battery, the method further comprises:
    判断所述外置电池的电量是否低于预设值;以及Determining whether the amount of power of the external battery is lower than a preset value;
    响应于所述外置电池的电量低于预设值,使得所述内置电池的内电池供电回路导通,以由所述内置电池为所述移动终端供电。The internal battery power supply loop of the internal battery is turned on in response to the power of the external battery being lower than a preset value to supply power to the mobile terminal by the internal battery.
  18. 一种移动终端,包括处理器以及存储器,其中A mobile terminal includes a processor and a memory, wherein
    所述存储器中存储有计算机程序,所述处理器执行所述计算机程序时,所述处理器执行根据权利要求15至17任一项所述的双电池切换方法。A computer program is stored in the memory, and when the processor executes the computer program, the processor performs the dual battery switching method according to any one of claims 15 to 17.
  19. 一种计算机可读存储介质,其上存储有一个或者多个计算 机程序,所述一个或者多个计算机程序被一个或者多个处理器执行时,所述一个或者多个处理器执行根据权利要求15至17任一项所述的双电池切换方法。A computer readable storage medium having stored thereon one or more computer programs, the one or more computer programs being executed by one or more processors, the one or more processors executing according to claim 15. The dual battery switching method according to any one of the preceding claims.
PCT/CN2019/082364 2018-05-18 2019-04-12 Dual-battery switching method and circuit, mobile terminal and storage medium WO2019218821A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810480867.XA CN110504738A (en) 2018-05-18 2018-05-18 Double cell switching method, circuit, mobile terminal and storage medium
CN201810480867.X 2018-05-18

Publications (1)

Publication Number Publication Date
WO2019218821A1 true WO2019218821A1 (en) 2019-11-21

Family

ID=68539462

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/082364 WO2019218821A1 (en) 2018-05-18 2019-04-12 Dual-battery switching method and circuit, mobile terminal and storage medium

Country Status (2)

Country Link
CN (1) CN110504738A (en)
WO (1) WO2019218821A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113377185B (en) * 2021-07-05 2023-10-10 歌尔科技有限公司 Embedded equipment, power supply switching method and device thereof and storage medium
CN115173534B (en) * 2022-09-06 2022-12-27 深圳市驰普科达科技有限公司 Outdoor power supply device, capacity-expanded battery device and outdoor power supply assembly

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202363960U (en) * 2011-08-18 2012-08-01 上海韦尔半导体股份有限公司 Double-battery power supply device
CN103928974A (en) * 2014-04-01 2014-07-16 深圳市国通世纪科技开发有限公司 Smart double-battery system and switching over and charging method of double batteries
CN105914839A (en) * 2016-05-31 2016-08-31 深圳埃蒙克斯科技有限公司 Double-cell mobile phone and cell control method and system thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912093B (en) * 2016-04-14 2019-03-15 捷开通讯(深圳)有限公司 A kind of method and mobile terminal of mobile terminal continuation of the journey
CN207010339U (en) * 2017-03-09 2018-02-13 上海乐今通信技术有限公司 Mobile terminal and its electric power system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202363960U (en) * 2011-08-18 2012-08-01 上海韦尔半导体股份有限公司 Double-battery power supply device
CN103928974A (en) * 2014-04-01 2014-07-16 深圳市国通世纪科技开发有限公司 Smart double-battery system and switching over and charging method of double batteries
CN105914839A (en) * 2016-05-31 2016-08-31 深圳埃蒙克斯科技有限公司 Double-cell mobile phone and cell control method and system thereof

Also Published As

Publication number Publication date
CN110504738A (en) 2019-11-26

Similar Documents

Publication Publication Date Title
TWI694728B (en) Wireless headset and wireless headset and charging box assembly
TWI427892B (en) Power supply system for power saving and method thereof
TWI461891B (en) Power managing circuit and the method thereof
JP5394400B2 (en) Power adapter
US9176567B2 (en) Procedure for charging a portable device using a battery-operated computer
US20140184143A1 (en) Power management system and method
KR101621407B1 (en) Apparatus and method for managing battery pack
US9880610B2 (en) Power supplying method, power supplying system, and electronic device
WO2019218821A1 (en) Dual-battery switching method and circuit, mobile terminal and storage medium
JP2013132185A (en) Charging circuit and electronic equipment using the same
JP5613135B2 (en) Battery unit for portable terminal device and power supply method
US20200117257A1 (en) Method and device for power control
WO2023123759A1 (en) Outdoor device power supply control method and system, and outdoor device
CN115954977A (en) Dual-battery management circuit and method and electronic equipment
WO2022126560A1 (en) Movable platform, charging and discharging method therefor, and storage medium
CN111294683A (en) Wireless earphone and wireless earphone and charging box set
TW201701563A (en) Mobile charge-discharge device
CN111033436A (en) Early precharge enablement of peak power application in net zero energy devices
TW201835715A (en) Power supply circuits, wearable devices and methods for providing power supply to a wearable device
CN117194294A (en) USB output path conversion circuit and related device
CN114285128A (en) Outdoor equipment power supply control circuit, outdoor equipment power supply system and outdoor equipment
EP1429442B1 (en) Circuit for preventing unintentional power off of mobile terminal and method therefor
TWI293825B (en)
TW201701562A (en) Mobile charge-discharge device
CN110739732A (en) Portable electronic equipment, chip, charging system and charging method thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19803049

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 20.04.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19803049

Country of ref document: EP

Kind code of ref document: A1