Power supply system, control method and power supply equipment

By designing the power supply system and using physical interfaces and module combinations to select the power supply channel, the problem of portable terminals being unable to provide high-power output power supply is solved, and compatibility and efficient power supply of the USB Type-C specification are achieved.

CN115207997BActive Publication Date: 2024-10-11SUNNY OPTICAL ZHEJIANG RES INST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110400019.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-14
Publication Date
2024-10-11
Estimated Expiration
2041-04-14

AI Technical Summary

Technical Problem

Portable terminals cannot provide high-power output power supply and cannot meet the high power requirements of portable wearable devices.

Method used

A power supply system is designed, including a physical interface, main control module, power management module, battery unit, one-way switch module and battery power supply switch module. By obtaining the power supply protocol of the external device, the appropriate power supply channel (the first power supply channel or battery power supply channel) and control the switch module to achieve power supply.

Benefits of technology

It achieves high-power output and high-efficiency power supply compatible with the USB Type-C specification, solves the problem of portable terminals being unable to provide high-power output power supply, and is suitable for portable wearable devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115207997B_ABST
    Figure CN115207997B_ABST
Patent Text Reader

Abstract

The present application relates to a power supply system, a control method and a power supply device, the power supply system includes a physical interface, a power supply system electrically connected to the physical interface, the power supply system includes a main control module, a power management module, a battery unit, a first unidirectional switch module and a battery-powered switch module, the main control module is electrically connected to the power management module, the first unidirectional switch module and the battery-powered switch module respectively, the power management module is electrically connected to the physical interface and the battery unit respectively, the power input end of the first unidirectional switch module is electrically connected to the power input / output port of the power management module, the power input end of the battery-powered switch module is electrically connected to the battery unit, and the power output ends of the first unidirectional switch module and the battery-powered switch module are both electrically connected to the physical interface. Through this application, the problem that the portable terminal in the related art cannot output high-power power is solved, and compatibility with the USB Type-C specification and high-power output and high-efficiency power supply are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of power supply for portable devices, and in particular to a power supply system, a control method and a power supply device. Background Art

[0002] USB Type-C is the most widely used due to its advantages such as compact and thin interface, unified specifications, support for both positive and negative insertion, high-speed signal, and high-power transmission. When the USB Type-C interface of a mobile phone is connected to an external device, it can power the device and transmit data at the same time through a simple single cable, realizing rich functions.

[0003] In the related art, a portable wearable device is used as an external device, such as AR glasses. When connected to a portable terminal through its USB Type-C interface, the external device is powered by the portable terminal, such as a mobile phone powering AR glasses. However, portable wearable devices are high-power devices, and their maximum peak current can reach 3A when they are powered. In addition, portable terminals are subject to adverse effects such as volume, conversion efficiency, and heat generation, making it difficult to output high power to portable wearable devices and unable to meet the high-power power requirements of portable wearable devices.

[0004] With regard to the problem in the related art that portable terminals cannot output high-power power, no effective solution has been proposed yet. Summary of the invention

[0005] In this embodiment, a power supply system, a control method and a power supply device are provided to solve the problem in the related art that a portable terminal cannot output high power for power supply.

[0006] In a first aspect, a power supply system is provided in this embodiment, including a physical interface and a power supply system electrically connected to the physical interface, the power supply system including a main control module, a power management module, a battery unit, a first unidirectional switch module and a battery-powered switch module, the main control module is electrically connected to the power management module, the first unidirectional switch module and the battery-powered switch module respectively, the power management module is electrically connected to the physical interface and the battery unit respectively, the power input end of the first unidirectional switch module is electrically connected to the power input / output port of the power management module, the power input end of the battery-powered switch module is electrically connected to the battery unit, and the first unidirectional switch module The power output ends of the block and the battery-powered switch module are both electrically connected to the physical interface, wherein the power management module is used to obtain a power supply protocol corresponding to an external device electrically connected to the physical interface, and select one of the following power supply channels corresponding to the external device according to the power supply protocol: a first power supply channel composed of the battery unit, the power management module, the first unidirectional switch module and the physical interface, and a battery power supply channel composed of the battery unit, the battery-powered switch module and the physical interface; the main control module is used to obtain the power supply protocol, and control the on and off of the first unidirectional switch module and the battery-powered switch module according to the power supply protocol.

[0007] In some embodiments, the power supply system further includes a charging switch module, the charging switch module is electrically connected to the main control module, the power input end of the charging switch module is electrically connected to the physical interface, and the power output end of the charging switch module is electrically connected to the power input / output port of the power management module, wherein the power management module is used to obtain a power supply type corresponding to an external device electrically connected to the physical interface, and select a charging channel or a power supply channel corresponding to the external device according to the power supply type, wherein the charging channel includes a charging path formed by the physical interface, the charging switch module and the power management module, and is used to charge the battery unit, and the power supply channel includes one of the first power supply channel and the battery power supply channel; the main control module is used to correspondingly control the on and off of the first unidirectional switch module, the battery power switch module and the charging switch module.

[0008] In some embodiments, the charging switch module, the first unidirectional switch module and the battery-powered switch module all include a controlled switch branch, a comparison unit, a logic control unit and a switch driving unit. The controlled switch branch includes a first input end, a first controlled end and a first output end. The first input end is electrically connected to the corresponding power input end, the first output end is electrically connected to the corresponding power output end, the first controlled end is electrically connected to the output end of the switch driving unit, the positive input end and the negative input end of the comparison unit are electrically connected to the corresponding power output end and the power input end, respectively, the output end of the comparison unit is electrically connected to one of the two control ports of the logic control unit, and the other control port of the logic control unit is also electrically connected to the main control module, the output end of the logic control unit is electrically connected to the controlled input end of the switch driving unit, and the two input ends of the switch driving unit are electrically connected to the corresponding power input end and the power output end, respectively, wherein the The controlled switch branch is used to control the on and off of the first input terminal and the first output terminal according to the magnitude of the voltage difference between one of the first input terminal and the first output terminal and the first controlled terminal and the first preset threshold value; the comparison unit is used to generate and output the corresponding first logic control level according to the magnitude of the voltage difference between the power supply output terminal and the negative input terminal and the second preset threshold value; the logic control unit is used to generate and output the corresponding switch control signal according to whether the received first logic control level and the second logic control level sent by the main control module are both preset levels; the switch driving unit is used to receive the switch control signal, and when the voltage of the switch control signal is the first preset voltage value, transmit the maximum voltage between the voltage of the power supply output terminal and the voltage of the power supply input terminal to the first controlled terminal, and when the voltage of the switch control signal is the second preset voltage value, transmit the voltage whose voltage difference with the power supply input terminal is the set value to the first controlled terminal.

[0009] In some embodiments, the controlled switch branch includes two voltage-controlled switch units, the input end of one of the two voltage-controlled switch units is electrically connected to the first input end, and the output end thereof is electrically connected to the output end of the other voltage-controlled switch unit, the input end of the other voltage-controlled switch unit is electrically connected to the first output end, and the controlled ends of the two voltage-controlled switch units are electrically connected to the first controlled end, wherein, when the voltage difference between the controlled end and the input end of each voltage-controlled switch unit is greater than the first preset threshold, the corresponding voltage-controlled switch unit is turned on, and the first input end is connected to the first output end; when the voltage difference between the controlled end and the input end of each voltage-controlled switch unit is not greater than the first preset threshold, the corresponding voltage-controlled switch unit is turned off, and the first input end is disconnected from the first output end.

[0010] In some embodiments, each of the voltage-controlled switch units includes a P-channel MOS tube and a parasitic diode, the drain of the P-channel MOS tube is electrically connected to the power input end or the power output end, the gate of the P-channel MOS tube is electrically connected to the output end of the switch driving unit, and the source of each of the P-channel MOS tubes is butted; the anode of the parasitic diode is electrically connected to the drain of the P-channel MOS tube, and the cathode of the parasitic diode is electrically connected to the source of the P-channel MOS tube, wherein the parasitic diode is used to forward bias the voltage of the drain of the P-channel MOS tube to the source of the P-channel MOS tube; when the voltage difference between the gate and the source of the P-channel MOS tube is greater than the first preset threshold, the P-channel MOS tube is turned on and the corresponding voltage-controlled switch unit is turned on; when the voltage difference between the gate and the source of the P-channel MOS tube is not greater than the first preset threshold, the P-channel MOS tube is turned off and the corresponding voltage-controlled switch unit is disconnected.

[0011] In some embodiments, the comparison unit includes a comparison amplifier, which includes a same-direction input terminal, a reverse input terminal and a comparison output terminal, wherein the same-direction input terminal and the reverse input terminal are respectively connected to the positive input terminal and the negative input terminal, and the comparison output terminal is electrically connected to one of the two control ports of the logic control unit, wherein the comparison amplifier is used to output the first logic control level of a low level when the voltage difference between the same-direction input terminal and the reverse input terminal is greater than the second preset threshold, and to output the first logic control level of the preset level when the voltage difference between the same-direction input terminal and the reverse input terminal is not greater than the second preset threshold.

[0012] In some embodiments, the logic control unit includes an AND gate circuit, which includes two second input terminals and one second output terminal, one of the two second input terminals is electrically connected to the output terminal of the comparison unit, the other second input terminal is electrically connected to the main control module, and the second output terminal is electrically connected to the controlled input terminal of the switch driving unit, wherein the AND gate circuit is used to output the switch control signal with a voltage of the second preset voltage value along the second output terminal when the first logic control level and the second logic control level respectively received by the two second input terminals are both the preset levels, and to output the switch control signal with a voltage of the first preset voltage value along the second output terminal when at least one of the first logic control level and the second logic control level is not the preset level.

[0013] In some embodiments, the switch driving unit includes a first diode, a second diode, a first switch tube, a second switch tube and a voltage-stabilizing diode. The first switch tube includes a third input terminal, a third controlled terminal and a third output terminal. The second switch tube includes a fourth input terminal, a fourth controlled terminal and a fourth output terminal. The third input terminal is electrically connected to the cathodes of the first diode, the second diode and the voltage-stabilizing diode respectively. The third controlled terminal is electrically connected to the fourth input terminal and the first resistor respectively. The third output terminal is electrically connected to the anode of the voltage-stabilizing diode and the second resistor respectively, and is connected to the output terminal of the switch driving unit. The anodes of the first diode and the second diode are connected to the two input terminals of the switch driving unit respectively. The other end of the first resistor is electrically connected to the first power supply. The fourth controlled terminal is electrically connected to the controlled input terminal of the switch driving unit. The fourth output terminal is electrically connected to the other end of the second resistor and is grounded.

[0014] When the fourth controlled end of the second switch tube receives the switch control signal having a voltage of the first preset voltage value, the second switch tube is turned off, the first switch tube is turned on, and the switch driving unit outputs the maximum voltage of the voltages of the two input ends of the switch driving unit along the third output end, and transmits it to the first controlled end;

[0015] When the fourth controlled end of the second switch tube receives the switch control signal whose voltage is the second preset voltage value, the second switch tube is turned on and the first switch tube is turned off, and the output end of the switch driving unit outputs the voltage of the anode of the Zener diode and transmits it to the first controlled end.

[0016] In some embodiments, the power management module includes: a boost circuit, electrically connected to the battery cell and the first unidirectional switch module, for converting the voltage provided by the battery cell into a preset voltage and powering the external device; a buck circuit, electrically connected to the battery cell and the charging switch module, for stepping down the voltage provided by the external device and charging the battery cell.

[0017] In some embodiments, the power supply system also includes a protocol processing module, and the power management module is electrically connected to the main control module and the physical interface respectively through the protocol processing module, wherein the protocol processing module is used to communicate with the external device and identify the power supply type and power supply protocol corresponding to the external device.

[0018] In a second aspect, a power supply control method is provided in this embodiment, including the power supply system described in the first aspect, the power supply control method comprising: the power management module acquires a power supply protocol corresponding to an external device electrically connected to the physical interface, and selects one of the following power supply channels corresponding to the external device according to the power supply protocol: the first power supply channel, the battery power supply channel, the power supply protocol including power supply parameters associated with the external device;

[0019] The main control module obtains the power supply protocol transmitted by the power management module, and controls the on and off of the first unidirectional switch module and the battery-powered switch module according to the power supply protocol, so that the corresponding power supply channel is turned on and supplies power to the external device.

[0020] In some embodiments, the power supply protocol includes the voltage required by the external device and the use of non-battery power supply, and the power supply control method includes:

[0021] The power management module determines, according to the power supply protocol, that the first power supply channel is a power supply channel corresponding to the external device;

[0022] The main control module controls the first unidirectional switch module to conduct according to the power supply protocol, so that the first power supply channel is opened and supplies power to the external device.

[0023] In some embodiments, the power supply protocol includes the voltage required by the external device and the use of a battery for power supply, and the power supply control method includes: the power management module determines, according to the power supply protocol, that the battery power supply channel is the power supply channel corresponding to the external device; the main control module controls the battery power supply switch module to be turned on according to the power supply protocol, so that the battery power supply channel is opened and powers the external device.

[0024] In some embodiments, the power supply system further includes a charging switch module, the charging switch module is electrically connected to the main control module, a power input end of the charging switch module is electrically connected to the physical interface, and a power output end of the charging switch module is electrically connected to the power input / output port of the power management module. The power supply control method includes: the power management module obtains a power supply type corresponding to an external device electrically connected to the physical interface, wherein the power supply type includes a charging type and a power consumption type; the power management module selects a charging channel or a power supply channel corresponding to the external device according to the power supply type, wherein the charging channel includes a charging path formed by the physical interface, the charging switch module and the power management module; when the power management module selects the charging path according to the power supply type, the power management module obtains a charging protocol corresponding to the external device and starts its preset charging path, wherein the charging protocol includes a voltage provided by the external device; the main control module obtains the charging protocol, and controls the charging switch module to be turned on according to the charging protocol, so that the charging channel is opened, and the voltage provided by the external device is charged to the battery unit through the charging switch module and the charging path.

[0025] In a third aspect, a power supply device is provided in this embodiment, including a power supply system, which is electrically connected to an external device through a physical interface and is used to supply power to the external device or for the external device to charge the power supply device, and the power supply system includes the power supply system described in the first aspect.

[0026] Compared with the related art, the present embodiment provides a power supply system, a control method and a power supply device. The power supply system sets a first power supply channel and a battery power supply channel, and selects the corresponding power supply channel for the external device through the coordinated control of the power management module and the main control module, and controls the opening or closing of the first unidirectional switch module and the battery power supply switch module, so that the corresponding power supply channel supplies power to the external device according to the power supply protocol, thereby solving the problem in the related art that the portable terminal cannot output high-power power, and achieving compatibility with the USB Type-C specification and high-power output and high-efficiency power supply.

[0027] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0029] Figure 1 is a structural block diagram of a power supply system according to an embodiment of the present application;

[0030] Figure 2 The structural framework of the power supply system according to the preferred embodiment of the present application Figure 1 ;

[0031] Figure 3 The structural framework of the power supply system according to the preferred embodiment of the present application Figure 2 ;

[0032] Figure 4 is a topological structure diagram of a unidirectional switch module according to an embodiment of the present application;

[0033] Figure 5 is another topological structure diagram of the unidirectional switch module according to the embodiment of the present application;

[0034] Figure 6 is a flow chart of a charging control method according to an embodiment of the present application. DETAILED DESCRIPTION

[0035] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.

[0036] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the", "these" and the like in this application do not represent quantitative restrictions, and they can be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether directly or indirectly. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. Usually, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0037] This embodiment provides a power supply system. Figure 1 is a structural block diagram of a power supply system according to an embodiment of the present application, such as Figure 1 As shown, the power supply system includes: a physical interface 100, a power supply system electrically connected to the physical interface 100, the power supply system includes a main control module 200, a power management module 400, a battery unit 500, a first unidirectional switch module 700 and a battery-powered switch module 800, the main control module 200 is electrically connected to the power management module 400, the first unidirectional switch module 700 and the battery-powered switch module 800 respectively, the power management module 400 is electrically connected to the physical interface 100 and the battery unit 500 respectively, the power input end (VIN1) of the first unidirectional switch module 700 is electrically connected to the power input / output port of the power management module 400 (the input port and the output port of the power management module 400 are set to the same pin of the power management PMIC), the power input end (VIN2) of the battery-powered switch module 800 is electrically connected to the battery unit 500, and the power output ends (corresponding to VOUT1 and VOUT2, respectively) of the first unidirectional switch module 700 and the battery-powered switch module 800 are both electrically connected to the physical interface 100, wherein,

[0038] The physical interface 100 is used to electrically connect to an external device. In this embodiment, the physical interface 100 includes but is not limited to a USB Type-C interface. The external device includes a charging device, such as a charger and a mobile power supply, and also includes a power-consuming device. At this time, the power-consuming device is powered by a power supply device of the power supply system of this embodiment. For example, when the power supply device is a mobile phone, the external device can be a portable wearable device, such as AR glasses.

[0039] The power management module 400 is used to obtain a power supply protocol corresponding to an external device electrically connected to the physical interface 100, and select one of the following power supply channels corresponding to the external device according to the power supply protocol: a first power supply channel composed of a battery unit 500, a power management module 400, a first unidirectional switch module 700 and a physical interface 100 (refer to Figure 1 L1 in FIG), a battery power supply channel composed of a battery unit 500, a battery power supply switch module 800 and a physical interface 100 (reference Figure 1 in L2).

[0040] In this embodiment, the power management module 400 obtains the power supply protocol of the external device connected to the physical interface 100, thereby determining the power role of the external device and negotiating the power voltage and power provided or required by the external device; in this embodiment, after the power management module 400 determines the power role and negotiates the power voltage and power of the external device connected to the physical interface 100, the determination result and the negotiation result are transmitted to the main control module 200.

[0041] In this embodiment, the power supply protocol acquired by the power management module 400 is a protocol in the prior art with protocol content added, and the added protocol content includes: a terminal (e.g., a mobile phone) having the terminal power supply system of this embodiment provides a description and broadcast of the battery power supply capability, including: power supply voltage (battery voltage range, such as 3.6V-4.3V), current capability (such as 5A), and the power-consuming device chooses whether to use battery power supply, wherein the added protocol content is implemented by adding the protocol content to the original protocol physical channel. In this embodiment, the existing protocol includes but is not limited to the USB TYPE-C specification.

[0042] In this embodiment, the power management module 400 will turn on the corresponding power supply channel (corresponding to L1, L2) according to the corresponding power role judgment of the external device, and provide the voltage required in the power negotiation. Of course, the power parameters required in the power negotiation include but are not limited to voltage, for example, also include current, output power and whether the battery unit 500 is used to directly supply power.

[0043] The main control module 200 is used to obtain a power supply protocol, and control the on and off of the first unidirectional switch module 700 and the battery-powered switch module 800 according to the power supply protocol.

[0044] In this embodiment, the main control module 200 determines that the first unidirectional switch module 700 and the battery-powered switch module 800 need to be controlled, and then determines to control the first unidirectional switch module 700 or the battery-powered switch module 800 according to whether the battery unit 500 is used for direct power supply in the power supply protocol. For example: when the power supply protocol contains a protocol content that uses the battery unit 500 for direct power supply, the main control module 200 determines the battery-powered switch module 800.

[0045] In this embodiment, the power supply device for supplying power to the external device includes a terminal and a portable device having the power supply system in this embodiment.

[0046] In this embodiment, the main control module 200 controls different switch modules to be turned on or off according to different situations such as whether the power supply device is connected to an external device, the type of external device, whether the external device needs to be powered by a battery, etc., so as to select a suitable power supply channel. When the main control module 200 outputs an ON signal, the corresponding switch module is turned on; when the main control module 200 outputs an OFF signal, the corresponding switch module is disconnected; wherein, the power supply channel associated with the first unidirectional switch module 700 is an externally connected electrical device, and is the first power supply channel when the electrical device is initially powered on and the electrical device requires non-battery power supply; the power supply channel associated with the battery-powered switch module 800 is a battery power supply channel when the external electrical device is connected and the electrical device requires battery power supply.

[0047] The power supply system of this embodiment sets a first power supply channel and a battery power supply channel, and selects the corresponding power supply channel for the external device through the coordinated control of the power management module and the main control module, and controls the opening or closing of the first unidirectional switch module and the battery power supply switch module, so that the corresponding power supply channel supplies power to the external device according to the power supply protocol, thereby solving the problem that the portable terminal in the related technology cannot provide high-power output power supply, and achieving compatibility with the USB Type-C specification and high-power output and high-efficiency power supply.

[0048] It should be noted that the power supply system of the embodiment of the present application also has the following beneficial effects: it can provide a larger power output; it has the advantage of high efficiency and does not increase power loss and heat due to conversion efficiency; it is beneficial to space saving, heat dissipation, high reliability, good versatility of mobile devices, and is compatible with the original USB Type-C specification.

[0049] Figure 2 The structural framework of the power supply system according to the preferred embodiment of the present application Figure 1 ,like Figure 2 As shown, the power supply system includes: a physical interface 100, a power supply system electrically connected to the physical interface 100, the power supply system includes a main control module 200, a power management module 400, a battery unit 500, a charging switch module 600, a first unidirectional switch module 700 and a battery-powered switch module 800, the main control module 200 is electrically connected to the power management module 300, the first unidirectional switch module 700, the battery-powered switch module 800 and the charging switch module 600, respectively, the power input end of the charging switch module 600 is electrically connected to the physical interface 100, and the power output end of the charging switch module 600 is electrically connected to the physical interface 100. The output end (VOUT3) is electrically connected to the power input / output port of the power management module 400, the power input end (VIN1) of the first unidirectional switch module 700 is electrically connected to the power input / output port of the power management module 400, the power input end (VIN2) of the battery-powered switch module 800 is electrically connected to the battery unit 500, and the power output ends (corresponding to VOUT1 and VOUT2, respectively) of the first unidirectional switch module 700 and the battery-powered switch module 800 are electrically connected to the physical interface 100 and the power input end (VIN3) of the charging switch module 600, respectively, wherein,

[0050] The power management module 400 is used to obtain the power supply type and power supply protocol corresponding to the external device electrically connected to the physical interface, and select the charging channel corresponding to the external device according to the power supply type (refer to Figure 2 L3 in) or power supply channel (reference Figure 2L1, L2), and one of the power supply channels (L1, L2) is selected according to the power supply protocol, wherein the charging channel includes a charging path composed of a physical interface 100, a charging switch module 600 and a power management module 400, and is used to charge the battery unit, and the power supply channel includes one of a first power supply channel and a battery power supply channel.

[0051] In this embodiment, the power management module 400 will turn on the charging channel (corresponding to L3) or the power supply channel (corresponding to L1, L2) according to the corresponding power role judgment of the external device (judging whether it is a charging device or a power-consuming device), and provide the voltage required in the power negotiation. Of course, the power parameters required in the power negotiation include but are not limited to voltage, for example, also include current, output power and whether the battery unit 500 is used to directly supply power.

[0052] In this embodiment, the power management module 400 selects a charging channel according to different power supply types (refer to Figure 2 L3 in) and the selected power supply channel (reference Figure 2 When the power supply type corresponds to the external device being a power-consuming device, the power management module 400 selects the first power supply channel and the battery power supply channel, and then selects the first power supply channel according to whether the battery unit 500 is used to directly supply power in the power supply protocol (reference Figure 2 L1 in) or battery powered channel (reference Figure 2 L2 in the example, when the power supply protocol includes a protocol content that uses the battery unit 500 to directly supply power, the power management module 400 determines that the power supply channel is a battery power supply channel (reference Figure 2 When the external device corresponding to the power supply type is a charging device, the power management module 400 selects a charging channel (refer to Figure 2 L3 in the figure), and uses an external device to power the battery unit 500.

[0053] The main control module 200 is used to control the on and off of the first unidirectional switch module 700 , the battery power supply switch module 800 and the charging switch module 600 accordingly.

[0054] In this embodiment, the main control module 200 controls different switch modules to be turned on or off according to different situations such as whether the power supply device is connected to an external device, the type of external device, whether the external device needs to be powered by a battery, etc., so as to select a suitable power supply channel. When the main control module 200 outputs an ON signal, the corresponding switch module is turned on; when the main control module 200 outputs an OFF signal, the corresponding switch module is disconnected; wherein, the power supply channel associated with the charging switch module 600 is a charging channel when an external charger is connected and the power supply device is charged; the power supply channel associated with the first unidirectional switch module 700 is a first power supply channel when an external electrical device is connected, the electrical device is initially powered on and the electrical device requires non-battery power supply; the power supply channel associated with the battery-powered switch module 800 is a battery power supply channel when an external electrical device is connected and the electrical device requires battery power supply.

[0055] Figure 3 The structural framework of the power supply system according to the preferred embodiment of the present application Figure 2 ,like Figure 3 As shown, the power supply system also includes a protocol processing module 300, and the power management module 400 is electrically connected to the main control module 200 and the physical interface 100 respectively through the protocol processing module 300, wherein the protocol processing module 300 is used to communicate with external devices and identify the power supply type and power supply protocol corresponding to the external device.

[0056] In this embodiment, the protocol processing module 300 is used to process communications with external devices, to determine the power role corresponding to the external device, and to negotiate the power voltage and power provided or required by the external device; in this embodiment, the protocol processing module 300 determines the power role and negotiates the power voltage and power for the external device connected to the physical interface 100, and then transmits the determination result and the negotiation result to the power management module 400 and the main control module 200.

[0057] In this embodiment, the protocol processing module 300 adds protocol content to the existing protocol, and the added protocol content includes: a terminal (for example, a mobile phone) having the terminal power supply system of this embodiment provides a description and broadcast of the battery power supply capability, including: power supply voltage (battery voltage range, such as 3.6V-4.3V), current capability (such as 5A), and the power-consuming device chooses whether to use battery power supply, wherein the added protocol content is implemented by adding the protocol content to the original protocol physical channel (CC channel) of USB Type-C.

[0058] It should be noted that in some of the optional implementations, the protocol processing module 300 can also be integrated into the CPU processor of the power management module 400 or the main control module 200. By integrating the protocol processing module 300, the circuit structure of the power supply system can be simplified and the space of the mainboard required for the layout design can be saved.

[0059] Figure 4 is a topological diagram of a unidirectional switch module according to an embodiment of the present application, such as Figure 4 As shown, in some embodiments, the charging switch module 600, the first unidirectional switch module 700 and the battery-powered switch module 800 all include a controlled switch branch 61, a comparison unit 62, a logic control unit 63 and a switch drive unit 64. The controlled switch branch 61 includes a first input terminal, a first controlled terminal and a first output terminal. The first input terminal is electrically connected to the corresponding power input terminal (VIN), the first output terminal is electrically connected to the corresponding power output terminal (VOUT), the first controlled terminal is electrically connected to the output terminal of the switch drive unit 64, the positive input terminal and the negative input terminal of the comparison unit 62 are electrically connected to the corresponding power output terminal (VOUT) and the power input terminal (VIN), respectively, the output terminal of the comparison unit 62 is electrically connected to one of the two control ports of the logic control unit 63, the other control port of the logic control unit 63 is also electrically connected to the main control module 200, the output terminal of the logic control unit 63 is electrically connected to the controlled input terminal of the switch drive unit 64, and the two input terminals of the switch drive unit are electrically connected to the corresponding power input terminal and the power output terminal. In this embodiment, when the unidirectional switch module is working,

[0060] The controlled switch branch 61 controls the on and off of the first input terminal and the first output terminal of the controlled switch branch 61 according to the voltage difference between one of the first input terminal and the first output terminal and the first controlled terminal and the first preset threshold.

[0061] In this embodiment, the controlled switch branch 61 is configured such that when there is a pressure difference (greater than zero) between the first input terminal or the first output terminal and the first controlled terminal, the controlled switch branch 61 is turned on and the corresponding unidirectional switch module is turned on; when there is no pressure difference or a negative pressure difference between the first input terminal or the first output terminal and the first controlled terminal, the controlled switch branch 61 is disconnected and the corresponding unidirectional switch module is disconnected.

[0062] Specifically, when the voltage difference between the first input terminal or the first output terminal and the first controlled terminal is greater than the first preset threshold, it indicates that there is a conduction voltage difference between the first input terminal or the first output terminal and the first controlled terminal. At this time, the controlled switch branch 61 is turned on. At the same time, when the voltage difference between the first input terminal or the first output terminal and the first controlled terminal is greater than the first preset threshold, the first controlled terminal receives a voltage lower than the voltage of the first input terminal (corresponding to the power supply input voltage). At this time, it is implied that the voltage of the first output terminal (corresponding to the power supply output voltage) is not higher than the voltage of the first input terminal (corresponding to the power supply input voltage), and the first The voltage of the output terminal is higher than the voltage of the first controlled terminal; when the voltage difference between the first input terminal or the first output terminal and the first controlled terminal is less than the first preset threshold, it means that there is no voltage difference between the first input terminal or the first output terminal and the first controlled terminal. At this time, the controlled switch branch 61 is disconnected. At the same time, when the voltage difference between the first input terminal or the first output terminal and the first controlled terminal is less than the first preset threshold, the first controlled terminal receives the largest voltage between the voltage of the first input terminal (corresponding to the power supply input voltage) and the voltage of the first output terminal, so there is no voltage difference or a negative voltage difference between the first input terminal or the first output terminal and the first controlled terminal. In a specific embodiment, the first preset threshold is set to zero volts.

[0063] The comparison unit 62 generates and outputs a corresponding first logic control level according to the voltage difference between the power output terminal and the power input terminal and the second preset threshold.

[0064] In this embodiment, the comparison unit 62 is used to compare the magnitude of the power input terminal voltage and the power output terminal voltage, wherein when the voltage difference between the power input terminal voltage and the power output terminal voltage is greater than the second preset threshold value, it indicates that the power output terminal voltage is not higher than the power input terminal voltage, and at this time, the comparison unit 62 outputs a first logic control level of a preset level (high level); when the voltage difference between the power input terminal voltage and the power output terminal voltage is less than the second preset threshold value, it indicates that the power output terminal voltage is higher than the power input terminal voltage, and at this time, the comparison unit 62 outputs a first logic control level of a low level.

[0065] The logic control unit 63 is used to generate and output a corresponding switch control signal according to whether the received first logic control level and the second logic control level sent by the main control module 200 are both preset levels (high level).

[0066] In this embodiment, when either the first logic control level sent by the comparison unit 62 or the second logic control level sent by the main control module 200 is a low level, the logic control unit 63 outputs a switch control signal whose voltage value is a first preset voltage value (low level); when the first logic control level sent by the comparison unit 62 and the second logic control level sent by the main control module 200 are both preset levels (high level), the logic control unit 63 outputs a switch control signal whose voltage value is a second preset voltage value (high level).

[0067] The switch driving unit 64 receives the switch control signal, and when the voltage of the switch control signal is a first preset voltage value, transmits the maximum voltage between the voltage of the power input terminal and the voltage of the power output terminal to the first controlled terminal, and when the voltage of the switch control signal is a second preset voltage value, transmits the voltage difference with the power input terminal to the set value (V M ) (corresponding to the voltage at the power input terminal minus the set value) is transmitted to the first controlled terminal.

[0068] In this embodiment, when the voltage of the switch control signal received by the switch driving unit 64 is a first preset voltage value (low level), the switch driving unit 64 outputs a higher voltage between the power input terminal voltage and the power output terminal voltage. At this time, there is no voltage difference or a negative voltage difference between the first input terminal or the first output terminal and the first controlled terminal, and the controlled switch branch 61 is closed; when the voltage of the switch control signal received by the switch driving unit 64 is a second preset voltage value (high level), the switch driving unit 64 outputs a voltage lower than the power input terminal voltage by a set value (V M ) voltage, at this time, the voltage of the first output terminal is not higher than the voltage of the first input terminal, and is greater than the voltage received by the first controlled terminal, there is a conduction voltage between the first input terminal or the first output terminal and the first controlled terminal, and the controlled switch branch 61 is turned on.

[0069] In this embodiment, a low level is equivalent to an OFF signal, and the low level can be represented by 0, and a high level is equivalent to an ON signal, and the high level can be represented by the number 1.

[0070] In some of the embodiments, reference Figure 4 The controlled switch branch 61 includes two voltage-controlled switch units, the input end of one of the two voltage-controlled switch units is electrically connected to the first input end, and the output end thereof is electrically connected to the output end of the other voltage-controlled switch unit, the input end of the other voltage-controlled switch unit is electrically connected to the first output end, and the controlled ends of the two voltage-controlled switch units are both electrically connected to the first controlled end, wherein,

[0071] When the voltage difference between the controlled end and the input end of each voltage-controlled switch unit is greater than a first preset threshold, the corresponding voltage-controlled switch unit is turned on, and the first input end is connected to the first output end;

[0072] When the voltage difference between the controlled end and the input end of each voltage-controlled switch unit is not greater than the first preset threshold, the corresponding voltage-controlled switch unit is disconnected, and the first input end and the first output end are disconnected.

[0073] In this embodiment, when the voltage-controlled switch unit is configured with a controlled end and an output end having a conduction voltage difference, the voltage-controlled switch unit is turned on. At the same time, the voltage at the input end of the voltage-controlled switch unit can be positively biased at the output end of the voltage-controlled switch unit. Therefore, the corresponding voltage-controlled switch unit can be controlled to be turned on based on whether the voltage difference between the controlled end and the input end of the voltage-controlled switch unit is greater than a first preset threshold.

[0074] In some of the embodiments, reference Figure 4 Each voltage-controlled switch unit includes a P-channel MOS tube (QA / QB) and a parasitic diode (D1 / D2), the drain of the P-channel MOS tube (QA / QB) is electrically connected to the power input terminal (VIN) or the power output terminal (VOUT), the gate of the P-channel MOS tube (QA / QB) is electrically connected to the output terminal of the switch driving unit 64, and the source of each P-channel MOS tube (QA / QB) is connected; the anode of the parasitic diode (D1 / D2) is electrically connected to the drain of the P-channel MOS tube (QA / QB), and the cathode of the parasitic diode (D1 / D2) is electrically connected to the P-channel MOS tube ( The invention relates to a P-channel MOS transistor (QA / QB) connected to the source of the P-channel MOS transistor (QA / QB), wherein the parasitic diode (D1 / D2) is used to forward bias the voltage of the drain of the P-channel MOS transistor (QA / QB) to the source of the P-channel MOS transistor (QA / QB); when the voltage difference between the gate and the source of the P-channel MOS transistor (QA / QB) is greater than a first preset threshold, the P-channel MOS transistor (QA / QB) is turned on, and the corresponding voltage-controlled switch unit is turned on; when the voltage difference between the gate and the source of the P-channel MOS transistor (QA / QB) is not greater than the first preset threshold, the P-channel MOS transistor (QA / QB) is turned off, and the corresponding voltage-controlled switch unit is disconnected.

[0075] In this embodiment, the voltage received by the gate of the P-channel MOS tube (QA / QB) is the voltage output by the switch driving unit, or the higher voltage between the power input voltage and the power output voltage, or a voltage lower than the power input voltage by a set value (V M ) voltage.

[0076] In some of the embodiments, reference Figure 4, the comparison unit 62 includes a comparison amplifier, the comparison amplifier includes a non-inverting input terminal (+), a reverse input terminal (-) and a comparison output terminal, the non-inverting input terminal and the reverse input terminal are respectively connected to the positive input terminal and the negative input terminal, and the comparison output terminal is electrically connected to one of the two control ports of the logic control unit 63, wherein the comparison amplifier is used to output a first logic control level of a low level when the voltage difference between the non-inverting input terminal and the reverse input terminal is greater than a second preset threshold value, and to output a first logic control level of a preset level when the voltage difference between the non-inverting input terminal and the reverse input terminal is not greater than the second preset threshold value; in some optional embodiments, the second preset threshold value is set to zero volts.

[0077] In some of the embodiments, the logic control unit 63 includes an AND gate circuit, which includes two second input terminals and one second output terminal, one of the two second input terminals is electrically connected to the output terminal of the comparison unit 62, the other second input terminal is electrically connected to the main control module 200, and the second output terminal is electrically connected to the controlled input terminal of the switch driving unit 64, wherein the AND gate circuit is used to output a switch control signal with a second preset voltage value (high level) along the second output terminal when the first logic control level and the second logic control level respectively received at the two second input terminals are both preset levels (high levels), and to output a switch control signal with a first preset voltage value (low level) along the second output terminal when at least one of the first logic control level and the second logic control level is not the preset level.

[0078] Figure 5 is another topological structure diagram of the unidirectional switch module according to an embodiment of the present application, such as Figure 5 In some embodiments shown therein, the switch driving unit 64 includes a first diode D3, a second diode D4, a first switch tube Q1, a second switch tube Q2 and a voltage-stabilizing diode D5. The first switch tube Q1 includes a third input terminal, a third controlled terminal and a third output terminal. The second switch tube Q2 includes a fourth input terminal, a fourth controlled terminal and a fourth output terminal. The third input terminal is electrically connected to the cathodes of the first diode D3, the second diode D4 and the voltage-stabilizing diode D5, respectively. The third controlled terminal is electrically connected to the fourth input terminal and the first resistor R1, respectively. The third output terminal is electrically connected to the anode of the voltage-stabilizing diode D5 and the second resistor R2, respectively, and is connected to the output terminal of the switch driving unit 64. The anodes of the first diode D3 and the second diode D4 are connected to the two input terminals of the switch driving unit 64 (corresponding to the power input terminal VIN and the power output terminal VOUT), respectively. The other end of the first resistor R1 is electrically connected to the first power supply V1, the fourth controlled terminal is electrically connected to the controlled input terminal of the switch driving unit 64, and the fourth output terminal is electrically connected to the other end of the second resistor R2 and is grounded.

[0079] When the fourth controlled terminal of the second switch tube Q2 receives a switch control signal with a voltage of the first preset voltage value, the second switch tube Q2 is turned off, the first switch tube Q1 is turned on, and the switch driving unit 64 outputs the maximum voltage of the voltages of the two input terminals of the switch driving unit 64 (corresponding to the power input terminal VIN and the power output terminal VOUT) along the third output terminal, and transmits it to the first controlled terminal;

[0080] When the fourth controlled end of the second switch tube Q2 receives a switch control signal with a voltage of the second preset voltage value, the second switch tube Q2 is turned on and the first switch tube Q1 is turned off, and the output end of the switch driving unit 64 outputs the voltage of the anode of the Zener diode D5 and transmits it to the first controlled end.

[0081] In this embodiment, when the voltage at the power output terminal VOUT is not less than the voltage at the power input terminal VIN, the comparison unit 62 outputs a low-level first logic control level to the logic control unit 63, and the logic control unit 63 outputs a switch control signal with a voltage of a first preset voltage value (low level), and the second switch tube Q2 is turned off, and the first switch tube Q1 is turned on. At this time, since the voltage at the power output terminal VOUT is not less than the voltage at the power input terminal VIN, the first diode D3 is turned off and the second diode D4 is turned on, and the output end of the switch driving unit 64 outputs the maximum voltage between the power output terminal VOUT and the power input terminal VIN, that is, the voltage at the power output terminal VOUT. At this time, the voltage difference between the gate and the source of the P-channel MOS tube (QA / QB) is not greater than the first preset threshold value, the P-channel MOS tube (QA / QB) is turned off, and the corresponding voltage-controlled switch unit is disconnected.

[0082] When the voltage at the power input terminal VIN is greater than the voltage at the power output terminal VOUT, the comparison unit 62 outputs a first logic control level of a preset level (high level) to the logic control unit 63, and the logic control unit 63 outputs a corresponding switch control signal according to the second logic control level output by the main control module 200; when the main control module 200 requires one of the charging switch module 600, the first unidirectional switch module 700 and the battery power supply switch module 800 to be turned on, the logic control unit 63 outputs a switch control signal with a voltage of the second preset voltage value (high level), and the second switch module 800 is turned on. Q2 is turned on, and the first switch tube Q1 is turned off. Since the voltage at the power input terminal VIN is greater than the voltage at the power output terminal VOUT, the first diode D3 is turned on and the second diode D4 is turned off. The voltage outputted from the output terminal of the switch driving unit 64 corresponds to the voltage of the anode of the voltage-regulating diode D5, that is, the voltage difference with the power input terminal VIN is the set value (corresponding to the voltage drop of the voltage-regulating diode D5). At this time, the voltage difference between the gate and the source of the P-channel MOS tube (QA / QB) is greater than the first preset threshold value, the P-channel MOS tube (QA / QB) is turned on, and the corresponding voltage-controlled switch unit is turned on.

[0083] When the main control module 200 requires one of the charging switch module 600, the first unidirectional switch module 700 and the battery-powered switch module 800 to be disconnected, the logic control unit 63 outputs a switch control signal with a voltage of a first preset voltage value (high level), the second switch tube Q2 is disconnected, and the first switch tube Q1 is turned on. Since the voltage at the power input terminal VIN is greater than the voltage at the power output terminal VOUT, the first diode D3 is turned on and the second diode D4 is turned off; the voltage outputted by the output terminal of the switch driving unit 64 corresponds to the voltage of the power input terminal VIN. At this time, the voltage difference between the gate and the source of the P-channel MOS tube (QA / QB) is not greater than the first preset threshold value, the P-channel MOS tube (QA / QB) is turned off, and the corresponding voltage-controlled switch unit is disconnected. In some of the embodiments, the power management module 400 includes: a boost circuit, electrically connected to the battery cell 500 and the first unidirectional switch module 700, for converting the voltage provided by the battery cell 500 into a preset voltage and powering an external device; a buck circuit, electrically connected to the battery cell 500 and the charging switch module 600, for stepping down the voltage provided by the external device and charging the battery cell 500.

[0084] The operations of the charging switch module 600 , the first unidirectional switch module 700 and the battery-powered switch module 800 of this embodiment are described and illustrated below through preferred embodiments.

[0085] refer to Figure 4 The charging switch module 600, the first unidirectional switch module 700 and the battery-powered switch module 800 of the embodiment of the present application all include two P-channel MOS tubes (QA and QB, respectively), a comparison unit 62, a logic control unit 63, and a switch driving unit 64 (gate drive). The sources of QA and QB are connected together; the gates of QA and QB are connected together and connected to the switch driving unit 64 (gate drive); the drain of QA is connected to the power input terminal (VIN) and is also connected to the negative input terminal of the comparison unit 62; the drain of QB is connected to the power output terminal (VOUT) and is also connected to the positive input terminal of the comparison unit 62; the first logic control level outputted from the output terminal of the comparison unit 62 and the second logic control level issued by the main control module 200 are both connected to the logic control unit 63; the output terminal of the logic control unit 63 is connected to the switch driving unit 64 (gate drive), wherein,

[0086] The comparison unit 62 compares the voltages of the power input terminal (VIN) and the power output terminal (VOUT). When the voltage of the power output terminal (VOUT) is higher than the voltage of the power input terminal (VIN), the comparison unit 62 outputs an OFF signal (corresponding to a first logic control level of a low level); when the voltage of the power output terminal (VOUT) is not higher than the voltage of the power input terminal (VIN), the comparison unit 62 outputs an ON signal (corresponding to a first logic control level of a high level).

[0087] As long as any one of the signal output by the comparison unit 62 (first logic control level) and the signal output by the main control module 200 (second logic control level) is an OFF signal, the logic control unit 63 outputs an OFF signal (corresponding to a low-level switch control signal), and the switch driving unit 64 outputs the largest voltage between the voltage of the power input terminal (VIN) and the voltage of the power output terminal (VOUT), so that there is no voltage difference between the gate and the source of QA and QB, thereby closing; when the signal output by the comparison unit 62 (first logic control level) and the signal output by the main control module 200 (second logic control level) are both ON signals, the logic control unit 63 outputs an ON signal (corresponding to a high-level switch control signal), and the switch driving unit outputs a voltage several volts lower than the voltage of the power input terminal (VIN), so that there is a conduction voltage difference between the gate and the source of QA and QB, thereby opening.

[0088] It should be noted that, in the present embodiment, the power input and output of the charging switch module 600, the first unidirectional switch module 700 and the battery-powered switch module 800 are electrically connected together. The input and output pins of each functional module are affected by the working state of other modules. The charging switch module 600, the first unidirectional switch module 700 and the battery-powered switch module 800 of the present embodiment have the functions of unidirectional conduction, prevention of forward leakage and prevention of reverse leakage.

[0089] When no external device is connected to the physical interface, the second logic control level output by the main control module 200 to the charging switch module 600, the first unidirectional switch module 700 and the battery-powered switch module 800 is an OFF signal, and the charging switch module 600, the first unidirectional switch module 700 and the battery-powered switch module 800 are all turned off.

[0090] For the charging switch module 600: the power input terminal (VIN3) is low, the power output terminal (VOUT3) is low, the second logic control level output by the main control module 200 is an OFF signal, the switch control signal output by the logic control unit 63 is an OFF signal, and the switch driving unit 64 outputs a voltage that is the same as the largest voltage between the voltage of the power input terminal (VIN3) and the voltage of the power output terminal (VOUT3), both of which are low voltages (because VIN3 is low at this time), QA and QB are cut off, and the charging channel is disconnected.

[0091] For the first unidirectional switch module 700 , the working process is the same as that of the charging switch module 600 , and the first power supply channel is disconnected.

[0092] For the battery-powered switch module 800: the power input terminal (VIN2) is high, the power output terminal (VOUT3) is low, the second logic control level output by the main control module 200 is an OFF signal, the switch control signal output by the logic control unit 63 is an OFF signal, and the switch driving unit 64 outputs the same voltage as the power input terminal (VIN2). Due to leakage of the parasitic diode of QA, the source of QA is approximately equal to the high voltage of the power input terminal (VIN2), and there is no voltage difference between the gate and the source, so QB is cut off, and the parasitic diode of QB is reversed and also cut off, so the battery power supply channel is disconnected and there is no leakage.

[0093] When a power device is connected to the physical interface, the protocol processing module 300 detects that the connected device is a sink type, notifies the main control module 200 and the power management module 400, and the second logic control level output by the main control module 200 is an ON signal, which controls the first unidirectional switch module 700 to open, and the power management module 400 opens the internal battery power supply path and outputs 5V power after the internal boost circuit. This power supply is used for the initial startup of the power device and the negotiation of subsequent power supply (refer to Figure 2 In this state,

[0094] For the charging switch module 600: the power input terminal (VIN3) is high (the power input terminal is high due to the high output of the first unidirectional switch module 700), the power output terminal (VOUT3) is high due to the high input of the first unidirectional switch module 700, the second logic control level output by the main control module 200 is an OFF signal, the switch control signal output by the logic control unit 63 is an OFF signal, and the switch driving unit 64 outputs the same voltage as the power input terminal (VIN3). Due to leakage, the parasitic diode of QA makes the source approximately equal to the high voltage of the power input terminal (VIN3), so there is no voltage difference between its gate and source, so QA is cut off, and since the parasitic diode of QB is reverse, there is no voltage difference between its gate and source, QB is also cut off, so the charging channel is disconnected and there is no leakage.

[0095] For the first unidirectional switch module 700: the power input terminal (VIN1) is high, and the power output terminal (VOUT1) is high due to the high output of the battery-powered switch module 800, but is lower than the power input terminal (VIN1); the first logic control level output by the comparison unit 62 is an ON signal; the second logic control level output by the main control module 200 is an OFF signal, and the switch control signal output by the logic control unit 63 is an OFF signal. The switch driving unit 64 outputs a voltage that is the same as the voltage of the power input terminal (VIN1). Due to leakage, the parasitic diode of QA of the first unidirectional switch module 700 makes its source approximately equal to the high voltage of the power input terminal (VIN1), so there is no voltage difference between the gate and source of QA and QB of the first unidirectional switch module 700, so QA and QB are both cut off, and the parasitic diode of QB is also cut off, so the first power supply channel is disconnected and there is no leakage.

[0096] For the battery-powered switch module 800: the power input terminal (VIN2) is high, and the power output terminal (VOUT2) is affected by the high output of the first unidirectional switch module 700, and is high (corresponding to the voltage of the power output terminal (VOUT1)), and is higher than the voltage of the power input terminal (VIN2) (VOUT1 is the voltage of VIN2 after boosting); the second logic control level output by the main control module 200 is an OFF signal, the first logic control level output by the comparison unit 62 is an OFF signal, and the switch control signal output by the logic control unit 63 is an OFF signal. F signal, the switch driving unit 64 outputs the same voltage as the power output terminal (VOUT2) (the voltage of the power output terminal (VOUT2) is greater than the voltage of the power input terminal (VIN2)), the parasitic diode of QB of the battery-powered switch module 800 has leakage, so that the source is approximately equal to the high voltage of the power output terminal (VOUT2), and there is no voltage difference between the gate and source of QA and QB of the battery-powered switch module 800, so QA and QB are cut off, and the parasitic diode of QA is reverse and also cut off, so the battery power supply channel is disconnected and there is no leakage.

[0097] After this state, the terminal sends its power supply capability, especially the battery power supply capability, such as 3.6V-4.2V / 5A, to the power-consuming device through the protocol communication channel. The power-consuming device selects the required power supply and sends the result to the terminal. If the power-consuming device selects battery power supply, the second logic control level output by the terminal main control module 200 to the battery power switch module 800 is an ON signal, and the battery power switch module 800 is turned on. Then, the second logic control level output by the main control module 200 to the first unidirectional switch module 700 is an OFF signal, and the first unidirectional switch module 700 is turned off. In this way, the battery power supply channel composed of the battery unit 500 and the battery power switch module 800 is used to directly supply power to the power-consuming device (refer to Figure 1 In L2), under this state:

[0098] For the charging switch module 600: the power input terminal (VIN3) is high (the power input terminal is high due to the high output of the first unidirectional switch module 700), the power output terminal (VOUT3) is high due to the high input of the first unidirectional switch module 700, the second logic control level output by the main control module 200 is an OFF signal, the switch control signal output by the logic control unit 63 is an OFF signal, and the switch driving unit 64 outputs the same voltage as the power input terminal (VIN3). Due to leakage, the parasitic diode of QA of the charging switch module 600 makes the source approximately equal to the high voltage of the power input terminal (VIN3), so there is no voltage difference between its gate and source, so QA is cut off, and since the parasitic diode of QB is reverse, there is no voltage difference between its gate and source, QB is also cut off, so the charging channel is disconnected and there is no leakage.

[0099] For the first unidirectional switch module 700: the power input terminal (VIN1) is high (5V), and the power output terminal (VOUT1) is affected by the high output of the battery-powered switch module 800 and is high, but lower than the voltage of the power input terminal (VIN1); the first logic control level output by the comparison unit 62 is an ON signal; the second logic control level output by the main control module 200 is an OFF signal, the switch control signal output by the logic control unit 63 is an OFF signal, and the switch driving unit 64 outputs a voltage that is the same as the voltage of the power input terminal (VIN1). Due to the leakage of the parasitic diode of QA of the first unidirectional switch module 700, its source is approximately equal to the high voltage of the power input terminal (VIN1), so there is no voltage difference between its gate and source, so QA and QB are both cut off, and the parasitic diode of QB2 is also cut off, so the first power supply channel is disconnected and there is no leakage.

[0100] For the battery-powered switch module 800: the power input terminal (VIN2) is high, the power output terminal (VOUT2) is not affected by other channels and is initially low; the first logic control level output by the comparison unit 62 is an ON signal; the second logic control level output by the main control module 200 is an ON signal, the switch control signal output by the logic control unit 63 is an ON signal, and the switch driving unit 64 outputs a voltage several volts lower than the power input terminal (VIN2). Due to leakage, the parasitic diode of QA of the battery-powered switch module 800 has a source voltage approximately equal to the high voltage of the power input terminal (VIN2), and there is a conduction voltage difference between the gate and source of QA and QB, so QA and QB are turned on, so the battery-powered channel is opened, and the power output terminal (VOUT2) outputs power.

[0101] The power analysis in this state is as follows:

[0102] The two P-channel MOS tubes of the battery-powered switch module 800 are both turned on, and the power output terminal (VOUT2) outputs a voltage. The on-resistance of QA and QB can be as low as a few milliohms, which has very low power loss and heat generation at high currents. Taking the impedance of the P-channel MOS tube as 8 milliohms and the output power of 15W as an example, the power loss is calculated as follows:

[0103] When the voltage of the battery cell 500 is the lowest at 3.6V, the power loss is the largest, which is: P = (15÷3.6)^2×(0.008+0.008) = 0.28W

[0104] When the voltage of the battery cell 500 is the highest 4.3V, the power loss is the smallest, which is: P = (15÷4.3)^2×(0.008+0.008) = 0.19W

[0105] Therefore, in this state, the power loss is much smaller than the loss through the boost circuit mentioned above (1.7W-3.8W), and the heat generated is very small.

[0106] If the power consumption device is powered by a non-battery voltage, the first unidirectional switch module 700 is kept turned on, and the two power supply channels associated with the charging switch module 600 and the battery power supply switch module 800 are kept disconnected, as follows:

[0107] For the charging switch module 600: the power input terminal (VIN3) is high (the power input terminal is high due to the high output of the first unidirectional switch module 700), the power output terminal (VOUT3) is high due to the high input of the first unidirectional switch module 700, the second logic control level output by the main control module 200 is an OFF signal, the switch control signal output by the logic control unit 63 is an OFF signal, and the switch driving unit 64 outputs the same voltage as the power input terminal (VIN3). Due to leakage, the parasitic diode of QA makes the source approximately equal to the high voltage of the power input terminal (VIN3), so there is no voltage difference between its gate and source, so QA is cut off, and since the parasitic diode of QB is reverse, there is no voltage difference between its gate and source, QB is also cut off, so the charging channel is disconnected and there is no leakage.

[0108] For the first unidirectional switch module 700: the power input terminal (VIN1) is high, and the power output terminal (VOUT1) is high due to the high output of the battery-powered switch module 800, but is lower than the power input terminal (VIN1); the first logic control level output by the comparison unit 62 is an ON signal; the second logic control level output by the main control module 200 is an OFF signal, and the switch control signal output by the logic control unit 63 is an OFF signal. The switch driving unit 64 outputs a voltage that is the same as the voltage of the power input terminal (VIN1). Due to leakage, the parasitic diode of QA of the first unidirectional switch module 700 makes its source approximately equal to the high voltage of the power input terminal (VIN1), so there is no voltage difference between the gate and source of QA and QB of the first unidirectional switch module 700, so QA and QB are both cut off, and the parasitic diode of QB is also cut off, so the first power supply channel is disconnected and there is no leakage.

[0109] For the battery-powered switch module 800: the power input terminal (VIN2) is high, and the power output terminal (VOUT2) is affected by the high output of the first unidirectional switch module 700 and is high (corresponding to the voltage of the power output terminal (VOUT1)), and is higher than the voltage of the power input terminal (VIN2); the second logic control level output by the main control module 200 is an OFF signal, the first logic control level output by the comparison unit 62 is an OFF signal, the switch control signal output by the logic control unit 63 is an OFF signal, and the switch driving unit 64 outputs the same voltage as the power output terminal (VOUT2) (the voltage of the power output terminal (VOUT2) is greater than the voltage of the power input terminal (VIN2)), the parasitic diode of QB of the battery-powered switch module 800 has leakage, so that the source is approximately equal to the high voltage of the power output terminal (VOUT2), and there is no voltage difference between the gate and source of QA and QB of the battery-powered switch module 800, so QA and QB are cut off, and the parasitic diode of QA is reverse and also cut off, so the battery power supply channel is disconnected and there is no leakage.

[0110] When a charger device is connected to the physical interface 100, the protocol processing module 300 detects that the connected external device is of source type, notifies the main control module 200 and the power management module 400, and the second logic control level sent by the main control module 200 to the charging switch module 600 is an ON signal, which controls the charging switch module 600 to open; the power management module 400 opens the internal battery charging path, so that the power input of the charger charges the battery unit 500 through the charging switch module 600 and the power management module 400 (see the power flow diagram for details). Figure 1 In this state,

[0111] For the charging switch module 600: the power input terminal (VIN3) is high, the power output terminal (VOUT3) is not affected by other channels and is initially low; the first logic control level output by the comparison unit 62 is an ON signal; the second logic control level output by the main control module 200 is an ON signal, the switch control signal output by the logic control unit 63 is an ON signal, and the switch driving unit 64 outputs a voltage several volts lower than VIN3. Due to leakage, the source of the QA1 source-drain diode makes the source approximately equal to the high voltage of the power input terminal (VIN3), so there is a voltage difference between the gate and source of QA and QB of the charging switch module 600, so QA and QB are both turned on, so the charging channel is opened, and the power output terminal (VOUT3) outputs a high level.

[0112] For the first unidirectional switch module 700: the power input terminal (VIN1) is affected by the high output of the charging switch module 600 and is high; the power output terminal (VOUT1) is affected by the power supply of the charger and is high, and is basically equal to the voltage of the power input terminal (VIN1); the first logic control level output by the comparison unit 62 is an ON signal; the second logic control level output by the main control module 200 is an OFF signal; the switch control signal output by the logic control unit 63 is an OFF signal, and the switch driving unit 64 outputs the same voltage as the power input terminal (VIN1) and the power output terminal (VOUT1), so that there is no voltage difference between the gate and the source, and QA and QB of the first unidirectional switch module 700 are both cut off; the parasitic diodes of QA and QB are both weakly conductive in the forward direction. Due to the opposite connection, the power input terminal to the power output terminal, or the reverse direction is not conductive, so the first power supply channel is disconnected and there is no leakage.

[0113] For the battery-powered switch module 800: the power input terminal (VIN2) is high; the power output terminal (VOUT2) is affected by the power supply of the charger and is high, and is higher than the voltage of the power input terminal (VIN2); the first logic control level output by the comparison unit 62 is an OFF signal; the second logic control level output by the main control module 200 is an OFF signal; the switch control signal output by the logic control unit 63 is an OFF signal, and the switch driving unit 64 outputs the same voltage as the power output terminal (VOUT2), and the QB parasitic diode of the battery-powered switch module 800 is leaking and turned on, and its source voltage is equal to the voltage of the power output terminal (VOUT2), so that there is no voltage difference between the gate and the source, QA and QB are both cut off, and at the same time, the parasitic diode of QA is reverse cut off, so the battery power supply channel is disconnected and there is no leakage.

[0114] This embodiment also provides a power supply control method, which uses the above-mentioned power supply system to power an external device or to charge the external device. Figure 6 is a flow chart of a charging control method according to an embodiment of the present application, such as Figure 6As shown, the process includes the following steps:

[0115] Step S601, the power management module obtains a power supply protocol corresponding to an external device electrically connected to a physical interface, and selects one of the following power supply channels corresponding to the external device according to the power supply protocol: a first power supply channel, a battery power supply channel, and the power supply protocol includes power supply parameters associated with the external device.

[0116] In this embodiment, the power management module obtains the power supply protocol of the external device connected to the physical interface, thereby realizing the judgment of the power role of the external device and the negotiation of the power voltage and power provided or required by the external device; in this embodiment, after the power management module judges the power role and negotiates the power voltage and power of the external device connected to the physical interface, the judgment result and the negotiation result are transmitted to the main control module.

[0117] In this embodiment, the power management module will connect the corresponding power supply channel according to the corresponding power role judgment of the external device, and provide the voltage required in the power negotiation. Of course, the power parameters required in the power negotiation include but are not limited to voltage, for example, current, output power, and whether the battery unit is used for direct power supply.

[0118] In step S602, the main control module obtains the power supply protocol transmitted by the power management module, and controls the on and off of the first unidirectional switch module and the battery power supply switch module according to the power supply protocol, so that the corresponding power supply channel is turned on and supplies power to the external device.

[0119] In this embodiment, the main control module determines that the first unidirectional switch module and the battery-powered switch module need to be controlled, and then determines whether to control the first unidirectional switch module or the battery-powered switch module according to whether the battery unit is used directly for power supply in the power supply protocol. For example: when the power supply protocol contains a protocol content that uses a battery unit for direct power supply, the main control module determines the battery-powered switch module.

[0120] Through the above steps S601 to S602, the main control module cooperates with the power management module to control the corresponding power supply channel for the external device, and controls the opening or closing of the first unidirectional switch module and the battery-powered switch module, so that the corresponding power supply channel supplies power to the external device according to the power supply protocol, thereby solving the problem that the portable terminal in the related technology cannot provide high-power output power supply, and achieving compatibility with the USB Type-C specification and high-power output and high-efficiency power supply.

[0121] In some embodiments, the power supply protocol includes the voltage required by the external device and the use of non-battery power supply, and the power supply control method includes the following steps:

[0122] Step 1: The power management module determines, according to the power supply protocol, that the first power supply channel is the power supply channel corresponding to the external device.

[0123] Step 2: The main control module controls the first unidirectional switch module to conduct according to the power supply protocol, so that the first power supply channel is opened and supplies power to the external device.

[0124] In this embodiment, when the power supply protocol specifies that a non-battery power supply method is used to power the power-consuming device, the main control module controls the first unidirectional switch module accordingly according to the first power supply channel selected by the power management module.

[0125] Through the above steps 1 to 2, the control of the power consumption equipment being powered by a non-battery method is achieved.

[0126] In some embodiments, the power supply protocol includes the voltage required by the external device and the use of a battery for power supply, and the power supply control method includes the following steps:

[0127] Step 1: The power management module determines, according to the power supply protocol, that the battery power supply channel is the power supply channel corresponding to the external device.

[0128] Step 2: The main control module controls the battery power switch module to turn on according to the power supply protocol, so that the battery power supply channel is opened and supplies power to the external device.

[0129] In this embodiment, when the power supply protocol specifies that the power-consuming device should be powered by a battery, the main control module will control the battery power switch module accordingly according to the battery power supply channel selected by the power management module.

[0130] Through the above steps 1 to 2, the control of the power supply of the power-consuming equipment using the battery voltage is realized.

[0131] In some embodiments, the power supply system further includes a charging switch module, the charging switch module is electrically connected to the main control module, a power input end of the charging switch module is electrically connected to the physical interface, and a power output end of the charging switch module is electrically connected to a power input / output port of the power management module. The power supply control method includes the following steps:

[0132] Step 1: The power management module obtains a power supply type corresponding to an external device electrically connected to a physical interface, wherein the power supply type includes a charging type and a power consumption type.

[0133] Step 2: The power management module selects a charging channel or a power supply channel corresponding to the external device according to the power supply type, wherein the charging channel includes a charging path composed of a physical interface, a charging switch module and a power management module.

[0134] Step 3, when the power management module selects a charging channel according to the power supply type, the power management module obtains a charging protocol corresponding to the external device and starts its preset charging path, wherein the charging protocol includes a voltage provided by the external device.

[0135] In this embodiment, the power management module determines that the external device is a power supply device according to the power supply type of the external device being charging. At the same time, the power management module selects a charging channel, and the external device provides power to charge the battery unit.

[0136] Step 4, the main control module obtains the charging protocol, and controls the charging switch module to conduct according to the charging protocol, so that the charging channel is opened, and the voltage provided by the external device is charged to the battery unit through the charging switch module and the charging path.

[0137] Through the above steps 1 to 4, the control of charging the battery is realized.

[0138] This embodiment also provides a power supply device, including a power supply system, which is electrically connected to an external device through a physical interface and is used to supply power to the external device or for the external device to charge the power supply device, and is characterized in that the power supply system includes the above-mentioned power supply system.

[0139] It should be understood that the specific embodiments described herein are only used to explain the application, rather than to limit it. Based on the embodiments provided in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of this application.

[0140] Obviously, the drawings are only some examples or embodiments of the present application. For ordinary technicians in the field, the present application can also be applied to other similar situations based on these drawings without creative work. In addition, it is understandable that although the work done in this development process may be complicated and lengthy, for ordinary technicians in the field, certain changes in design, manufacturing or production based on the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient content disclosed in this application.

[0141] The term "embodiment" in this application refers to a specific feature, structure or characteristic described in conjunction with the embodiment that can be included in at least one embodiment of the present application. The appearance of this phrase in various locations in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. It is clearly or implicitly understood by those of ordinary skill in the art that the embodiments described in this application can be combined with other embodiments without conflict.

[0142] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of patent protection. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.

Claims

1. A power supply system, comprising a physical interface and a power supply system electrically connected to the physical interface, characterized in that: The power supply system includes a main control module, a power management module, a battery unit, a first unidirectional switch module and a battery-powered switch module, wherein the main control module is electrically connected to the power management module, the first unidirectional switch module and the battery-powered switch module respectively, the power management module is electrically connected to the physical interface and the battery unit respectively, the power input end of the first unidirectional switch module is electrically connected to the power input / output port of the power management module, the power input end of the battery-powered switch module is electrically connected to the battery unit, and the power output ends of the first unidirectional switch module and the battery-powered switch module are both electrically connected to the physical interface, wherein: The power management module is used to obtain a power supply protocol corresponding to an external device electrically connected to the physical interface, and select one of the following power supply channels corresponding to the external device according to the power supply protocol: a first power supply channel composed of the battery unit, the power management module, the first unidirectional switch module and the physical interface, and a battery power supply channel composed of the battery unit, the battery-powered switch module and the physical interface; The main control module is used to obtain the power supply protocol, and control the on and off of the first unidirectional switch module and the battery-powered switch module according to the power supply protocol; The power supply system further includes a charging switch module, the charging switch module is electrically connected to the main control module, the power input end of the charging switch module is electrically connected to the physical interface, and the power output end of the charging switch module is electrically connected to the power input / output port of the power management module, wherein: The power management module is used to obtain a power supply type corresponding to an external device electrically connected to the physical interface, and select a charging channel or a power supply channel corresponding to the external device according to the power supply type, wherein the charging channel includes a charging path formed by the physical interface, the charging switch module and the power management module, and is used to charge the battery unit, and the power supply channel includes one of the first power supply channel and the battery power supply channel; The main control module is used to correspondingly control the on and off of the first unidirectional switch module, the battery power supply switch module and the charging switch module.

2. The power supply system according to claim 1, characterized in that: The charging switch module, the first unidirectional switch module and the battery-powered switch module all include a controlled switch branch, a comparison unit, a logic control unit and a switch driving unit. The controlled switch branch includes a first input terminal, a first controlled terminal and a first output terminal. The first input terminal is electrically connected to the corresponding power input terminal, the first output terminal is electrically connected to the corresponding power output terminal, the first controlled terminal is electrically connected to the output terminal of the switch driving unit, the positive input terminal and the negative input terminal of the comparison unit are electrically connected to the corresponding power output terminal and the power input terminal respectively, the output terminal of the comparison unit is electrically connected to one of the two control ports of the logic control unit, and the other control port of the logic control unit is also electrically connected to the main control module, the output terminal of the logic control unit is electrically connected to the controlled input terminal of the switch driving unit, and the two input terminals of the switch driving unit are electrically connected to the corresponding power input terminal and the power output terminal respectively, wherein, The controlled switch branch is used to control the on and off of the first input terminal and the first output terminal according to the magnitude of the voltage difference between one of the first input terminal and the first output terminal and the first controlled terminal and a first preset threshold; The comparison unit is used to generate and output a corresponding first logic control level according to the voltage difference between the positive input terminal and the negative input terminal and the second preset threshold value; The logic control unit is used to generate and output a corresponding switch control signal according to whether the received first logic control level and the second logic control level sent by the main control module are both preset levels; The switch driving unit is used to receive the switch control signal, and when the voltage of the switch control signal is a first preset voltage value, transmit the maximum voltage between the voltage at the power output end and the voltage at the power input end to the first controlled end, and when the voltage of the switch control signal is a second preset voltage value, transmit the voltage whose voltage difference with the power input end is a set value to the first controlled end.

3. The power supply system according to claim 2, characterized in that: The controlled switch branch includes two voltage-controlled switch units, the input end of one of the two voltage-controlled switch units is electrically connected to the first input end, and the output end thereof is electrically connected to the output end of the other voltage-controlled switch unit, the input end of the other voltage-controlled switch unit is electrically connected to the first output end, and the controlled ends of the two voltage-controlled switch units are both electrically connected to the first controlled end, wherein: When the voltage difference between the controlled end and the input end of each voltage-controlled switch unit is greater than the first preset threshold, the corresponding voltage-controlled switch unit is turned on, and the first input end is connected to the first output end; When the voltage difference between the controlled end and the input end of each voltage-controlled switch unit is not greater than the first preset threshold, the corresponding voltage-controlled switch unit is disconnected, and the first input end and the first output end are disconnected.

4. The power supply system according to claim 3, characterized in that: Each of the voltage-controlled switch units includes a P-channel MOS tube and a parasitic diode, the drain of the P-channel MOS tube is electrically connected to the power input end or the power output end, the gate of the P-channel MOS tube is electrically connected to the output end of the switch drive unit, and the source of each P-channel MOS tube is connected; the anode of the parasitic diode is electrically connected to the drain of the P-channel MOS tube, and the cathode of the parasitic diode is electrically connected to the source of the P-channel MOS tube, wherein: The parasitic diode is used to forward bias the voltage of the drain of the P-channel MOS tube to the source of the P-channel MOS tube; When the voltage difference between the gate and the source of the P-channel MOS transistor is greater than the first preset threshold, the P-channel MOS transistor is turned on, and the corresponding voltage-controlled switch unit is turned on; When the voltage difference between the gate and the source of the P-channel MOS transistor is not greater than the first preset threshold, the P-channel MOS transistor is turned off and the corresponding voltage-controlled switch unit is disconnected.

5. The power supply system according to claim 2, characterized in that: The comparison unit includes a comparison amplifier, and the comparison amplifier includes a non-inverting input terminal, a reverse input terminal and a comparison output terminal. The non-inverting input terminal and the reverse input terminal are respectively connected to the positive input terminal and the negative input terminal, and the comparison output terminal is electrically connected to one of the two control ports of the logic control unit, wherein: The comparison amplifier is used to output the first logic control level of a low level when the voltage difference between the same-direction input terminal and the reverse input terminal is greater than the second preset threshold, and to output the first logic control level of the preset level when the voltage difference between the same-direction input terminal and the reverse input terminal is not greater than the second preset threshold.

6. The power supply system according to claim 2, characterized in that: The logic control unit includes an AND gate circuit, the AND gate circuit includes two second input terminals and one second output terminal, one of the two second input terminals is electrically connected to the output terminal of the comparison unit, the other second input terminal is electrically connected to the main control module, and the second output terminal is electrically connected to the controlled input terminal of the switch driving unit, wherein: The AND gate circuit is used for outputting the switch control signal with a voltage of the second preset voltage value along the second output terminal when the first logic control level and the second logic control level respectively received at the two second input terminals are both the preset levels, and for outputting the switch control signal with a voltage of the first preset voltage value along the second output terminal when at least one of the first logic control level and the second logic control level is not the preset level.

7. The power supply system according to claim 2, characterized in that: The switch driving unit includes a first diode, a second diode, a first switch tube, a second switch tube and a voltage-stabilizing diode. The first switch tube includes a third input terminal, a third controlled terminal and a third output terminal. The second switch tube includes a fourth input terminal, a fourth controlled terminal and a fourth output terminal. The third input terminal is electrically connected to the cathodes of the first diode, the second diode and the voltage-stabilizing diode respectively. The third controlled terminal is electrically connected to the fourth input terminal and the first resistor respectively. The third output terminal is electrically connected to the anode of the voltage-stabilizing diode and the second resistor respectively, and is connected to the output terminal of the switch driving unit. The anodes of the first diode and the second diode are connected to the two input terminals of the switch driving unit respectively. The other end of the first resistor is electrically connected to the first power supply. The fourth controlled terminal is electrically connected to the controlled input terminal of the switch driving unit. The fourth output terminal is electrically connected to the other end of the second resistor and is grounded. When the fourth controlled end of the second switch tube receives the switch control signal having a voltage of the first preset voltage value, the second switch tube is turned off, the first switch tube is turned on, and the switch driving unit outputs the maximum voltage of the voltages of the two input ends of the switch driving unit along the third output end, and transmits it to the first controlled end; When the fourth controlled end of the second switch tube receives the switch control signal whose voltage is the second preset voltage value, the second switch tube is turned on and the first switch tube is turned off, and the output end of the switch driving unit outputs the voltage of the anode of the Zener diode and transmits it to the first controlled end.

8. The power supply system according to claim 1, characterized in that: The power management module comprises: a boost circuit, electrically connected to the battery unit and the first unidirectional switch module, for converting the voltage provided by the battery unit into a preset voltage and supplying power to the external device; The step-down circuit is electrically connected to the battery unit and the charging switch module, and is used to step down the voltage provided by the external device and charge the battery unit.

9. The power supply system according to claim 1, characterized in that: The power supply system also includes a protocol processing module, and the power management module is electrically connected to the main control module and the physical interface respectively through the protocol processing module, wherein the protocol processing module is used to communicate with the external device and identify the power supply type and power supply protocol corresponding to the external device.

10. A power supply control method, comprising the power supply system according to claim 1, wherein the power supply system further comprises a charging switch module, wherein the charging switch module is electrically connected to the main control module, wherein the power input end of the charging switch module is electrically connected to the physical interface, and the power output end of the charging switch module is electrically connected to the power input / output port of the power management module, wherein: The power supply control method comprises: The power management module obtains a power supply protocol corresponding to an external device electrically connected to the physical interface, and selects one of the following power supply channels corresponding to the external device according to the power supply protocol: the first power supply channel, the battery power supply channel, and the power supply protocol includes power supply parameters associated with the external device; The main control module obtains the power supply protocol transmitted by the power management module, and controls the on and off of the first unidirectional switch module and the battery-powered switch module according to the power supply protocol, so that the corresponding power supply channel is turned on and supplies power to the external device; The power supply control method further includes: The power management module acquires a power supply type corresponding to an external device electrically connected to the physical interface, wherein the power supply type includes a charging type and a power consumption type; The power management module selects a charging channel or the power supply channel corresponding to the external device according to the power supply type, wherein the charging channel includes a charging path formed by the physical interface, the charging switch module and the power management module; When the power management module selects the charging channel according to the power supply type, the power management module obtains the charging protocol corresponding to the external device and starts its preset charging path, wherein the charging protocol includes the voltage provided by the external device; The main control module obtains the charging protocol, and controls the charging switch module to be turned on according to the charging protocol, so that the charging channel is opened, and the voltage provided by the external device is charged to the battery unit through the charging switch module and the charging path.

11. The power supply control method according to claim 10, characterized in that: The power supply protocol includes the voltage required by the external device and the use of non-battery power supply, and the power supply control method includes: The power management module determines, according to the power supply protocol, that the first power supply channel is a power supply channel corresponding to the external device; The main control module controls the first unidirectional switch module to conduct according to the power supply protocol, so that the first power supply channel is opened and supplies power to the external device.

12. The power supply control method according to claim 10, characterized in that: The power supply protocol includes the voltage required by the external device and the use of a battery for power supply, and the power supply control method includes: The power management module determines, according to the power supply protocol, that the battery power supply channel is the power supply channel corresponding to the external device; The main control module controls the battery power switch module to conduct according to the power supply protocol, so that the battery power supply channel is opened and supplies power to the external device.

13. The power supply control method according to claim 10, characterized in that: The power supply control method further includes: When the power management module detects that the physical interface is not connected to the external device, the main control module controls the charging switch module, the first unidirectional switch module and the battery power switch module to be turned off, so that the physical interface is disconnected from the power management module and the battery unit.

14. A power supply device, comprising a power supply system, wherein the power supply system is electrically connected to an external device via a physical interface and is used to supply power to the external device or for the external device to charge the power supply device, characterized in that: The power supply system comprises the power supply system according to any one of claims 1 to 9.