CN-224216863-U - TYPEC data line plug automated inspection circuit
Abstract
The utility model discloses a TYPEC data line plugging automatic detection circuit, which relates to the field of data lines, and the TYPEC data line plugging automatic detection circuit comprises a CPU end, a USB interface, a TYPEC interface and an automatic detection circuit, wherein the CPU end is used for judging whether a TYPEC data line is plugged in or pulled out based on whether the automatic detection circuit inputs a voltage signal, so as to complete master-slave switching of the USB interface, the USB interface is used for being connected with USB equipment, the TYPEC interface is used for being connected with a TYPEC data line, and the automatic detection circuit is used for detecting whether a TYPEC data line is connected or not.
Inventors
- YANG WEI
Assignees
- 广州佩特电子科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20240703
Claims (5)
- 1. The automatic detection circuit for plugging and unplugging of TYPEC data lines is characterized in that the automatic detection circuit for plugging and unplugging of TYPEC data lines comprises: The CPU end is used for judging whether TYPEC data wires are inserted or pulled out based on whether the automatic detection circuit inputs voltage signals or not, and completing master-slave switching of the USB interface; The USB interface is used for accessing the USB equipment; TYPEC interface for accessing TYPEC data line; The automatic detection circuit is used for detecting whether the TYPEC data line is connected or not, and sending two voltage signals to the CPU end when the TYPEC data line is connected or not; The CPU end is connected with the USB interface, the TYPEC interface and the TYPEC interface, and is connected with an automatic detection circuit which is connected with the CPU end.
- 2. The automatic TYPEC data line plugging detection circuit of claim 1, wherein the TYPEC interface includes an interface J47, the interface J47 is a TYPEC female interface socket, the TYPE of the interface J47 can be TYPE-C-31-M-12, pins A9, B4, B9, A4 of the interface J47 are connected to the CPU end through the automatic detection circuit, pins B6, A6 of the interface J47 are connected to the third end of the common-mode inductor U6, pins A7, B7 of the interface J47 are connected to the second end of the common-mode inductor U6, and the first end and the fourth end of the common-mode inductor are connected to the CPU end.
- 3. The automatic TYPEC data line plug detection circuit according to claim 2, wherein the common-mode inductor U6 is model number YLM2012-900T.
- 4. A TYPEC data line plugging automatic detection circuit according to any one of claims 1 to 3, wherein the automatic detection circuit includes a resistor R55, a resistor R56, a resistor R57, a resistor R58, and a resistor R295, one end of the resistor R55 is connected to one end of the resistor R56 and the CPU end, the other end of the resistor R56 is grounded, the other end of the resistor R55 is connected to the 5V voltage of the TYPEC interface, one end of the resistor R57 is connected to the CPU end, the other end of the resistor R57 is connected to one end of the resistor R295 and one end of the resistor R58, the other end of the resistor R58 is grounded, and the other end of the resistor R295 is connected to the TYPEC interface.
- 5. The automatic TYPEC data line plug detection circuit according to claim 1, wherein the USB interface includes an interface J8, the interface J8 is a USB 3.0A female interface socket, the model can be KH-3.0AF90DIP-14.2JB-STM, pins 2 and 3 of the interface J8 are connected to the CPU terminal, pins 5 and 6 of the interface J8 are connected to the CPU terminal through a resistor R59 and a resistor R60, respectively, and pins 8 and 9 of the interface J8 are connected to the CPU terminal through a capacitor C41 and a capacitor C42, respectively.
Description
TYPEC data line plug automated inspection circuit Technical Field The utility model relates to the field of data lines, in particular to a TYPEC automatic detection circuit for plugging and unplugging of a data line. Background The original data debugging interface of the android main board is a MICRO USB interface, an ID detection pin is arranged in the android main board, the switching of USB master-slave mode interfaces can be realized, however, in recent years, TYPEC interfaces have a trend of replacing the MICRO USB interface, the TYPEC interface with a full-function version is used in the design of a mobile phone, the interface can identify whether the accessed device with a TYPEC interface is a master device or a slave device through a built-in chip, and the android main board is a TYPEC interface which omits the simple function of the built-in chip. The method for realizing the master-slave switching is that which interface mode is selected through a system menu, as shown in fig. 1, and which interface mode is selected through a physical switch, as shown in fig. 2. The master-slave interface mode is selected through a system menu, the master-slave interface mode is required to be set after the system is started and enters, the master-slave interface mode is not switched when the system is in error operation or the system is expected to be started, the physical switch is used for selecting the master-slave interface mode, and the physical switch is required to be operated for selecting the master-slave interface mode, so that the operation is relatively complicated. In summary, the existing interfaces are not intelligent and concise enough to realize master-slave switching, and need improvement. Disclosure of utility model The utility model aims to provide a TYPEC data line plugging automatic detection circuit so as to solve the problems in the background technology. In order to achieve the above purpose, the present utility model provides the following technical solutions: A TYPEC data line plug auto-detect circuit, comprising: The CPU end is used for judging whether TYPEC data wires are inserted or pulled out based on whether the automatic detection circuit inputs voltage signals or not, and completing master-slave switching of the USB interface; The USB interface is used for accessing the USB equipment; TYPEC interface for accessing TYPEC data line; The automatic detection circuit is used for detecting whether the TYPEC data line is connected or not, and sending two voltage signals to the CPU end when the TYPEC data line is connected or not; The CPU end is connected with the USB interface, the TYPEC interface and the TYPEC interface, and is connected with an automatic detection circuit which is connected with the CPU end. As a still further scheme of the utility model, TYPEC interfaces comprise an interface J47, the interface J47 is a TYPEC female interface seat, the model of the interface J47 can be TYPE-C-31-M-12, pins A9, B4, B9 and A4 of the interface J47 are connected with a CPU end through an automatic detection circuit, pins B6 and A6 of the interface J47 are connected with a third end of a common-mode inductor U6, pins A7 and B7 of the interface J47 are connected with a second end of the common-mode inductor U6, and a first end and a fourth end of the common-mode inductor are connected with the CPU end. As a still further aspect of the utility model, the common mode inductance U6 is model number YLM2012-900T. As a still further scheme of the utility model, the automatic detection circuit comprises a resistor R55, a resistor R56, a resistor R57, a resistor R58 and a resistor R295, wherein one end of the resistor R55 is connected with one end of the resistor R56 and the CPU end (USB 3_OTG0_VBUSDET), the other end of the resistor R56 is grounded, the other end of the resistor R55 is connected with the 5V voltage (VCC 5V-VBUS) of the TYPEC interface, one end of the resistor R57 is connected with the CPU end (USB 3_OTG_ID), the other end of the resistor R57 is connected with one end of the resistor R295 and one end of the resistor R58, the other end of the resistor R58 is grounded, and the other end of the resistor R295 is connected with the TYPEC interface. As a still further scheme of the utility model, the USB interface comprises an interface J8, the interface J8 is a USB 3.0A type female interface seat, the model can be KH-3.0AF90DIP-14.2JB-STM, pins 2 and 3 of the interface J8 are connected with a CPU end, pins 5 and 6 of the interface J8 are respectively connected with the CPU end through a resistor R59 and a resistor R60, and pins 8 and 9 of the interface J8 are respectively connected with the CPU end through a capacitor C41 and a capacitor C42. Compared with the prior art, the USB slave interface mode switching device has the beneficial effects that the USB slave interface mode is automatically detected and switched when the TYPEC data line is inserted, the TYPEC data line is pulled out