Charging female seat and charging device

By designing a detection circuit in the charging mother base and detecting external loads using the voltage changes of the VBUS terminal, the problem of high sampling resistance in the prior art is solved, and effective detection of multi-port equipment is achieved and circuit cost is reduced.

CN119995077APending Publication Date: 2025-05-13上海慧能泰半导体科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411984331.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

The existing charging mother base detects whether the Apple device is inserted by setting high-precision and high-power sampling resistors, which leads to higher costs. Especially for multi-port devices, each port needs to be set up with a sampling resistor, which increases the cost of materials.

Method used

A charging mother base is designed, including a power path switch, a detection circuit, a control unit and a USB Type-C port. By detecting the voltage changes of the VBUS terminal, it is necessary to determine whether the external load is inserted without using a sampling resistor.

Benefits of technology

It realizes detection of whether external load is inserted into the USB Type-C port, reducing circuit costs and no sampling resistance is required, and is suitable for multi-port devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119995077A_ABST
    Figure CN119995077A_ABST
Patent Text Reader

Abstract

The invention discloses a charging female seat and a charging device. The charging female seat comprises a power supply path switch, a detection circuit, a control unit and a USB Type-C port, the USB Type-C port comprises a VBUS terminal, a charging cable is inserted into the USB Type-C port, and the control unit outputs a starting signal to the detection circuit, so that the detection circuit switches on electric connection between a first power supply and the VBUS terminal and outputs a first detection signal to the control unit. The external load is inserted into the USB Type-C port through the charging cable, the detection circuit outputs a second detection signal to the control unit, the control unit controls the power supply path switch to be switched on, so that the external power supply charges the external load, and the control unit outputs a stop signal to the detection circuit. The charging female seat can detect whether the external load is inserted into the USB Type-C port or not through the detection circuit, does not need a sampling resistor, and reduces the circuit cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of charging sockets, and in particular to a charging socket and a charging device. Background Art

[0002] The USB Type-C to Lightning cable, referred to as the USB-C to Lightning cable, is used to connect the charging socket to the Apple device. If the USB-C to Lightning cable is inserted into the charging socket, the charging socket detects the pull-down resistor in the USB-C to Lightning cable, and then controls the power path switch to turn on to connect the external power supply to the USB Type-C male connector of the USB-C to Lightning cable. At the same time, in order to reduce power consumption, the charging socket needs to determine whether an Apple device is inserted or unloaded to control the state of the power path switch again.

[0003] The current charging socket detects whether an Apple device is plugged in by setting a sampling resistor, but the sampling resistor is generally a high-precision, high-power resistor with a high cost. Especially for multi-port devices, a sampling resistor needs to be set for each port, resulting in high material costs. Summary of the invention

[0004] The embodiments of the present application provide a charging socket and a charging device, which can identify whether an external load is inserted into a USB Type-C port and reduce circuit costs.

[0005] In order to solve the above technical problems, the embodiments of the present application provide the following technical solutions:

[0006] In a first aspect, an embodiment of the present application provides a charging socket, the charging socket comprising: a power path switch, a detection circuit, a control unit, and a USB Type-C port, wherein the USB Type-C port comprises a VBUS terminal;

[0007] The first end of the detection circuit is electrically connected to the VBUS terminal and the first end of the power path switch respectively, the second end of the detection circuit is connected to the first end of the control unit, the third end of the detection circuit is electrically connected to the first power supply, and the control end of the detection circuit is electrically connected to the second end of the control unit;

[0008] The control end of the power path switch is electrically connected to the third end of the control unit, the second end of the power path switch is used to connect to an external power source, and the power path switch is used to control the connection state between the external power source and the VBUS terminal;

[0009] The control unit is used to respond to the charging cable being inserted into the USB Type-C port, output a start signal to the detection circuit, and the detection circuit is used to respond to the input of the start signal, connect the electrical connection between the first power supply and the VBUS terminal, and output a first detection signal to the control unit;

[0010] The detection circuit is further configured to output a second detection signal to the control unit in response to an external load being inserted into the USB Type-C port via the charging cable;

[0011] The control unit is also used to control the power path switch to be turned off in response to the input of the first detection signal, control the power path switch to be turned on in response to the input of the second detection signal, and output a stop signal to the detection unit so that the detection unit disconnects the electrical connection between the first power supply and the VBUS terminal.

[0012] In some embodiments, the detection circuit includes a start-up unit and a sampling unit;

[0013] The control end of the start unit is electrically connected to the second end of the control unit, and the start unit is also electrically connected to the sampling unit;

[0014] The start unit is used to respond to the input of the start signal to connect the first power supply to the VBUS terminal, and is also used to respond to the input of the stop signal to disconnect the first power supply from the VBUS terminal.

[0015] The sampling unit is also electrically connected to the first end of the control unit, and is used to respond to the input of a first voltage to output the first detection signal to the control unit, and is used to respond to the input of a second voltage to output the second detection signal to the control unit, wherein when the charging cable is inserted into the USB Type-C port, the voltage of the VBUS terminal is the first voltage, and when the external load is inserted into the USB Type-C port via the charging cable, the voltage of the VBUS terminal is the second voltage.

[0016] In some embodiments, the startup unit includes a first switch tube, a control end of the first switch tube is electrically connected to the second end of the control unit, a first end of the first switch tube is electrically connected to the first power supply, and a second end of the first switch tube is electrically connected to the VBUS terminal via the sampling unit;

[0017] Alternatively, the control end of the first switch tube is electrically connected to the second end of the control unit, the first end of the first switch tube is electrically connected to the VBUS terminal, and the second end of the first switch tube is electrically connected to the first power supply via the sampling unit.

[0018] In some embodiments, the sampling unit includes a voltage regulating unit and a signal generating unit;

[0019] The voltage regulating unit is electrically connected to the starting unit and the signal generating unit respectively, and the regulating resistance of the voltage regulating unit is provided by the external load;

[0020] The voltage regulating unit is used to respond to the input of the first voltage and output a third voltage to the signal generating unit, and is also used to respond to the input of the second voltage and output a fourth voltage to the signal generating unit when the regulating resistor is connected;

[0021] The signal generating unit is also electrically connected to the first end of the control unit, and is used to respond to the input of the third voltage and output the first detection signal to the control unit. The signal generating unit is used to respond to the input of the fourth voltage and output the second detection signal to the control unit.

[0022] In some embodiments, the voltage adjustment unit includes a first resistor and the adjustment resistor;

[0023] One end of the first resistor is electrically connected to the start-up unit and the signal generating unit respectively, and the other end of the first resistor is electrically connected to the VBUS terminal, the signal generating unit and the adjusting resistor respectively.

[0024] In some embodiments, the voltage regulating unit includes a current source, a second resistor, a second switch tube and the regulating resistor;

[0025] One end of the current source is electrically connected to the adjustment resistor via the startup unit, the other end of the current source is connected to one end of the second resistor, the other end of the second resistor is respectively electrically connected to the gate of the second switch tube, the drain of the second switch tube and the signal generating unit, and the source of the second switch tube is electrically connected to the first power supply.

[0026] In some embodiments, the sampling unit further comprises a mirror unit;

[0027] The mirror unit is electrically connected to the first power supply, the voltage regulating unit and the signal generating unit respectively, and is used to generate a first mirror current in response to an input of the third voltage, and is also used to generate a second mirror current in response to an input of the fourth voltage.

[0028] In some embodiments, the mirror unit includes a third switch tube, a fourth switch tube and a fifth switch tube;

[0029] The gate of the third switch tube, the gate of the fourth switch tube and the gate of the fifth switch tube are commonly connected to the voltage regulating unit, the source of the third switch tube, the source of the fourth switch tube and the source of the fifth switch tube are commonly connected to the first power supply, and the drain of the third switch tube, the drain of the fourth switch tube and the drain of the fifth switch tube are commonly connected to the signal generating unit.

[0030] In some embodiments, the signal generating unit includes a voltage converting unit and a comparing unit;

[0031] The voltage conversion unit is electrically connected to the first input terminal of the mirror unit and the comparison unit respectively, and the voltage conversion unit is used to generate a fifth voltage in response to the input of the first mirror current, and is used to generate a sixth voltage in response to the input of the second mirror current;

[0032] The second input terminal of the comparison unit is used to access the reference voltage, the output terminal of the comparison unit is electrically connected to the first terminal of the control unit, the comparison unit is used to respond to the input of the fifth voltage and output the first detection signal to the control unit, and the comparison unit is used to respond to the input of the sixth voltage and output the second detection signal to the control unit.

[0033] In some embodiments, the voltage conversion unit includes a conversion resistor, and the comparison unit includes a comparator;

[0034] One end of the conversion resistor is electrically connected to the mirror unit and the non-phase input end of the comparator respectively, the other end of the conversion resistor is grounded, the inverting input end of the comparator is used to access the reference voltage, and the output end of the comparator is electrically connected to the first end of the control unit.

[0035] In some embodiments, while the external load is plugged into the USB Type-C port via the charging cable, the control unit is further configured to control the power path switch to maintain a conductive state.

[0036] In some embodiments, the signal generating unit includes a switch unit and a voltage dividing unit;

[0037] The control end of the switch unit is electrically connected to the voltage regulating unit and the VBUS terminal respectively, and the switch unit is also electrically connected to the start unit and the voltage dividing unit respectively. The switch unit is in a cut-off state in response to the input of the third voltage, and is in a conducting state in response to the input of the fourth voltage;

[0038] The voltage divider unit is electrically connected to the first end of the switch unit and the control unit respectively. The voltage divider unit is used to output a first detection signal to the control unit in response to the switch unit being in an off state, and is also used to output a second detection signal to the control unit in response to the switch unit being in an on state.

[0039] In some embodiments, the switch unit includes a sixth switch tube, and the voltage dividing unit includes a third resistor and a fourth resistor;

[0040] The source of the sixth switch tube is electrically connected to the startup unit and the voltage divider unit respectively, the gate of the sixth switch tube is electrically connected to the voltage regulation unit and the VBUS terminal respectively, the drain of the sixth switch tube is electrically connected to one end of the third resistor and one end of the fourth resistor respectively, the other end of the third resistor is electrically connected to the first end of the control unit, and the other end of the fourth resistor is grounded.

[0041] In some embodiments, while the external load is plugged into the USB Type-C port via the charging cable, the control unit is further configured to control the power path switch to maintain a conductive state.

[0042] In a second aspect, an embodiment of the present application provides a charging device, including:

[0043] A charging cable and a charging socket as described above, wherein the charging cable comprises a USB Type-C male connector and a lightning male connector, the USB Type-C male connector is used to connect to the USB Type-C interface, and the lightning male connector is used to connect to an external load.

[0044] Compared with the conventional technology, the charging socket provided in each embodiment of the present application includes a power path switch, a detection circuit, a control unit and a USB Type-C port, wherein the USB Type-C port includes a VBUS terminal, the charging cable is inserted into the USB Type-C port, and the control unit outputs a start signal to the detection circuit, so that the detection circuit connects the electrical connection between the first power source and the VBUS terminal, and outputs a first detection signal to the control unit. The external load is inserted into the USB Type-C port via the charging cable, the detection circuit outputs a second detection signal to the control unit, the control unit controls the power path switch to turn on, so that the external power source charges the external load, and the control unit outputs a stop signal to the detection circuit, so that the detection unit disconnects the electrical connection between the first power source and the VBUS terminal. Therefore, the charging socket can detect whether the external load is inserted into the USB Type-C port through the detection circuit, and no sampling resistor is required, thereby reducing circuit costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0046] Figure 1 It is a schematic diagram of the structure of a charging device provided in an embodiment of the present application;

[0047] Figure 2 It is a structural schematic diagram of a charging socket provided in an embodiment of the present application;

[0048] Figure 3a It is a structural schematic diagram of a charging socket provided in an embodiment of the present application;

[0049] Figure 3b This is a schematic diagram of the structure of a charging socket provided by another embodiment of the present application;

[0050] Figure 4 is a structural schematic diagram of a detection circuit provided in an embodiment of the present application;

[0051] Figure 5 is a structural schematic diagram of a detection circuit provided by another embodiment of the present application;

[0052] Figure 6 is a circuit structure diagram of a detection circuit provided in an embodiment of the present application;

[0053] Figure 7 is a signal timing diagram when a charging cable is inserted into a USB Type-C port provided by an embodiment of the present application;

[0054] Figure 8 This is a signal timing diagram provided by an embodiment of the present application when an Apple device is plugged into a USB Type-C port via a charging cable;

[0055] Fig. 9 This is a signal timing diagram provided by an embodiment of the present application when an Apple device is plugged into a charging cable and then plugged into a USB Type-C port;

[0056] Fig.10 It is a circuit structure diagram of a detection circuit provided in another embodiment of the present application. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0058] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The term "and / or" used in this specification includes any and all combinations of one or more of the related listed items.

[0059] First, the technical names involved in the embodiments of the present application are explained:

[0060] 1. USB Type-C port: It is a new type of USB interface that can be inserted in both directions and supports the USB PD protocol. It can carry 3A or 5A current and the output voltage is up to 20V. At the same time, the port defines a dedicated channel for power transmission protocol communication, which can complete intelligent adaptive charging adjustment between the charging and receiving devices, improve charging efficiency, and realize two-way charging and fast charging.

[0061] 2. Lightning port: The Lightning interface is a connector interface launched by Apple, which is used to connect Apple devices such as iPhone, iPad and iPod. It has no directionality and can be inserted into the device from both sides.

[0062] 3. USB Type-C male connector: The male connector refers to the connector part with protruding pins. The USB Type-C male connector refers to the plug of the USB Type-C interface, which is used to be inserted into the corresponding Type-C female connector (socket) and supports insertion on both sides.

[0063] 4. Lightning male connector: The plug of Apple's Lightning interface, used to be inserted into the corresponding Lightning female connector (socket). Apple's Lightning interface is mainly used for Apple devices, such as iPhone, iPad, etc.

[0064] It should be pointed out that the nouns or terms involved in the embodiments of the present invention can refer to each other and will not be described in detail.

[0065] See also Figure 1 , the present application embodiment provides a charging device 100, such as Figure 1 As shown, the charging device 100 includes a charging socket 20 and a charging cable 10, wherein the charging socket 20 is used to electrically connect to an external power source 200, and the charging cable 10 is used to electrically connect the charging socket 20 and an external load 300. The external power source 200 charges the external load 300 through the charging cable 10.

[0066] In some embodiments, the charging socket 20 can be in various forms, such as a mobile phone charging head, a car charging port, a computer charging port, and other rechargeable electronic devices. It is connected to the external power source 200 and can convert and process the voltage of the external power source 200 accordingly to supply the external load 300 through the charging cable 10.

[0067] In some embodiments, the external power source 200 refers to the power obtained after the charging socket is plugged into a socket, which is AC power or power obtained after conversion from AC power.

[0068] In some embodiments, the external load 300 refers to an Apple device that consumes electricity, such as a mobile phone, a computer, headphones, a tablet, and other electronic devices.

[0069] The type of the charging cable 10 matches the type of the charging socket 20. The charging socket 20 is a USB Type-C port, and the charging interface of the external load 300 is a lightning port (Lightning port). The charging cable 10 is a USB Type-C to Lightning cable, referred to as a USB-C to Lightning cable, and includes two male heads, namely a USB Type-C male head and a lightning male head (Lightning male head), wherein the USB Type-C is connected to the USB Type-C port of the charging socket 20, and the lightning male head is connected to the Lightning port of the external load 300.

[0070] The CC lead of the USB-C to Lightning cable includes a pull-down resistor Rd=5.1K. When the charging cable is inserted into the charging socket, the control chip in the charging socket can detect the pull-down resistor Rd and then turn on the corresponding power path switch to connect the external power supply 200 to the USB Type-C male connector.

[0071] If the Lightning male connector is not plugged into an Apple device, that is, there is no load, then in order to save power, the power path switch needs to be turned off again to achieve a low-power sleep state. If the Lightning male connector is connected to an Apple device, or an Apple device is plugged into the Lightning male connector, the power path switch will remain on, so that the external power supply 200 charges the Apple device via the power path switch and the charging cable 10.

[0072] Therefore, the charging socket 20 needs to determine whether an Apple device is plugged in or unplugged. The current charging socket 20 detects whether an Apple device is plugged in by setting a sampling resistor, and the control chip detects the current flowing through the sampling resistor. If an Apple device is plugged in, the current flowing through the sampling resistor decreases, and the control chip maintains the power path switch in the on state.

[0073] However, sampling resistors are generally high-precision, high-power resistors with high costs, especially for multi-port devices, where each port needs to be equipped with a sampling resistor, resulting in high material costs. Moreover, the sampling resistor is arranged outside the control chip, which is not conducive to product miniaturization.

[0074] Based on the above problems, Figure 2 As shown, an embodiment of the present application provides a charging socket, which includes a power path switch 23, a detection circuit 21, a control unit 22 and a USB Type-C port 24, wherein the USB Type-C port 24 includes a VBUS terminal.

[0075] The first end of the detection circuit 21 is electrically connected to the VBUS terminal and the first end of the power path switch 23 respectively, the second end of the detection circuit 21 is connected to the first end of the control unit 22, the third end of the detection circuit 21 is electrically connected to the first power supply VDD, and the control end of the detection circuit 21 is electrically connected to the second end of the control unit 22.

[0076] The first end of the detection circuit 21 is a detection end, the second end of the detection circuit 21 is an output end, and the third end of the detection circuit 21 is a power supply end.

[0077] In some embodiments, the first power supply VDD is an independent power supply, or the voltage of the external power supply is converted to obtain the voltage of the first power supply VDD. The voltage of the first power supply VDD is a low voltage, and the specific value is set according to needs. In the embodiment of the present application, the voltage of the first power supply VDD is 5V.

[0078] The control end of the power path switch 23 is electrically connected to the third end of the control unit 22, and the second end of the power path switch 23 is used to access the external power supply 200. The power path switch 23 is used to control the connection state between the external power supply 200 and the VBUS terminal.

[0079] In some embodiments, the power path switch 23 can be a bipolar transistor, a field effect transistor, or a combination of a bipolar transistor and a field effect transistor, etc., and the on and off of the power path switch 23 can be controlled by sending control signals of different levels to the control end of the power path switch 23. In the embodiment of the present application, the power path switch 23 is a MOS tube.

[0080] In some embodiments, the control unit 22 includes a microcontroller unit (MCU), a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a single-chip microcomputer, an ARM (Acorn RISC Machine) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components.

[0081] In some embodiments, the detection circuit 21 and the control unit 22 can be integrated into the same control chip, which is conducive to product miniaturization.

[0082] The charging cable is inserted into the USB Type-C port 24, and the control unit 22 outputs a start signal to the detection circuit 21. The start signal enables the detection circuit 21 to start working and be in a first state, which is a working state. The detection circuit 21 connects the electrical connection between the first power supply VDD and the VBUS terminal, the voltage at the VBUS terminal is the first voltage, and the VBUS terminal is in a weak pull-up state. At the same time, the detection circuit 21 also outputs a first detection signal to the control unit 22.

[0083] The control unit 22 receives the first detection signal and determines that the charging cable is plugged in but the external load is not plugged in, and then controls the power path switch 23 to maintain the off state to reduce power consumption.

[0084] If an external load is inserted into the USB Type-C port 24 via a charging cable, the voltage at the VBUS terminal changes to a second voltage, and the detection circuit 21 outputs a second detection signal to the control unit 22. The control unit 22 receives the second detection signal and determines that the external load is inserted, or the external load is unloaded, and then controls the power path switch 23 to turn on, and connects the electrical connection between the external power supply 200 and the USB Type-C port 24, and the external power supply 200 charges the external load via the USB Type-C port 24 and the charging cable.

[0085] While controlling the power path switch 23 to be turned on, the control unit 22 also outputs a stop signal to the detection circuit 21, so that the detection unit is in a second state, which is a stop working state, so that the detection unit disconnects the electrical connection between the first power supply VDD and the VBUS terminal, and the first power supply VDD no longer affects the voltage of the VBUS terminal. The voltage of the VBUS terminal is determined by the power supply voltage provided by the external power supply 200, so that the external power supply 200 can charge the external load normally.

[0086] The voltages involved in the detection circuit 21 are low voltages, and the devices in the detection circuit 21 are all low-power devices. Compared with high-power, high-precision sampling resistors, the devices in the detection circuit 21 have lower costs.

[0087] Therefore, the charging socket can detect whether an external load is inserted into the USB Type-C port 24 through the detection circuit 21, and no sampling resistor is required, thereby reducing circuit costs.

[0088] In some embodiments, while the external load is plugged into the USB Type-C port 24 via the charging cable, the control unit 22 controls the power path switch 23 to remain in the on state. Even if the external load is fully charged and no longer unloaded, the power path switch 23 is still controlled to remain in the on state, and the external load can continue to last. As long as the power of the external load is reduced, the load can continue to be unloaded, without the need to wake up the control unit 22 by plugging and unplugging the external load once to control the power path switch 23 to turn on again.

[0089] See also Figure 3a , Figure 3a is a schematic diagram of a detection circuit provided in an embodiment of the present application, such as Figure 3a As shown, the detection circuit 21 includes a start-up unit 211 and a sampling unit 212 , wherein a control end of the start-up unit 211 is electrically connected to a second end of the control unit 22 , and the start-up unit 211 is also electrically connected to the sampling unit 212 .

[0090] In this embodiment, the start-up unit 211 is also electrically connected to the first power source VDD, and the sampling end of the sampling unit 212 is electrically connected to the VBUS terminal.

[0091] In some embodiments, the startup unit 211 includes a switch, and the startup unit 211 is turned on and off by controlling the switch to be turned on and off. For example, the switch includes a bipolar transistor, a field effect transistor, and a combination of a bipolar transistor and a field effect transistor.

[0092] When the charging cable is inserted into the USB Type-C port, the control unit 22 outputs a start signal to the start unit 211. In response to the input of the start signal, the start unit 211 connects the electrical connection between the first power supply VDD and the VBUS terminal, so that the voltage of the VBUS terminal is the first voltage, and the first voltage acts on the sampling end of the sampling unit 212.

[0093] When an external load is inserted into the USB Type-C port via a charging cable, the voltage of the VBUS terminal changes to a second voltage, and the second voltage acts on the sampling end of the sampling unit 212 via the starting unit 211 .

[0094] The sampling unit 212 is also electrically connected to the first end of the control unit 22, and the sampling unit 212 is used to sample the voltage of the VBUS terminal. The sampling unit 212 responds to the input of the first voltage and outputs a first detection signal to the control unit 22. The control unit 22 receives the first detection signal and determines that the charging cable is inserted into the USB Type-C port. The sampling unit 212 responds to the input of the second voltage and outputs a second detection signal to the control unit 22. The control unit 22 receives the second detection signal and determines that the external load is inserted into the USB Type-C port via the charging cable.

[0095] Furthermore, when the control unit 22 receives the second detection signal, it controls the power path switch 23 to be turned on and outputs a stop signal to the start signal. In response to the input of the stop signal, the start unit 211 disconnects the electrical connection between the first power supply VDD and the VBUS terminal.

[0096] In some embodiments, Figure 3b As shown, the detection circuit 21 includes a start-up unit 211 and a sampling unit 212 , wherein a control end of the start-up unit 211 is electrically connected to a second end of the control unit 22 , and the start-up unit 211 is also electrically connected to the sampling unit 212 .

[0097] In the embodiment of the present application, the startup unit 211 is also electrically connected to the VBUS terminal, the sampling end of the sampling unit 212 is electrically connected to the startup unit 211, and the sampling unit 212 is also electrically connected to the first power supply VDD.

[0098] When the charging cable is inserted into the USB Type-C port, the startup unit 211 responds to the startup signal and connects the electrical connection between the VBUS terminal and the sampling unit 212, so that the first power supply VDD is connected to the VBUS terminal through the sampling unit 212, and the voltage of the VBUS terminal is the first voltage, and the first voltage acts on the sampling end of the sampling unit 212 through the startup unit 211.

[0099] When an external load is plugged into the USB Type-C port via a charging cable, the voltage of the VBUS terminal changes to a second voltage, and the second voltage acts on the sampling end of the sampling unit 212 via the starting unit 211 .

[0100] The sampling unit 212 responds to the input of the first voltage and outputs a first detection signal to the control unit 22. The control unit 22 receives the first detection signal and determines that the charging cable is plugged into the USB Type-C port. The sampling unit 212 responds to the input of the second voltage and outputs a second detection signal to the control unit 22. The control unit 22 receives the second detection signal and determines that the external load is plugged into the USB Type-C port via the charging cable.

[0101] Furthermore, when the control unit 22 receives the second detection signal, it controls the power path switch 23 to be turned on and outputs a stop signal to the start signal. In response to the input of the stop signal, the start unit 211 disconnects the electrical connection between the first power supply VDD and the VBUS terminal.

[0102] In some embodiments, Figure 4 As shown, the sampling unit 212 includes a voltage regulating unit 2121 and a signal generating unit 2122 , wherein the voltage regulating unit 2121 is electrically connected to the starting unit 211 and the signal generating unit 2122 , respectively, and the regulating resistance of the voltage regulating unit 2121 is provided by an external load.

[0103] When the charging cable is inserted into the USB Type-C port, the voltage of the VBUS terminal is the first voltage, and there is no adjustment resistor in the voltage adjustment unit 2121, so the first voltage cannot be adjusted. Then the voltage adjustment unit 2121 responds to the input of the first voltage and outputs a third voltage to the signal generation unit 2122. When an external load is inserted into the USB Type-C port via the charging cable, the external load provides an adjustment resistor, and the adjustment resistor is connected to the voltage adjustment unit 2121, and the voltage of the VBUS terminal is adjusted to the second voltage. Then the voltage adjustment unit 2121 adjusts in response to the input of the second voltage and outputs a fourth voltage to the signal generation unit 2122.

[0104] The signal generating unit 2122 is also electrically connected to the first end of the control unit 22. The signal generating unit 2122 responds to the input of the third voltage and outputs a first detection signal to the control unit 22, and the control unit 22 determines that the charging cable is inserted into the USB Type-C port. The signal generating unit 2122 responds to the input of the fourth voltage and outputs a second detection signal to the control unit 22, and the control unit 22 determines that the external load is inserted into the USB Type-C port via the charging cable.

[0105] In some embodiments, please refer to Figure 4 The signal generating unit 2122 includes a switch unit 21221 and a voltage dividing unit 21222, wherein the control end of the switch unit 21221 is electrically connected to the voltage regulating unit 2121 and the VBUS terminal respectively, and the switch unit 21221 is also electrically connected to the starting unit 211 and the voltage dividing unit 21222 respectively. The voltage dividing unit 21222 is electrically connected to the switch unit 21221 and the first end of the control unit 22 respectively.

[0106] In some embodiments, the switch unit 21221 includes a switch, and the on and off of the start unit 211 is realized by controlling the on and off of the switch. For example, the switch includes a bipolar transistor, a field effect transistor, and a combination of a bipolar transistor and a field effect transistor.

[0107] In some embodiments, the voltage dividing unit 21222 may be composed of devices such as resistors, capacitors or inductors as long as they can achieve a voltage dividing effect.

[0108] When the charging cable is inserted into the USB Type-C port, the voltage of the VBUS terminal is the first voltage, and the voltage regulating unit 2121 responds to the input of the first voltage and outputs a third voltage to the switch unit 21221. The third voltage acts on the control end of the switch unit 21221, so that the switch unit 21221 is in a cut-off state, the voltage dividing unit 21222 has no power input, and the voltage dividing unit 21222 outputs a first detection signal to the control unit 22. In the embodiment of the present application, the control end of the switch unit is also electrically connected to the VBUS terminal, and the third voltage is equal to the first voltage.

[0109] When the external load is inserted into the USB Type-C port via the charging cable, the voltage of the VBUS terminal is the second voltage, and the voltage regulating unit 2121 responds to the input of the second voltage and outputs a fourth voltage to the switch unit 21221, the fourth voltage acts on the control end of the switch unit 21221, and the fourth voltage is less than the third voltage, and the fourth voltage makes the switch unit 21221 in a conducting state, then the first power supply VDD is input to the voltage dividing unit 21222 via the switch unit 21221, the voltage dividing unit 21222 divides the first power supply VDD, and the voltage dividing unit 21222 outputs a second detection signal to the control unit 22, wherein the second detection signal is the voltage dividing signal output by the voltage dividing unit 21222. In the embodiment of the present application, the fourth voltage is equal to the second voltage.

[0110] In an embodiment of the present application, when the charging cable is inserted into the USB Type-C port, the starting unit 211 is in a first state, and the electrical connection between the first power supply VDD and the voltage regulating unit 2121 is connected. Since there is no regulating resistor in the voltage regulating unit 2121 at this time, the voltage of the VBUS terminal is the first voltage, and the voltage regulating unit 2121 outputs a third voltage, so that the switch unit 21221 is in a cut-off state, the voltage dividing unit 21222 has no power input, and the voltage dividing unit 21222 outputs a first detection signal to the control unit 22.

[0111] When an external load is inserted into the USB Type-C port via a charging cable, the starting unit 211 is in a first state, and the electrical connection between the first power supply VDD and the voltage regulating unit 2121 is connected. At this time, the regulating resistor in the voltage regulating unit 2121 is connected, and the voltage regulating unit 2121 adjusts the first voltage so that the voltage of the VBUS terminal is the second voltage, and outputs a fourth voltage to the switch unit 21221, and then the switch unit 21221 is in a conducting state, the first power supply VDD is connected to the voltage dividing unit 21222, the voltage dividing unit 21222 divides the first power supply VDD, and outputs a second detection signal to the control unit 22.

[0112] In the embodiment of the present application, the control end of the switch unit 21221 is electrically connected to the voltage regulating unit 2121 and the VBUS terminal, respectively. Therefore, the voltage of the VBUS terminal is the same as the output voltage of the voltage regulating unit 2121, that is, the first voltage is equal to the third voltage, and the second voltage is equal to the fourth voltage.

[0113] Therefore, the embodiment of the present application samples the voltage of the VBUS terminal through the switch unit 21221 and the voltage divider unit 21222, and sends different detection signals to the control unit 22. The control unit 22 determines whether the external load is inserted into the USB Type-C port via the charging cable according to the received detection signal, so as to control the on and off of the power path switch 23. At the same time, the embodiment of the present application controls the connection state of the first power supply VDD and the voltage regulating unit 2121 through the start unit 211. When the power path switch 23 is turned on and the external power supply 200 charges the external load, the start unit 211 stops working and disconnects the first power supply VDD from the voltage regulating unit 2121, so that the voltage of the VBUS terminal is no longer affected by the first power supply VDD, but only by the charging voltage.

[0114] In some embodiments, see Figure 5 The sampling unit 212 includes a voltage regulating unit 2121 and a signal generating unit 2122 , wherein the voltage regulating unit 2121 is electrically connected to the starting unit 211 and the signal generating unit 2122 , respectively, and an adjusting resistance of the voltage regulating unit 2121 is provided by an external load.

[0115] The sampling unit 212 further includes a mirror unit 2123, which is electrically connected to the first power supply VDD, the voltage regulating unit 2121 and the signal generating unit 2122. The start-up unit is also electrically connected to the VBUS terminal.

[0116] If the charging cable is inserted into the USB Type-C port, the voltage of the VBUS terminal is the first voltage, the voltage regulating unit 2121 outputs a third voltage to the mirror unit 2123, and the mirror unit 2123 mirrors the current flowing through the voltage regulating unit 2121 and generates a first mirror current.

[0117] If an external load is inserted into the USB Type-C port via a charging cable, the voltage of the VBUS terminal is the second voltage, the voltage regulating unit 2121 outputs a fourth voltage to the mirror unit 2123, and the mirror unit 2123 mirrors the current flowing through the voltage regulating unit 2121 and generates a second mirror current.

[0118] The signal generating unit 2122 responds to the input of the first mirror current and outputs the first detection signal, and the signal generating unit 2122 responds to the input of the second mirror current and outputs the second detection signal.

[0119] In an embodiment of the present application, a mirror unit 2123 is used to mirror the current flowing through the voltage regulating unit 2121. By adjusting the mirror ratio, the current flowing through the voltage regulating unit 2121 can be amplified so that the signal generating unit 2122 can accurately output the first detection signal or the second detection signal.

[0120] In some embodiments, please refer to Figure 5 The sampling unit 212 includes a voltage regulating unit 2121 , a mirror unit 2123 and a signal generating unit 2122 , wherein the signal generating unit 2122 includes a voltage converting unit 21223 and a comparing unit 21224 .

[0121] The voltage conversion unit 21223 is electrically connected to the mirror unit 2123 and the first input terminal of the comparison unit 21224 respectively. The second input terminal of the comparison unit 21224 is used to access the reference voltage Load_Vref. The output terminal of the comparison unit 21224 is electrically connected to the first terminal of the control unit 22.

[0122] The voltage conversion unit 21223 generates a fifth voltage in response to the input of the first mirror current, the comparison unit 21224 compares the fifth voltage with the reference voltage Load_Vref, and outputs a first detection signal. The control unit 22 receives the first detection signal and determines that the charging cable is inserted into the USB Type-C port.

[0123] The voltage conversion unit 21223 generates a sixth voltage in response to the input of the second mirror current, the comparison unit 21224 compares the sixth voltage with the reference voltage Load_Vref, and outputs a second detection signal. The control unit 22 receives the second detection signal and determines that the external load is inserted into the USB Type-C port via the charging cable.

[0124] See also Figure 6 , Figure 6 : is a schematic diagram of the circuit structure of a charging socket provided in an embodiment of the present application, such as Figure 6 As shown, the startup unit 211 includes a first switch tube Q1, which is a PMOS tube. The gate of the first switch tube Q1 is electrically connected to the second end of the control unit 22, the source of the first switch tube Q1 is electrically connected to the first power supply VDD, and the drain of the first switch tube Q1 is electrically connected to the sampling unit 212 and the VBUS terminal respectively.

[0125] In the embodiment of the present application, the gate of the first switch tube Q1 is the control end of the first switch tube Q1, the source of the first switch tube Q1 is the first end of the first switch tube Q1, and the drain of the first switch tube Q1 is the second end of the first switch tube Q1.

[0126] The voltage regulating unit 2121 includes a first resistor R1 and an adjusting resistor, wherein the adjusting resistor is provided by an external load. One end of the first resistor R1 is electrically connected to the starting unit 211 and the signal generating unit 2122, respectively. Specifically, one end of the first resistor R1 is electrically connected to the drain of the first switch tube Q1 and the signal generating unit 2122, respectively, and the other end of the first resistor R1 is electrically connected to the VBUS terminal, the signal generating unit 2122, and the adjusting resistor, respectively.

[0127] When the external load is not connected, the voltage regulating unit 2121 has only the first resistor R1, and the voltage of the VBUS terminal is the voltage of the first power supply VDD, that is, the first voltage. When the external load is connected, the voltage regulating unit 2121 has the first resistor R1 and the regulating resistor, and the first resistor R1 and the regulating resistor divide the first power supply VDD, and generate a voltage division signal at the VBUS terminal, and the voltage of the voltage division signal is the second voltage.

[0128] The signal generating unit 2122 includes a switch unit 21221 and a voltage dividing unit 21222, wherein the switch unit 21221 includes a sixth switch tube Q6, and the voltage dividing unit 21222 includes a third resistor R3 and a fourth resistor R4. The source of the sixth switch tube Q6 is electrically connected to the second end of the start unit 211 and the voltage dividing unit 21222, respectively. Specifically, the source of the sixth switch tube Q6 is connected to the drain of the first switch tube Q1 and one end of the first resistor R1, respectively. The gate of the sixth switch tube Q6 is connected to the voltage regulating unit 2121 and the VBUS terminal, respectively. Specifically, the gate of the sixth switch tube Q6 is connected to the other end of the first resistor R1 and the VBUS terminal, respectively, the drain of the sixth switch tube Q6 is connected to one end of the third resistor R3 and one end of the fourth resistor R4, respectively, the other end of the third resistor R3 is electrically connected to the first end of the control unit 22, and the other end of the fourth resistor R4 is grounded.

[0129] In the embodiment of the present application, the control unit 22 is a PD Source Chip chip (PD source chip). The PD source chip is an integrated circuit responsible for controlling the power supply end (Source) in the USB Power Delivery (PD) protocol.

[0130] Combination Figure 6 The working principle of the charging socket can be described as follows:

[0131] When a USB Type-C to Lightning charging cable (CL charging cable) is plugged into the USB Type-C port of the charging socket, the timing of each signal is as follows: Figure 7 As shown:

[0132] After the PD Source Chip recognizes that the pull-down resistor Rd=5.1k in the CC lead in the CL charging cable meets the protocol Tccdebounce=100ms-200ms (generally 150ms), the PD Source Chip sends a start signal to the first switch tube Q1. The start signal is at a low level, that is, the signal EN_Pull_L is at a low level, then the first switch tube Q1 is turned on, the first power supply VDD is connected to the VBUS terminal, and the voltage at the VBUS terminal is the first voltage, which is in a weak pull-up state. At the same time, the Pull Timer is turned on. If there is no Apple device connected to the Lightning male connector, that is, VBUS is not unloaded, even after the Pull Timer times out, the PD Source Chip continues to send a low-level start signal to the first switch tube Q1 to keep the VBUS terminal weakly pulled up (there is Rd on CC but no effective load), and the voltage regulation unit 2121 outputs a third voltage to the sixth switch tube Q6. In the embodiment of the present application, the first voltage is equal to the third voltage, and the third voltage acts on the second switch tube, so that the sixth switch tube Q6 is turned off, and the first power supply VDD cannot be connected to the second resistor and the third resistor R3. The PD Source Chip receives a low-level first detection signal, that is, the signal Detection CL H is low, and the PD Source Chip sets the gate signal GATE of the power path switch to low to control the power path switch to be turned off, and the system determines that there is no effective load inserted.

[0133] If an Apple device is plugged into the Lightning male connector of the charging cable, the load is extracted and the timing of each signal is as follows: Figure 8 As shown:

[0134] The Apple device provides an adjusting resistor, and the first resistor R1 and the adjusting resistor divide the first power supply VDD so that the voltage of the VBUS terminal is the second voltage, and the second voltage is a low-level voltage. The voltage adjusting unit 2121 outputs a fourth voltage to the sixth switch tube Q6. In the embodiment of the present application, the fourth voltage is equal to the second voltage, and the fourth voltage acts on the sixth switch tube Q6, so that the sixth switch tube Q6 is turned on. The second resistor and the third resistor R3 divide the first power supply VDD to generate a high-level second detection signal, that is, the signal Detection CL H is a high level.

[0135] If the duration of the high-level second detection signal received by the PD Source Chip reaches the preset time Pull Timer2 debounce, it is determined that the effective load is inserted. Then the PD Source Chip sends a high-level stop signal to the first switch tube Q1 (that is, the signal EN_PUII_L is pulled high), and the first switch tube Q1 is turned off, disconnecting the electrical connection between the first power supply VDD and the first resistor R1.

[0136] At the same time, if the external power supply 200 is converted so that the bus voltage can reach 5V, the PD Source Chip sets the gate signal GATE of the power path switch high to control the power path switch to be turned on, and the external power supply 200 charges the Apple device through the bus, VBUS terminal, and charging cable.

[0137] Even if the Apple device is fully charged, the PD Source Chip still maintains the power path switch on, and the Apple device can continue to last. As long as the battery of the Apple device is low, it can be unloaded without plugging and unplugging to wake up the PD Source Chip to control the power path switch on, thereby improving the user experience.

[0138] In some embodiments, if the CL charging cable is connected to the Apple device and then inserted into the charging socket, the timing of each signal is as follows: Fig. 9 As shown, the working principle and process of each signal are similar to those in the above embodiment and will not be described in detail here.

[0139] See also Fig.10 , Fig.10 is a schematic diagram of a circuit structure of a detection circuit provided in an embodiment of the present application, such as Fig.10 As shown, the sampling unit 212 includes a voltage regulating unit 2121 , a mirror unit 2123 and a signal generating unit 2122 , wherein the signal generating unit 2122 further includes a voltage converting unit 21223 and a comparing unit 21224 .

[0140] The startup unit 211 includes a first switch tube K, a control end of the first switch tube K is electrically connected to the second end of the control unit 22, a first end of the first switch tube K is electrically connected to the VBUS terminal, and a second end of the first switch tube K is electrically connected to the first power supply VDD via the sampling unit 212.

[0141] In the embodiment of the present application, when the control unit 22 outputs a low-level start signal to the first switch tube K, the signal EN_Pull_L is a low-level signal, and after the signal EN_Pull_L is inverted, it is used as the control signal of the first switch tube K to control the first switch tube K to be turned on. When the control unit 22 outputs a high-level stop signal to the first switch tube K, the signal EN_Pull_L is a high-level signal, and after the signal EN_Pull_L is inverted, it is used as the control signal of the first switch tube K to control the first switch tube K to be turned off.

[0142] The voltage regulating unit 2121 includes a current source I, a second resistor R2, a second switch tube Q2 and a regulating resistor, and the regulating resistor is provided by an external load. One end of the current source I is electrically connected to the regulating resistor via the starting unit 211, the other end of the current source I is connected to one end of the second resistor R2, the other end of the second resistor R2 is electrically connected to the gate of the second switch tube Q2, the drain of the second switch tube Q2 and the signal generating unit 2122, respectively, and the source of the second switch tube Q2 is electrically connected to the first power supply VDD.

[0143] The mirror unit 2123 includes a third switch tube Q3, a fourth switch tube Q4 and a fifth switch tube Q5. The gate of the third switch tube Q3, the gate of the fourth switch tube Q4 and the gate of the fifth switch tube Q5 are connected to the voltage regulating unit 2121. Specifically, the gate of the third switch tube Q3, the gate of the fourth switch tube Q4 and the gate of the fifth switch tube Q5 are connected to the gate of the second switch tube Q2, the source of the third switch tube Q3, the source of the fourth switch tube Q4 and the source of the fifth switch tube Q5 are connected to the first power supply VDD, and the drain of the third switch tube Q3, the drain of the fourth switch tube Q4 and the drain of the fifth switch tube Q5 are connected to the signal generating unit 2122.

[0144] The voltage conversion unit 21223 includes a conversion resistor R5, and the comparison unit 21224 includes a comparator Comp. One end of the conversion resistor R5 is electrically connected to the mirror unit 2123 and the non-inverting input end of the comparator Comp, respectively. Specifically, one end of the conversion resistor R5 is connected to the drain of the third switch tube Q3, the drain of the fourth switch tube Q4, the drain of the fifth switch tube Q5, and the non-inverting input end of the comparator Comp, respectively, the other end of the conversion resistor R5 is grounded, the inverting input end of the comparator Comp is used to access the reference voltage Load_Vref, and the output end of the comparator Comp is electrically connected to the first end of the control unit 22.

[0145] In the embodiment of the present application, the control unit 22 is a PD Source Chip chip (PD source chip). The PD source chip is an integrated circuit responsible for controlling the power supply end (Source) in the USB Power Delivery (PD) protocol.

[0146] Combination Fig.10 The working principle of the charging socket can be described as follows:

[0147] When a USB Type-C to Lightning charging cable (CL charging cable) is plugged into the USB Type-C port of the charging socket, the timing of each signal is as follows: Figure 7 As shown:

[0148] After the PD Source Chip recognizes the pull-down resistor Rd=5.1k in the CC lead of the CL charging cable and satisfies the protocol Tccdebounce=100ms-200ms (generally 150ms), the PD Source Chip sends a low-level start signal (signal EN_Pull_L is low level) to the first switch tube K. After the signal EN_Pull_L is reversed, it acts on the first switch tube K, and the first switch tube K is turned on. The first power supply VDD is connected to the VBUS terminal, and the current flowing through the second resistor R2 is the first current I1. In the embodiment of the present application, the first current I1=600uA. The voltage at the VBUS terminal is the first voltage, the first voltage=VDD-0.7-I1*R2, and the first voltage is a high-level voltage.

[0149] The third switch tube Q3 to the fifth switch tube Q5 mirror the first current I1 and amplify the first current I1 three times to generate a first mirror current I2. The first mirror current generates a fifth voltage through the conversion resistor R5. The fifth voltage V5=I2*R5. Since the fifth voltage V5 is less than the reference voltage Load_VrefLoad_Vref, the comparator Comp outputs a low-level first detection signal (the signal Detection CL H is a low level).

[0150] At the same time, the Pull Timer is turned on. If there is no Apple device connected to the Lightning male connector, that is, VBUS is not unloaded, even after the Pull Timer times out, the PD Source Chip continues to send a low-level start signal to the first switch tube K (signal EN_Pull_L is low), maintaining the voltage of the VBUS terminal at the first voltage (there is Rd on CC but no effective load), the fifth voltage V5 is less than the reference voltage Load_VrefLoad_Vref, and the comparator Comp outputs a low-level first detection signal (signal Detection CL H is low). The PD Source Chip receives the low-level first detection signal, and the PD Source Chip sets the gate signal GATE of the power path switch to low to control the power path switch to be cut off, and the system determines that there is no effective load inserted.

[0151] If an Apple device is plugged into the Lightning male connector of the charging cable, the load is extracted and the timing of each signal is as follows: Figure 8 As shown:

[0152] The Apple device provides an adjustment resistor. The Apple device will draw current from the current source I, with a maximum of 5 mA. The current flowing through the second resistor R2 is the second current I3, and the voltage of the VBUS terminal is the second voltage. The second voltage = VDD-0.7-I3*R2, and the second voltage is a low level.

[0153] The third switch tube Q3 to the fifth switch tube Q5 mirror the second current I3 and amplify the second current I3 three times to generate a second mirror current I4. The second mirror current I3 generates a sixth voltage through the conversion resistor R5. The sixth voltage V6 = I3*R5. Since the sixth voltage V6 is greater than the reference voltage Load_VrefLoad_Vref, the comparator Comp outputs a high-level second detection signal (the signal Detection CL H is a high level).

[0154] If the duration of the high-level second detection signal received by the PD Source Chip reaches the preset time Pull Timer2 debounce, it is determined that the effective load is inserted. Then the PD Source Chip sends a high-level stop signal to the first switch tube K (that is, the signal EN_PUII_L is pulled high), and the stop signal is inverted and acts on the first switch tube K, and the first switch tube K is turned off, disconnecting the electrical connection between the first power supply VDD and the VBUS terminal.

[0155] At the same time, if the external power supply 200 is converted so that the bus voltage can reach 5V, the PD Source Chip sets the gate signal GATE of the power path switch high to control the power path switch to be turned on, and the external power supply 200 charges the Apple device through the bus, VBUS terminal, and charging cable.

[0156] Even if the Apple device is fully charged, the PD Source Chip still maintains the power path switch on, and the Apple device can continue to last. As long as the battery of the Apple device is low, it can be unloaded without plugging and unplugging to wake up the PD Source Chip to control the power path switch on, thereby improving the user experience.

[0157] In some embodiments, if the CL charging cable is connected to the Apple device and then inserted into the charging socket, the timing of each signal is as follows: Fig. 9 As shown, the working principle and process of each signal are similar to those in the above embodiment and will not be described in detail here.

[0158] In summary, the charging socket can detect whether an external load is inserted into the USB Type-C port through a detection circuit, and does not require a sampling resistor, thereby reducing circuit costs.

[0159] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Under the concept of the present application, the technical features in the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other changes in different aspects of the present application as described above, which are not provided in detail for the sake of simplicity. Although the present application has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features can be replaced by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A charging socket, characterized in that: The charging socket includes: a power path switch, a detection circuit, a control unit and a USB Type-C port, wherein the USB Type-C port includes a VBUS terminal; The first end of the detection circuit is electrically connected to the VBUS terminal and the first end of the power path switch respectively, the second end of the detection circuit is connected to the first end of the control unit, the third end of the detection circuit is electrically connected to the first power supply, and the control end of the detection circuit is electrically connected to the second end of the control unit; The control end of the power path switch is electrically connected to the third end of the control unit, the second end of the power path switch is used to connect to an external power source, and the power path switch is used to control the connection state between the external power source and the VBUS terminal; The control unit is used to respond to the charging cable being inserted into the USB Type-C port, output a start signal to the detection circuit, and the detection circuit is used to respond to the input of the start signal, connect the electrical connection between the first power supply and the VBUS terminal, and output a first detection signal to the control unit; The detection circuit is further configured to output a second detection signal to the control unit in response to an external load being inserted into the USB Type-C port via the charging cable; The control unit is also used to control the power path switch to be turned off in response to the input of the first detection signal, control the power path switch to be turned on in response to the input of the second detection signal, and output a stop signal to the detection unit so that the detection unit disconnects the electrical connection between the first power supply and the VBUS terminal.

2. The charging socket according to claim 1, characterized in that: The detection circuit includes a starting unit and a sampling unit; The control end of the start unit is electrically connected to the second end of the control unit, and the start unit is also electrically connected to the sampling unit; The start unit is used to respond to the input of the start signal to connect the electrical connection between the first power supply and the VBUS terminal, and is also used to respond to the input of the stop signal to disconnect the electrical connection between the first power supply and the VBUS terminal; The sampling unit is also electrically connected to the first end of the control unit, and is used to respond to the input of a first voltage to output the first detection signal to the control unit, and is used to respond to the input of a second voltage to output the second detection signal to the control unit, wherein when the charging cable is inserted into the USB Type-C port, the voltage of the VBUS terminal is the first voltage, and when the external load is inserted into the USB Type-C port via the charging cable, the voltage of the VBUS terminal is the second voltage.

3. The charging socket according to claim 2, characterized in that: The startup unit includes a first switch tube, a control end of the first switch tube is electrically connected to the second end of the control unit, a first end of the first switch tube is electrically connected to the first power supply, and a second end of the first switch tube is electrically connected to the VBUS terminal via the sampling unit; Alternatively, the control end of the first switch tube is electrically connected to the second end of the control unit, the first end of the first switch tube is electrically connected to the VBUS terminal, and the second end of the first switch tube is electrically connected to the first power supply via the sampling unit.

4. The charging socket according to claim 2, characterized in that: The sampling unit includes a voltage regulating unit and a signal generating unit; The voltage regulating unit is electrically connected to the starting unit and the signal generating unit respectively, and the regulating resistance of the voltage regulating unit is provided by the external load; The voltage regulating unit is used to respond to the input of the first voltage and output a third voltage to the signal generating unit, and is also used to respond to the input of the second voltage and output a fourth voltage to the signal generating unit when the regulating resistor is connected; The signal generating unit is also electrically connected to the first end of the control unit, and is used to respond to the input of the third voltage and output the first detection signal to the control unit. The signal generating unit is used to respond to the input of the fourth voltage and output the second detection signal to the control unit.

5. The charging socket according to claim 4, characterized in that: The voltage regulating unit includes a first resistor and the regulating resistor; One end of the first resistor is electrically connected to the start-up unit and the signal generating unit respectively, and the other end of the first resistor is electrically connected to the VBUS terminal, the signal generating unit and the adjusting resistor respectively.

6. The charging socket according to claim 4, characterized in that: The voltage regulating unit includes a current source, a second resistor, a second switch tube and the regulating resistor; One end of the current source is electrically connected to the adjustment resistor via the startup unit, the other end of the current source is connected to one end of the second resistor, the other end of the second resistor is respectively electrically connected to the gate of the second switch tube, the drain of the second switch tube and the signal generating unit, and the source of the second switch tube is electrically connected to the first power supply.

7. The charging socket according to claim 4, characterized in that: The sampling unit also includes a mirror unit; The mirror unit is electrically connected to the first power supply, the voltage regulating unit and the signal generating unit respectively, and is used to generate a first mirror current in response to an input of the third voltage, and is also used to generate a second mirror current in response to an input of the fourth voltage.

8. The charging socket according to claim 7, characterized in that: The mirror unit includes a third switch tube, a fourth switch tube and a fifth switch tube; The gate of the third switch tube, the gate of the fourth switch tube and the gate of the fifth switch tube are commonly connected to the voltage regulating unit, the source of the third switch tube, the source of the fourth switch tube and the source of the fifth switch tube are commonly connected to the first power supply, and the drain of the third switch tube, the drain of the fourth switch tube and the drain of the fifth switch tube are commonly connected to the signal generating unit.

9. The charging socket according to claim 7, characterized in that: The signal generating unit comprises a voltage converting unit and a comparing unit; The voltage conversion unit is electrically connected to the first input terminal of the mirror unit and the comparison unit respectively, and the voltage conversion unit is used to generate a fifth voltage in response to the input of the first mirror current, and is used to generate a sixth voltage in response to the input of the second mirror current; The second input terminal of the comparison unit is used to access the reference voltage, the output terminal of the comparison unit is electrically connected to the first terminal of the control unit, the comparison unit is used to respond to the input of the fifth voltage and output the first detection signal to the control unit, and the comparison unit is used to respond to the input of the sixth voltage and output the second detection signal to the control unit.

10. The charging socket according to claim 9, characterized in that: The voltage conversion unit includes a conversion resistor, and the comparison unit includes a comparator; One end of the conversion resistor is electrically connected to the mirror unit and the non-phase input end of the comparator respectively, the other end of the conversion resistor is grounded, the inverting input end of the comparator is used to access the reference voltage, and the output end of the comparator is electrically connected to the first end of the control unit.

11. The charging socket according to claim 4, characterized in that: The signal generating unit comprises a switch unit and a voltage dividing unit; The control end of the switch unit is electrically connected to the voltage regulating unit and the VBUS terminal respectively, and the switch unit is also electrically connected to the start unit and the voltage dividing unit respectively. The switch unit is in a cut-off state in response to the input of the third voltage, and is in a conducting state in response to the input of the fourth voltage; The voltage divider unit is electrically connected to the first end of the switch unit and the control unit respectively. The voltage divider unit is used to output a first detection signal to the control unit in response to the switch unit being in an off state, and is also used to output a second detection signal to the control unit in response to the switch unit being in an on state.

12. The charging socket according to claim 11, characterized in that: The switch unit includes a sixth switch tube, and the voltage dividing unit includes a third resistor and a fourth resistor; The source of the sixth switch tube is electrically connected to the startup unit and the voltage divider unit respectively, the gate of the sixth switch tube is electrically connected to the voltage regulation unit and the VBUS terminal respectively, the drain of the sixth switch tube is electrically connected to one end of the third resistor and one end of the fourth resistor respectively, the other end of the third resistor is electrically connected to the first end of the control unit, and the other end of the fourth resistor is grounded.

13. The charging socket according to any one of claims 1 to 12, characterized in that: While the external load is plugged into the USB Type-C port via the charging cable, the control unit is further configured to control the power path switch to maintain a conducting state.

14. A charging device, characterized in that: It comprises a charging cable and a charging socket as described in any one of claims 1 to 13, wherein the charging cable comprises a USB Type-C male connector and a lightning male connector, the USB Type-C male connector is used to connect to the USB Type-C interface, and the lightning male connector is used to connect to an external load.