Automatic detection circuit for plugging and unplugging of TYPEC data line

By using an automatic detection circuit for TYPEC data cable insertion and removal, and by automatically switching the USB interface mode by detecting the voltage signal at the CPU end, the problem of cumbersome operation of the TYPEC interface on the Android motherboard is solved. It realizes automatic mode switching when inserting and removing the cable, thus simplifying the operation.

CN224216863UActive Publication Date: 2026-05-08GUANGZHOU PEITE ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
GUANGZHOU PEITE ELECTRONICS TECH CO LTD
Filing Date
2024-07-03
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

The existing TYPEC interface makes master-slave switching on Android motherboards cumbersome, requiring system menu selection or physical switch operation, lacking intelligence and simplicity.

Method used

An automatic detection circuit for TYPEC data cable insertion and removal was designed. The circuit detects the voltage signal at the CPU end to determine whether the data cable is inserted or removed, and automatically switches the USB interface mode. The circuit includes an automatic detection circuit, a TYPEC interface and a USB interface circuit connection. The voltage signal identification and switching are achieved by using common-mode inductors and resistors to divide the voltage.

Benefits of technology

It automatically switches to slave interface mode when a TYPEC data cable is inserted and automatically switches to master interface mode when it is unplugged, eliminating the need for system menu selection or physical switch operation and simplifying the operation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN224216863U_ABST
    Figure CN224216863U_ABST
Patent Text Reader

Abstract

The utility model discloses a TYPEC data line plugging and unplugging automatic detection circuit, and relates to the field of data lines, and the circuit comprises a CPU end which is used for judging whether a TYPEC data line is plugged or unplugged based on whether the automatic detection circuit inputs a voltage signal, and completing the master-slave switching of a USB interface; the USB interface is used for accessing USB equipment; the TYPEC interface is used for accessing a TYPEC data line; and the automatic detection circuit is used for detecting whether the TYPEC data line is connected, compared with the prior art, the USB slave interface mode is automatically detected and switched when the TYPEC data line is inserted, and the USB master interface mode is automatically detected and switched when the TYPEC data line is pulled out. System menu selection or physical switch selection of master and slave interface modes is not needed, and operation is simplified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This utility model relates to the field of data cables, specifically a TYPEC data cable plug-in / plug-out automatic detection circuit. Background Technology

[0002] The original data debugging interface of Android motherboards was the Micro USB interface, which had an ID detection pin that could switch between USB master and slave modes. However, in recent years, the Type-C interface has been replacing the Micro USB interface. Full-featured Type-C interfaces are mostly used in mobile phone designs. This interface can identify whether the connected Type-C interface device is a master or slave device through the built-in chip. However, most Android motherboards use a simplified version of the Type-C interface that omits the built-in chip.

[0003] One method to achieve master-slave switching is to select the interface mode through the system menu, such as... Figure 1 As shown, the second method is to select the interface mode via a physical switch, such as... Figure 2 As shown.

[0004] Selecting the master / slave interface mode through the system menu requires setting it after booting into the system, which cannot be done if there is a system error or if you expect to switch the master / slave interface mode before the system starts up. Selecting the interface mode through a physical switch requires operating the physical switch to switch between master and slave modes, which is relatively cumbersome.

[0005] In summary, the existing interface implementation for master-slave switching is not intelligent or concise enough and needs improvement. Utility Model Content

[0006] The purpose of this invention is to provide an automatic detection circuit for plugging and unplugging TYPEC data cables to solve the problems mentioned in the background art.

[0007] To achieve the above objectives, this utility model provides the following technical solution:

[0008] An automatic detection circuit for plugging and unplugging a Type-C data cable includes:

[0009] On the CPU side, it is used to determine whether the TYPEC data cable is inserted or unplugged based on whether the automatic detection circuit inputs a voltage signal, and to complete the master-slave switching of the USB interface.

[0010] USB interface, used to connect USB devices;

[0011] The TYPEC interface is used to connect a TYPEC data cable.

[0012] The automatic detection circuit is used to detect whether the TYPEC data cable is connected. When the TYPEC data cable is connected, two voltage signals are sent to the CPU. When the TYPEC data cable is not connected, no voltage signals are sent to the CPU.

[0013] The CPU is connected to a USB interface and a TYPEC interface. The TYPEC interface is connected to an automatic detection circuit, which is then connected to the CPU.

[0014] As a further improvement of this utility model: the TYPEC interface includes interface J47, which is a TYPEC female interface socket. The model of interface J47 can be TYPE-C-31-M-12. The A9, B4, B9, and A4 pins of interface J47 are connected to the CPU end through an automatic detection circuit. The B6 and A6 pins of interface J47 are connected to the third end of common mode inductor U6. The A7 and B7 pins of interface J47 are connected to the second end of common mode inductor U6. The first and fourth ends of common mode inductor are connected to the CPU end.

[0015] As a further improvement of this utility model, the common mode inductor U6 is model number YLM2012-900T.

[0016] As a further embodiment of this utility model: the automatic detection circuit includes resistors R55, R56, R57, R58, and R295. One end of resistor R55 is connected to one end of resistor R56 and the CPU terminal (USB3_OTG0_VBUSDET), the other end of resistor R56 is grounded, and the other end of resistor R55 is connected to the 5V voltage (VCC5V-VBUS) of the TYPEC interface. One end of resistor R57 is connected to the CPU terminal (USB3_OTG_ID), the other end of resistor R57 is connected to one end of resistor R295 and one end of resistor R58, the other end of resistor R58 is grounded, and the other end of resistor R295 is connected to the TYPEC interface.

[0017] As a further improvement of this utility model: the USB interface includes interface J8, which is a USB 3.0 Type A female interface socket, model number KH-3.0AF90DIP-14.2JB-STM. Pins 2 and 3 of interface J8 are connected to the CPU. Pins 5 and 6 of interface J8 are connected to the CPU through resistors R59 and R60, respectively. Pins 8 and 9 of interface J8 are connected to the CPU through capacitors C41 and C42, respectively.

[0018] Compared with the prior art, the beneficial effects of this utility model are: this utility model automatically detects and switches to USB slave interface mode when the TYPEC data cable is inserted, and automatically detects and switches to USB master interface mode when the TYPEC data cable is unplugged, without the need for system menu selection or physical switch selection of master and slave interface modes, thus simplifying the operation. Attached Figure Description

[0019] Figure 1 A diagram illustrating the selection of interface modes for the system menu.

[0020] Figure 2 A diagram illustrating the selection of interface mode for a physical switch.

[0021] Figure 3 This is a schematic diagram of a TYPEC data cable plug-in / plug-out automatic detection circuit.

[0022] Figure 4 This is a circuit diagram of an automatic detection circuit for plugging and unplugging a TYPEC data cable. Detailed Implementation

[0023] The technical solutions of the present utility model will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present utility model. Obviously, the described embodiments are only some embodiments of the present utility model, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present utility model without creative effort are within the protection scope of the present utility model.

[0024] Please see Figure 3 An automatic detection circuit for plugging and unplugging a Type-C data cable includes:

[0025] On the CPU side, it is used to determine whether the TYPEC data cable is inserted or unplugged based on whether the automatic detection circuit inputs a voltage signal, and to complete the master-slave switching of the USB interface.

[0026] USB interface, used to connect USB devices;

[0027] The TYPEC interface is used to connect a TYPEC data cable.

[0028] The automatic detection circuit is used to detect whether the TYPEC data cable is connected. When the TYPEC data cable is connected, two voltage signals are sent to the CPU. When the TYPEC data cable is not connected, no voltage signals are sent to the CPU.

[0029] The CPU is connected to a USB interface and a TYPEC interface. The TYPEC interface is connected to an automatic detection circuit, which is then connected to the CPU.

[0030] In this embodiment: Please refer to Figure 4The TYPEC interface includes interface J47, which is a female TYPEC interface socket. The model of interface J47 can be TYPE-C-31-M-12. The A9, B4, B9, and A4 pins of interface J47 are connected to the CPU end through an automatic detection circuit. The B6 and A6 pins of interface J47 are connected to the third terminal of common mode inductor U6, and the A7 and B7 pins of interface J47 are connected to the second terminal of common mode inductor U6. The first and fourth terminals of the common mode inductor are connected to the CPU end.

[0031] In this embodiment: Please refer to Figure 4 The common mode inductor U6 has the model number YLM2012-900T.

[0032] Pins B6 and A6 of interface J47 are for USB 2.0 DP signals, and pins A7 and B7 are for USB 2.0 DM signals. These DP and DM signals are connected to the CPU's USB_OTG pin via common-mode inductor U6 for data communication. Protection transistors D11 and D12 are ESD protection devices connected to the DP and DM signal lines. Pins A12, B1, and B12 of interface J47 are GND pins connected to the circuit's ground network.

[0033] In this embodiment: Please refer to Figure 4 The automatic detection circuit includes resistors R55, R56, R57, R58, and R295. One end of resistor R55 is connected to one end of resistor R56 and the CPU terminal (USB3_OTG0_VBUSDET), while the other end of resistor R56 is grounded. The other end of resistor R55 is connected to the 5V voltage (VCC5V-VBUS) of the TYPEC interface. One end of resistor R57 is connected to the CPU terminal (USB3_OTG_ID), while the other end of resistor R57 is connected to one end of resistor R295 and one end of resistor R58. The other end of resistor R58 is grounded, and the other end of resistor R295 is connected to the TYPEC interface.

[0034] Pins A9 and B4 of interface J47 are VBUS pins. When connecting the motherboard and computer using Type-C, the computer outputs 5V power (VCC5V-VBUS), which is connected to resistors R55 and R56 to divide the voltage to obtain 3V, which is then sent to the USB3_OTG0_VBUSDET network for voltage identification by the CPU. Pins A4 and B9 are VBUS pins. These two pins are first connected to voltage divider resistors R295 and R58 to obtain 3.3V. The ESD protection diode 8 is an anti-static device. Then, a current-limiting resistor R57 is connected to the USB3_OTG_ID network for the CPU to automatically detect the Type-C data cable insertion.

[0035] The TYPEC data cable plug-in / unplug automatic detection process works as follows: When the TYPEC data cable is plugged in, the computer outputs 5V via VBUS. Since all four VBUS pins (A4, B4, A9, B9) inside the TYPEC data cable are connected together, the four VBUS pins of the J47 interface on the motherboard are also connected. Therefore, the USB3_OTG0_VBUSDET network will provide 3V to the CPU for voltage identification, and the USB3_OTG_ID network will also provide 3.3V for CPU detection. After the CPU detects these two voltages, the software automatically switches USB to slave interface mode. With the TYPEC data cable connected to the computer, system and data debugging can be performed. When debugging is complete and the TYPEC data cable is unplugged, the 3.0V of the USB3_OTG0_VBUSDET network and the 3.3V of the USB3_OTG_ID network also disappear. Since the CPU no longer detects these two voltages, the software automatically switches USB to master interface mode. This automatic mode switching is achieved through plugging and unplugging.

[0036] In this embodiment: Please refer to Figure 4 The USB interface includes interface J8, which is a USB 3.0 Type A female connector, model number KH-3.0AF90DIP-14.2JB-STM. Pins 2 and 3 of interface J8 are connected to the CPU. Pins 5 and 6 of interface J8 are connected to the CPU through resistors R59 and R60, respectively. Pins 8 and 9 of interface J8 are connected to the CPU through capacitors C41 and C42, respectively.

[0037] Pin 1 is the VBUS pin, providing 5V power to devices connected to the motherboard. Pins 2 and 3 are the USB 2.0 DP and DM signal pins. Pins 5 and 6 are the USB 3.0 receive signal pins, connected in series with resistors R59 and R60 to the CPU for the USB 3.0 RX signal, and connected to ESD protection devices D6 and D7 to ground. Pins 8 and 9 are the USB 3.0 transmit signal pins, connected in series with capacitors C41 and C42 to the CPU for the USB 3.0 TX signal, and connected to ESD protection devices D6 and D7 to ground. Pins 7 and 4 are the GND pins of interface J8, grounded. When the Type-C data cable is unplugged, it automatically switches to USB host interface mode, allowing some USB devices (USB flash drives, keyboards, mice, etc.) to be connected to the motherboard from the J8 connector.

[0038] The working principle of this utility model is as follows: The CPU is used to determine whether the TYPEC data cable is inserted or removed based on whether the automatic detection circuit inputs a voltage signal, thus completing the master-slave switching of the USB interface; the USB interface is used to connect USB devices; the TYPEC interface is used to connect the TYPEC data cable; the automatic detection circuit is used to detect whether the TYPEC data cable is connected. When the TYPEC data cable is connected, two voltage signals are sent to the CPU; when the TYPEC data cable is not connected, no voltage signal is sent to the CPU.

[0039] It will be apparent to those skilled in the art that this invention is not limited to the details of the exemplary embodiments described above, and that it can be implemented in other specific forms without departing from the spirit or essential characteristics of this invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects.

[0040] Furthermore, it should be understood that although this specification describes embodiments, not every embodiment contains only one independent technical solution. This narrative style is merely for clarity. Those skilled in the art should consider the specification as a whole, and the technical solutions in each embodiment can also be appropriately combined to form other embodiments that can be understood by those skilled in the art.

Claims

1. An automatic detection circuit for plugging and unplugging a Type-C data cable, characterized in that, The TYPEC data cable plug-in / plug-out automatic detection circuit includes: On the CPU side, it is used to determine whether the TYPEC data cable is inserted or unplugged based on whether the automatic detection circuit inputs a voltage signal, and to complete the master-slave switching of the USB interface. USB interface, used to connect USB devices; The TYPEC interface is used to connect a TYPEC data cable. The automatic detection circuit is used to detect whether the TYPEC data cable is connected. When the TYPEC data cable is connected, two voltage signals are sent to the CPU. When the TYPEC data cable is not connected, no voltage signals are sent to the CPU. The CPU is connected to a USB interface and a TYPEC interface. The TYPEC interface is connected to an automatic detection circuit, which is then connected to the CPU.

2. The TYPEC data cable plugging / unplugging automatic detection circuit according to claim 1, characterized in that, The TYPEC interface includes interface J47, which is the female TYPEC interface socket. The model of interface J47 can be TYPE-C-31-M-12. The A9, B4, B9, and A4 pins of interface J47 are connected to the CPU end through an automatic detection circuit. The B6 and A6 pins of interface J47 are connected to the third terminal of common mode inductor U6, and the A7 and B7 pins of interface J47 are connected to the second terminal of common mode inductor U6. The first and fourth terminals of the common mode inductor are connected to the CPU end.

3. The TYPEC data cable plugging / unplugging automatic detection circuit according to claim 2, characterized in that, The common mode inductor U6 has the model number YLM2012-900T.

4. The TYPEC data cable plugging / unplugging automatic detection circuit according to any one of claims 1 to 3, characterized in that, The automatic detection circuit includes resistors R55, R56, R57, R58, and R295. One end of resistor R55 is connected to one end of resistor R56 and the CPU terminal, while the other end of resistor R56 is grounded. The other end of resistor R55 is connected to the 5V voltage of the TYPEC interface. One end of resistor R57 is connected to the CPU terminal, while the other end of resistor R57 is connected to one end of resistor R295 and one end of resistor R58. The other end of resistor R58 is grounded, and the other end of resistor R295 is connected to the TYPEC interface.

5. The TYPEC data cable plugging / unplugging automatic detection circuit according to claim 1, characterized in that, The USB interface includes interface J8, which is a USB 3.0 Type A female connector, model number KH-3.0AF90DIP-14.2JB-STM. Pins 2 and 3 of interface J8 are connected to the CPU. Pins 5 and 6 of interface J8 are connected to the CPU through resistors R59 and R60, respectively. Pins 8 and 9 of interface J8 are connected to the CPU through capacitors C41 and C42, respectively.