TypeC line identification switching circuit and device
By designing a type C-line identification and switching circuit, the identification module is used to detect the electrical signal changes of the interface module and control the switching module to switch, the difficulty of signal link matching caused by random insertion direction of Type-C line is solved, and the identification of the insertion direction and the matching of the signal link are realized, and the efficiency of signal transmission is improved.
Patent Information
- Application Number
- CN202422076942.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2025-06-20
- Estimated Expiration
- 2034-08-26
AI Technical Summary
In industrial control products, the insertion direction of USB Type-C line is random, which leads to difficulty in matching the signal link and affects the efficiency of signal transmission.
Design a type C-line identification and switching circuit, including interface module, identification module and switching module. By detecting the change of the electrical signal of the interface module, outputting the corresponding electrical signal control switching module for switching, realizing the identification of the Type-C line insertion direction and matching the signal link.
It realizes accurate identification of the Type-C line insertion direction and matching of signal links, ensuring that the main control chip can communicate normally, and improving the efficiency of signal transmission.
Smart Images

Figure CN223006441U_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of data transmission devices, and particularly to a type C cable identification and switching circuit and device. Background Art
[0002] USB Type-C is a USB interface form factor standard with a smaller size than both Type-A and Type-B. It is an interface type that can be applied to both PCs (host devices) and external devices (slave devices, such as mobile phones).
[0003] The connector form of Type-C is symmetrical, and the insertion direction is random. However, in the field of industrial control products, due to the high requirements for signal traces for high-speed signals, signal link matching is required to achieve signal transmission. Therefore, how to identify the insertion direction of the Type-C cable and match the signal link has become an urgent problem to be solved. Summary of the Utility Model
[0004] In order to be able to identify the insertion direction of the Type-C cable and match the signal link, this application provides a type C cable identification and switching circuit and device.
[0005] In a first aspect, a type C cable identification and switching circuit provided by this application adopts the following technical solution:
[0006] A type C cable identification and switching circuit includes an interface module, an identification module, and a switching module. The interface module is used to connect an external type C cable, and the interface module is also used to connect the input end of the identification module. The output end of the identification module is connected to the input end of the switching module. The switching module is connected to the interface module, and the switching module is also used to connect to a main control chip.
[0007] By adopting the above technical solution, after connecting the type C cable to the interface module, the identification module can detect the interface and output an electrical signal based on the detection result, thereby controlling the switching action and using the switching module to switch the connection so that the main control chip can communicate normally, that is, the insertion direction of the Type-C cable is identified and the signal link is matched by using the switching module.
[0008] Optionally, the recognition module includes a resistor R1, a resistor R2, a resistor R3, and a triode Q1. One end of the resistor R1 is connected to the collector of the triode Q1, and the other end of the resistor R1 is connected to a power supply terminal A. One end of the resistor R3 is connected to the power supply terminal A, and the other end of the resistor R3 is connected to the resistor R2. The other end of the resistor R2 is connected to the base of the triode Q1. The emitter of the triode Q1 is connected to a ground terminal. The connection point of the resistor R2 and the resistor R3 is connected to the input end of the recognition module, and the collector of the triode Q1 is connected to the output end of the recognition module.
[0009] By adopting the above technical solution, the voltage change received by the recognition module, that is, the high and low level change, changes the on-off state of the triode Q1, and further changes the electrical signal output by the recognition module, realizes the direction recognition of the type C cable, and outputs different electrical signals based on the recognition result to control the switching module to switch, so that the main control chip can be correctly connected to complete communication.
[0010] Optionally, the interface module includes an interface J3. The 1st, 2nd, 3rd, and 4th pins of the interface J3 are all connected to a ground terminal. The A1 pin of the interface J3 is connected to the ground terminal. The A2 and A3 pins of the interface J3 are left vacant. The A4 pin of the interface J3 is connected to a power supply terminal B. The A5 pin of the interface J3 is connected to the input end of the recognition module. The A6 pin of the interface J3 is connected to the B6 pin of the interface J3. The A7 pin of the interface J3 is connected to the B7 pin of the interface J3. The A8 pin of the interface J3 is left vacant. The A10 and A11 pins of the interface J3 are connected to the output end of the switching module. The A12 pin of the interface J3 is connected to the ground terminal. The B1 pin of the interface J3 is connected to the ground terminal. The B2 and B3 pins of the interface J3 are both left vacant. The B4 pin of the interface J3 is connected to the power supply terminal B. The B5 and B8 pins of the interface J3 are left vacant. The B9 pin of the interface J3 is connected to the power supply terminal B. The B10 and B11 pins of the interface J3 are connected to the output end of the switching module. The B12 pin of the interface J3 is connected to the ground terminal.
[0011] Optionally, the switching module includes a switching chip U2. The 1st and 2nd pins of the switching chip U2 are used to connect to the main control chip for signal communication. The 3rd pin of the switching chip U2 is connected to the ground terminal. The 4th pin of the switching chip U2 is connected to the A10 pin of the interface J3. The 5th pin of the switching chip U2 is connected to the A11 pin of the interface J3. The 6th pin of the switching chip U2 is connected to the B10 pin of the interface J3. The 7th pin of the switching chip U2 is connected to the B11 pin of the interface J3. The 8th pin of the switching chip U2 is connected to the ground terminal. The 9th pin of the switching chip U2 is connected to the power supply terminal A. The 10th pin of the switching chip U2 is connected to the output terminal of the identification module.
[0012] Optionally, a capacitor C2 is connected to the power supply terminal A, and the other end of the capacitor C2 is connected to the ground terminal.
[0013] By adopting the above technical solution, filtering processing is performed on the power supply to make the voltage more stable.
[0014] In a second aspect, a type C cable identification and switching device provided by the present application adopts the following technical solution:
[0015] A type C cable identification and switching device includes a type C cable identification and switching circuit as described in the first aspect.
[0016] In summary, the present application includes at least one of the following beneficial technical effects:
[0017] 1. After connecting the type C cable to the interface module, the identification module can detect the interface and output an electrical signal based on the detection result, thereby controlling the switching action and using the switching module to switch the connection so that the main control chip can communicate normally, that is, it realizes the identification of the insertion direction of the Type-C cable and the signal link matching using the switching module;
[0018] 2. By the voltage change received by the identification module, that is, the high and low level change, the on-off state of the triode Q1 is changed, and then the electrical signal output by the identification module is changed, realizing the direction identification of the type C cable, and outputting different electrical signals based on the identification result to control the switching module to switch so that the main control chip can be correctly connected to complete communication. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 is the overall connection block diagram of this embodiment.
[0020] Figure 2 is the overall circuit schematic diagram of this embodiment.
[0021] Explanation of reference numerals: 1. Interface module; 2. Identification module; 3. Switching module. DETAILED DESCRIPTION
[0022] The following is combined with Figure 1-2 This application is described in further detail.
[0023] The present application embodiment discloses a type C line identification switching circuit. Figure 1 A type C line identification and switching circuit includes an interface module 1, an identification module 2 and a switching module 3, wherein the interface module 1 is connected to the input end of the identification module 2, the output end of the identification module 2 is connected to the input end of the switching module 3, and the output end of the switching module 3 is connected to the interface module 1.
[0024] The interface module 1 is used to connect the type C line. When the type C line is connected, the identification module 2 detects the interface module 1 to realize the identification function, and outputs an electrical signal to the switching module 3 based on the identification result, thereby controlling the switching module 3 to realize the connection between the switching module 3 and the interface module 1, and then switching the connection between the interface module 1 and the main control chip. By switching the connection, the purpose of automatically identifying the insertion direction of the type C line is achieved.
[0025] Reference Figure 2 The identification module 2 includes a resistor R1, a resistor R2, a resistor R3, and a transistor Q1. One end of the resistor R1 is connected to the collector of the transistor Q1, and the other end of the resistor R1 is connected to the power supply terminal A. One end of the resistor R3 is connected to the power supply terminal A, and the other end of the resistor R3 is connected to the resistor R2. The other end of the resistor R2 is connected to the base of the transistor Q1, and the emitter of the transistor Q1 is connected to the ground terminal. The connection point of the resistor R2 and the resistor R3 is connected to the input terminal of the identification module 2, and the collector of the transistor Q1 is connected to the output terminal of the identification module 2.
[0026] The interface module includes interface J3. Pin 1, Pin 2, Pin 3, and Pin 4 of interface J3 are all connected to the ground terminal. Pin A1 of interface J3 is connected to the ground terminal. Pins A2 and A3 of interface J3 are left unconnected. Pin A4 of interface J3 is connected to power supply terminal B. Pin A5 of interface J3 is connected to the input terminal of the identification module. Pin A6 of interface J3 is connected to Pin B6 of interface J3. Pin A7 of interface J3 is connected to Pin B7 of interface J3. Pin A8 of interface J3 is left unconnected. Pins A10 and A11 of interface J3 are connected to the output terminal of the switching module. Pin A12 of interface J3 is connected to the ground terminal. Pin B1 of interface J3 is connected to the ground terminal. Pins B2 and B3 of interface J3 are both left unconnected. Pin B4 of interface J3 is connected to power supply terminal B. Pins B5 and B8 of interface J3 are left unconnected. Pin B9 of interface J3 is connected to power supply terminal B. Pins B10 and B11 of interface J3 are connected to the output terminal of the switching module. Pin B12 of interface J3 is connected to the ground terminal.
[0027] The identification module 2 can detect Pin A5 of interface J3. When Pin A5 is not connected to the corresponding line of the type C cable, at this time, the base of the triode Q1 is at a high level because it is connected to power supply terminal A through the resistor R3. So the triode Q1 is turned on, that is, the collector of the triode Q1 is connected to the ground terminal. Therefore, at this time, the identification module 2 outputs a low-level signal to the switching module 3. When Pin A5 is connected to the corresponding line of the type C cable, at this time, due to the existence of the ground impedance of the corresponding line, after combining with the resistor R3, the base of the triode Q1 is converted to a low level. At this time, the triode Q1 is cut off, that is, through the resistor R1 and power supply terminal A, the output terminal of the identification module 2 outputs a high-level signal to the switching module 3.
[0028] Refer to Figure 2 , the switching module 3 includes a switching chip U2. Pins 1 and 2 of the switching chip U2 are used to connect to the main control chip for signal communication. Pin 3 of the switching chip U2 is connected to the ground terminal. Pin 4 of the switching chip U2 is connected to Pin A10 of interface J3. Pin 5 of the switching chip U2 is connected to Pin A11 of interface J3. Pin 6 of the switching chip U2 is connected to Pin B10 of interface J3. Pin 7 of the switching chip U2 is connected to Pin B11 of interface J3. Pin 8 of the switching chip U2 is connected to the ground terminal. Pin 9 of the switching chip U2 is connected to power supply terminal A. Pin 10 of the switching chip U2 is connected to the output terminal of the identification module 2. Among them, power supply terminal A is also connected to a capacitor C2, and the other end of the capacitor C2 is connected to the ground terminal.
[0029] The capacitor C2 is used for filtering to make the voltage more stable.
[0030] When the switching module 3 receives the high-level signal output by the recognition module 2, the switching chip U2 switches the signal transmission to pins 6 and 7. That is, at this time, pins 6 and 7 are respectively connected to pins 1 and 2, thus realizing the communication of the main control chip.
[0031] When the switching module 3 receives the low-level signal output by the recognition module 2, the switching chip U2 switches the signal transmission to pins 4 and 5. That is, at this time, pins 4 and 5 are respectively connected to pins 1 and 2, thus realizing the communication of the main control chip.
[0032] That is, the recognition of the insertion direction of the line pair, and based on the recognition result, the switching module is controlled to act to complete the matching of the signal link.
[0033] Among them, the voltage of the power supply terminal A is 3.3V, and the voltage of the power supply terminal B is 5V. The triode Q1 is an NPN-type triode, and the switching chip U2 can be a high-speed analog switch of model RS2227. The interface J3 can be a 24Pin USB Type C female socket of model GT-USB-7001B.
[0034] The implementation principle of a type C line recognition and switching circuit in an embodiment of this application is as follows: The recognition module detects specific pins of the interface J3. When the connection direction of the type C line and the interface J3 is different, the recognition module outputs different level signals, and different level signals can control the switching of the switching module to switch the connection between the pins of the interface J3 and the main control chip, thereby realizing the recognition and switching of the type C line, completing the link matching, and ensuring that the type C line can be correctly connected to the main control chip to complete the communication of the main control chip.
[0035] An embodiment of this application also discloses a type C line recognition and switching device. A type C line recognition and switching device includes a type C line recognition and switching circuit as disclosed above.
[0036] The above are all the preferred embodiments of this application. The protection scope of this application is not limited by this. Therefore, all equivalent changes made according to the structure, shape, and principle of this application should be covered within the protection scope of this application.
Claims
1. A type C line identification switching circuit, characterized in that: It includes an interface module, an identification module, and a switching module. The interface module is used to connect an external type C line. The interface module is also used to connect the input end of the identification module. The output end of the identification module is connected to the input end of the switching module. The switching module is connected to the interface module. The switching module is also used to connect to the main control chip.
2. A type C line identification switching circuit according to claim 1, characterized in that: The identification module includes a resistor R1, a resistor R2, a resistor R3, and a transistor Q1, one end of the resistor R1 is connected to the collector of the transistor Q1, the other end of the resistor R1 is connected to the power supply terminal A, one end of the resistor R3 is connected to the power supply terminal A, the other end of the resistor R3 is connected to the resistor R2, the other end of the resistor R2 is connected to the base of the transistor Q1, the emitter of the transistor Q1 is connected to the ground terminal, the connection point of the resistor R2 and the resistor R3 is connected to the input terminal of the identification module, and the collector of the transistor Q1 is connected to the output terminal of the identification module.
3. A type C line identification switching circuit according to claim 1 or 2, characterized in that: The interface module includes an interface J3, wherein pins 1, 2, 3, and 4 of the interface J3 are all connected to the ground terminal, pin A1 of the interface J3 is connected to the ground terminal, pins A2 and A3 of the interface J3 are left empty, pin A4 of the interface J3 is connected to a power supply terminal B, pin A5 of the interface J3 is connected to the input terminal of the identification module, pin A6 of the interface J3 is connected to pin B6 of the interface J3, pin A7 of the interface J3 is connected to pin B7 of the interface J3, pin A8 of the interface J3 is left empty, and pin A9 of the interface J3 is left empty. The A10 pin and A11 pin of the interface J3 are connected to the output end of the switching module, the A12 pin of the interface J3 is connected to the ground end, the B1 pin of the interface J3 is connected to the ground end, the B2 pin and B3 pin of the interface J3 are both empty, the B4 pin of the interface J3 is connected to the power supply end B, the B5 pin and B8 pin of the interface J3 are empty, the B9 pin of the interface J3 is connected to the power supply end B, the B10 pin and B11 pin of the interface J3 are connected to the output end of the switching module, and the B12 pin of the interface J3 is connected to the ground end.
4. A type C line identification switching circuit according to claim 3, characterized in that: The switching module includes a switching chip U2, wherein pins 1 and 2 of the switching chip U2 are used to connect to the main control chip for signal communication, pin 3 of the switching chip U2 is connected to the ground terminal, pin 4 of the switching chip U2 is connected to pin A10 of the interface J3, pin 5 of the switching chip U2 is connected to pin A11 of the interface J3, pin 6 of the switching chip U2 is connected to pin B10 of the interface J3, pin 7 of the switching chip U2 is connected to pin B11 of the interface J3, pin 8 of the switching chip U2 is connected to the ground terminal, pin 9 of the switching chip U2 is connected to the power supply terminal A, and pin 10 of the switching chip U2 is connected to the output terminal of the identification module.
5. A type C line identification switching circuit according to claim 4, characterized in that: The power supply end A is connected to a capacitor C2, and the other end of the capacitor C2 is connected to the ground end.
6. A type C line identification and switching device, characterized in that: It comprises a type C line identification switching circuit as described in any one of claims 1 to 4.