Terminal and insertion detection system
By using a metal piece with support function in a USB socket for insertion detection, the problem of CC pin corrosion and insertion detection occupies signal pins is solved, and the reliability and charging efficiency of the USB interface are improved.
Patent Information
- Application Number
- CN202411177532.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2024-11-29
AI Technical Summary
The CC pin of the USB interface has a risk of corrosion when it is charged for a long time, which affects the reliability of the USB interface. The signal function pin occupied during the insertion detection process will affect the charging power and reliability.
The metal sheet with support function is used for insertion detection. By detecting the metal sheet with grounded output target signal, the external device detects that the pin is powered on, avoiding the pin being charged all the time, and the insertion detection is realized without occupying the signal function pin.
It effectively avoids the corrosion risk of USB sockets, improves the reliability of the USB interface, and does not affect the original charging and communication functions.
Smart Images

Figure CN119046072A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of electronic technology, and specifically relates to a terminal and an insertion detection system. Background Art
[0002] In the use of terminal devices such as mobile phones, in order to realize the plug-and-play of the USB (Universal Serial Bus) interface, the CC (Configuration Channel) pin of the USB interface is often energized to detect the type of the inserted external device.
[0003] In the related art, since the USB interface is exposed to the outside for a long time, foreign matter or liquid may enter the USB interface, and the CC pin that is often charged has a risk of corrosion, affecting the reliability of the USB interface. Summary of the invention
[0004] The present application provides a terminal and an insertion detection system, which at least solves the problem that the normally-energized pins of a USB interface have a corrosion risk, thereby affecting the reliability of the USB interface.
[0005] In a first aspect, the present application provides a terminal, comprising: a USB socket, an insertion detection circuit, and a processor; the USB socket comprises an external device detection pin and a metal sheet for supporting the external device detection pin;
[0006] One end of the insertion detection circuit is connected to the metal sheet, the other end of the insertion detection circuit is connected to the processor, and the processor is coupled to the external device detection pin;
[0007] The insertion detection circuit is used to output a target signal to a processor when it is detected that the metal sheet is grounded, and the target signal is used to trigger the external device detection pin to be powered on.
[0008] In a second aspect, the present application provides an insertion detection system, comprising: a USB plug and a terminal as in the first aspect; the USB plug is used to connect to a USB socket.
[0009] In an embodiment of the present application, the terminal includes a USB socket, an insertion detection circuit and a processor; the USB socket includes an external device detection pin and a metal sheet for supporting the external device detection pin; one end of the insertion detection circuit is connected to the metal sheet, the other end of the insertion detection circuit is connected to the processor, and the processor is coupled to the external device detection pin; the insertion detection circuit is used to output a target signal to the processor when the metal sheet is detected to be grounded, and the target signal is used to trigger the external device detection pin to be powered on. In this way, the terminal can use a metal sheet with a supporting function to perform insertion detection and trigger the external device detection pin to be powered on. Since the external device detection pin does not need to be kept charged all the time, the risk of corrosion of the USB socket caused by the external device detection pin being charged all the time is avoided. In addition, since the present application uses a metal sheet with a supporting function for insertion detection, it is not necessary to occupy the signal function pin of the USB socket for insertion detection, which does not affect the original function of the USB socket and improves reliability. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0011] Figure 1 A schematic diagram of a terminal provided in an embodiment of the present application;
[0012] Figure 2 A schematic diagram of the connection between a USB socket and a USB plug on a terminal provided in an embodiment of the present application;
[0013] Figure 3 A schematic diagram of the connection between a USB socket and a USB plug on another terminal provided in an embodiment of the present application;
[0014] Figure 4 A schematic diagram of the connection between a USB socket and a USB plug on another terminal provided in an embodiment of the present application;
[0015] Figure 5 A schematic diagram of the connection between a USB socket and a USB plug on another terminal provided in an embodiment of the present application;
[0016] Figure 6 A schematic diagram of the connection between a USB socket and a USB plug on another terminal provided in an embodiment of the present application;
[0017] Figure 7 A schematic diagram of the connection between a USB socket and a USB plug on another terminal provided in an embodiment of the present application;
[0018] Figure 8 A schematic diagram of the connection between a USB socket and a USB plug on another terminal provided in an embodiment of the present application;
[0019] Fig. 9 A schematic diagram of an insertion detection circuit on a terminal provided in an embodiment of the present application;
[0020] Fig.10 A schematic diagram of another insertion detection circuit on a terminal provided in an embodiment of the present application;
[0021] Fig.11 A schematic diagram of a USB socket on a terminal provided in an embodiment of the present application;
[0022] Fig.12 A schematic diagram of a USB plug provided in an embodiment of the present application;
[0023] Fig.13 A schematic diagram of the detection of the normally-charged CC pin in the related art;
[0024] Fig.14 A schematic diagram of triggering CC pin detection provided in an embodiment of the present application.
[0025] Description of reference numerals:
[0026] 100-terminal; 110-USB socket; 111-external device detection pin; 112-metal sheet; 112a-first metal sheet; 112b-second metal sheet; P-target pin; P1-first target pin; P2-second target pin; 113-tongue; 120-insertion detection circuit; 1201-first insertion detection circuit; 1202-second insertion detection circuit; 121-comparator circuit; R1-first resistor; R2-second resistor; R3-third resistor; R4-fourth resistor; V1-first power supply; 122-sampling circuit; R5-fifth resistor; R6-sixth resistor; V2-second power supply; 130-processor; 140-CC control circuit; 200-USB plug; C1-first metal contact; C2-second metal contact; 210-locking bracket. DETAILED DESCRIPTION
[0027] The embodiments of the present application will be described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and should not be construed as limitations on the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0028] The term "first" or "second" in the specification and claims of this application may include one or more of the features explicitly or implicitly. In the description of this application, unless otherwise specified, "plurality" means two or more. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally means that the objects connected before and after are in an "or" relationship.
[0029] In the description of the present application, it should be understood that the terms "inside", "outside", etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0030] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "connected" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0031] In actual applications, the USB socket in the terminal can be taken as an example of a USB Type-C female interface socket. In related technologies, it is generally assumed that the CC pin is always charged. Fig.13 Regardless of whether an external device is plugged in, the CC pin is always under power detection. When foreign matter (liquid) enters the USB socket, the corrosion of the CC pin is accelerated, thereby reducing the reliability of the USB socket.
[0032] When the terminal is charged through the USB socket, there are originally 4 ground pins as charging return. Assuming that the impedance of each ground pin is R, the equivalent impedance of 4 ground pins as charging return path is R / 4. In another prior art, if the B12 pin in the USB socket is used for insertion detection, the B12 pin originally functions as a ground pin, and the charging return path is changed from 4 to 3, and the equivalent impedance becomes R / 3, and the impedance increases to 1.33 times the original impedance, and the impedance increases by 33%. Under the same charging current, the heat generation power also increases by 33%, which limits the size of the charging power and affects the upper limit of the USB interface charging power. Under the same charging current, the heat generation at the USB socket position increases, increasing the risk of burning the USB socket due to heat generation, affecting the reliability of the USB socket.
[0033] In order to avoid corrosion of the USB socket without affecting the original communication and charging functions of the USB socket, the embodiment of the present application can use the metal sheet in the tongue of the USB socket as an insertion detection function without changing any original signal functions in the USB socket. The metal sheet was originally used to support the tongue to prevent the tongue from breaking. The embodiment of the present application can expand the use function of the metal sheet. Since there is no need to occupy the USB signal function pin (such as the B12 pin) to implement the insertion detection function, it does not affect the original communication and charging functions of the USB socket. Since the embodiment of the present application uses the metal sheet in the USB socket as a trigger for the insertion of an external device, there are metal contacts inside the USB socket of the external device. When the external device (data cable or charging cable or other USB interface device) is inserted, the metal sheet is connected through the metal contacts of the USB plug of the external device. After the connection, the signal on the metal sheet is detected. Refer to Fig.14 When an external device is detected to be inserted, the CC pin detection is started to detect the type of external device and realize the corresponding functions of external device such as charging or data transmission. In this way, before the insertion detection circuit detects the insertion of an external device, the CC control circuit can not output a signal to trigger the CC pin to power on, ensuring that the CC pin is not charged and avoiding corrosion of the USB socket. At the same time, the metal sheet used for insertion detection is far away from the actual signal function pin on the USB socket to avoid corrosion of the signal function pin of the USB socket.
[0034] The following is combined with Figure 1-Figure 14 The terminal and insertion detection system provided in the embodiments of the present application are described.
[0035] like Figure 1 As shown, an embodiment of the present application provides a terminal 100, which may include: a USB socket 110, an insertion detection circuit 120 and a processor 130;
[0036] The USB socket 110 may include an external device detection pin 111 and a metal sheet 112 for supporting the external device detection pin;
[0037] One end of the insertion detection circuit 120 is connected to the metal sheet 112, and the other end of the insertion detection circuit 120 is connected to the processor 130, and the processor 130 is coupled to the external device detection pin 111;
[0038] The insertion detection circuit 120 is used to output a target signal to the processor 130 when it is detected that the metal sheet 112 is grounded, and the target signal is used to trigger the external device detection pin 111 to be powered on.
[0039] In an embodiment of the present application, the USB socket 110 may include a tongue 113, the tongue 113 is made of an insulating material such as plastic, and a plurality of signal function pins may be arranged on the two side surfaces of the tongue 113, and the external device detection pin 111 may be at least one of the plurality of signal function pins. A portion of the metal sheet 112 may be embedded in the tongue 113 to support the tongue 113 and prevent the tongue 113 from breaking. In other words, the metal sheet 112 may be used to support the external device detection pin 111, and the metal sheet 112 and the external device detection pin 111 are isolated by the insulating tongue, so as to achieve electrical isolation between the metal sheet and the external device detection pin 111.
[0040] In the embodiment of the present application, the metal sheet 112 has conductive properties and can be used for the insertion detection function of external devices. The specific shape and size of the metal sheet can be set according to actual needs, and the present application does not impose any specific restrictions.
[0041] In the embodiment of the present application, the metal sheet 112 may have a target pin P, and one end of the insertion detection circuit 120 may be connected to the metal sheet 112 through the target pin P, and the insertion detection circuit 120 is used to detect whether an external device is inserted into the USB socket 110. For example, under normal conditions, the metal sheet connected to the insertion detection circuit 120 is in a charged state, and when the USB plug is inserted into the USB socket 110, the metal sheet 112 in the USB socket 110 can be connected to the metal conductor on the USB plug (such as the metal contact in the USB plug, the metal shell on the surface of the USB plug, etc.) and grounded. Based on this, when the insertion detection circuit 120 detects that the metal sheet 112 is grounded, it indicates that the external device is inserted into the USB socket 110, and outputs a target signal. The target signal can be used to trigger the external device detection pin to be energized.
[0042] In an embodiment of the present application, the external device detection pin 111 can be used to detect the type of the inserted external device in the power-on state, such as the communication type or the charging type, etc., and the present application does not limit this.
[0043] In the embodiment of the present application, the USB socket 110 may be a USB Type-C interface socket, and the external device detection pin 111 may be a CC1 pin and / or a CC2 pin in the USB Type-C interface socket.
[0044] Of course, in other embodiments, the USB socket 110 may be other types of sockets, and the external device detection pin 111 may be other pins, and the present application does not limit this.
[0045] In the embodiment of the present application, a metal sheet 112 with a supporting function is used to detect the insertion of an external device. When the metal sheet is detected, the insertion of the external device is detected, thereby triggering the external device detection pin 111 to be energized, which can prevent the external device detection pin 111 from being constantly energized. Since the external device detection pin 111 does not need to remain energized all the time, the time that the external device detection pin 111 is energized is reduced, and the risk of corrosion of the USB socket 110 caused by the external device detection pin 111 being constantly energized is avoided, thereby improving reliability.
[0046] Furthermore, although the metal sheet 112 is in a charged state during the insertion detection process, the metal sheet 112 used for insertion detection is far away from the actual signal function pins on the USB socket 110, and electrical isolation is achieved through the insulating tongue. The charged metal sheet 112 is unlikely to cause corrosion risk to the signal function pins of the USB socket, and has high reliability.
[0047] Furthermore, if the actual signal function pin (e.g., ground pin) of the USB socket is occupied for insertion detection, when the signal function pin detects that an external device is inserted, the external device detection pin is triggered to be energized, which may weaken the original function of the signal function pin (e.g., the overcurrent capacity of the ground pin), affecting the reliability of the USB interface. However, since the present application uses a metal sheet 112 with a supporting function for insertion detection, the insertion detection function of the metal sheet 112 is expanded, and the original supporting function of the metal sheet 112 is not affected. At the same time, there is no need to occupy the signal function pin (e.g., ground pin) of the USB socket 110 for insertion detection, which does not affect the original communication or charging function of the USB socket 110, thereby improving reliability.
[0048] According to the terminal provided by the embodiment of the present application, the terminal includes a USB socket, an insertion detection circuit and a processor; the USB socket includes an external device detection pin and a metal sheet for supporting the external device detection pin; one end of the insertion detection circuit is connected to the metal sheet, the other end of the insertion detection circuit is connected to the processor, and the processor is coupled to the external device detection pin; the insertion detection circuit is used to output a target signal to the processor when the metal sheet is detected to be grounded, and the target signal is used to trigger the external device detection pin to be powered on. In this way, the terminal can use a metal sheet with a supporting function to perform insertion detection and trigger the external device detection pin to be powered on. Since the external device detection pin does not need to be kept in a charged state all the time, the risk of corrosion of the USB socket caused by the external device detection pin being always powered is avoided. In addition, since the present application uses a metal sheet with a supporting function to perform insertion detection, there is no need to occupy the signal function pin of the USB socket for insertion detection, which does not affect the original function of the USB socket and improves reliability.
[0049] In actual applications, when the USB socket is connected to the USB plug, the metal sheet can be grounded by being connected to the metal contact in the USB plug. Based on this, when the insertion detection circuit detects that the metal sheet is grounded, it detects that the external device is inserted. The metal sheet is grounded by being connected to the metal contact in the USB plug, which can be the metal contact in the USB plug itself being grounded, or the metal contact being grounded through a conductor in the USB socket. The following is an example.
[0050] In a specific embodiment, Figure 2 As shown, the metal sheet may include a first metal sheet 112a and a second metal sheet 112b; the first metal sheet 112a and the second metal sheet 112b are separately arranged, the first metal sheet 112a is connected to the insertion detection circuit 120, and the second metal sheet 112b is grounded;
[0051] The first metal sheet 112 a may be grounded by being electrically connected to the second metal sheet 112 b .
[0052] The first metal sheet 112 a may have a first target pin P1 , and the first metal sheet 112 a is connected to the insertion detection circuit 120 via the first target pin P1 .
[0053] For example, Figure 2 As shown, the external device has a USB plug 200 adapted to the USB socket 110 , and the USB plug 200 includes metal contacts, and the metal contacts include a first metal contact C1 and a second metal contact C2 ; the first metal contact C1 is connected to the second metal contact C2 .
[0054] In the embodiment of the present application, in the USB socket 110 , the first metal sheet 112 a and the second metal sheet 112 b are separately provided, and in a normal state, the first metal sheet 112 a and the second metal sheet 112 b are not connected.
[0055] When the USB plug 200 is inserted into the USB socket 110, the first metal sheet 112a is connected to the first metal contact C1, and the second metal sheet 112b is connected to the second metal contact C2. The first metal sheet 112a can be grounded by being connected to the first metal contact C1, the second metal contact C2 and the second metal sheet 112b.
[0056] For another example, in other embodiments (not shown), the external device may have a USB plug that is compatible with the USB socket, and the USB plug includes a metal shell. When the USB socket is connected to the USB plug, the first metal sheet is conductively connected to the metal shell, and the second metal sheet is conductively connected to the metal shell. The first metal sheet can be grounded by being conductively connected to the metal shell of the USB plug and the second metal sheet.
[0057] In the embodiment of the present application, when the insertion detection circuit 120 detects that the first metal sheet 112a is grounded by being connected to the second metal sheet 112b, it detects that an external device is inserted into the USB socket 110, and outputs a target signal to trigger the external detection pin 111 to be powered on. Thereafter, the external detection pin 111 can be used to detect the type of the inserted external device when it is powered on, thereby avoiding the risk of corrosion of the USB socket 110 due to the external device detection pin 111 being powered on all the time, thereby improving reliability.
[0058] It should be noted that in the embodiment of the present application, when the insertion of an external device is detected, the grounding signal of the first metal sheet is provided by the second metal sheet 112b in the USB socket 110, and there is no need for the USB plug 200 to provide a grounding signal. In this way, since the insertion detection function does not need to rely on the USB plug 200 to provide a grounding signal, the difficulty of the insertion detection circuit 120 to perform insertion detection is reduced, and the requirements for the USB plug adapted to the USB socket are relatively low.
[0059] In other embodiments, the metal contacts in the USB plug can be grounded. Since the metal contacts in the USB plug are grounded, the metal sheet can be grounded by being connected to the metal contacts in the USB plug.
[0060] For example, refer to Figure 3 In the embodiment of the present application, when the insertion detection circuit 120 detects that the first metal sheet 112a is grounded by being connected to the metal contact, it detects that an external device is inserted into the USB socket 110, and outputs a target signal to trigger the external detection pin 111 to be powered on. Thereafter, the external detection pin 111 can be used to detect the type of the inserted external device when it is powered on, thereby avoiding the risk of corrosion of the USB socket 110 due to the external device detection pin 111 being powered on all the time, thereby improving reliability.
[0061] It should be noted that in the embodiment of the present application, when it is detected that an external device is plugged in, the ground signal of the first metal sheet 112 a is provided by a metal contact (eg, the first metal contact C1 ) in the USB plug 200 .
[0062] In this way, when the USB socket is connected to the USB plug, since the first metal sheet 112a can be directly grounded through the first metal contact C1 without being connected to the ground via the first metal contact C1, the second metal contact C2 and the second metal sheet 112b, the path required to detect the grounding signal is shorter, and the grounding of the first metal sheet 112a can be detected more quickly, thereby improving the insertion detection speed of the insertion detection circuit 120.
[0063] The metal contacts in the USB plug 200 may include a first metal contact C1 and a second metal contact C2; the first metal contact C1 and the second metal contact C2 are both grounded. There are different implementations for grounding the first metal contact C1 and the second metal contact C2.
[0064] For example, refer to Figure 3 , when the first metal contact C1 and the second metal contact C2 are connected, at least one of the first metal contact C1 and the second metal contact C2 is grounded. For example, when the first metal contact C1 and the second metal contact C2 are connected by metal, the first metal contact C1 is grounded, and the second metal contact C2 can be grounded through the first metal contact C1. Alternatively, when the first metal contact C1 and the second metal contact C2 are not connected by metal, the second metal contact C2 is grounded, and the first metal contact C1 can be grounded through the second metal contact C2.
[0065] For example, refer to Figure 4 When the first metal contact C1 and the second metal contact C2 are not conductive, the first metal contact C1 and the second metal contact C2 may be grounded, respectively. For example, the first metal contact C1 is grounded, and the second metal contact C2 is grounded.
[0066] In the embodiments of the present application, Figure 3 and Figure 4 As shown, the metal sheet 112 in the USB socket 110 includes a first metal sheet 112 a and a second metal sheet 112 b ; the first metal sheet 112 a is connected to the insertion detection circuit 120 .
[0067] The first metal sheet 112 a may have a first target pin P1 ; the first metal sheet 112 a may be connected to the insertion detection circuit 120 via the first target pin P1 .
[0068] When the USB plug 200 is inserted into the USB socket 110, the first metal sheet 112a is connected to the first metal contact C1, and the second metal sheet 112b is connected to the second metal contact C2. Since the first metal contact C1 in the USB plug is grounded, the first metal sheet 112a is grounded by being connected to the first metal contact C1 in the USB plug 200.
[0069] Of course, in other embodiments (not shown), when the USB plug 200 has the function of forward and reverse insertion, when the USB plug 200 is inserted into the USB socket 110, the first metal sheet 112a can also be connected to the second metal contact C2, and the second metal sheet 112b is connected to the first metal contact C1; since the second metal contact C2 in the USB plug is grounded, the first metal sheet 112a is grounded by being connected to the second metal contact C2 in the USB plug 200.
[0070] Thus, in the embodiment of the present application, when the insertion detection circuit 120 detects that the first metal sheet 112a is grounded by being connected to the first metal contact C1 or the second metal contact C2, it detects that an external device is inserted into the USB socket 110, and outputs a target signal to trigger the external detection pin 111 to be powered on. Thereafter, the external detection pin 111 can be used to detect the type of the inserted external device when it is powered on, thereby avoiding the risk of corrosion of the USB socket 110 due to the external device detection pin 111 being powered on all the time, thereby improving reliability.
[0071] In another specific embodiment, in order to avoid poor contact affecting the accuracy of insertion detection, the insertion detection circuit 120 can be connected to multiple test points (ie, multiple target pins) to improve the accuracy of insertion detection. Figure 5 and Figure 6 As shown, the second metal sheet 112 b is also connected to the insertion detection circuit 120 .
[0072] Among them, the metal sheet 112 can have multiple target pins, for example, the first metal sheet 112a can have a first target pin P1, and the second metal sheet 112b can have a second target pin P2; the first metal sheet 112a can be connected to the insertion detection circuit 120 through the first target pin P1; the second metal sheet 112a can be connected to the insertion detection circuit 120 through the second target pin P2.
[0073] When the USB socket 110 is connected to the USB plug 200 , the first metal sheet 112 a is electrically connected to the first metal contact C1 , and the second metal sheet 112 b is electrically connected to the second metal contact C2 .
[0074] When the USB socket 110 is connected to the USB plug 200, since the first metal contact C1 and the second metal contact C2 in the USB plug are grounded, the first metal sheet 112a can be grounded by being connected to the first metal contact C1 in the USB plug 200, and the second metal sheet 112b can be grounded by being connected to the second metal contact C2 in the USB plug 200.
[0075] Thus, in the embodiment of the present application, when the insertion detection circuit 120 detects that the first metal sheet 112a / the second metal sheet 112b is grounded by being connected to the first metal contact C1 / the second metal contact C2, it detects that an external device is inserted into the USB socket 110, and outputs a target signal to trigger the external detection pin 111 to be powered on. Thereafter, the external detection pin 111 can be used to detect the type of the inserted external device when it is powered on, thereby avoiding the risk of corrosion of the USB socket 110 due to the external device detection pin 111 being powered on all the time, thereby improving reliability.
[0076] Furthermore, since the insertion detection circuit 120 of the embodiment of the present application can perform insertion detection on multiple measurement points (for example, the first target pin P1 of the first metal sheet 112a and the second target pin P2 of the second metal sheet 112b), it can avoid that the first metal contact C1 or the second metal contact C2 has poor contact with the USB socket 110 and affects the accuracy of the insertion detection, thereby improving the accuracy of the insertion detection.
[0077] In addition, in other embodiments of the present application, multiple insertion detection circuits may be provided to perform insertion detection on multiple measurement points respectively to improve the accuracy of insertion detection. Figure 7 and Figure 8 As shown, the insertion detection circuit may include a first insertion detection circuit 1201 and a second insertion detection circuit 1202. The first insertion detection circuit 1201 and the second insertion detection circuit 1202 may be two independent insertion detection circuits.
[0078] The metal sheet 112 in the USB socket 110 includes a first metal sheet 112 a and a second metal sheet 112 b . The first metal sheet 112 a is connected to the first insertion detection circuit 1201 ; and the second metal sheet 112 a is connected to the second insertion detection circuit 1202 .
[0079] The first metal sheet 112a may have a first target pin P1, and the second metal sheet 112b may have a second target pin P2; the first metal sheet 112a may be connected to the first insertion detection circuit 1201 via the first target pin P1; the second metal sheet 112b may be connected to the second insertion detection circuit 1202 via the second target pin P2.
[0080] When the USB socket 110 is connected to the USB plug 200 , the first metal sheet 112 a is electrically connected to the first metal contact C1 , and the second metal sheet 112 b is electrically connected to the second metal contact C2 .
[0081] When the USB socket 110 is connected to the USB plug 200, since the first metal contact C1 and the second metal contact C2 in the USB plug are grounded, the first metal sheet 112a can be grounded by being connected to the first metal contact C1 in the USB plug 200, and the second metal sheet 112b can be grounded by being connected to the second metal contact C2 in the USB plug 200.
[0082] Thus, in the embodiment of the present application, when the first insertion detection circuit 1201 detects that the first metal sheet 112a is grounded by being connected to the first metal contact C1, the first target signal is output to the processor 130; when the second insertion detection circuit 1202 detects that the second metal sheet 112b is grounded by being connected to the second metal contact C2, the second target signal is output to the processor 130; at this time, when it is detected that an external device is inserted into the USB socket 110, the processor 130 can trigger the external detection pin 111 to be powered on based on the first target signal and the second target signal, and then the external detection pin 111 can be used to detect the type of the inserted external device in the powered-on state, thereby avoiding the risk of corrosion of the USB socket 110 caused by the external device detection pin 111 being powered all the time, thereby improving reliability.
[0083] Furthermore, since the embodiment of the present application provides two insertion detection circuits to perform insertion detection on two measuring points respectively, when the two insertion detection circuits simultaneously detect the insertion of an external device, it is determined that an external device has been inserted, which can avoid the first metal contact C1 or the second metal contact C2 from having poor contact with the USB socket 110 and affecting the accuracy of the insertion detection, thereby improving the accuracy of the insertion detection.
[0084] In a specific embodiment, Figures 2 to 8 As shown, the terminal provided in the embodiment of the present application may further include: a CC control circuit 140; the processor 130 may be connected to the external device detection pin 111 through the CC control circuit 140;
[0085] The processor 130 may be configured to output a detection signal to the CC control circuit 140 based on the target signal. The CC control circuit 140 is configured to control the external device detection pin 111 to be powered on based on the detection signal, thereby detecting the type of the inserted external device.
[0086] For example, the USB socket 110 may be a USB Type-C female interface socket, the external device detection pin 111 may be a CC1 pin and a CC2 pin in the USB Type-C female interface socket, and the CC control circuit 140 may be used to control a CC control circuit of the CC1 pin and the CC2 pin. Furthermore, the processor 130 may be used to output a detection signal to the CC control circuit based on the target signal, and the CC control circuit controls the CC1 pin and the CC2 pin to be powered on based on the detection signal, thereby detecting the type of the inserted external device.
[0087] In this way, the external device detection pin 111 is controlled by the CC control circuit 140, thereby improving the reliability of triggering the external device detection pin 111 to be powered on.
[0088] In a specific embodiment, Fig.11 As shown, the USB socket 110 may further include a tongue piece 113 for carrying the external device detection pin 111; the metal piece 112 is used to support the tongue piece 113;
[0089] The tongue piece 113 has insulating properties, and a plurality of signal function pins are arranged on both side surfaces of the tongue piece 113 . The external device detection pin 111 may be at least one of the plurality of signal function pins.
[0090] Part of the metal sheet 112 may be embedded in the tongue 113 to support the tongue 113 and prevent the tongue 113 from breaking. The shape and size of the metal sheet 112 and the tongue 113 may be set according to actual needs, and this application does not limit this.
[0091] Among them, in the embodiment of the present application, while the insertion detection function of the metal sheet 112 is expanded, the supporting function of the metal sheet 112 is not affected.
[0092] In addition, when the insertion detection function of the metal sheet is expanded, the metal sheet 112 also has an interlocking function, and the interlocking function of the metal sheet 112 is not affected. The metal sheet is used to abut against the metal contacts in the USB plug 200 when the USB socket 110 is connected to the USB plug 200, so that the USB plug 200 and the USB socket 110 are in a locked state. Figure 2 The metal contacts in the USB plug include a first metal contact C1 and a second metal contact C2. The first metal sheet 111a abuts against the first metal contact C1 in the USB plug, and the second metal sheet 111b abuts against the second metal contact C2 in the USB plug, which limit the USB plug 200 and prevent the USB plug 200 from shaking and causing poor contact between the USB plug 200 and the USB socket 110.
[0093] In practical applications, the insertion detection circuit 120 may have different implementations, which are described below with examples.
[0094] In a specific embodiment, Fig. 9 As shown, the insertion detection circuit 120 includes a comparator circuit 121, a first power supply V1, a first resistor R1, a second resistor R2, a third resistor R3 and a fourth resistor R4;
[0095] The comparator circuit 121 has a first input terminal, a second input terminal and an output terminal;
[0096] The first input terminal of the comparator circuit 121 is connected to the first power supply V1 through the first resistor R1, and the first input terminal of the comparator circuit 121 is grounded through the second resistor R2;
[0097] The metal sheet may have a target pin P, and the second input terminal of the comparator circuit 121 is connected to the target pin P of the metal sheet; the target pin P of the metal sheet is connected to the first power source V1 through the third resistor R3, and the target pin P of the metal sheet is grounded through the fourth resistor R4;
[0098] The output terminal of the comparator circuit 121 is used to output a target signal when the metal sheet is grounded.
[0099] The target pin P of the metal sheet may include at least one of a first target pin P1 of the first metal sheet and a second target pin P2 of the second metal sheet.
[0100] In the embodiment of the present application, whether the external device is inserted can be determined by whether the level signal output by the comparator circuit 121 is a high level signal or a low level signal. For example, when the external device is not inserted, the comparator circuit 121 outputs a high level signal to the processor 130. When the external device is inserted, the target pin P of the metal sheet is grounded, and the signal input to the second input terminal of the comparator circuit 121 is detected to be 0, and the comparator circuit 121 outputs a target signal (e.g., a low level signal) to the processor 130.
[0101] In this way, the present application can directly determine whether the external device is inserted through whether the signal output by the comparator circuit is a high-level signal or a low-level signal, thereby realizing the insertion detection of the insertion detection circuit 120 .
[0102] In another specific embodiment, Fig.10 As shown, the insertion detection circuit 120 may include a sampling circuit 122, a second power supply V2, a fifth resistor R5, and a sixth resistor R6;
[0103] The sampling circuit 122 has an input terminal and an output terminal; the metal sheet has a target pin P; the input terminal of the sampling circuit 122 is connected to the target pin P of the metal sheet; the target pin P of the metal sheet is connected to the second power supply V2 through a fifth resistor R5, and the target pin P of the metal sheet is grounded through a sixth resistor R6;
[0104] The output terminal of the sampling circuit 122 is used to output a target signal when the metal sheet is grounded.
[0105] In the embodiment of the present application, whether the external device is inserted can be determined by whether the level sampled by the sampling circuit 122 is a high level or a low level. For example, the sampling circuit 122 can be an ADC (Analog Digital Converter) sampling circuit. When the external device is not inserted, the level sampled by the ADC sampling circuit is a high level, and a high level threshold is set at the same time. When the external device is inserted, the target pin P of the metal sheet is grounded, the level sampled by the ADC sampling circuit is a low level, and the comparator circuit 121 outputs the target signal to the processor 130.
[0106] Specifically, when an external device is inserted, the level sampled by the ADC sampling circuit is a low level, and the level threshold changes, thereby generating an interrupt signal to the processor 130. At the same time, the ADC sampling circuit can also output the sampling value (i.e., the specific level value sampled) to the processor 130. The processor 130 can identify the magnitude of the impedance of the output signal of the target pin P of the metal sheet to the ground by reading the sampling value, thereby determining whether the external device is inserted.
[0107] In this way, the present application can determine whether an external device is inserted by determining whether the level sampled by the sampling circuit 122 is a high level or a low level, thereby implementing insertion detection of the insertion detection circuit 120 .
[0108] Based on the same concept as the terminal provided in the above embodiment, the embodiment of the present application also provides an insertion detection system.
[0109] The insertion detection system provided in the embodiment of the present application may include: a USB plug and a terminal provided in any of the above embodiments; the USB plug is used to connect to a USB socket on the terminal.
[0110] For example, refer to Figures 2 to 8 The USB plug 200 includes metal contacts; the metal contacts include a first metal contact C1 and a second metal contact C2. When the USB plug 200 is connected to the USB socket 110, the metal sheet is grounded by being connected to the metal contacts in the USB plug.
[0111] In the embodiment of the present application, when the insertion detection circuit 120 detects that the metal sheet 112 is grounded by being connected to the metal contact in the USB plug, it detects that an external device is inserted into the USB socket 110, and outputs a target signal to trigger the external detection pin 111 to be energized. Thereafter, the external detection pin 111 can be used to detect the type of the inserted external device when it is energized, thereby avoiding the risk of corrosion of the USB socket 110 due to the external device detection pin 111 being energized all the time, thereby improving reliability.
[0112] In a specific embodiment, referring to Figure 2 The metal contacts in the USB plug 200 include a first metal contact C1 and a second metal contact C2; the first metal contact C1 is conductively connected to the second metal contact C2;
[0113] The metal sheet 112 includes a first metal sheet 112a and a second metal sheet 112b; the first metal sheet 112a is connected to the insertion detection circuit 120, and the second metal sheet 112b is grounded;
[0114] The first metal sheet 112 a may have a first target pin P1 , and the first metal sheet 112 a may be connected to the insertion detection circuit 120 via the first target pin P1 .
[0115] When the USB socket 110 is connected to the USB plug 200 , the first metal sheet 112 a is connected to the first metal contact C1 , the second metal sheet 112 b is connected to the second metal contact C2 , and the first metal sheet 112 a is grounded by being connected to the first metal contact C1 , the second metal contact C2 and the second metal sheet 112 b .
[0116] In this way, when the insertion of an external device is detected, the grounding signal of the first metal sheet is provided by the second metal sheet 112b in the USB socket 110, and there is no need for the USB plug 200 to provide a grounding signal. Since the insertion detection function does not need to rely on the USB plug 200 to provide a grounding signal, the difficulty of the insertion detection circuit 120 to perform insertion detection is reduced, and the requirements for the USB plug adapted to the USB socket are relatively low.
[0117] In another embodiment, referring to Figures 3 to 8 The metal contacts in the USB plug can be grounded. The metal contacts include a first metal contact C1 and a second metal contact C2. There are different implementations for grounding the first metal contact C1 and the second metal contact C2.
[0118] For example, refer to Figure 3 , Figure 5 or Figure 7 When the first metal contact C1 and the second metal contact C2 are conductively connected, at least one of the first metal contact C1 and the second metal contact C2 is grounded.
[0119] For example, when the first metal contact C1 and the second metal contact C2 are metal-conducted, the embodiment of the present application can be grounded at the position of the first metal contact C1, and the second metal contact C2 can be grounded through the first metal contact C1. Alternatively, the second metal contact C2 can be grounded, and the first metal contact C1 can be grounded through the second metal contact C2.
[0120] In addition, refer to Figure 4 , Figure 6 or Figure 8 In the case where the first metal contact C1 and the second metal contact C2 are not conductive, the first metal contact C1 and the second metal contact C2 may be grounded respectively.
[0121] In this way, since the grounding signal of the metal sheet is provided by the metal contact in the USB plug 200 when the external device is detected to be inserted, the path required for detecting the grounding signal is shorter, and the grounding of the target pin P of the metal sheet 112 can be detected more quickly, thereby improving the insertion detection speed of the insertion detection circuit 120.
[0122] In a specific embodiment, Fig.12 As shown, the USB plug 200 may further include a locking bracket 210, and the metal contact is located at the end of the locking bracket 210;
[0123] For example, the metal contacts include a first metal contact C1 and a second metal contact C2 , and the first metal contact C1 and the second metal contact C2 are located at two ends of the locking bracket 210 .
[0124] Specifically, the locking bracket 210 can be made of metal and has conductive properties. When the USB plug 200 is connected to the USB socket 110, the locking bracket 210 is used to abut against the metal sheet (such as the first metal sheet 112a and the second metal sheet 112b) through the metal contacts (such as the first metal contact C1 and the second metal contact C2) to lock the USB plug 200 and the USB socket 110. When the insertion detection function of the metal sheet and the metal contact is expanded, the interlocking function of the locking bracket 210 is not affected.
[0125] Furthermore, the two ends of the locking bracket 210 (e.g., the first metal contact C1 and the second metal contact C2) cooperate with the metal sheet to realize the insertion detection function, without occupying the actual signal function pins in the USB plug 200 to realize the insertion detection function, and does not affect the original communication function or charging function of the USB plug 200.
[0126] The shape and size of the locking bracket 210 can be set according to actual needs, and this application does not impose any restrictions on this.
[0127] In practical applications, in order to avoid corrosion of the USB socket without affecting the original communication and charging functions of the USB socket, the embodiment of the present application uses the metal sheet in the tongue of the USB socket as an insertion detection function without changing any original signal functions in the USB socket. The metal sheet was originally used to support the tongue to prevent the tongue from breaking. The embodiment of the present application can expand the use function of the metal sheet. Since there is no need to occupy the USB signal function pin (such as the B12 pin) to implement the insertion detection function, it does not affect the original communication and charging functions of the USB socket.
[0128] For example, the embodiment of the present application uses a metal sheet in a USB socket as a trigger for the insertion of an external device. Since there are metal contacts inside the USB socket of the external device, when the external device (data cable or charging cable or other USB interface device) is inserted, the metal sheet is connected through the metal contacts of the USB plug of the external device. After the connection, the signal on the metal sheet is detected. Fig.14 When an external device is detected to be inserted, the CC pin detection is started to detect the type of external device and realize the corresponding charging or data transmission functions of the external device.
[0129] In this way, before the insertion detection circuit detects that an external device is inserted, the CC control circuit may not output a signal to trigger the CC pin to be powered on, thereby ensuring that the CC pin is not powered and avoiding corrosion of the USB socket.
[0130] At the same time, the metal sheet used for insertion detection is far away from the actual signal function pins on the USB socket, so as to avoid corrosion of the signal function pins of the USB socket.
[0131] At the same time, compared with using a ground pin (such as a B12 pin) for insertion detection, since the embodiment of the present application does not occupy the ground pin for insertion detection, the charging overcurrent capability of the USB socket is not affected, heating at the USB socket position is avoided, and the reliability of the USB socket is improved.
[0132] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0133] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present application, and that the scope of the present application is defined by the claims and their equivalents.
Claims
1. A terminal, It is characterized in that include: A universal serial bus (USB) socket, an insertion detection circuit and a processor; the USB socket includes an external device detection pin and a metal sheet for supporting the external device detection pin; One end of the insertion detection circuit is connected to the metal sheet, the other end of the insertion detection circuit is connected to the processor, and the processor is coupled to the external device detection pin; The insertion detection circuit is used to output a target signal to the processor when it is detected that the metal sheet is grounded, and the target signal is used to trigger the external device detection pin to be powered on.
2. The terminal according to claim 1, It is characterized in that The metal sheet includes a first metal sheet and a second metal sheet; the first metal sheet is connected to the insertion detection circuit, and the second metal sheet is grounded; The first metal sheet is grounded by being electrically connected to the second metal sheet.
3. The terminal according to claim 1, It is characterized in that The metal sheet is grounded by being connected to a metal contact in a USB plug; wherein the metal contact in the USB plug is grounded.
4. The terminal according to claim 3, It is characterized in that The metal contacts include a first metal contact and a second metal contact; The metal sheet includes a first metal sheet and a second metal sheet; the first metal sheet is connected to the insertion detection circuit; The first metal sheet is electrically connected to the first metal contact, and the second metal sheet is electrically connected to the second metal contact; wherein both the first metal contact and the second metal contact are grounded.
5. The terminal according to claim 4, It is characterized in that The second metal sheet is connected to the insertion detection circuit.
6. The terminal according to claim 4, It is characterized in that The insertion detection circuit includes a first insertion detection circuit and a second insertion detection circuit; The first metal sheet is connected to the first insertion detection circuit; the second metal sheet is connected to the second insertion detection circuit.
7. The terminal according to claim 1, It is characterized in that The insertion detection circuit 120 includes a comparator circuit, a first power supply, a first resistor, a second resistor, a third resistor and a fourth resistor; The comparator circuit has a first input terminal, a second input terminal and an output terminal; The first input terminal of the comparator circuit is connected to the first power supply through a first resistor, and the first input terminal of the comparator circuit is grounded through a second resistor; The metal sheet has a target pin; the second input terminal of the comparator circuit is connected to the target pin of the metal sheet; the target pin of the metal sheet is connected to the first power supply through a third resistor, and the target pin of the metal sheet is grounded through a fourth resistor; The output terminal of the comparator circuit is used to output a target signal when the metal sheet is grounded.
8. The terminal according to claim 1, It is characterized in that include: The insertion detection circuit includes a sampling circuit, a second power supply, a fifth resistor and a sixth resistor; The sampling circuit has an input terminal and an output terminal; the metal sheet has a target pin; the input terminal of the sampling circuit is connected to the target pin of the metal sheet; the target pin of the metal sheet is connected to the second power supply through a fifth resistor, and the target pin of the metal sheet is grounded through a sixth resistor; The output end of the sampling circuit is used to output a target signal when the metal sheet is grounded.
9. The terminal according to claim 1, It is characterized in that Also includes: Channel configuration CC control circuit; The processor is connected to the external device detection pin through the control circuit; The processor is used to output a detection signal to the CC control circuit based on the target signal, and the CC control circuit is used to control the external device detection pin to be powered on based on the detection signal.
10. The terminal according to claim 1, It is characterized in that The USB socket further comprises a tongue piece for carrying the external device detection pin; the metal sheet is used to support the tongue piece; The metal sheet is used to abut against the metal contact in the USB plug when the USB socket is connected to the USB plug, so that the USB plug and the USB socket are in a locked state.
11. An insertion detection system, It is characterized in that include: A USB plug and a terminal as claimed in any one of claims 1 to 10; The USB plug is used to connect to the USB socket on the terminal.
12. The system according to claim 11, It is characterized in that The USB plug includes a metal contact; when the USB plug is connected to the USB socket, the metal sheet is grounded by being connected to the metal contact in the USB plug.
13. The system according to claim 12, It is characterized in that The metal contact includes a first metal contact and a second metal contact; the first metal contact is not conductive with the second metal contact, and the first metal contact and the second metal contact are grounded respectively.
14. The system according to claim 12, It is characterized in that The metal contact includes a first metal contact and a second metal contact; the first metal contact is electrically connected to the second metal contact, and at least one of the first metal contact and the second metal contact is grounded.
15. The system according to claim 12, It is characterized in that The metal contact includes a first metal contact and a second metal contact; the first metal contact is electrically connected to the second metal contact; The metal sheet includes a first metal sheet and a second metal sheet; the first metal sheet is connected to the insertion detection circuit, and the second metal sheet is grounded; When the USB plug is connected to the USB socket, the first metal sheet is conductively connected to the first metal contact, the second metal sheet is conductively connected to the second metal contact, and the first metal sheet is grounded by being conductively connected to the first metal contact, the second metal contact, and the second metal sheet.
16. The system according to claim 12, It is characterized in that The USB plug comprises a locking bracket, and the metal contact is located at the end of the locking bracket; When the USB plug is connected to the USB socket, the locking bracket is used to abut against the metal sheet through the metal contact so that the USB plug and the USB socket are in a locked state.
