Detection device, interface and terminal

By introducing a voltage detection and processing module into the Type C interface, a preset voltage value is generated and voltage conversion or comparison processing is performed to control the insertion detection scan of the CC pin, thus solving the electrochemical corrosion problem of the Type C interface and extending the interface life.

CN223756809UActive Publication Date: 2026-01-02CHENGDU TD TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202423286206.3
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2026-01-02
Estimated Expiration
2034-12-30

AI Technical Summary

Technical Problem

Type-C interfaces are susceptible to electrochemical corrosion during use, especially when immersed in salt solutions, where the insertion detection scan of the CC and CC2 pins exacerbates the corrosion.

Method used

By introducing a voltage detection module and a voltage processing module into the Type C interface, a preset voltage value is generated and voltage conversion or comparison is performed when a data line is inserted or not. The processing result is then sent to the processor to control the insertion detection scan of the CC pin, thereby reducing the number of scans.

Benefits of technology

It effectively alleviates the corrosion problem of Type C interfaces, reduces the number of insertion detection scans, reduces the occurrence of electrochemical corrosion, and extends the interface lifespan.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223756809U_ABST
    Figure CN223756809U_ABST
Patent Text Reader

Abstract

The embodiment of the utility model provides a detection device, an interface and a terminal. The detection device comprises a voltage detection module and a voltage processing module, one end of the voltage detection module is connected with a detection pin of the Type C interface and the input end of the voltage processing module; the output end of the voltage processing module is connected with the processor of the terminal; the voltage detection module is used for generating a preset voltage value and outputting a detection voltage corresponding to the detection pin to the voltage processing module when a data line is inserted into the Type C interface or not inserted into the Type C interface; the detection voltage is related to the preset voltage value and whether a data line is inserted into the Type C interface; and the voltage processing module is used for performing voltage conversion processing or voltage comparison processing on the detection voltage, generating a corresponding processing result and sending the processing result to the processor. The detection device provided by the embodiment of the utility model can reduce the number of times of insertion detection scanning and relieve corrosion of a Type C interface.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The embodiment of the utility model relates to terminal technical field, especially interface and terminal of a kind of detection device, and is related to terminal technical field. BACKGROUND

[0002] Terminal, such as mobile phone, generally has multiple interfaces, such as USB (Universal Serial Bus, Universal Serial Bus) Type C interface, for charging, connecting other devices and other functions.

[0003] At present, with the continuous use of terminal, there is a problem of Type C interface corrosion. For example, when a salt solution type liquid is immersed, the insertion detection scanning of the CC (Configuration Channel, Configuration Channel) 1 pin and the CC2 pin of Type C will cause electrochemical corrosion, resulting in corrosion of Type C, which is also the main reason for Type C interface corrosion.

[0004] Therefore, the current Type C interface corrosion problem needs to be further optimized. UTILITY MODEL CONTENT

[0005] The utility model provides a kind of detection device, interface and terminal, to solve the problem that current Type C interface corrosion problem needs further optimization.

[0006] The embodiment of the utility model provides a kind of detection device, comprising:

[0007] Voltage detection module and voltage processing module;

[0008] One end of the voltage detection module is connected with the detection pin of Type C interface and the input end of voltage processing module respectively;The detection pin is a certain ground pin in Type C interface, and the detection pin is not grounded;

[0009] The output end of the voltage processing module is connected with the processor of terminal;

[0010] The voltage detection module is used to generate a preset voltage value, and when Type C interface is inserted or not inserted with data line, the detection voltage corresponding to the detection pin is output to the voltage processing module;The detection voltage is related to the preset voltage value and whether Type C interface is inserted with data line;

[0011] The voltage processing module is used to perform voltage conversion processing or voltage comparison processing on the detection voltage, generate corresponding processing result, and send the processing result to the processor;The processor is used to start or prohibit Type C interface CC pin to carry out insertion detection scanning.

[0012] Optionally, the device as described above, the voltage detection module comprises: a first negative voltage power supply circuit and a pull-up resistor; the voltage processing module is a first negative-positive voltage conversion circuit;

[0013] An output end of the first negative voltage power supply circuit is connected with one end of the pull-up resistor;

[0014] The other end of the pull-up resistor is connected with a detection pin of a Type C interface and an input end of the first negative-positive voltage conversion circuit respectively;

[0015] An output end of the first negative-positive voltage conversion circuit is connected with the processor.

[0016] Optionally, the device as described above, the first negative voltage power supply circuit comprises:

[0017] A first voltage source and a first positive-negative voltage conversion circuit;

[0018] An output end of the first voltage source is connected with an input end of the first positive-negative voltage conversion circuit;

[0019] One end of the first positive-negative voltage conversion circuit is connected with the pull-up resistor.

[0020] Optionally, the device as described above, the voltage detection module comprises: a second voltage source and a first voltage generation circuit; the voltage processing module is a first comparator circuit;

[0021] An output end of the second voltage source is connected with an input end of the first voltage generation circuit;

[0022] Output ends of the first voltage generation circuit are connected with a detection pin of a Type C interface and an input end of the first comparator circuit respectively;

[0023] The second voltage source provides voltage for the first comparator circuit;

[0024] An output end of the first comparator circuit is connected with the processor.

[0025] Optionally, the device as described above, the first comparator circuit comprises:

[0026] A first comparator and a first reference voltage circuit;

[0027] An output end of the first reference voltage circuit is connected with a negative input end of the first comparator; the second voltage source provides voltage for the first reference voltage circuit and the first comparator;

[0028] Output ends of the first voltage generation circuit are connected with a positive input end of the first comparator;

[0029] An output terminal of the first comparator is connected with the processor.

[0030] Optionally, the apparatus as described above, the voltage detection module comprises:

[0031] The second negative voltage source circuit and the second voltage generation circuit; the voltage processing module comprises: a second negative-positive voltage conversion circuit and a second comparator circuit;

[0032] An output terminal of the second negative voltage source circuit is connected with an input terminal of the second voltage generation circuit;

[0033] An output terminal of the second voltage generation circuit is connected with a detection pin of the Type C interface and an input terminal of the second negative-positive voltage conversion circuit respectively;

[0034] An output terminal of the second negative-positive voltage conversion circuit is connected with an input terminal of the second comparator circuit;

[0035] The second negative voltage source circuit provides voltage for the second comparator circuit;

[0036] An output terminal of the second comparator circuit is connected with the processor.

[0037] Optionally, the apparatus as described above, the second negative voltage source circuit comprises:

[0038] A third voltage source and a second positive-negative voltage conversion circuit;

[0039] An output terminal of the third voltage source is connected with an input terminal of the second positive-negative voltage conversion circuit;

[0040] An output terminal of the second positive-negative voltage conversion circuit is connected with an input terminal of the second voltage generation circuit;

[0041] The third voltage source provides voltage for the second comparator circuit.

[0042] Optionally, the apparatus as described above, the second comparator circuit comprises:

[0043] A second comparator and a second reference voltage circuit;

[0044] An output terminal of the second reference voltage circuit is connected with a negative input terminal of the second comparator;

[0045] An output terminal of the second negative-positive voltage conversion circuit is connected with a positive input terminal of the second comparator;

[0046] An output terminal of the second comparator is connected with the processor.

[0047] The third voltage source provides voltage for the second reference voltage circuit and the second comparator.

[0048] A second aspect of the present invention provides an interface including a Type C interface and a detection device as described in any of the first aspects;

[0049] The input terminal of the detection device is connected to the detection pin of the Type-C interface; the detection pin is a ground pin in the Type-C interface, and the detection pin is not grounded;

[0050] The output of the detection device is connected to the processor of the terminal.

[0051] A third aspect of this utility model provides a terminal, comprising: interconnected processors and interfaces as described in the second aspect.

[0052] This utility model provides a detection device, interface, and terminal, including: a voltage detection module and a voltage processing module; one end of the voltage detection module is connected to a detection pin of a Type-C interface and the input terminal of the voltage processing module; the detection pin is a ground pin in the Type-C interface, and the detection pin is not grounded; the output terminal of the voltage processing module is connected to the processor of the terminal; the voltage detection module is used to generate a preset voltage value, and outputs the detection voltage corresponding to the detection pin to the voltage processing module when a data cable is inserted or not inserted into the Type-C interface; the detection voltage is related to the preset voltage value and whether a data cable is inserted into the Type-C interface; the voltage processing module is used to perform voltage conversion processing or voltage comparison processing on the detection voltage, generate a corresponding processing result, and send the processing result to the processor; the processor is used to enable or disable insertion detection scanning of the Type-C interface CC pin. The detection device of this utility model generates a preset voltage value through the voltage detection module, and outputs the detection voltage corresponding to the detection pin to the voltage processing module when a data cable is inserted or not inserted into the Type-C interface. Simultaneously, the voltage processing module performs voltage conversion or voltage comparison processing on the detected voltage to generate a corresponding processing result, which is then sent to the processor. This processing result is related to whether a data line is inserted into the Type C interface, allowing the processor to disable or enable insertion detection scanning on the CC pin based on the processing result, thereby reducing the number of insertion detection scans and mitigating Type C interface corrosion. Attached Figure Description

[0053] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the present invention and, together with the description, serve to explain the principles of the present invention.

[0054] Figure 1 Schematic diagram of the detection device provided by this utility modelFigure One ;

[0055] Figure 2 Structure diagram of the detection device provided by the utility model Figure Two ;

[0056] Figure 3 Structure diagram of the detection device provided by the utility model Figure Three ;

[0057] Figure 4 Level timing diagram provided by the utility model;

[0058] Figure 5 Structure diagram of the detection device provided by the utility model Figure Four ;

[0059] Figure 6 Structure diagram of the detection device provided by the utility model Figure Five ;

[0060] Figure 7 Structure diagram of the detection device provided by the utility model Figure Six .

[0061] BRIEF DESCRIPTION OF DRAWINGS

[0062] 10, voltage detection module; 11, first negative voltage power supply circuit; 111, first voltage source; 112, first positive and negative voltage conversion circuit; 12, pull-up resistor; 13, second voltage source; 14, first voltage generating circuit; 15, second negative voltage power supply circuit; 16, second voltage generating circuit; 20, voltage processing module; 21, first negative and positive voltage conversion circuit; 22, first comparator circuit; 221, first comparator; 222, first reference voltage circuit; 23, second negative and positive voltage conversion circuit; 24, second comparator circuit; 30, Type C interface.

[0063] The above drawings have shown the specific embodiments of the utility model, and the following will have more detailed description. These drawings and textual descriptions are not intended to limit the scope of the utility model concept by any means, but to illustrate the concept of the utility model to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0064] The exemplary embodiments will be described in detail herein with reference to the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the utility model. Instead, they are merely examples of apparatuses and methods consistent with some aspects of the utility model as detailed in the appended claims.

[0065] The technical solutions of the utility model will be described in detail below with specific examples. The following specific examples can be combined with each other, and the same or similar concepts or processes can not be described again in some examples. The embodiments of the utility model will be described below with reference to the drawings.

[0066] In order to clearly understand the technical solutions of the present application, the concept of the present scheme will be described in detail. At present, with the continuous use of terminals, there is a problem of Type C interface corrosion. For example, when a salt solution type liquid is immersed, the insertion detection scanning of the CC (Configuration Channel) 1 pin and the CC2 pin of Type C will cause electrochemical corrosion, resulting in corrosion of Type C, which is also the main reason for the corrosion of Type C interface.

[0067] Electrochemical corrosion is that when an external electric signal is applied, the current will flow from high level to low level in the case of immersion. Metal ions will accumulate into salt between the surrounding ground. Once corrosion occurs, the concentration of salt increases, the impedance decreases, the current increases, and the speed will also increase. With the evaporation of water, salt will be precipitated, forming dirt on the current channel between the CC pins of Type C interface, such as CC1 pin & CC2 pin and ground. With the increase of corrosion, if the resistance value between CC1 pin & CC2 pin and ground is reduced to about 5.1K (kilo-ohm), Type C interface will consider that an OTG (On-The-Go, a kind of electronic device data exchange technology) device is inserted. At this time, the Type C interface Vbus pin will output 5V (volt), and the high voltage and strong current on the Vbus pin will accelerate the corrosion.

[0068] Therefore, the Type C interface corrosion problem needs to be further optimized.

[0069] Therefore, in view of the problem that the Type C interface corrosion problem needs to be further optimized in the prior art, the inventors have found that a new detection device can be used to detect whether a device is inserted, and at the same time, when no device is inserted, the insertion detection scanning of the CC pin of Type C interface is disabled to reduce the number of insertion detection scanning of the CC pin of Type C interface, thereby reducing the corrosion of Type C interface.

[0070] Specifically, the detection device includes a voltage detection module and a voltage processing module. One end of the voltage detection module is connected with a detection pin of the Type C interface and an input end of the voltage processing module respectively. The detection pin is a certain ground pin in the Type C interface, and the detection pin is not grounded. The output end of the voltage processing module is connected with a processor of a terminal. The voltage detection module is used for generating a preset voltage value, and outputting a detection voltage corresponding to the detection pin to the voltage processing module when the Type C interface is inserted with a data line or is not inserted with the data line. The detection voltage is related to the preset voltage value and whether the Type C interface is inserted with the data line. The voltage processing module is used for performing voltage conversion processing or voltage comparison processing on the detection voltage, generating a corresponding processing result, and sending the processing result to the processor. The processor is used for starting or prohibiting the Type C interface CC pin to perform insertion detection scanning.

[0071] The detection device provided in the embodiment of the utility model generates the preset voltage value through the voltage detection module, and outputs the detection voltage corresponding to the detection pin to the voltage processing module when the Type C interface is inserted with the data line or is not inserted with the data line. Meanwhile, the voltage processing module is used for performing voltage conversion processing or voltage comparison processing on the detection voltage, generating a corresponding processing result, and sending the processing result to the processor. The processing result is related to whether the Type C interface is inserted with the data line, so that the processor can prohibit or start the insertion detection scanning of the CC pin based on the processing result, thereby reducing the number of insertion detection scanning and relieving the corrosion of the Type C interface.

[0072] Based on the above creative discovery, the utility model person proposes the technical scheme of the present application.

[0073] The embodiments of the utility model will be described below in combination with the drawings of the specification.

[0074] Figure 1 The structure of the detection device provided in the utility model is shown in the figure Figure One As Figure 1 shown, in order to facilitate the description, the structure part connected outside the detection device is also exemplarily shown in the figure, that is, the Type C interface 30. In the figure, GND indicates a ground pin, and CC1 and CC2 are CC pins. In actual application, the detection device does not include the Type C interface 30. In the embodiment, the detection device can be integrated with the Type C interface 30, or can be non-integrated. The detection device provided in the embodiment includes:

[0075] The voltage detection module 10 and the voltage processing module 20.

[0076] The voltage detection module 10 is connected with the detection pin of the Type C interface 30 and the input end of the voltage processing module 20 at one end. The detection pin is a ground pin in the Type C interface 30, and the detection pin is not grounded.

[0077] The output end of the voltage processing module 20 is connected with the processor of the terminal.

[0078] The voltage detection module 10 is used to generate a preset voltage value, and output the detection voltage corresponding to the detection pin to the voltage processing module 20 when the Type C interface 30 is inserted with a data line or not inserted with a data line. The detection voltage is related to the preset voltage value and whether the Type C interface 30 is inserted with a data line.

[0079] The voltage processing module 20 is used to perform voltage conversion processing or voltage comparison processing on the detection voltage, generate a corresponding processing result, and send the processing result to the processor. The processor is used to start or prohibit the Type C interface 30 CC pin to perform insertion detection scanning.

[0080] In the embodiment, the Type C interface 30 generally has multiple ground pins, such as the commonly used Type C interface 30 having four ground pins, and one of the ground pins can be selected to be connected with one end of the voltage detection module 10. Figure 1 The detection pin is the lower right corner pin in the figure, that is, the original ground pin at the lower right corner. After the original ground pin is used as the detection pin, the original ground pin is no longer grounded.

[0081] The voltage detection module 10 can generate a preset voltage value, and use the preset voltage value as the input voltage of the voltage processing module 20 when the Type C interface 30 is not inserted with a data line. When the Type C interface 30 is inserted with a data line, the input voltage of the voltage processing module 20 will change correspondingly. The preset voltage value can be set according to actual application, such as the value of negative voltage or positive voltage, such as -0.18V or 0.25V.

[0082] In the embodiment, the voltage processing module 20 can be a voltage conversion circuit, a comparator circuit, a combination of the voltage conversion circuit and the comparator circuit, or the like.

[0083] The execution process of the detection device in the embodiment is as follows: when the Type C interface 30 is not inserted with a data line, the detection voltage of the voltage detection module 10 at the detection pin is the preset voltage value, the voltage processing module 20 performs corresponding processing, such as voltage conversion and comparison, on the preset voltage value to generate a processing result corresponding to the state of not being inserted with a data line, and the processor receives the processing result to control the CC pin of the Type C interface 30 not to perform insertion detection scanning.

[0084] When a data cable is inserted into the Type C interface 30, the voltage detection module 10 detects the voltage at the detection pin, which is no longer the preset voltage value. The voltage processing module 20 processes the detected voltage accordingly, such as voltage conversion and comparison, and generates the processing result corresponding to the insertion of the data cable. After receiving the processing result, the processor controls the CC pin of the Type C interface 30 to perform insertion detection scanning.

[0085] The detection device of this embodiment generates a preset voltage value through the voltage detection module 10, and outputs the detection voltage corresponding to the detection pin to the voltage processing module 20 when a data cable is inserted into the Type-C interface 30 or not. Simultaneously, the voltage processing module 20 performs voltage conversion or voltage comparison processing on the detection voltage, generates a corresponding processing result, and sends the processing result to the processor. This processing result is related to whether a data cable is inserted into the Type-C interface 30, allowing the processor to disable or enable insertion detection scanning on the CC pin based on the processing result, thereby reducing the number of insertion detection scans and mitigating corrosion of the Type-C interface 30.

[0086] Figure 2 Schematic diagram of the detection device provided by this utility model Figure Two ,like Figure 2 As shown, the detection device provided in this embodiment is a further refinement based on the previous embodiment. The voltage detection module 10 in the detection device includes: a first negative voltage power supply circuit 11 and a pull-up resistor 12. The voltage processing module is the first negative-to-positive voltage conversion circuit 21 shown in the figure.

[0087] The output terminal of the first negative voltage power supply circuit 11 is connected to one end of the pull-up resistor 12.

[0088] The other end of the pull-up resistor 12 is connected to the detection pin of the Type C interface 30 and the input terminal of the first negative-positive voltage conversion circuit 21, respectively.

[0089] The output of the first negative-to-positive voltage conversion circuit 21 is connected to the processor.

[0090] In this embodiment, the first negative voltage power supply circuit 11 is used to generate a negative voltage, and the first negative-to-positive voltage conversion circuit 21 is used to convert the negative voltage into a positive voltage.

[0091] When no data cable is inserted into the Type-C interface 30, the detection voltage corresponding to the detection pin is negative. After voltage conversion by the first negative-to-positive voltage conversion circuit 21, it becomes a positive voltage. The processor receives this positive voltage to determine that no data cable is inserted into the Type-C interface 30, and controls the CC pin of the Type-C interface 30 not to perform insertion detection scanning.

[0092] When a data line is inserted into the Type-C interface 30, the detection voltage corresponding to the detection pin is 0. After voltage conversion by the first negative-to-positive voltage conversion circuit 21, it remains at a 0 level. The processor receives this 0 level to determine that a data line is inserted into the Type-C interface 30, and controls the CC pin of the Type-C interface 30 to perform an insertion detection scan.

[0093] Figure 3 Schematic diagram of the detection device provided by this utility model Figure Three ,like Figure 3 As shown, the detection device provided in this embodiment is a further refinement based on the previous embodiment. In the figure, A is the detection voltage position corresponding to the detection pin, and B is the position of the output terminal of the first negative-positive voltage conversion circuit 21. The first negative voltage power supply circuit 11 includes:

[0094] First voltage source 111 and first positive-to-negative voltage conversion circuit 112.

[0095] The output terminal of the first voltage source 111 is connected to the input terminal of the first positive-negative voltage conversion circuit 112.

[0096] The output terminal of the first positive-to-negative voltage conversion circuit 112 is connected to one end of the pull-up resistor 12.

[0097] In this embodiment, the first voltage source 111 is used to provide a positive voltage, and the voltage provided by the first voltage source 111 is converted into a corresponding negative voltage via the first positive-to-negative voltage conversion circuit 112.

[0098] For example, if the voltage provided by the first voltage source 111 is +1.8V, when no data cable is inserted into the Type-C interface 30, the voltage of the detection pin is -1.8V, which is converted to +1.8V after voltage conversion by the first negative-to-positive voltage conversion circuit 21. When a data cable is inserted into the Type-C interface 30, the detection pin is connected to ground by the pin on the data cable, becoming a 0 level. During immersion corrosion, since the detection pin is a negative voltage signal, according to the principle of electrochemical corrosion, the high-voltage metal will be corroded, and the low-voltage metal will be protected. At this time, the high-voltage metal is connected to ground. In addition to the pin, there is also a large amount of copper on the board. The pin connected to point A will greatly delay the time of open circuit due to electrochemical corrosion, which can reduce the probability of failure, and the CC pin will not be corroded.

[0099] The overall voltage level changes when there is no data cable inserted into the Type-C interface 30 and when there is a data cable inserted into the Type-C interface 30 are as follows: Figure 4As shown, the horizontal axis is time T, and the vertical axis is voltage (level) V, CC is a level for plug-in device type detection. Before the cable (data line) is plugged in, the level at point A is -1.8V, and the level at point B is +1.8V. After the cable is plugged in, the level at point A is changed to 0V by the cable ground, and the level at point B is also changed to 0V accordingly, which generates an interrupt to the processor. At this time, the processor controls the CC to perform plug-in device type detection. After the detection is completed, the CC scanning level is changed to low.

[0100] Figure 5 The structure of the detection device provided by the utility model is shown in Figure Four As shown, the detection device provided in the embodiment is further refined on the basis of the first embodiment, and the voltage detection module 10 in the detection device comprises: Figure 5 A second voltage source 13 and a first voltage generating circuit 14. The voltage processing module 20 is a first comparator circuit 22.

[0101] The output end of the second voltage source 13 is connected with the input end of the first voltage generating circuit 14.

[0102] The output end of the first voltage generating circuit 14 is respectively connected with the detection pin of the Type C interface 30 and the input end of the first comparator circuit 22.

[0103] The second voltage source 13 provides voltage for the first comparator circuit 22.

[0104] The output end of the first comparator circuit 22 is connected with the processor.

[0105] In the embodiment, the second voltage source 13 can be the same as or different from the first voltage source 111. The first voltage generating circuit 14 is used to generate a preset voltage value and current value, for example, 0.25V / 5μA (microampere).

[0106] The negative input end of the comparator in the first comparator circuit 22 can adopt a reference voltage, and the positive input end can adopt a detection voltage.

[0107] When the Type C interface 30 is not plugged in with a data line, the detection voltage corresponding to the detection pin is the voltage generated by the first voltage generating circuit 14, and the corresponding comparison result is generated after passing through the first comparator circuit 22. The processor receives the comparison result to determine that the Type C interface 30 is not plugged in with a data line, and controls the CC pin of the Type C interface 30 not to perform plug-in detection scanning.

[0108]

[0109] ​When the Type C interface 30 has a data line inserted, the detection voltage corresponding to the detection pin is 0, and the corresponding comparison result is generated after passing through the first comparator circuit 22. The processor receives the comparison result to determine that the Type C interface 30 has a data line inserted, and controls the CC pin of the Type C interface 30 to perform insertion detection scanning.

[0110] Figure 6 The structure diagram of the detection device provided by the utility model Figure Five As shown in the figure, the detection device provided in the embodiment is further refined on the basis of the previous embodiment, and the first comparator circuit 22 comprises: Figure 6

[0111] The first comparator 221 and the first reference voltage circuit 222.

[0112] The output end of the first reference voltage circuit 222 is connected with the negative input end of the first comparator 221. The second voltage source 13 provides voltage for the first reference voltage circuit 222 and the first comparator 221.

[0113] The output end of the first voltage generating circuit 14 is connected with the positive input end of the first comparator 221.

[0114] The output end of the first comparator 221 is connected with the processor.

[0115] In the embodiment, the first reference voltage circuit 222 is used to generate a reference voltage, for example, a 0.15V reference voltage can be generated, which is used as the reference voltage for the first comparator 221.

[0116] For example, if the first voltage generating circuit 14 generates 0.25V / 5uA and the first reference voltage circuit 222 generates a 0.15V reference voltage. When there is no data line inserted, the detection pin always has a 0.25V level, and after comparison by the first comparator 221, the generated comparison result is +1.8V, and the +1.8V is output to the processor. The processor receives the +1.8V to determine that the Type C interface 30 has no data line inserted, and controls the CC pin of the Type C interface 30 not to perform insertion detection scanning.

[0117] When there is a data line inserted, the detection pin will be connected to the ground by the pin on the data line, becoming a 0 level, and the current is limited to below 5uA. When liquid immersion corrosion occurs, since the detection voltage level is only 0.25V and the maximum current is only 5uA, the detection pin will greatly delay the open circuit time caused by electrochemical corrosion, which can reduce the probability of failure, and the CC pin will not be corroded.

[0118] ​When the Type C interface 30 has no data line insertion and the Type C interface 30 has data line insertion, the overall level change is similar to that shown in the figure. Figure 4 Before the Cable (data line) is inserted, the detection pin position level is 0.25V, and the comparator output level is +1.8V. After the Cable is inserted, the detection pin position level is changed to 0V by the Cable ground, and the comparator output level is also changed to 0V, which generates an interrupt to the processor. At this time, the processor controls the CC to perform the inserted device type detection. After the detection is completed, the CC scanning level is changed to low.

[0119] Figure 7 The detection device provided by the utility model provides a structure diagram Figure Six As shown in the figure, the detection device provided in the embodiment is further refined on the basis of the first embodiment, and the voltage detection module 10 in the detection device includes: Figure 7

[0120] The second negative voltage power supply circuit 15 and the second voltage generation circuit 16. The voltage processing module 20 includes: the second negative-positive voltage conversion circuit 23 and the second comparator circuit 24.

[0121] The output end of the second negative voltage power supply circuit 15 is connected with the input end of the second voltage generation circuit 16.

[0122] The output end of the second voltage generation circuit 16 is connected with the detection pin of the Type C interface 30 and the input end of the second negative-positive voltage conversion circuit 23 respectively.

[0123] The output end of the second negative-positive voltage conversion circuit 23 is connected with the input end of the second comparator circuit 24.

[0124] The second negative voltage power supply circuit 15 provides voltage for the second comparator circuit 24.

[0125] The output end of the second comparator circuit 24 is connected with the processor.

[0126] In the embodiment, the second negative voltage power supply circuit 15 can be the same as or different from the first negative voltage power supply circuit 11.

[0127] Optionally, the second voltage generation circuit 16 can be the same as or different from the first voltage generation circuit 14. The second comparator circuit 24 can be the same as or different from the first comparator circuit 22. The second negative-positive voltage conversion circuit 23 is used for negative-positive conversion of voltage.

[0128] In the embodiment, the second voltage generation circuit 16 is used for generating preset voltage values and current values, for example, -0.25V / 5μA.

[0129] ​The negative input of the comparator in the second comparator circuit 24 can adopt the reference voltage, and the positive input can adopt the detection voltage.

[0130] When the Type C interface 30 has no data line inserted, the detection voltage corresponding to the detection pin is the voltage generated by the second voltage generating circuit 16, and the corresponding comparison result is generated after passing through the second comparator circuit 24. The processor receives the comparison result to determine that the Type C interface 30 has no data line inserted, and controls the CC pin of the Type C interface 30 not to perform the insertion detection scanning.

[0131] When the Type C interface 30 has no data line inserted, the detection voltage corresponding to the detection pin is the voltage generated by the second voltage generating circuit 16, and the corresponding comparison result is generated after passing through the second comparator circuit 24. The processor receives the comparison result to determine that the Type C interface 30 has no data line inserted, and controls the CC pin of the Type C interface 30 not to perform the insertion detection scanning.

[0132] Optionally, in the embodiment, the second negative voltage power supply circuit 15 includes:

[0133] The third voltage source and the second positive-negative voltage conversion circuit.

[0134] The output end of the third voltage source is connected with the input end of the second positive-negative voltage conversion circuit.

[0135] The output end of the second positive-negative voltage conversion circuit is connected with the input end of the second voltage generating circuit 16.

[0136] The third voltage source provides voltage for the second comparator circuit 24.

[0137] In the embodiment, the third voltage source can be the same as or different from the first voltage source 111. The second positive-negative voltage conversion circuit is used for performing positive-negative conversion of voltage. The second positive-negative voltage conversion circuit is used for performing positive-negative conversion of voltage, so that the second voltage generating circuit 16 can generate negative voltage.

[0138] Optionally, in the embodiment, the second comparator circuit 24 includes:

[0139] The second comparator and the second reference voltage circuit.

[0140] The output end of the second reference voltage circuit is connected with the negative input of the second comparator.

[0141] The output end of the second negative-positive voltage conversion circuit 23 is connected with the positive input of the second comparator.

[0142] The output end of the second comparator is connected with the processor.

[0143] The third voltage source provides voltage for the second reference voltage circuit and the second comparator.

[0144] In this embodiment, the second reference voltage circuit is used to generate a reference voltage, such as a 0.15V reference voltage, which is used by the second comparator as a reference voltage for comparison.

[0145] For example, if the second voltage generating circuit 16 generates -0.25V / 5μA, the second reference voltage circuit generates a 0.15V reference voltage. When no data line is inserted, the detection pin always has a -0.25V level, which is converted to a 0.25V level after being converted by the second negative-to-positive voltage conversion circuit 23. At this time, after comparison by the second comparator, the generated comparison result is +1.8V, and this +1.8V is output to the processor. The processor receives this +1.8V to determine that no data line is inserted into the Type C interface 30, and controls the CC pin of the Type C interface 30 not to perform an insertion detection scan.

[0146] When a data cable is inserted, the detection pin is grounded by the pin on the data cable, becoming a 0 level, and the current is limited to below 5uA. During immersion corrosion, because the detection voltage level is only 0.25V and the maximum current is only 5uA, the detection pin will greatly delay the time it takes for an open circuit to occur due to electrochemical corrosion, reducing the probability of failure. At the same time, the CC pin will not be corroded.

[0147] The overall voltage level change when there is no data cable inserted into the Type-C interface 30 and when there is a data cable inserted into the Type-C interface 30 is similar to that of... Figure 4 The content shown is similar. Before the cable (data line) is inserted, the detection pin position level is -0.25V, the comparator positive input level is 0.25V, and the comparator output level is +1.8V. After the cable is inserted, the detection pin position level is grounded to 0V, and the comparator output level also becomes 0V, generating an interrupt for the processor. At this time, the processor controls the CC to perform insertion device type detection. After the detection is complete, the CC scan level goes low.

[0148] This utility model embodiment also provides an interface, including a Type C interface 30 and such as Figures 2 to 7 The detection device of any embodiment.

[0149] The input terminal of the detection device is connected to the detection pin of the Type-C interface 30. The detection pin is a grounded pin in the Type-C interface 30, and this detection pin is not grounded.

[0150] The output of the detection device is connected to the processor of the terminal.

[0151] This utility model embodiment also provides a terminal, including: interconnected processors and interfaces as described above.

[0152] The terminal also includes a memory. The various components are interconnected utilizing various buses, and can be mounted on a common motherboard or in other manners as appropriate. The processor can process instructions for execution within the terminal, where the instructions can be stored in a memory that can be further accessible to the at least one processor. The various components can be installed on a common motherboard or in other manners as appropriate.

[0153] Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. It is intended that the present application cover any and all variations of the application embodiments described herein including modifications and alterations of the method and / or specific designs of the application disclosed. It is intended that the description and examples be considered exemplary only, with the true scope and spirit of the application being indicated by the following claims.

[0154] It is to be understood that the application is not limited to the specific structures described herein and illustrated in the accompanying drawings, which represent only typical embodiments of the application. The scope of the application is limited only by the claims.

Claims

1. A detection device, characterized in that, The application relates to a voltage detection module and a voltage processing module. One end of the voltage detection module is connected with a detection pin of a Type C interface and an input end of the voltage processing module; the detection pin is a certain ground pin in the Type C interface, and the detection pin is not grounded; An output end of the voltage processing module is connected with a processor of a terminal; The voltage detection module is used for generating a preset voltage value, and outputting a detection voltage corresponding to the detection pin to the voltage processing module when a data line is inserted into the Type C interface or not; The detection voltage is related to the preset voltage value and whether the data line is inserted into the Type C interface; The voltage processing module is used for carrying out voltage conversion processing or voltage comparison processing on the detection voltage, generating a corresponding processing result, and sending the processing result to the processor; The processor is used for starting or prohibiting the Type C interface CC pin to carry out insertion detection scanning. The voltage detection module comprises a first negative voltage power supply circuit and a pull-up resistor; the voltage processing module is a first negative-positive voltage conversion circuit; 2. The apparatus of claim 1, wherein, An output end of the first negative voltage power supply circuit is connected with one end of the pull-up resistor; The other end of the pull-up resistor is connected with the detection pin of the Type C interface and an input end of the first negative-positive voltage conversion circuit respectively; An output end of the first negative-positive voltage conversion circuit is connected with the processor. The first negative voltage power supply circuit comprises:

3. The apparatus of claim 2, wherein, A first voltage source and a first negative-positive voltage conversion circuit; An output end of the first voltage source is connected with an input end of the first negative-positive voltage conversion circuit; An output end of the first negative-positive voltage conversion circuit is connected with one end of the pull-up resistor. The voltage detection module comprises a second voltage source and a first voltage generation circuit; the voltage processing module is a first comparator circuit; 4. The apparatus of claim 1, wherein, An output end of the second voltage source is connected with an input end of the first voltage generation circuit; An output end of the first voltage generation circuit is connected with the detection pin of the Type C interface and an input end of the first comparator circuit respectively; The second voltage source provides voltage for the first comparator circuit; An output end of the first comparator circuit is connected with the processor. The first comparator circuit comprises:

5. The apparatus of claim 4, wherein, A first comparator and a first reference voltage circuit; An output end of the first reference voltage circuit is connected with a negative input end of the first comparator; the second voltage source provides voltage for the first reference voltage circuit and the first comparator; An output end of the first voltage generation circuit is connected with a positive input end of the first comparator; An output end of the first comparator is connected with the processor. The voltage detection module comprises:

6. The apparatus of claim 1, wherein, A second negative voltage power supply circuit and a second voltage generation circuit; the voltage processing module comprises a second negative-positive voltage conversion circuit and a second comparator circuit; An output end of the second negative voltage power supply circuit is connected with an input end of the second voltage generation circuit; An output end of the second voltage generation circuit is connected with the detection pin of the Type C interface and an input end of the second negative-positive voltage conversion circuit respectively; ​ The output end of the second negative-positive voltage conversion circuit is connected with the input end of the second comparator circuit; The second negative voltage power supply circuit provides voltage for the second comparator circuit; The output end of the second comparator circuit is connected with the processor.

7. The apparatus of claim 6, wherein, The second negative voltage power supply circuit comprises: A third voltage source and a second negative-positive voltage conversion circuit; The output end of the third voltage source is connected with the input end of the second negative-positive voltage conversion circuit; The output end of the second negative-positive voltage conversion circuit is connected with the input end of the second voltage generation circuit; The third voltage source provides voltage for the second comparator circuit.

8. The apparatus of claim 7, wherein, The second comparator circuit comprises: A second comparator and a second reference voltage circuit; The output end of the second reference voltage circuit is connected with the negative input end of the second comparator; The output end of the second negative-positive voltage conversion circuit is connected with the positive input end of the second comparator; The output end of the second comparator is connected with the processor; The third voltage source provides voltage for the second reference voltage circuit and the second comparator.

9. An interface, characterized in that The detection device comprises a Type C interface and the detection device as claimed in any one of claims 1 to 8; The input end of the detection device is connected with the detection pin of the Type C interface; the detection pin is a certain ground pin in the Type C interface, and the detection pin is not grounded; The output end of the detection device is connected with the processor of the terminal.

10. A terminal, characterized by comprising: The interface as claimed in claim 9 is connected with the processor. The interface as claimed in claim 9 is connected with the processor.