Type-C data line interface front and back identification circuit and device
By designing the front and back recognition circuit of the Type-C data line interface, the comparison unit and the decoder detect the pull-down resistor, identify the front and back of the Type-C interface, and prompt the user through the indicator group, solving the problem of reverse connection of the USB Type-C interface causing the device to not work normally, achieving efficient identification and prompting.
Patent Information
- Application Number
- CN202421662922.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2034-07-15
AI Technical Summary
The front and back pins of the USB Type-C interface are asymmetric, which may not work properly when the device is reversed, and there is a lack of effective identification and prompt mechanisms.
Design a front and back recognition circuit of Type-C data line interface, including connector port, comparison unit, decoder and indicator light group, to identify the front and back of Type-C interface by detecting pull-down resistors, and prompt the user through indicator light group.
It realizes independent identification and judgment of the front and back sides of the Type-C interface, prevents mutual interference, has simple circuits and strong compatibility, provides effective user prompts, and improves the reliability of the equipment.
Smart Images

Figure CN222883053U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of electronic circuits, and in particular to a front and back side identification circuit and device for a Type-C data line interface. Background Art
[0002] USB Type-C is the most popular interface at present. It is convenient, efficient and compact. It can realize multiple functions, such as charging, playing music, transferring files and live video. It also supports PD protocol fast charging and can provide more than 100W charging power. However, under the PD protocol, the internal pins of USB Type-C are not as shown on the outside. The pins on the front and back are different. In most cases, if the electronic device connected to it is reversed, it may cause the electronic device to not work properly. Utility Model Content
[0003] The technical problem to be solved by the utility model is to provide a Type-C data line interface front and back side identification circuit and device to detect and identify the front and back sides of the Type-C data line interface.
[0004] In the first aspect, an embodiment of the utility model provides a Type-C data line interface front and back side identification circuit, which is electrically connected to the Type-C interface of the Type-C data line, and the Type-C data line interface front and back side identification circuit includes a connector port, two comparison units, a decoder and an indicator light group, the Type-C interface is connected to the connector port, the pins on the two inner surfaces of the Type-C interface correspond one-to-one to and are connected to the pins on the two surfaces of the connector port, the fifth pin on the first surface of the connector port is connected to one of the comparison units, and the fifth pin on the second surface of the connector port is connected to the other comparison unit, the output ends of the two comparison units are respectively connected to the first input end and the second input end of the decoder, and the output end of the decoder is connected to the indicator light group.
[0005] In the second aspect, an embodiment of the utility model also provides a Type-C data line interface front and back side identification device, including a controller and two of the above-mentioned Type-C data line interface front and back side identification circuits, and the two Type-C data line interface front and back side identification circuits are connected to the controller.
[0006] The beneficial technical effect of the utility model is that the Type-C data line interface front and back identification circuit of the utility model is provided with a connector port, two comparison units, a decoder and an indicator light group, and the Type-C interface is connected to the connector port, the pins of the first inner surface and the second inner surface of the Type-C interface are respectively connected to the pins of the first surface and the second surface of the connector port, the fifth pin of the first surface and the fifth pin of the second surface of the connector port are respectively connected to the two comparison units, and the decoder is cooperated to judge the position of the connection voltage end of the Type-C interface through the output of the corresponding comparison unit, so as to process and analyze the front and back situation of the Type-C interface connected to the connector port, and control the indicator light group to work to prompt the user, the two comparison units are independent of each other, so that the identification and judgment of the two inner surfaces of the Type-C interface of the Type-C data line are independently operated to prevent mutual interference, and the circuit is simple and has strong compatibility. The Type-C data line interface front and back identification device of the utility model also has the above functions and is highly practical. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] In order to more clearly illustrate the technical solutions of the embodiments of the utility model, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the utility model. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0008] Figure 1 A schematic diagram of the internal pin layout of a Type-C interface of a Type-C data line used by a Type-C data line interface front and back identification circuit provided in an embodiment of the present invention;
[0009] Figure 2 A schematic diagram of a Type-C data line interface front and back identification circuit provided by an embodiment of the utility model;
[0010] Figure 3 A circuit diagram of a Type-C data line interface front and back side identification circuit provided in an embodiment of the utility model. DETAILED DESCRIPTION
[0011] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.
[0012] See also Figure 1 , Figure 1 A schematic diagram of the internal pin layout of the Type-C interface of the Type-C data line used in the Type-C data line interface front and back identification circuit provided in the embodiment of the utility model, in which the surface where pins A1 to A12 are located is the A surface of the Type-C interface, and the surface where pins B1 to B12 are located is the B surface of the Type-C interface. The A surface of the Type-C interface is on the top and the B surface is on the bottom, which is the front side, and the B surface of the Type-C interface is on the top and the A surface is on the bottom, which is the reverse side. The fifth pin of the A surface of the Type-C interface is the A5 pin, which is a connection identification terminal, denoted as CC, and is used for fast charging communication. The fifth pin of the B surface of the Type-C interface is the B5 pin, which is a connection voltage terminal, denoted as V CONN , used for power supply, the functions of the two are not the same, then the connection of the front and back sides of the Type-C interface of the Type-C data cable will affect the working condition of the Type-C data cable after connection, the inside of the Type-C data cable corresponds to the connection voltage terminal V of its Type-C interface CONN The electrical connection has a pull-down resistor, so the connection voltage terminal V of the Type-C interface can be identified by detecting the pull-down resistor. CONN , and then identify the front and back of the Type-C interface.
[0013] See also Figures 2 to 3 , Figure 2 It is a framework schematic diagram of a Type-C data line interface front and back side identification circuit provided by an embodiment of the utility model. The Type-C data line interface front and back side identification circuit 10 is electrically connected to the Type-C interface of the Type-C data line. The Type-C data line interface front and back side identification circuit 10 includes a connector port J1, two comparison units 11, a decoder U1 and an indicator light group 12. The Type-C interface is connected to the connector port J1, and the pins on the two inner surfaces of the Type-C interface correspond to and are connected to the pins on the two surfaces of the connector port J1. The fifth pin USB_51 on the first surface of the connector port J1 is connected to one of the comparison units 11, and the fifth pin USB_52 on the second surface of the connector port J1 is connected to the other comparison unit 11. The output ends of the two comparison units 11 are respectively connected to the first input end and the second input end of the decoder U1, and the two comparison units 11 are connected in parallel with each other. The output end of the decoder U1 is connected to the indicator light group 12.
[0014] The Type-C data line interface front and back identification circuit 10 is provided with a connector port J1, two comparison units 11, a decoder U1 and an indicator light group 12, and the Type-C interface is connected to the connector port J1, the pins of the first inner surface and the second inner surface of the Type-C interface are respectively connected to the pins of the first surface and the second surface of the connector port J1, and the fifth pin USB_51 of the first surface and the fifth pin USB_52 of the second surface of the connector port J1 are respectively connected to the two comparison units 11, and cooperate with the decoder U1 to judge the connection voltage terminal V of the Type-C interface through the output of the corresponding comparison unit 11. CONN The position of the Type-C interface connected to the connector port J1 is processed and analyzed, and the indicator light group 12 is controlled to work to prompt the user. The two comparison units 11 are independent of each other, so that the identification and judgment of the two inner surfaces of the Type-C interface of the Type-C data line are independent of each other to prevent mutual interference, and the circuit is simple and has strong compatibility.
[0015] Preferably, the decoder U1 may be a decoder of model SN74HC139.
[0016] Specifically, in this embodiment, the comparison unit 11 includes a connection switch KEY and an operational amplifier OPA, the output end of the connection switch KEY is connected to the non-inverting input end of the operational amplifier OPA, the inverting input end of the operational amplifier OPA is connected to the first power supply voltage, the non-inverting input end of the operational amplifier OPA is connected to a connection resistor R10 having one end connected to a second power supply voltage, the output end of the operational amplifier OPA is connected to the decoder U1, and the voltage value of the first power supply voltage is less than the voltage value of the second power supply voltage, so as to judge whether the pin of the Type-C interface electrically connected to the pin of the connector port J1 connected to the corresponding comparison unit 11 is connected to a pull-down resistor through the output of the operational amplifier OPA, and analyze and obtain the connection voltage end V of the Type-C interface. CONN The position of the Type-C interface is identified by the front and back sides. The connector port J1 and the operational amplifier OPA are connected by setting the connection switch KEY to achieve isolation between the connector port J1 and the operational amplifier OPA. The connection switch KEY can be an NMOS tube, and the model of the connection switch KEY is BSS138LT1G.
[0017] Specifically, in this embodiment, a grounding capacitor C1 is electrically connected between the output end of the operational amplifier OPA and the decoder U1 to filter the output of the operational amplifier OPA and stabilize the output voltage.
[0018] Specifically, in this embodiment, the voltage value of the first power supply voltage is 2.5V, and the voltage value of the second power supply voltage is 3V.
[0019] Specifically, in this embodiment, the positive terminal of the operational amplifier OPA is connected to the third power supply voltage, the negative terminal of the operational amplifier OPA is grounded, and the voltage value of the third power supply voltage is 3.3V.
[0020] Specifically, in this embodiment, the fifth pin USB_51 on the first surface of the connector port J1 is connected to the input end of the connection switch KEY of one of the comparison units 11, and the fifth pin USB_52 on the second surface of the connector port J1 is connected to the input end of the connection switch KEY of another comparison unit 11, so that when the connection switch KEY of one of the comparison units 11 is closed and turned on, the fifth pin on the first inner surface of the Type-C interface is connected to the non-inverting input end of the corresponding operational amplifier OPA through the fifth pin USB_51 on the first surface of the connector port J1; when the other connection switch KEY is closed and turned on, the fifth pin on the second inner surface of the Type-C interface is connected to the non-inverting input end of the corresponding operational amplifier OPA through the fifth pin USB_52 on the second surface of the connector port J1.
[0021] Specifically, in this embodiment, the enable end of the connection switch KEY is connected to the controller, the power supply voltage end VCC of the decoder U1 is connected to the third power supply voltage through the second switch KEY2, and the enable end of the second switch KEY2 is connected to the controller, so that the connection switch KEY and the second switch KEY2 can be controlled by the controller to be turned on and off, so as to control the start and stop of the identification operation.
[0022] Specifically, in this embodiment, the indicator light group 12 includes a front indicator light, a back indicator light and a failure indicator light, the front indicator light is connected to the first output end of the decoder U1 through a first resistor R1, the back indicator light is connected to the second output end of the decoder U1 through a second resistor R2, and the failure indicator light is connected to the third output end and the fourth output end of the decoder U1 through a third resistor R3. The front indicator light is used to indicate that the Type-C interface connected to the connector port J1 is a front connection, the back indicator light is used to indicate that the Type-C interface connected to the connector port J1 is a back connection, and the failure indicator light is used to indicate that it is impossible to determine whether the Type-C interface connected to the connector port J1 is a front connection or a back connection, and the recognition fails.
[0023] Specifically, in this embodiment, the front indicator light, the back indicator light and the failure indicator light are all light emitting diodes, the cathode of the light emitting diode is grounded, the anode of the light emitting diode is connected to the corresponding resistor, the third output end of the decoder U1 is connected to one end of the third resistor R3 after passing through the first diode D1, and the fourth output end of the decoder U1 is connected to one end of the third resistor R3 after passing through the second diode D2.
[0024] Based on the above design, when working, a Type-C interface of the Type-C data cable is connected to the connector port, the pins on the first inner surface of the Type-C interface correspond one-to-one to and are connected to the pins on the first surface of the connector port, the pins on the second inner surface of the Type-C interface correspond one-to-one to and are connected to the pins on the second surface of the connector port, the controller controls the two connection switches and the second switch to be closed and turned on, and the second power supply voltage is input. When the input of the in-phase input terminal of the operational amplifier connected to the fifth pin on the first surface of the connector port is not pulled down, the fifth pin on the first inner surface of the Type-C interface connected to the fifth pin on the first surface of the connector port is not connected to a pull-down resistor. At this time, the input voltage of the in-phase input terminal of the operational amplifier is not less than the first power supply voltage connected to the inverting input terminal, and the output terminal of the operational amplifier outputs a high level and is input to the decoder through the first input terminal of the decoder; when the input of the in-phase input terminal of the operational amplifier connected to the fifth pin on the second surface of the connector port is Pull down, then the fifth pin of the second inner surface of the Type-C interface connected to the fifth pin of the second surface of the connector port is connected to a pull-down resistor, at this time, the input voltage of the corresponding operational amplifier's in-phase input terminal is less than the first power supply voltage connected to the inverting input terminal, and the output terminal of the corresponding operational amplifier outputs a low level and is input to the decoder through the second input terminal of the decoder; the decoder knows that the fifth pin of the first inner surface of the Type-C interface is not the connection voltage terminal of the Type-C interface according to the high level obtained at the first input terminal, and knows that the fifth pin of the second inner surface of the Type-C interface is the connection voltage terminal of the Type-C interface according to the low level obtained at the second input terminal, then the processing and analysis know that the first inner surface of the Type-C interface connected to the connector port at this time is the A side of the Type-C interface and the second inner surface of the Type-C interface is the B side of the Type-C interface, that is, the A side of the Type-C interface is on the top and the B side is on the bottom, which is the front side, and the front indicator light of the control indicator light group works;
[0025] When the input of the in-phase input terminal of the operational amplifier connected to the fifth pin of the first surface of the connector port is pulled down, the fifth pin of the first inner surface of the Type-C interface connected to the fifth pin of the first surface of the connector port is connected to a pull-down resistor. At this time, the input voltage of the in-phase input terminal of the operational amplifier is less than the first supply voltage connected to the inverting input terminal, and the output terminal of the operational amplifier outputs a low level and is input to the decoder through the first input terminal of the decoder; when the input of the in-phase input terminal of the operational amplifier connected to the fifth pin of the second surface of the connector port is not pulled down, the fifth pin of the second inner surface of the Type-C interface connected to the fifth pin of the second surface of the connector port is not connected to a pull-down resistor. At this time, the input voltage of the in-phase input terminal of the corresponding operational amplifier is not less than The first power supply voltage connected to the inverting input terminal, the corresponding output terminal of the operational amplifier outputs a high level and is input to the decoder through the second input terminal of the decoder; the decoder knows that the fifth pin of the first inner surface of the Type-C interface is the connection voltage terminal of the Type-C interface according to the low level obtained at the first input terminal, and knows that the fifth pin of the second inner surface of the Type-C interface is not the connection voltage terminal of the Type-C interface according to the high level obtained at the second input terminal, then the processing and analysis know that the first inner surface of the Type-C interface connected to the connector port at this time is the B surface of the Type-C interface and the second inner surface of the Type-C interface is the A surface of the Type-C interface, that is, the B surface of the Type-C interface is on the top and the A surface is on the bottom, which is the reverse side, and the reverse indicator light of the control indicator light group works;
[0026] When the inputs of the in-phase input terminals of the two operational amplifiers are not pulled down, the fifth pins of the two inner surfaces of the Type-C interface are not connected to the pull-down resistor. At this time, the input voltages of the in-phase input terminals of the two operational amplifiers are not less than the first power supply voltage connected to the inverting input terminals. The output terminals of the two operational amplifiers output a high level and are input to the decoder through the first input terminal and the second input terminal of the decoder. The decoder learns from the high level obtained at the two input terminals that the fifth pins of the first inner surface and the second inner surface of the Type-C interface are not the connection voltage terminals of the Type-C interface. Then, the processing and analysis learn that the first inner surface of the Type-C interface connected to the connector port is the A side of the Type-C interface and the second inner surface of the Type-C interface is the A side of the Type-C interface, that is, both inner surfaces of the Type-C interface are the A side and cannot be identified, and the failure indicator of the control indicator group works;
[0027] When the inputs of the in-phase input terminals of the two operational amplifiers are pulled down, the fifth pins of the two inner surfaces of the Type-C interface are connected to pull-down resistors. At this time, the input voltages of the in-phase input terminals of the two operational amplifiers are both lower than the first power supply voltage connected to the inverting input terminals. The output terminals of the two operational amplifiers output low levels and are input to the decoder through the first input terminal and the second input terminal of the decoder. The decoder learns from the high levels obtained at the two input terminals that the fifth pins of the first inner surface and the second inner surface of the Type-C interface are both connection voltage terminals of the Type-C interface. Then, the processing and analysis learns that the first inner surface of the Type-C interface connected to the connector port is the B surface of the Type-C interface and the second inner surface of the Type-C interface is the B surface of the Type-C interface, that is, both inner surfaces of the Type-C interface are the B surface, which cannot be identified, and the failure indicator of the control indicator group works;
[0028] After the indicator light group works for a preset time, the controller controls the connection switch and the second switch to be turned off, and the front and back side identification circuit of the Type-C data line interface stops working.
[0029] Specifically, the utility model also discloses a device for identifying the front and back sides of a Type-C data line interface, comprising a controller and two of the above-mentioned front and back side identification circuits of the Type-C data line interface, wherein the two Type-C data line interface front and back side identification circuits are connected to the controller. The Type-C data line interface front and back side identification circuits correspond one to one to the Type-C interface of the Type-C data line. Preferably, the Type-C data line may include two of the Type-C interfaces, the two Type-C interfaces are located at both ends of the cable of the Type-C data line, and the connector ports of the two Type-C data line interface front and back side identification circuits may be respectively connected to the two Type-C interfaces. Among them, the device for identifying the front and back sides of the Type-C data line interface is highly practical by setting two Type-C data line interface front and back side identification circuits to simultaneously identify the front and back sides of the two Type-C interfaces of the Type-C data line.
[0030] In summary, the Type-C data line interface front and back identification circuit of the utility model is provided with a connector port, two comparison units, a decoder and an indicator light group, and the Type-C interface is connected to the connector port, the pins of the first inner surface and the second inner surface of the Type-C interface are respectively connected to the pins of the first surface and the second surface of the connector port, and the fifth pin of the first surface and the fifth pin of the second surface of the connector port are respectively connected to the two comparison units, and cooperate with the decoder to judge the position of the connection voltage end of the Type-C interface through the output of the corresponding comparison unit, so as to process and analyze the front and back situation of the Type-C interface connected to the connector port, and control the indicator light group to work to prompt the user, and the two comparison units are independent of each other, so that the identification and judgment of the two inner surfaces of the Type-C interface of the Type-C data line are independently operated to prevent mutual interference, and the circuit is simple and has strong compatibility. The Type-C data line interface front and back identification device of the utility model also has the above functions and is highly practical.
[0031] The above is only a specific implementation of the utility model, but the protection scope of the utility model is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the utility model, and these modifications or replacements should be included in the protection scope of the utility model. Therefore, the protection scope of the utility model should be based on the protection scope of the claims.
Claims
1. A Type-C data line interface front and back identification circuit, characterized in that: The device is electrically connected to a Type-C interface of a Type-C data line, wherein the front and back side identification circuit of the Type-C data line interface comprises a connector port, two comparison units, a decoder and an indicator light group, wherein the Type-C interface is connected to the connector port, the pins on the two inner surfaces of the Type-C interface correspond to and are connected to the pins on the two surfaces of the connector port in a one-to-one manner, the fifth pin on the first surface of the connector port is connected to one of the comparison units, the fifth pin on the second surface of the connector port is connected to the other comparison unit, the output ends of the two comparison units are respectively connected to the first input end and the second input end of the decoder, and the output end of the decoder is connected to the indicator light group.
2. The Type-C data line interface front and back identification circuit according to claim 1, characterized in that: The comparison unit includes a connecting switch and an operational amplifier, the output end of the connecting switch is connected to the non-inverting input end of the operational amplifier, the inverting input end of the operational amplifier is connected to a first power supply voltage, the non-inverting input end of the operational amplifier is connected to a connecting resistor having one end connected to a second power supply voltage, the output end of the operational amplifier is connected to the decoder, and the voltage value of the first power supply voltage is less than the voltage value of the second power supply voltage.
3. The Type-C data line interface front and back identification circuit according to claim 2, characterized in that: A grounding capacitor is electrically connected between the output end of the operational amplifier and the decoder.
4. The Type-C data line interface front and back identification circuit according to claim 2, characterized in that: The voltage value of the first power supply voltage is 2.5V, and the voltage value of the second power supply voltage is 3V.
5. The Type-C data line interface front and back identification circuit according to claim 2, characterized in that: The positive terminal of the operational amplifier is connected to the third power supply voltage, and the negative terminal of the operational amplifier is grounded.
6. The Type-C data line interface front and back identification circuit according to claim 2, characterized in that: The fifth pin on the first surface of the connector port is connected to the input end of the connection switch of one of the comparison units, and the fifth pin on the second surface of the connector port is connected to the input end of the connection switch of another comparison unit.
7. The Type-C data line interface front and back identification circuit according to claim 2, characterized in that: The enabling end of the connection switch is connected to the controller, and the power supply voltage end of the decoder is connected to the third power supply voltage through the second switch.
8. The Type-C data line interface front and back identification circuit according to claim 1, characterized in that: The indicator light group includes a front indicator light, a back indicator light and a failure indicator light. The front indicator light is connected to the first output end of the decoder through a first resistor, the back indicator light is connected to the second output end of the decoder through a second resistor, and the failure indicator light is connected to the third output end and the fourth output end of the decoder through a third resistor.
9. The Type-C data line interface front and back identification circuit according to claim 8, characterized in that: The front indicator light, the back indicator light and the failure indicator light are all light emitting diodes. The third output end of the decoder is connected to one end of the third resistor via a first diode. The fourth output end of the decoder is connected to one end of the third resistor via a second diode.
10. A device for identifying the front and back sides of a Type-C data line interface, characterized in that: It comprises a controller and a Type-C data line interface front and back side identification circuit as described in any one of claims 1 to 9, wherein the Type-C data line interface front and back side identification circuit is connected to the controller.