Power supply circuit, power supply method, terminal equipment and storage medium

By designing a power supply circuit including input and output interface, voltage conversion circuit, charge pump circuit, power management circuit and processing unit, the problem of limited power of terminal equipment when powering OTG equipment is achieved, and high-power power supply and reverse fast Charging improves power supply efficiency and charging speed.

CN119482785APending Publication Date: 2025-02-18BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311015386.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-11
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

The existing terminal equipment has limited power when powered by OTG equipment, which cannot meet the charging needs of high-power OTG equipment, and cannot establish reverse fast charging and fast charging.

Method used

A power supply circuit is designed, including input and output interface, voltage conversion circuit, charge pump circuit, power management circuit and processing unit, which can switch power supply modes of different power according to the needs of OTG equipment and reverse boost through the charge pump circuit. , realize high-power power supply and establish fast charging through fast charging protocol.

Benefits of technology

High-power discharge of terminal equipment is realized, reverse fast charging between terminal equipment and OTG equipment is established, power supply efficiency is improved, and charging time of OTG equipment is shortened.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119482785A_ABST
    Figure CN119482785A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of electronic equipment, and particularly provides a power supply circuit, a power supply method, terminal equipment and a storage medium. A power supply circuit comprises a voltage conversion circuit, a charge pump circuit, a power management circuit and a processing unit, the output end of the voltage conversion circuit is connected with an input and output interface, and the input end of the voltage conversion circuit is connected with the first end of a charge pump and the first power end of the power management circuit. The second end of the charge pump circuit and the second power supply end of the power supply management circuit are connected with the battery, and the processing unit is configured to control the power supply management circuit and the voltage conversion circuit to supply power to the OTG equipment when the access of the OTG equipment is detected, and to switch the power supply to the charge pump circuit and the voltage conversion circuit to supply power when the fast charge application information sent by the OTG equipment is received. In the embodiment of the invention, the power supply modes with different powers can be switched according to the power demand of the OTG equipment, the reverse power supply power of the terminal equipment is improved, and the charging time is shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of electronic equipment, and in particular to a power supply circuit, a power supply method, a terminal device and a storage medium. Background Art

[0002] OTG (On The Go) is a technology published by the USB standardization organization and mainly used for data exchange between different devices. A device with OTG function is an OTG device. An OTG device can be used as a master device or a slave device.

[0003] In the related technology, when a terminal device with OTG function detects that other OTG devices are connected, the OTG device can be powered by an internal power supply module. However, the terminal device can generally only provide a discharge power of no more than 10 watts for the OTG device. Due to the limited discharge power, the discharge application scenarios of the terminal device are limited. Summary of the invention

[0004] In order to achieve high-power discharge of terminal devices and establish reverse fast charging between the terminal device and the OTG device, and at the same time switch power supply modes of different powers according to the needs of the OTG device, reduce path loss and improve power supply efficiency, the embodiments of the present disclosure provide a power supply circuit, a power supply method, a terminal device and a storage medium.

[0005] In a first aspect, an embodiment of the present disclosure provides a power supply circuit, which is applied to a terminal device, wherein the power supply circuit includes an input / output interface, a voltage conversion circuit, a charge pump circuit, a power management circuit, and a processing unit;

[0006] The input and output interface is used to connect external devices;

[0007] The output end of the voltage conversion circuit is connected to the input-output interface, the input end of the voltage conversion circuit is connected to a first node, the first node is respectively connected to a first end of the charge pump circuit and a first power supply end of the power management circuit, and the second end of the charge pump circuit and the second power supply end of the power management circuit are connected to a battery of the terminal device;

[0008] The processing unit is configured to: when it is detected that the input / output interface is inserted into an OTG device, control the power management circuit and the voltage conversion circuit to power the OTG device; in response to receiving fast charging application information sent by the OTG device, switch the power supply of the OTG device to be powered by the charge pump circuit and the voltage conversion circuit.

[0009] In some embodiments, the power supply circuit of the present disclosure further includes a freewheeling circuit, wherein an output end of the freewheeling circuit is connected to the first node, and an input end of the freewheeling circuit is connected to a load end of the power management circuit;

[0010] The processing unit is configured to: in response to receiving fast charging application information sent by the OTG device, power the OTG device through the freewheeling circuit and the voltage conversion circuit, and after switching the power supply of the OTG device to the charge pump circuit and the voltage conversion circuit to power the OTG device, control the freewheeling circuit to disconnect the power supply.

[0011] In some embodiments, the power supply circuit of the present disclosure further includes a diode, which is disposed between the freewheeling circuit and the first node, and allows current to pass from the freewheeling circuit to the first node.

[0012] In some embodiments, the power supply circuit of the present disclosure further includes a charging branch, wherein the charging branch includes an on-off switch, one end of the on-off switch is connected to the input-output interface, and the other end is connected to the first power supply end of the power management circuit and the first end of the charge pump circuit, and the control end of the on-off switch is connected to the control pin of the charge pump circuit;

[0013] The power management circuit is configured to: when it is detected that the input / output interface is plugged into an OTG device, control the on / off switch to be turned off through a control pin of the charge pump circuit.

[0014] In some embodiments, the power management circuit is configured to: in response to receiving fast charging application information sent by the OTG device, control the working mode of the charge pump circuit to switch to a reverse boost mode, and power the OTG device through the charge pump circuit and the voltage conversion circuit.

[0015] In some embodiments, the on-off switch includes a first transistor and a second transistor connected in series, and current directions of parasitic diodes of the first transistor and the second transistor are opposite.

[0016] In some embodiments, the power management circuit further includes a protocol communication terminal, and the protocol communication terminal is used to perform fast charging protocol communication with the OTG device through the input and output interface;

[0017] The processing unit is configured to: when it is detected that the input / output interface is inserted into an OTG device, send fast charge gear information to the OTG device through the protocol communication end of the power management circuit, and in response to receiving fast charge application information returned by the OTG device according to the fast charge gear information, switch the power supply of the OTG device to be powered by the charge pump circuit and the voltage conversion circuit.

[0018] In some embodiments, an overvoltage protection circuit is also included. The overvoltage protection circuit is arranged between the voltage conversion circuit and the input-output interface, and the overvoltage protection circuit is configured to disconnect the power supply of the voltage conversion circuit when the output voltage of the voltage conversion circuit is greater than a preset value.

[0019] In some embodiments, the input-output interface includes a USB Type C interface.

[0020] In a second aspect, an embodiment of the present disclosure provides a power supply method, which is applied to a terminal device, and the method includes:

[0021] When it is detected that the input and output interface of the terminal device is plugged into the OTG device, the OTG device is powered by the power management circuit and the voltage conversion circuit of the terminal device;

[0022] In response to receiving the fast charge application information sent by the OTG device, the power supply of the OTG device is switched to the charge pump circuit and the voltage conversion circuit of the terminal device to power the OTG device.

[0023] In some implementations, when it is detected that the input / output interface of the terminal device is plugged into an OTG device, powering the OTG device through a power management circuit and a voltage conversion circuit of the terminal device includes:

[0024] When it is detected that the input / output interface of the terminal device is plugged into the OTG device, the power supply is output to the voltage conversion circuit through the power management circuit of the terminal device;

[0025] The voltage conversion circuit configures the power supply based on preset configuration parameters and then supplies power to the OTG device.

[0026] In some implementations, in response to receiving the fast charge application information sent by the OTG device, switching the power supply of the OTG device to the charge pump circuit of the terminal device and the voltage conversion circuit to power the OTG device includes:

[0027] When powering the OTG device, fast charging gear information is sent to the OTG device through a power management circuit;

[0028] In response to receiving the fast charge application information returned by the OTG device according to the fast charge gear information, the power supply of the OTG device is switched to be powered by the charge pump circuit and the voltage conversion circuit.

[0029] In some embodiments, in response to receiving the fast charge application information returned by the OTG device according to the fast charge gear information, switching the power supply of the OTG device to the charge pump circuit and the voltage conversion circuit to power the OTG device, includes:

[0030] In response to receiving the fast charge application information returned by the OTG device according to the fast charge gear information, the OTG device is powered by the freewheeling circuit and the voltage conversion circuit; the output end of the freewheeling circuit is connected to the voltage conversion circuit, and the input end is connected to the power management circuit;

[0031] After the power supply of the OTG device is switched to the charge pump circuit and the voltage conversion circuit supplying power to the OTG device, the freewheeling circuit is controlled to cut off the power supply.

[0032] In some implementations, after the power supply of the OTG device is switched to the charge pump circuit and the voltage conversion circuit of the terminal device powering the OTG device, the method further includes:

[0033] The voltage conversion circuit is configured according to the fast charging application information so that the voltage conversion circuit provides corresponding voltage and current for the OTG device.

[0034] In a third aspect, an embodiment of the present disclosure provides a terminal device, comprising a power supply circuit according to any embodiment of the first aspect.

[0035] In a fourth aspect, an embodiment of the present disclosure provides a terminal device, including a power supply module, wherein the power supply module is configured to:

[0036] When it is detected that the input and output interface of the terminal device is plugged into the OTG device, the OTG device is powered by the power management circuit and the voltage conversion circuit of the terminal device;

[0037] In response to receiving the fast charge application information sent by the OTG device, the power supply of the OTG device is switched to the charge pump circuit and the voltage conversion circuit of the terminal device to power the OTG device.

[0038] In a fourth aspect, an embodiment of the present disclosure provides a storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method described in any embodiment of the second aspect.

[0039] The power supply circuit of the embodiment of the present disclosure includes an input-output interface, a voltage conversion circuit, a charge pump circuit, a power management circuit and a processing unit. The output end of the voltage conversion circuit is connected to the input-output interface, and the input end is respectively connected to the first end of the charge pump and the first power end of the power management circuit. The second end of the charge pump circuit and the second power end of the power management circuit are connected to a battery. The processing unit is configured to control the power management circuit and the voltage conversion circuit to power the OTG device when detecting that the OTG device is connected, and switch the power supply to be supplied by the charge pump circuit and the voltage conversion circuit when receiving the fast charging application information sent by the OTG device. In the disclosed embodiments, when the terminal device supplies power to the OTG device, power supply modes of different powers can be switched according to the power demand of the OTG device. Low-power power supply is provided to low-power OTG devices to reduce path loss and improve power supply efficiency. For high-power OTG devices, reverse boost is performed through a charge pump circuit, and then the OTG power supply voltage is adjusted using a voltage conversion circuit. A high-power OTG power supply voltage can be output, and fast charging can be established by interacting with the fast charging protocol of the OTG device. Compared with the traditional OTG power supply solution, the reverse power supply power of the terminal device is greatly improved, and the charging time of the OTG device is shortened. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0041] Figure 1 It is a schematic diagram of a power supply circuit of a terminal device in the related technology.

[0042] Figure 2 is a structural diagram of a power supply circuit in some embodiments of the present disclosure.

[0043] Figure 2a It is a schematic diagram of the principle of the power supply circuit in some embodiments of the present disclosure.

[0044] Figure 2b It is a schematic diagram of the principle of the power supply circuit in some embodiments of the present disclosure.

[0045] Figure 2c It is a schematic diagram of the principle of the power supply circuit in some embodiments of the present disclosure.

[0046] Figure 3 is a structural diagram of a power supply circuit in some embodiments of the present disclosure.

[0047] Figure 4 is a structural diagram of a power supply circuit in some embodiments of the present disclosure.

[0048] Figure 5 is a flow chart of a power supply method according to some embodiments of the present disclosure.

[0049] Figure 6 is a flow chart of a power supply method according to some embodiments of the present disclosure.

[0050] Figure 7 is a flow chart of a power supply method according to some embodiments of the present disclosure.

[0051] Figure 8 It is a structural block diagram of a terminal device in some implementation modes of the present disclosure. DETAILED DESCRIPTION

[0052] The technical solution of the present disclosure will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described implementation is a part of the implementation of the present disclosure, rather than all the implementations. Based on the implementation in the present disclosure, all other implementations obtained by ordinary technicians in the field without creative work are within the scope of protection of the present disclosure. In addition, the technical features involved in the different implementations of the present disclosure described below can be combined with each other as long as they do not conflict with each other.

[0053] OTG (On The Go) is a technology published by the USB standardization organization and mainly used for data exchange between different devices. A device with OTG function is an OTG device. An OTG device can be used as a master device or a slave device.

[0054] Common OTG devices include, for example, USB flash drives, Type C earphones, and mobile phone dongle accessories. When a terminal device with OTG function detects that other OTG devices are connected, it can power the OTG devices through the internal power supply module. For example, after the user inserts the USB flash drive into the charging port of the mobile phone, the mobile phone can detect that an OTG device is connected, and then power the USB flash drive through the charging port.

[0055] In the related art, the OTG power supply of the terminal device is generally provided by the PMIC (Power Management Integrated Circuit) of the terminal device. The common working voltage of the OTG device is 5V, and the battery of the terminal device is generally 3.7V to 4.3V. The PMIC of the terminal device boosts the battery voltage to 5V and then outputs it. The process of the terminal device supplying power to the OTG device is the process of the terminal device discharging.

[0056] With the development of battery technology, the battery energy density and battery capacity of terminal devices are getting higher and higher. For example, for some tablet computers, the battery capacity has exceeded 10,000 mAh, which is equivalent to the storage capacity of a mobile power bank.

[0057] In some scenarios, users expect to use a device with sufficient power to temporarily charge a device with insufficient power. For example, in an outdoor emergency, if the user's mobile phone runs out of power but the tablet has sufficient power, if the mobile phone can be connected to the tablet as an OTG device (Sink) that needs power, the tablet can be used as a power source (Source) to charge the mobile phone.

[0058] However, from the above, it can be seen that the OTG power supply voltage of existing terminal devices is only 5V, and can only provide a discharge power of no more than 10W at most. It is impossible to establish high-power fast charging with OTG devices, so the efficiency of using terminal devices to charge other OTG devices with higher power consumption is very low.

[0059] For ease of understanding, Figure 1 The power supply circuit structure of the terminal device in the related art is shown below. Figure 1 The circuit diagram illustrates the charging and discharging principle of conventional terminal equipment.

[0060] like Figure 1 As shown, the power supply circuit of the terminal device includes a Type C interface, a PMIC and a charge pump, and the PMIC and the charge pump are generally integrated chips.

[0061] When the terminal device is charging, the Type C interface is connected to the charger. At this time, the charger acts as the power source (Source) and the terminal device acts as the power consumption device (Sink). The current flow direction at this time can be referred to Figure 1 The dotted arrow direction in the figure means that after the power supply passes through the Type C interface and the Switch, one branch passes through the PMIC to power the system, and the other branch passes through the charge pump to step down the voltage and charge the battery.

[0062] During the charging process, the PMIC can perform a fast charging protocol handshake with the charger through the CC line. If the handshake is successful, the fast charging of the corresponding protocol can be achieved through the charge pump. The fast charging protocol may include, for example, PD (Power Delivery) fast charging protocol, QC (Quick Charge) fast charging protocol or other private fast charging protocols, etc., which is not limited in the present disclosure.

[0063] When an OTG device is inserted into the Type C port, the terminal device detects that the inserted device is an OTG device (such as a USB flash drive, headphones, etc.), so the terminal device needs to act as a power source (Source) and the OTG device as a power consumption device (Sink). The current flow direction at this time can be referred to Figure 1 The dotted arrow direction in the figure indicates that the battery voltage (3.7V to 4.3V) of the terminal device is boosted (5V) by the boost circuit in the PMIC and then powers the OTG device through the Switch and the Type C interface.

[0064] Due to the hardware limitation of PMIC itself, the OTG discharge power that terminal equipment can provide generally does not exceed 10W. For low-power OTG devices such as USB flash drives and headphones, the discharge power of terminal equipment is sufficient to meet their normal work. However, for high-power mobile phones, tablets and other devices, the OTG discharge power of terminal equipment cannot meet their charging requirements, so the terminal equipment cannot charge them, or can only establish very low-power charging, with poor charging speed and effect.

[0065] Based on the defects existing in the above-mentioned related technologies, the embodiments of the present disclosure provide a power supply circuit, a power supply method, a terminal device and a storage medium, aiming to realize high-power discharge of the terminal device and establish reverse fast charging between the terminal device and the OTG device. At the same time, different power supply modes can be switched according to the needs of the OTG device, thereby reducing path loss and improving power supply efficiency.

[0066] Figure 2 The schematic diagram of the power supply circuit in some embodiments of the present disclosure is shown below. Figure 2 The structure and principle of the power supply circuit disclosed in the present invention are described.

[0067] like Figure 2 As shown, in some embodiments, the power supply circuit of the example of the present disclosure includes an input-output interface, a voltage conversion circuit, a charge pump circuit, a power management circuit, and a processing unit.

[0068] The input / output interface (IO interface) refers to the power interface of the terminal device. Since the terminal device itself has the OTG function, the power interface can be used not only as a charging interface but also as a discharging interface. The input / output interface is used to connect external devices. When the terminal device is used as a power source (Source), the external device can be, for example, an OTG device; when the terminal device is used as a power consumption device (Sink), the external device can be, for example, a charger.

[0069] In the embodiments of the present disclosure, the input and output interface may be an interface of any form, such as a USB (Universal Serial Bus) interface, a Micro USB interface, a USB Type C interface, etc., and the present disclosure does not impose any limitation on this.

[0070] The charge pump circuit is a switched capacitor voltage converter. The charge pump has a high electrical efficiency and is therefore widely used in fast charging circuits of terminal devices as a high-power fast charging circuit. The charge pump circuit in the terminal device is usually a step-down circuit, and its operating modes include 2:1, 4:1, etc. For example, when the charge pump circuit works in 2:1 mode, its input voltage is 8V, and the output voltage will be 4V.

[0071] A voltage conversion circuit is a power supply circuit with adjustable input and output voltages, such as a Buck boost circuit, which can adjust the values ​​of input voltage and output voltage according to configuration instructions.

[0072] The power management circuit refers to a power management chip of a terminal device, which is used to manage the power function of the terminal device and realize functions such as charging and OTG discharging of the terminal device. In some embodiments, the power management circuit can be a PMIC.

[0073] A processing unit refers to a processor having one or more processing cores, which can perform single-thread or multi-thread operations, and is used to parse instructions to perform operations such as acquiring data, performing logical operations, and issuing operation processing results. In the embodiments of the present disclosure, the processing unit may include a processor of a terminal device, such as a CPU (Central Processing Unit) or a SoC (System on Chip) of the terminal device; it may also include a power management circuit, or include both a processor and a power management circuit, and the present disclosure does not limit this.

[0074] In the embodiments of the present disclosure, the charge pump circuit, the voltage conversion circuit and the power management circuit can be implemented in the form of integrated circuits. For example, the charge pump circuit can be a charge pump chip, the voltage conversion circuit can be a Buck boost chip, and the power management circuit can be a PMIC chip.

[0075] exist Figure 2 In the example, the power supply circuit includes three branches, namely a charging branch for charging the battery of the terminal device, a low-power discharge branch for low-power power supply to the OTG device, and a high-power discharge branch for high-power power supply to the OTG device.

[0076] For the charging branch, the input and output interfaces are respectively connected to the first power supply terminal VIN1 of the power management circuit and the first terminal VIN2 of the charge pump circuit through an on-off switch, the second terminal VOUT1 of the charge pump circuit and the second power supply terminal VBAT of the power management circuit are connected to the battery of the terminal device, and at the same time, the load terminal VPH of the power management circuit is connected to the system load.

[0077] When the input and output interfaces of the terminal device are connected to the charger, the terminal device acts as a power-consuming device (Sink), that is, the charger charges the terminal device. The direction of the charging current at this time can be as follows: Figure 2a Shown by the thick solid line.

[0078] like Figure 2a As shown, after the charging power passes through the on-off switch, one path passes through the first power supply terminal VIN1 of the power management circuit to power the power management circuit, and flows out through the load terminal VPH to power the system load. The other path flows into the first terminal VIN2 of the charge pump circuit. After the charge pump circuit steps down the input voltage, it flows out through the second terminal VOUT1 to charge the battery.

[0079] And at the beginning of charging, the protocol communication terminal CC of the power management circuit interacts with the charger through the fast charging protocol. After the fast charging protocol handshake is successful, the power management circuit applies to the charger for the corresponding voltage and current, thereby achieving high-power fast charging.

[0080] Regarding the above-mentioned charging process of the terminal device, those skilled in the art can undoubtedly understand and fully implement it based on the above disclosure, and this disclosure will not elaborate on it.

[0081] For low power discharge branches, see Figure 2 As shown, the output terminal VOUT2 of the voltage conversion circuit is connected to the input-output interface, the input terminal VIN3 of the voltage conversion circuit is connected to the first node P, and the first node P is respectively connected to the first terminal VIN2 of the charge pump circuit and the first power terminal VIN1 of the power management circuit.

[0082] When the input and output interface of the terminal device is connected to a low-power OTG device (such as a USB flash drive, headphones, etc.), the terminal device acts as a power source (Source) and the OTG device acts as a power consumption device (Sink). At this time, the discharge current direction can be as follows: Figure 2b Shown by the thick solid line.

[0083] like Figure 2bAs shown, the power supply current of the battery of the terminal device flows into the second power supply terminal VBAT of the power management circuit. After the power management circuit boosts the power supply current through the internal boost circuit, it is output to the input terminal VIN3 of the voltage conversion circuit through the first power supply terminal VIN. The power management circuit can, for example, boost the 3.7V to 4.3V power supply current provided by the battery to 5V output. After the voltage conversion circuit is powered on, the voltage / current of the power supply current is adjusted according to the required output voltage / current, and the adjusted power supply current is transmitted to the input-output interface through the output terminal VOUT2, thereby charging the OTG device at the opposite end.

[0084] It is worth noting that in Figure 2b In the discharge branch shown, since the power management circuit can only boost the power supply current provided by the battery to a small extent, its output voltage generally does not exceed 5V. Therefore, the power supply output after the voltage conversion circuit can only provide a relatively small power supply, generally not exceeding 10W. Therefore, the terminal device can only provide low-power power supply for the OTG device.

[0085] When the input and output interface of the terminal device is connected to a high-power OTG device (such as a mobile phone, tablet computer, etc.), the terminal device acts as a power source (Source) and the OTG device acts as a power consumption device (Sink). At this time, the discharge current direction can be as follows: Figure 2c Shown by the thick solid line.

[0086] like Figure 2c As shown, the power supply current of the battery of the terminal device flows into the second end VOUT1 of the charge pump circuit. At this time, the charge pump circuit operates in a reverse boost mode, thereby increasing the power supply voltage output by the battery. For example, when the charge pump circuit operates in a 2:1 buck mode, its reverse mode is a 1:2 boost mode, so that the 3.7V~4.3V power supply voltage output by the battery is increased to about 8V after passing through the charge pump circuit, and reaches the input end VIN3 of the voltage conversion circuit through the first end VIN2 of the charge pump circuit. The voltage conversion circuit is powered on, and then the voltage / current of the power supply current is adjusted according to the required output voltage / current, and the adjusted power supply current is transmitted to the input-output interface through the output end VOUT2, thereby charging the OTG device at the opposite end.

[0087] It is worth noting that in Figure 2cIn the discharge branch shown, the power management circuit is no longer used for power supply. This is because the discharge power that the power management circuit can output is relatively small. Instead, a charge pump circuit is used for reverse boosting. The charge pump circuit itself is a transformer circuit suitable for high-power charging. Therefore, by using the charge pump circuit for reverse boosting, the battery output voltage can be increased to a higher level with very little loss. Then, the voltage conversion circuit is used to accurately control the OTG power supply voltage based on the configuration parameters, so that a high-power OTG power supply voltage can be output.

[0088] In addition, in the embodiments of the present disclosure, when the terminal device is charging the OTG device, the power management circuit can also interact with the OTG device through the protocol communication terminal CC to perform fast charging protocol, and upon receiving the fast charging application information from the OTG device, match the relevant charging parameters through the voltage conversion circuit, thereby providing the OTG device with the required charging voltage / current, and establishing fast charging between the terminal device and the OTG device.

[0089] For example, in an example scenario, a tablet computer is used as the terminal device, and a smart phone is used as the OTG device. By using the power supply circuit of the embodiment of the present disclosure, the tablet computer as a power source can provide more than 30W of charging power for the smart phone. Compared with the traditional OTG power supply solution, the reverse power supply power of the terminal device is greatly improved, and the charging time of the OTG device is shortened.

[0090] It should be understood that for the OTG discharge of the terminal device, the power supply circuit of the embodiment of the present disclosure provides the following Figure 2b and Figure 2c Two discharge methods with different power supplies. Theoretically, both high-power OTG devices and low-power OTG devices can use Figure 2c The high power discharge scheme shown.

[0091] However, through research, it is found that for low-power OTG devices such as Type C headphones and USB flash drives, if the same Figure 2c In the high-power power supply mode shown, the current loss of the charge pump circuit in reverse power supply is nearly 100mA higher than that of the power management circuit, resulting in higher heat loss and lower power supply efficiency.

[0092] Therefore, in the embodiment of the present disclosure, when the processing unit controls the power supply circuit to power the OTG device, it can first choose to provide low-power power supply to the OTG device. After establishing a power supply connection between the two, if the OTG device applies for a higher-power power supply, the processing unit can switch the original low-power power supply to high-power power supply.

[0093] According to the fast charging technology in the relevant technology, when the source end (Source) and the opposite end (Sink) establish a fast charging connection, the source end and the opposite end device need to interact with the fast charging protocol, so that the opposite end device applies to the source end for the current / voltage that complies with the fast charging protocol, and the source end provides the corresponding current / voltage to the opposite end device to achieve fast charging.

[0094] Therefore, for an OTG device with high-power fast charging function, after establishing a charging connection with the terminal device, through the interaction of the fast charging protocol between the two, the OTG device will send fast charging application information to the terminal device, and the fast charging application information carries the current / voltage parameters required by the OTG device.

[0095] Therefore, in the embodiment of the present disclosure, when the terminal device and the OTG device establish Figure 2c After the low-power power supply shown, if no fast charging application information is received from the OTG device, it means that the currently connected OTG device is a low-power OTG device, such as a USB flash drive, headphones, etc., and no high-power power supply is required, so the current low-power power supply mode can be maintained.

[0096] On the contrary, if the terminal device receives the fast charging application information sent by the OTG device, it means that the currently connected OTG device is a high-power OTG device, such as a mobile phone, tablet computer, etc., which has a fast charging function, so that Figure 2b The low power supply mode shown is switched to Figure 2c High power supply mode shown.

[0097] The switching process between low-power power supply and high-power power supply is specifically described in conjunction with the power supply method in the following disclosure and will not be described in detail here.

[0098] From the above, it can be seen that in the embodiments of the present disclosure, when the terminal device supplies power to the OTG device, power supply modes of different powers can be switched according to the power demand of the OTG device. Low-power power supply is provided to low-power OTG devices to reduce path loss and improve power supply efficiency. For high-power OTG devices, reverse boosting is performed through a charge pump circuit, and then the OTG power supply voltage is adjusted using a voltage conversion circuit. A high-power OTG power supply voltage can be output, and fast charging can be established by interacting with the fast charging protocol of the OTG device. Compared with the traditional OTG power supply solution, the reverse power supply power of the terminal device is greatly improved, and the charging time of the OTG device is shortened.

[0099] In the scenario where the power supply circuit supplies power to the OTG device, combined with Figure 2b , Figure 2c As shown, the power supply circuit consists of Figure 2b The low power supply shown switches to Figure 2cDuring the high-power power supply process shown, the voltage conversion circuit may experience a brief power outage, so that the OTG device may experience a power outage and reconnection.

[0100] For example, in an example scenario, the OTG device is a mobile phone. After the mobile phone is plugged into the input and output interface of the terminal device, the power supply circuit first establishes the following Figure 2b The user can see the phone display "charging". Then, the power supply circuit switches the power supply mode to Figure 2c In the high-power power supply shown, the voltage conversion circuit loses power briefly during the switching process, and the voltage conversion circuit is powered on again after the switching is completed, so that the user sees that the mobile phone is briefly disconnected from charging and then recharged, resulting in a poor charging experience.

[0101] Based on this, in some embodiments of the present disclosure, the power supply circuit also includes a freewheeling circuit, the output terminal VOUT3 of the freewheeling circuit is connected to the first node P, and the input terminal VIN4 is connected to the load terminal VPH of the power management circuit. From the foregoing, it can be seen that the load terminal VPH of the power management circuit is a terminal for supplying power to the system load. Therefore, it can be seen that the power supply of the freewheeling circuit comes from the system load power supply, which is a normal power supply.

[0102] The freewheeling circuit may be a switch circuit, that is, the freewheeling circuit may be switched on and off in a controlled manner. For example, in some implementations, the freewheeling circuit may be a Load Switch switch circuit.

[0103] In the disclosed embodiment, when the processing unit switches from low-power power supply to high-power power supply, the freewheeling circuit can provide a constant power supply to the voltage conversion circuit so that it will not be powered off.

[0104] Specifically, when the processing unit detects that the OTG device is inserted into the input and output interface of the terminal device, the processing unit can Figure 2b The low power supply mode shown is OTG power supply.

[0105] Subsequently, when the terminal device receives the fast charging application information sent by the OTG device, it can first control the freewheeling circuit to be turned on. At this time, the power management circuit and the freewheeling circuit will briefly supply power to the voltage conversion circuit at the same time.

[0106] Then, the processing unit can control the first power supply terminal VIN1 of the power management circuit to stop outputting current. At this time, only the freewheeling circuit supplies power to the voltage conversion circuit, and the voltage conversion circuit is continuously powered on without power failure.

[0107] Afterwards, the processing unit may control the charge pump circuit to switch to the reverse boost mode, and then establish, for example Figure 2cIn the high-power power supply mode shown, the charge pump circuit and the freewheeling circuit briefly supply power to the voltage conversion circuit at the same time.

[0108] Finally, after the power supply of the charge pump circuit is stable, the processing unit can control the freewheeling circuit to disconnect. At this time, only the charge pump circuit supplies power to the voltage conversion circuit. Furthermore, the terminal device and the OTG device can establish fast charging through the fast charging protocol interaction.

[0109] In some embodiments, see Figure 1 As shown, the power supply circuit of the example of the present disclosure further includes a diode Q, which is arranged between the freewheeling circuit and the first node P. It can be understood that the diode has unidirectional conductivity. In the embodiment of the present disclosure, the diode Q only allows the current to be conducted unidirectionally from the freewheeling circuit to the first node P, and is cut off in the reverse direction. Thus, the high-voltage current output by the charge pump circuit can be effectively prevented from being fed back into the freewheeling circuit, thereby protecting the circuit safety.

[0110] From the above, it can be seen that in the embodiments of the present disclosure, a freewheeling circuit is used to power the OTG device when the power supply mode is switched, thereby reducing the risk of power outages during the switching process, improving power supply stability and the user's charging experience of the OTG device.

[0111] See also Figure 2 As shown, in some embodiments, an on-off switch is provided on the charging branch of the power supply circuit, and the on-off switch is used to control the on-off of the charging branch, so the on-off switch can be any form of switch.

[0112] In some embodiments, the on-off switch may be a transistor switch, which may be, for example, a MOS (Metal-Oxide-Semiconductor Field-Effect Transistor) switch, a triode switch, etc., and the present disclosure does not limit this. A transistor switch is a switching device that is driven to control on and off. For example, in one example, see Figure 3 As shown, the control end of the on-off switch can be connected to the control pin OVP of the charge pump circuit, so that the control pin OVP of the charge pump circuit outputs a control signal to control the on-off of the on-off switch.

[0113] In some embodiments, the on-off switch includes a first transistor and a second transistor connected in series. The first transistor and the second transistor may be MOS transistors. That is, in the embodiment of the present disclosure, two MOS transistors connected in series are used as the on-off switch.

[0114] See also Figure 4As shown, the on-off switch includes a first MOS transistor 610 and a second MOS transistor 620. It can be understood that the MOS transistor includes a parasitic diode. In order to prevent the parasitic diode of a single MOS transistor from leaking in the off state, in this embodiment, a parasitic diode 611 of the first MOS transistor 610 is provided, and the current direction is opposite to that of the parasitic diode 621 of the second MOS transistor 620. Since the currents of the two parasitic diodes pass in opposite directions, a cut-off effect can be formed in either direction, thereby effectively preventing leakage of a single MOS transistor.

[0115] In the related art, a MOS tube includes three poles, namely, a gate G, a source S, and a drain D. The basic working principle of the MOS tube is: by applying a control level to the gate G, the source S and the drain D are turned on or off. MOS tubes can be divided into NMOS and PMOS, and can be divided into enhancement type and depletion type according to different control levels. In the embodiments of the present disclosure, there is no restriction on the type of MOS tube, and the present disclosure can be implemented. Those skilled in the art can implement hardware selection and logic control according to specific needs, and the present disclosure will not elaborate on this.

[0116] like Figure 4 As shown, in the embodiment of the present disclosure, the source S of the first MOS tube 610 is connected to the input-output interface, the drain D of the first MOS tube 610 is connected to the drain D of the second MOS tube 620, and the source S of the second MOS tube is connected to the first end VIN2 of the charge pump circuit. The gate G of the MOS tube is used as a control end, connected to the control pin OVP of the charge pump circuit, so that the on-off of the MOS tube can be controlled according to the control signal output by the control pin OVP of the charge pump circuit.

[0117] For example, in one example, the first MOS tube 610 and the second MOS tube 620 are NMOS, and when a high level is applied to the control end of the NMOS tube, the NMOS tube can be turned on, and when a low level is applied to the control end of the NMOS tube, the NMOS tube can be turned off. In another example, the first MOS tube 610 and the second MOS tube 620 are PMOS, and when a low level is applied to the control end of the PMOS tube, the PMOS tube can be turned on, and when a high level is applied to the control end of the PMOS tube, the PMOS tube can be turned off. Those skilled in the art can understand this, and the present disclosure will not repeat it.

[0118] In the disclosed embodiments, the processing unit of the terminal device is configured to: when it is detected that the input / output interface is plugged into the OTG device, control the on / off switch to be disconnected. For example, in some embodiments, when it is detected that the input / output interface is plugged into the OTG device, the processing unit can control the working mode of the charge pump circuit to switch from the original forward buck mode to the reverse boost mode, and at the same time send control information to the control end of the on / off switch through the control pin OVP of the charge pump circuit to control the on / off switch to be disconnected.

[0119] It can be understood that when the input and output interface of the terminal device is inserted into the OTG device, the terminal device needs to act as a power source (Source) to power the OTG device. Therefore, the processing unit can control the on-off switch to be disconnected to prevent the power output from the first end VIN2 of the charge pump circuit from flowing to the input and output interface through the on-off switch.

[0120] At the same time, the processing unit can also control the first power supply terminal VIN1 of the power management circuit to prohibit power input, so as to prevent the power output from the first terminal VIN2 of the charge pump circuit from flowing back into the power management circuit, thereby mistakenly identifying the discharge state of the terminal device as the charging state.

[0121] In some implementations, when the terminal device supplies power to the OTG device, the terminal device can also interact with the OTG device through the power management circuit to perform a fast charging protocol, thereby establishing fast charging between the terminal device and the OTG device. This process will be described below in conjunction with the power supply method and will not be described in detail here.

[0122] In some embodiments, the power supply circuit also includes an overvoltage protection circuit, such as Figure 3 As shown, the overvoltage protection voltage is set between the voltage conversion circuit and the input and output interface.

[0123] The overvoltage protection circuit is a protection circuit provided to prevent the power supply from inputting too high a voltage to sensitive devices. In the embodiment of the present disclosure, the overvoltage protection circuit can be pre-configured with a preset voltage value. If the voltage output by the voltage conversion circuit is greater than the preset value, in order to reduce the risk of damage to the OTG device caused by excessive output voltage, the overvoltage protection circuit needs to disconnect the output voltage of the voltage conversion circuit and stop powering the OTG device.

[0124] From the above, it can be seen that in the embodiments of the present disclosure, when the terminal device supplies power to the OTG device, power supply modes of different powers can be switched according to the power demand of the OTG device. Low-power power supply is provided to low-power OTG devices to reduce path loss and improve power supply efficiency. For high-power OTG devices, reverse boosting is performed through a charge pump circuit, and then the OTG power supply voltage is adjusted using a voltage conversion circuit. A high-power OTG power supply voltage can be output, and fast charging can be established by interacting with the fast charging protocol of the OTG device. Compared with the traditional OTG power supply solution, the reverse power supply power of the terminal device is greatly improved, and the charging time of the OTG device is shortened.

[0125] On the basis of the above-mentioned power supply circuit, an embodiment of the present disclosure provides a power supply method, which can be applied to the above-mentioned terminal device and executed by a processing unit of the terminal device.

[0126] like Figure 5As shown, in some embodiments, the power supply method of the present disclosure example includes:

[0127] S510: When it is detected that the input / output interface of the terminal device is plugged into the OTG device, the OTG device is powered by the power management circuit and the voltage conversion circuit of the terminal device.

[0128] Combination Figures 2 to 4 The power supply circuit shown, when the OTG device is inserted into the input and output interface of the terminal device, the terminal device can detect the OTG device. For example, in one example, the terminal device can determine whether the inserted device is an OTG device or a charger based on the detection level of the input and output interface. Those skilled in the art can understand this and will not be elaborated in this disclosure.

[0129] like Figure 6 As shown, in some embodiments, the power supply method of the present disclosure example, the process of powering the OTG device through the power management circuit and the voltage conversion circuit of the terminal device, includes:

[0130] S511, when it is detected that the input / output interface of the terminal device is plugged into the OTG device, the power supply is output to the voltage conversion circuit through the power management circuit of the terminal device.

[0131] S512: The voltage conversion circuit configures the power supply based on preset configuration parameters and then supplies power to the OTG device.

[0132] In the embodiment of the present disclosure, when the terminal device detects that an OTG device is inserted into the input / output interface, for example Figure 3 As shown, the terminal device can first control the control pin of the charge pump circuit to output a control signal to the on-off switch to turn off the on-off switch. Then, see Figure 2b As shown, the power management circuit boosts the power supply output by the battery to, for example, 5V, and then outputs it to the input terminal VIN3 of the voltage conversion circuit through the first power terminal VIN1, so that the voltage change circuit is powered on.

[0133] The voltage conversion circuit can supply power to the OTG device based on preset configuration parameters. The preset configuration parameters refer to pre-set initial parameters for supplying power to the OTG device, which may include initial voltage, initial current, etc.

[0134] For example, in one example, the preset configuration parameters include an initial voltage of 5V and an initial current of 2A. Therefore, in the initial stage of the terminal device supplying power to the OTG device, the voltage conversion circuit can regulate the power supply output by the charge pump circuit to provide the OTG device with a power supply of 5V2A to charge the OTG device.

[0135] Combination Figure 2bAs shown, at this time, the terminal device supplies power to the OTG device through the power management circuit and the voltage conversion circuit. Due to the hardware limitation of the power management circuit, only a low-power basic mode power supply can be provided to the OTG device.

[0136] S520: In response to receiving the fast charge application information sent by the OTG device, the power supply of the OTG device is switched to the charge pump circuit and the voltage conversion circuit of the terminal device to power the OTG device.

[0137] In the embodiment of the present disclosure, Figure 2b In the power supply mode shown, if the terminal device does not receive the fast charge request information sent by the OTG device, it means that the currently connected OTG device is a low-power OTG device and does not require high-power charging, so keep Figure 2b The low-power power supply method shown is sufficient.

[0138] In some implementations, if the OTG device connected to the terminal device is a high-power device, such as a mobile phone, a tablet computer, etc., after the terminal device provides low-power power to the OTG device, the terminal device can interact with the OTG device through a fast charging protocol, and when receiving the fast charging gear information sent by the OTG device, the power supply mode is switched from low-power power supply to high-power power supply. Figure 7 Provide explanation.

[0139] like Figure 7 As shown, in some embodiments, the power supply method of the present disclosure example, the process of switching the OTG device from low-power power supply to high-power power supply, includes:

[0140] S710: When supplying power to the OTG device, fast charge gear information is sent to the OTG device through the power management circuit.

[0141] S720: In response to receiving the fast charge application information returned by the OTG device according to the fast charge gear information, the power supply of the OTG device is switched to be powered by the charge pump circuit and the voltage conversion circuit.

[0142] In the embodiment of the present disclosure, the terminal device and the OTG device establish a Figure 2b After the low-power supply shown, the terminal device can interact with the OTG device through the power management circuit for fast charging protocol.

[0143] Combination Figure 2 As shown, the power management circuit can send fast charging gear information to the OTG device through the protocol communication terminal CC. The fast charging gear information is the Source_Capabilities information, which is used to record the fast charging gear supported by the terminal device. The fast charging gear can be expressed by current and voltage, such as 5V2A, 10V2A, 15V4A, etc.

[0144] It can be understood that the terminal device may include multiple fast charging gears, so that the terminal device can send all fast charging gears supported by itself to the OTG device through the power management circuit, that is, the fast charging gear information Source_Capabilities includes multiple fast charging gears.

[0145] In some embodiments, for a private fast charging protocol, the fast charging gear information sent by the terminal device can also be encrypted based on a private encryption algorithm, so that the fast charging gear information needs to be decrypted on the OTG device side. If the OTG device can correctly decrypt the fast charging gear information, it means that the OTG device can establish a fast charging connection with the terminal device. If the OTG device cannot decrypt the fast charging gear information, it means that the OTG device cannot establish a fast charging connection with the terminal device, so that the terminal device can only provide basic power charging for the OTG device, such as providing a basic charging mode of 5V2A.

[0146] After receiving the fast charging gear information Source_Capabilities, the OTG device can obtain the fast charging gear included in the terminal device by parsing the information, so that the OTG device can select the fast charging gear corresponding to the maximum charging power that it also supports, and generate fast charging application information, that is, the fast charging application information records the voltage and current information requested by the OTG device to the terminal device.

[0147] The OTG device sends the fast charge application information to the terminal device, so that the terminal device receives the fast charge application information through the power management circuit. When the terminal device receives the fast charge application information sent by the OTG device, it means that the connected OTG device is a high-power device. The terminal device needs to provide high-power power to the OTG device. Therefore, the power supply circuit needs to Figure 2b The low power supply shown is switched to Figure 2c High power supply shown.

[0148] Specifically, combined Figure 2b , Figure 2c and Figure 3 As shown, during the switching process, the terminal device maintains the power supply of the power management circuit and the voltage conversion circuit, and then controls the freewheeling circuit to be turned on, so that the power supply used by the power management circuit for the system load is output to the voltage conversion circuit through the freewheeling circuit, so that the power management circuit and the freewheeling circuit simultaneously power the voltage conversion circuit.

[0149] Then, the terminal device controls the first power supply terminal VIN1 of the power management circuit to stop supplying power, and at the same time limits the power supply flowing into the first power supply terminal VIN1 to avoid current backflow. Afterwards, the charge pump circuit can be controlled to switch from the forward buck mode to the reverse boost mode, so that the power supply output by the battery is boosted by the charge pump circuit and then output to the voltage conversion circuit. At this time, the charge pump circuit and the freewheeling circuit simultaneously supply power to the voltage conversion circuit.

[0150] Finally, the terminal device controls the freewheeling circuit to be disconnected, thereby stopping the freewheeling circuit from supplying power to the voltage conversion circuit. At this time, the charge pump circuit and the voltage conversion circuit provide high-power power to the opposite OTG device.

[0151] After switching to high-power power supply, the voltage conversion circuit can parse the fast charging application information sent by the OTG device previously received to obtain the carried voltage and current, so as to configure the voltage conversion circuit according to the voltage and current, control the voltage conversion circuit to output the corresponding voltage and current, and realize high-power fast charging of the OTG device.

[0152] From the above, it can be seen that in the embodiments of the present disclosure, when the terminal device supplies power to the OTG device, power supply modes of different powers can be switched according to the power demand of the OTG device. Low-power power supply is provided to low-power OTG devices to reduce path loss and improve power supply efficiency. For high-power OTG devices, reverse boosting is performed through a charge pump circuit, and then the OTG power supply voltage is adjusted using a voltage conversion circuit. A high-power OTG power supply voltage can be output, and fast charging can be established by interacting with the fast charging protocol of the OTG device. Compared with the traditional OTG power supply solution, the reverse power supply power of the terminal device is greatly improved, and the charging time of the OTG device is shortened.

[0153] In some embodiments, the present disclosure provides a terminal device, the terminal device includes a power supply module, and the power supply module is configured to:

[0154] When it is detected that the input and output interface of the terminal device is plugged into the OTG device, the OTG device is powered by the power management circuit and the voltage conversion circuit of the terminal device;

[0155] In response to receiving the fast charge application information sent by the OTG device, the power supply of the OTG device is switched to the charge pump circuit and the voltage conversion circuit of the terminal device to power the OTG device.

[0156] In some embodiments, the present disclosure provides a terminal device, which includes the power supply circuit of any of the aforementioned embodiments.

[0157] In some embodiments, the terminal device of the present disclosure may be any type of device with an OTG function, such as a smart phone, a tablet computer, a laptop computer, a wearable device, etc., and the present disclosure is not limited to this.

[0158] In some embodiments, the present disclosure provides a storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the power supply method of any of the aforementioned embodiments.

[0159] Figure 8 The terminal device structure in some embodiments of the present disclosure is shown in FIG. Figure 8 The terminal devices of some embodiments of the present disclosure are described.

[0160] Reference Figure 8 The terminal device 1800 may include one or more of the following components: a processing component 1802 , a memory 1804 , a power component 1806 , a multimedia component 1808 , an audio component 1810 , an input / output (I / O) interface 1812 , a sensor component 1816 , and a communication component 1818 .

[0161] The processing component 1802 generally controls the overall operation of the terminal device 1800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1802 may include one or more processors 1820 to execute instructions. In addition, the processing component 1802 may include one or more modules to facilitate the interaction between the processing component 1802 and other components. For example, the processing component 1802 may include a multimedia module to facilitate the interaction between the multimedia component 1808 and the processing component 1802. For another example, the processing component 1802 can read executable instructions from a memory to implement terminal device related functions.

[0162] The memory 1804 is configured to store various types of data to support operations on the terminal device 1800. Examples of such data include instructions for any application or method operating on the terminal device 1800, contact data, phone book data, messages, pictures, videos, etc. The memory 1804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0163] The power supply component 1806 provides power to various components of the terminal device 1800. The power supply component 1806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the terminal device 1800.

[0164] The multimedia component 1808 includes a display screen that provides an output interface between the terminal device 1800 and the user. In some embodiments, the multimedia component 1808 includes a front camera and / or a rear camera. When the terminal device 1800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.

[0165] The audio component 1810 is configured to output and / or input audio signals. For example, the audio component 1810 includes a microphone (MIC), and when the terminal device 1800 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1804 or sent via the communication component 1818. In some embodiments, the audio component 1810 also includes a speaker for outputting audio signals.

[0166] I / O interface 1812 provides an interface between processing component 1802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0167] The sensor assembly 1816 includes one or more sensors for providing various aspects of status assessment for the terminal device 1800. For example, the sensor assembly 1816 can detect the open / closed state of the terminal device 1800, the relative positioning of the components, such as the display and keypad of the terminal device 1800, and the sensor assembly 1816 can also detect the position change of the terminal device 1800 or a component of the terminal device 1800, the presence or absence of contact between the user and the terminal device 1800, the orientation or acceleration / deceleration of the terminal device 1800, and the temperature change of the terminal device 1800. The sensor assembly 1816 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1816 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1816 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0168] The communication component 1818 is configured to facilitate wired or wireless communication between the terminal device 1800 and other devices. The terminal device 1800 can access a wireless network based on a communication standard, such as Wi-Fi, 2G, 3G, 4G, 5G or 6G, or a combination thereof. In an exemplary embodiment, the communication component 1818 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1818 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0169] In an exemplary embodiment, the terminal device 1800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.

[0170] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the embodiments. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. The obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.

Claims

1. A power supply circuit, characterized in that: Applied to terminal equipment, the power supply circuit includes an input and output interface, a voltage conversion circuit, a charge pump circuit, a power management circuit and a processing unit; The input and output interface is used to connect to external devices; The output end of the voltage conversion circuit is connected to the input-output interface, the input end of the voltage conversion circuit is connected to a first node, the first node is respectively connected to a first end of the charge pump circuit and a first power supply end of the power management circuit, and the second end of the charge pump circuit and the second power supply end of the power management circuit are connected to a battery of the terminal device; The processing unit is configured to: when it is detected that the input / output interface is inserted into an OTG device, control the power management circuit and the voltage conversion circuit to power the OTG device; in response to receiving fast charging application information sent by the OTG device, switch the power supply of the OTG device to be powered by the charge pump circuit and the voltage conversion circuit.

2. The power supply circuit according to claim 1, characterized in that: It also includes a freewheeling circuit, wherein the output end of the freewheeling circuit is connected to the first node, and the input end of the freewheeling circuit is connected to the load end of the power management circuit; The processing unit is configured to: in response to receiving fast charging application information sent by the OTG device, power the OTG device through the freewheeling circuit and the voltage conversion circuit, and after switching the power supply of the OTG device to the charge pump circuit and the voltage conversion circuit to power the OTG device, control the freewheeling circuit to disconnect the power supply.

3. The power supply circuit according to claim 2, characterized in that: It also includes a diode, which is arranged between the freewheeling circuit and the first node, and allows current to pass from the freewheeling circuit to the first node.

4. The power supply circuit according to claim 1, characterized in that: The device further comprises a charging branch, wherein the charging branch comprises an on-off switch, one end of the on-off switch is connected to the input-output interface, the other end of the on-off switch is connected to the first power supply end of the power management circuit and the first end of the charge pump circuit, and the control end of the on-off switch is connected to the control pin of the charge pump circuit; The power management circuit is configured to: when it is detected that the input / output interface is plugged into an OTG device, control the on / off switch to be turned off through a control pin of the charge pump circuit.

5. The power supply circuit according to claim 1, characterized in that: The power management circuit is configured to: in response to receiving fast charging application information sent by the OTG device, control the working mode of the charge pump circuit to switch to a reverse boost mode, and power the OTG device through the charge pump circuit and the voltage conversion circuit.

6. The power supply circuit according to claim 4, characterized in that: The on-off switch includes a first transistor and a second transistor connected in series, and current directions of parasitic diodes of the first transistor and the second transistor are opposite.

7. The power supply circuit according to claim 1, characterized in that: The power management circuit also includes a protocol communication terminal, which is used to perform fast charging protocol communication with the OTG device through the input and output interface; The processing unit is configured to: when it is detected that the input / output interface is inserted into an OTG device, send fast charge gear information to the OTG device through the protocol communication end of the power management circuit, and in response to receiving fast charge application information returned by the OTG device according to the fast charge gear information, switch the power supply of the OTG device to be powered by the charge pump circuit and the voltage conversion circuit.

8. The power supply circuit according to claim 1, characterized in that: It also includes an overvoltage protection circuit, which is arranged between the voltage conversion circuit and the input-output interface, and the overvoltage protection circuit is configured to disconnect the power supply of the voltage conversion circuit when the output voltage of the voltage conversion circuit is greater than a preset value.

9. The power supply circuit according to claim 1, characterized in that: The input and output interface includes a USB Type C interface.

10. A power supply method, characterized in that: Applied to a terminal device, the method comprises: When it is detected that the input and output interface of the terminal device is plugged into the OTG device, the OTG device is powered by the power management circuit and the voltage conversion circuit of the terminal device; In response to receiving the fast charge application information sent by the OTG device, the power supply of the OTG device is switched to the charge pump circuit and the voltage conversion circuit of the terminal device to power the OTG device.

11. The method according to claim 10, characterized in that When it is detected that the input / output interface of the terminal device is plugged into the OTG device, the OTG device is powered by the power management circuit and the voltage conversion circuit of the terminal device, including: When it is detected that the input / output interface of the terminal device is plugged into the OTG device, the power supply is output to the voltage conversion circuit through the power management circuit of the terminal device; The voltage conversion circuit configures the power supply based on preset configuration parameters and then supplies power to the OTG device.

12. The method according to claim 10, characterized in that In response to receiving the fast charge application information sent by the OTG device, switching the power supply of the OTG device to the charge pump circuit of the terminal device and the voltage conversion circuit to power the OTG device, comprising: When powering the OTG device, fast charging gear information is sent to the OTG device through a power management circuit; In response to receiving the fast charge application information returned by the OTG device according to the fast charge gear information, the power supply of the OTG device is switched to be powered by the charge pump circuit and the voltage conversion circuit.

13. The method according to claim 12, characterized in that In response to receiving the fast charge application information returned by the OTG device according to the fast charge gear information, switching the power supply of the OTG device to the charge pump circuit and the voltage conversion circuit to power the OTG device, including: In response to receiving the fast charge application information returned by the OTG device according to the fast charge gear information, the OTG device is powered by the freewheeling circuit and the voltage conversion circuit; the output end of the freewheeling circuit is connected to the voltage conversion circuit, and the input end is connected to the power management circuit; After the power supply of the OTG device is switched to the charge pump circuit and the voltage conversion circuit supplying power to the OTG device, the freewheeling circuit is controlled to cut off the power supply.

14. The method according to claim 10, characterized in that After the power supply of the OTG device is switched to the charge pump circuit and the voltage conversion circuit of the terminal device supplying power to the OTG device, the method further includes: The voltage conversion circuit is configured according to the fast charging application information so that the voltage conversion circuit provides corresponding voltage and current for the OTG device.

15. A terminal device, characterized in that: The invention comprises a power supply circuit according to any one of claims 1 to 9.

16. A terminal device, characterized in that: The invention comprises a power supply module, wherein the power supply module is configured as follows: When it is detected that the input and output interface of the terminal device is plugged into the OTG device, the OTG device is powered by the power management circuit and the voltage conversion circuit of the terminal device; In response to receiving the fast charge application information sent by the OTG device, the power supply of the OTG device is switched to the charge pump circuit and the voltage conversion circuit of the terminal device to power the OTG device.

17. A storage medium, characterized in that: Computer instructions are stored, and the computer instructions are used to make a computer execute the method according to any one of claims 10 to 14.