Interface detection circuit and electronic equipment

By designing an interface detection circuit that uses periodic voltage variation, the problem of inaccurate interface liquid detection in the prior art is solved, and higher liquid detection accuracy is achieved.

CN222704738UActive Publication Date: 2025-04-01BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202421065626.6
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2025-04-01
Estimated Expiration
2034-05-16

AI Technical Summary

Technical Problem

The existing interface detection circuit is inaccurate in liquid detection due to some terminals in the interface being energized, making it easy to misjudgment that there is no liquid in the interface.

Method used

An interface detection circuit is designed, using the output voltage of the first signal source to periodically change with time, and is coupled to the functional terminals of the interface through the voltage detection circuit. The control circuit detects whether there is liquid in the interface according to the voltage peak-to-peak voltage of the functional terminal.

Benefits of technology

Through periodically changing voltage detection, the influence of the conductive voltage on liquid detection is avoided and the accuracy of liquid detection is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222704738U_ABST
    Figure CN222704738U_ABST
Patent Text Reader

Abstract

The present disclosure relates to an interface detection circuit and an electronic device. The interface detection circuit includes: a first signal source, the first signal source is used to output a first voltage, and the first voltage changes periodically over time; a voltage detection circuit, the first end of the voltage detection circuit is coupled to the first signal source, and the second end of the voltage detection circuit is used to couple to a functional terminal of the interface; a control circuit, the control circuit is coupled to the second end of the voltage detection circuit, and is used to detect whether there is liquid in the interface according to the peak-to-peak value of the voltage at the functional terminal. Since the magnitude of the first voltage output by the first signal source changes periodically over time, the voltage of the functional terminal coupled to the first signal source through the voltage detection circuit will also change periodically over time. Since the control circuit can detect whether there is liquid in the interface according to the peak-to-peak value of the voltage at the functional terminal, liquid detection is not affected by the voltage transmitted to the functional terminal, thereby improving the accuracy of liquid detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of interface technology, and in particular to an interface detection circuit and electronic equipment. Background Art

[0002] During the use of electronic equipment, the interface will be exposed to the external environment for a long time, resulting in the possibility of liquid in the interface. In order to prevent the interface from being corroded by liquid, it is necessary to detect whether there is liquid in the interface. However, since some terminals in the interface are charged, if there is liquid in the interface, the charged terminals will conduct the voltage to the functional terminals through the liquid to increase the DC voltage of the functional terminals. Then the DC voltage of the functional terminals is high, resulting in the false detection that there is no liquid in the interface, resulting in inaccurate liquid detection. Utility Model Content

[0003] In order to overcome the problems existing in the related art, the present disclosure provides an interface detection circuit and an electronic device.

[0004] According to a first aspect of the present disclosure, an interface detection circuit is provided, the interface detection circuit comprising:

[0005] A first signal source, the first signal source is used to output a first voltage, and the first voltage changes periodically over time;

[0006] a voltage detection circuit, wherein a first end of the voltage detection circuit is coupled to the first signal source, and a second end of the voltage detection circuit is used to couple to a functional terminal of an interface;

[0007] A control circuit is coupled to the second end of the voltage detection circuit, and the control circuit is used to detect whether there is liquid in the interface according to the peak-to-peak value of the voltage of the functional terminal.

[0008] In some embodiments of the present disclosure, the first signal source includes:

[0009] A first AC signal source, wherein a first end of the first AC signal source is coupled to a first end of the voltage detection circuit, and the first AC signal source is used to output a first AC voltage;

[0010] A first DC power supply, wherein a first end of the first DC power supply is coupled to a second end of the first AC signal source, the second end of the first DC power supply is used to couple to a ground end, the first DC power supply is used to bias the first AC voltage to the first voltage, and a minimum value of the first voltage is greater than or equal to zero.

[0011] In some embodiments of the present disclosure, the voltage detection circuit includes:

[0012] A first resistor, wherein a first end of the first resistor is coupled to a first end of the first signal source, and a second end of the first resistor is coupled to both a first end of the control circuit and the function terminal.

[0013] In some embodiments of the present disclosure, when the interface is not connected to an external device, the functional terminal is not powered; and / or, when the interface is connected to an external device, the functional terminal is not powered.

[0014] In some embodiments of the present disclosure, the interface detection circuit further includes:

[0015] A second signal source is coupled to the control circuit, and the second signal source is used to output a second voltage, and the second voltage is the same as the first voltage.

[0016] In some embodiments of the present disclosure, the second signal source includes:

[0017] a second AC signal source, a first end of the second AC signal source being coupled to a second end of the control circuit, and the second AC signal source being used to output a second AC voltage;

[0018] A second DC power supply, wherein a first end of the second DC power supply is coupled to a second end of the second AC signal source, a second end of the second DC power supply is used to couple to a ground end, and the second DC power supply is used to bias the second AC voltage to the second voltage, wherein a minimum value of the second voltage is greater than or equal to zero.

[0019] In some embodiments of the present disclosure, the minimum value of the first voltage and the minimum value of the second voltage are both greater than or equal to zero; and the interface detection circuit further includes:

[0020] A first analog-to-digital conversion circuit, wherein an input terminal of the first analog-to-digital conversion circuit is coupled to the second terminal of the voltage detection circuit, and an output terminal of the first analog-to-digital conversion circuit is coupled to the first terminal of the control circuit;

[0021] A second analog-to-digital conversion circuit, wherein an input end of the second analog-to-digital conversion circuit is coupled to a first end of the second signal source, and an output end of the second analog-to-digital conversion circuit is coupled to a second end of the control circuit.

[0022] In some embodiments of the present disclosure, the interface detection circuit further includes:

[0023] a second resistor, a first end of the second resistor being coupled in parallel with the second signal source;

[0024] a first comparison circuit, wherein a first input terminal of the first comparison circuit is coupled to a second terminal of the voltage detection circuit, a second input terminal of the first comparison circuit is used to receive a first DC voltage, and an output terminal of the first comparison circuit is coupled to a third terminal of the control circuit;

[0025] A second comparison circuit, wherein a first input terminal of the second comparison circuit is coupled to a first terminal of the second signal source, a second input terminal of the second comparison circuit is used to receive a second DC voltage, and an output terminal of the second comparison circuit is coupled to a fourth terminal of the control circuit.

[0026] In some embodiments of the present disclosure, the interface detection circuit further includes:

[0027] a second resistor, a first end of the second resistor being coupled in parallel with the second signal source;

[0028] a first operational amplifier circuit, wherein a first input terminal of the first operational amplifier circuit is coupled to a second terminal of the voltage detection circuit, the second input terminal of the first operational amplifier circuit is used to receive a first DC voltage, and an output terminal of the first operational amplifier circuit is coupled to a third terminal of the control circuit;

[0029] A second operational amplifier circuit, wherein the first input terminal of the second operational amplifier circuit is coupled to the first terminal of the second signal source, the second input terminal of the second operational amplifier circuit is used to receive a second DC voltage, and the output terminal of the second operational amplifier circuit is coupled to the fourth terminal of the control circuit.

[0030] In some embodiments of the present disclosure, the first DC voltage is the same as the DC component of the first voltage, and the second DC voltage is the same as the DC component of the second voltage.

[0031] In some embodiments of the present disclosure, the interface detection circuit further includes:

[0032] A first switch unit, wherein the first switch unit is coupled between the first signal source and the voltage detection circuit;

[0033] A second switch unit is coupled between the second signal source and the control circuit.

[0034] According to a second aspect of the present disclosure, an electronic device is provided, comprising the interface detection circuit as described in any one of the above items.

[0035] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0036] The interface detection circuit includes a first signal source, a voltage detection circuit and a control circuit. The voltage detection circuit is coupled between the first signal source and the control circuit and is used to couple with the functional terminal of the interface. Since the magnitude of the first voltage output by the first signal source changes periodically over time, the voltage of the functional terminal coupled to the first signal source through the voltage detection circuit will also change periodically over time. Since the control circuit can detect whether there is liquid in the interface based on the peak-to-peak value of the voltage at the functional terminal, liquid detection is not affected by the voltage transmitted to the functional terminal, thereby improving the accuracy of liquid detection.

[0037] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The accompanying drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present utility model, and together with the description, are used to explain the principles of the present utility model.

[0039] Figure 1 It is a structural schematic diagram of an interface detection circuit;

[0040] Figure 2 is a structural schematic diagram of an interface detection circuit provided by an exemplary embodiment of the present disclosure;

[0041] Figure 3 is a structural schematic diagram of an interface detection circuit provided by another exemplary embodiment of the present disclosure;

[0042] Figure 4 is a structural schematic diagram of an interface detection circuit provided by another exemplary embodiment of the present disclosure;

[0043] Figure 5 is a structural schematic diagram of an interface detection circuit provided by another exemplary embodiment of the present disclosure;

[0044] Figure 6 is a structural schematic diagram of an interface detection circuit provided by another exemplary embodiment of the present disclosure;

[0045] Figure 7 is a structural schematic diagram of an interface detection circuit provided by another exemplary embodiment of the present disclosure;

[0046] Figure 8 is a structural schematic diagram of an interface detection circuit provided by another exemplary embodiment of the present disclosure;

[0047] Fig. 9 is a structural schematic diagram of an interface detection circuit provided by another exemplary embodiment of the present disclosure;

[0048] Fig.10 is a system block diagram of an electronic device provided by an exemplary embodiment of the present disclosure.

[0049] In the figure:

[0050] 1-signal processing unit; 2-analog-to-digital conversion circuit; 3-interface; 10-first signal source; 11-first AC signal source; 12-first DC power supply; 20-voltage detection circuit; 30-control circuit; 40-second signal source; 41-second AC signal source; 42-second DC power supply; 50-first analog-to-digital conversion circuit; 60-second analog-to-digital conversion circuit; 70-first comparison circuit; 80-second comparison circuit; 400-electronic device; 402-processing component; 404-memory; 406-power supply component; 408- Multimedia component; 410-audio component; 412-input and output interface; 414-sensor component; 416-communication component; 420-processor; T-functional terminal; R1-first resistor; R2-second resistor; Rx-resistance to ground; Cx-capacitance to ground; T1-first switch unit; T2-second switch unit; CMP1-first comparator; CMP2-second comparator; VCC-power supply; VDC1-first DC voltage; VDC2-second DC voltage; GND-ground terminal; GND1-ground terminal. DETAILED DESCRIPTION

[0051] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the utility model. On the contrary, they are only examples of devices and methods consistent with some aspects of the utility model as detailed in the attached claims. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0052] When electronic devices are in use, the interface will be exposed to the external environment for a long time, resulting in the possibility of liquid in the interface. When there is liquid in the interface, if an external device is inserted to achieve the corresponding function, the interface may be corroded and affect the use of the electronic device. In order to prevent the interface from being corroded by liquid, it is necessary to detect whether there is liquid in the interface.

[0053] In the related art, an interface detection circuit is provided, such as Figure 1As shown, the interface detection circuit includes a power supply VCC, a signal processing unit 1, an analog-to-digital conversion circuit 2, a first switch unit T1 and a first resistor R1. The first end of the first resistor R1 is coupled to the power supply VCC through the first switch unit T1, and the second end of the first resistor R1 is coupled to the input end of the analog-to-digital conversion circuit 2 and the function terminal T of the interface 3. The output end of the analog-to-digital conversion circuit 2 is coupled to the signal processing unit 1. The ground terminal GND of the interface 3 is coupled to the ground terminal GND1. When the first switch unit T1 is turned on, the signal processing unit 1 detects whether there is liquid in the interface 3 by detecting the voltage of the function terminal T. Since the resistance of air is greater than the resistance of liquid, when there is no liquid or less liquid in the interface 3, the ground resistance Rx between the function terminal T and the ground terminal GND is large, so that the voltage of the function terminal T detected by the signal processing unit 1 is high and close to the voltage of the power supply VCC. When there is more liquid in the interface 3, the ground resistance Rx between the function terminal T and the ground terminal GND is small, so that the voltage of the function terminal T detected by the signal processing unit 1 is low and close to 0V. A first threshold voltage is set in the signal processing unit 1. When the voltage of the functional terminal T is greater than the first threshold voltage, there is no liquid in the interface 3. When the voltage of the functional terminal T is less than or equal to the first threshold voltage, there is liquid in the interface 3. However, since some terminals in the interface 3 are charged, if there is liquid in the interface 3, the charged terminals will conduct the voltage to the functional terminal T through the liquid to increase the voltage of the functional terminal T. Then the voltage of the functional terminal T detected by the signal processing unit 1 is greater than the first threshold voltage, resulting in an erroneous detection that there is no liquid in the interface 3. Therefore, regardless of whether there is liquid in the interface 3, the signal processing unit 1 always detects that there is no liquid in the interface 3, resulting in inaccurate liquid detection.

[0054] Based on this, the present disclosure provides an interface detection circuit, which replaces the power supply with a constant voltage with a first signal source whose voltage changes periodically over time, and whether there is a conduction voltage at the functional terminal, it will not affect the peak-to-peak value of the voltage at the functional terminal. The control circuit can detect whether there is liquid at the interface based on the peak-to-peak value of the voltage at the functional terminal, avoiding the influence of the conduction voltage on the liquid detection, thereby improving the accuracy of the liquid detection.

[0055] An exemplary embodiment of the present disclosure provides an interface detection circuit, such as Figure 2 As shown, the interface detection circuit includes a first signal source 10, a voltage detection circuit 20 and a control circuit 30. The first signal source 10 is used to output a first voltage, the magnitude of which changes periodically over time. The first end of the voltage detection circuit 20 is coupled to the first signal source 10, and the second end of the voltage detection circuit 20 is used to couple to the functional terminal T of the interface 3. The control circuit 30 is coupled to the second end of the voltage detection circuit 20, and the control circuit 30 is used to detect whether there is liquid in the interface 3 according to the peak-to-peak value of the voltage at the functional terminal T.

[0056] In this embodiment, the interface detection circuit includes a first signal source, a voltage detection circuit and a control circuit. The voltage detection circuit is coupled between the first signal source and the control circuit, and is used to couple with the functional terminal of the interface. Since the magnitude of the first voltage output by the first signal source changes periodically over time, the voltage of the functional terminal coupled to the first signal source through the voltage detection circuit will also change periodically over time. Since the control circuit can detect whether there is liquid in the interface based on the peak-to-peak value of the voltage at the functional terminal, the liquid detection is not affected by the voltage transmitted to the functional terminal, thereby improving the accuracy of the liquid detection.

[0057] Exemplarily, a second threshold voltage is set in the control circuit 30. When the peak-to-peak value of the voltage of the functional terminal T is greater than the second threshold voltage, the resistance Rx of the functional terminal T to ground is large, and there is no liquid in the interface 3. When the peak-to-peak value of the voltage of the functional terminal T is less than or equal to the second threshold voltage, the resistance Rx of the functional terminal T to ground is small, and there is liquid in the interface 3. The value range of the second threshold voltage can be 0V to Umax. Umax is the peak-to-peak value of the first voltage.

[0058] Exemplarily, since the voltage of the functional terminal T changes periodically over time, when there is no conduction voltage on the functional terminal T, the maximum voltage of the functional terminal T is V1, the minimum voltage is V2, and the peak-to-peak voltage of the functional terminal T is V1-V2. When there is a conduction voltage on the functional terminal T, the voltage of the functional terminal T at each moment will rise by the same amplitude, the maximum voltage of the functional terminal T is V1+V3, the minimum voltage of the functional terminal T is V2+V3, and the peak-to-peak voltage of the functional terminal T is still V1-V2. Therefore, by detecting the peak-to-peak voltage of the functional terminal T, the liquid detection can be prevented from being affected by the conduction voltage.

[0059] Exemplarily, the ground terminal GND of the interface 3 is coupled to the ground terminal GND1 .

[0060] In one embodiment, if Figure 3 As shown, the first signal source 10 includes a first AC signal source 11 and a first DC power supply 12. A first end of the first AC signal source 11 is coupled to a first end of the voltage detection circuit 20, and the first AC signal source 11 is used to output a first AC voltage. A first end of the first DC power supply 12 is coupled to a second end of the first AC signal source 11, and a second end of the first DC power supply 12 is used to couple to a ground terminal GND1, and the first DC power supply 12 is used to bias the first AC voltage to a first voltage, and the minimum value of the first voltage is greater than or equal to zero.

[0061] In this embodiment, the first AC voltage is biased to the first voltage by the first DC voltage, so that the negative voltage of the first AC signal source can be biased to a non-negative voltage, so that the voltage of the functional terminal is a non-negative voltage and can be recognized by the control circuit. The control circuit can determine the peak-to-peak value of the voltage of the functional terminal according to the voltage of the functional terminal, so that the liquid detection is not affected by the conduction voltage, thereby improving the accuracy of the liquid detection. At the same time, by forming the first signal source with the first AC signal source and the first DC power supply, the circuit structure of the first signal source is simple and easy to generate, thereby reducing the complexity of the interface detection circuit structure.

[0062] In one embodiment, the voltage detection circuit 20 includes a first resistor R1 . A first end of the first resistor R1 is coupled to a first end of the first signal source 10 , and a second end of the first resistor R1 is coupled to a first end of the control circuit 30 and a function terminal T.

[0063] In this embodiment, due to the simple structure of the resistor, a voltage divider circuit can be formed by the first resistor and the ground resistance between the functional terminal and the ground terminal to divide the voltage of the first signal source to detect liquid, thereby improving the reliability of the interface detection circuit and reducing the complexity of the interface detection circuit structure.

[0064] Exemplarily, since the resistance of air is greater than the resistance of liquid, the ground resistance Rx is different when liquid is present and when no liquid is present at the interface 3. The first voltage is divided by the ground resistance Rx and the first resistor R1, and it can be determined whether liquid is present at the interface 3 based on the voltage divided by the ground resistance Rx, and the ground resistance Rx can also be determined based on the voltage divided by the ground resistance Rx.

[0065] In one embodiment, when the interface 3 is not connected to an external device, the functional terminal T is not powered.

[0066] In this embodiment, when the interface is not connected to an external device, the function terminal is charged and the first voltage is biased, which may affect the control circuit's detection of the voltage of the function terminal. The function terminal is selected as a terminal that is not charged when the interface is not connected to an external device, so as to avoid the detection of the voltage of the function terminal being affected and causing false liquid detection, thereby improving the reliability of liquid detection.

[0067] In one embodiment, when the interface 3 is connected to an external device, the functional terminal T is not powered.

[0068] In this embodiment, when the interface is connected to an external device, the function terminal is charged and the first voltage is biased, which may affect the control circuit's detection of the voltage of the function terminal. The function terminal is selected as a terminal that is not charged when the interface is connected to an external device, so as to avoid the detection of the voltage of the function terminal being affected and causing false liquid detection, thereby improving the reliability of liquid detection.

[0069] In one embodiment, when the interface 3 is not connected to an external device or is connected to an external device, the functional terminal T is not powered.

[0070] In this embodiment, when the interface is not connected to an external device or is connected to an external device, the function terminal is charged and the first voltage is biased, which may affect the control circuit's detection of the voltage of the function terminal. The function terminal is selected as a terminal that is not charged when the interface is not connected to an external device or is connected to an external device, so as to avoid the detection of the voltage of the function terminal being affected and causing false liquid detection, thereby improving the reliability of liquid detection.

[0071] Exemplarily, the functional terminal T can be an existing terminal in the interface 3 other than the ground terminal GND, such as the power supply terminal VBUS, the communication terminal D, the sideband use terminal SBU, the configuration channel terminal CC, etc., or it can be an additional terminal that is only used for liquid detection.

[0072] In one embodiment, if Figure 4 As shown, the interface detection circuit further includes a second signal source 40. The second signal source 40 is coupled to the control circuit 30, and the second signal source 40 is used to output a second voltage, which is the same as the first voltage.

[0073] In this embodiment, since the second threshold voltage set in the control circuit is a preset value, the peak-to-peak value of the first voltage may fluctuate due to the interference of the voltage in the circuit, affecting the accuracy of liquid detection. By setting a second signal source whose output voltage is the second voltage and the second voltage is the same as the first voltage, the control circuit can compare the peak-to-peak values ​​of the two voltages to detect liquid, avoiding the inaccuracy of the second threshold voltage to improve the accuracy of liquid detection.

[0074] Exemplarily, a third threshold voltage is provided in the control circuit 30. When the voltage difference between the peak-to-peak value of the output voltage of the second signal source 40 detected and the peak-to-peak value of the voltage of the functional terminal T is less than or equal to the third threshold voltage, the ground resistance Rx is large, so that the voltage of the functional terminal T is high, and there is no liquid at the interface 3. When the voltage difference between the peak-to-peak value of the output voltage of the second signal source 40 detected and the peak-to-peak value of the voltage of the functional terminal T is greater than the third threshold voltage, the ground resistance Rx is small, so that the voltage of the functional terminal T is low, and there is liquid at the interface 3. The value range of the third threshold voltage can be 0V~Umax.

[0075] Exemplarily, the control circuit 30 includes a processor. The processor may be a processor in an electronic device or a separate processor, which is not limited here.

[0076] In one embodiment, if Figure 5As shown, the second signal source 40 includes a second AC signal source 41 and a second DC power source 42. A first end of the second AC signal source 41 is coupled to a second end of the control circuit 30, and the second AC signal source 41 is used to output a second AC voltage. A first end of the second DC power source 42 is coupled to a second end of the second AC signal source 41, and a second end of the second DC power source 42 is used to couple to a ground terminal GND1, and the second DC power source 42 is used to bias the second AC voltage to a second voltage, and the minimum value of the second voltage is greater than or equal to zero.

[0077] In this embodiment, the second AC voltage is biased to the second voltage by the second DC voltage, so that the negative voltage of the second AC signal source can be biased to a non-negative voltage, so that the control circuit can identify it. The control circuit compares the peak-to-peak value of the output voltage of the second signal source detected with the peak-to-peak value of the voltage of the functional terminal, reducing the interference suffered by the voltage comparison, thereby improving the accuracy of liquid detection. At the same time, by forming the second signal source with the second AC signal source and the second DC power supply, the circuit structure of the second signal source is simple and easy to produce, thereby reducing the complexity of the interface detection circuit structure.

[0078] Exemplarily, the first AC voltage and the second AC voltage have the same amplitude, frequency and phase, and the DC voltage output by the first DC power source 12 and the second DC power source 42 are the same.

[0079] Exemplarily, the first AC signal source 11 and the second AC signal source 41 may be AC ​​power sources or signal sources.

[0080] In one embodiment, if Figure 6 As shown, the minimum value of the first voltage and the minimum value of the second voltage are both greater than or equal to zero. The interface detection circuit also includes a first analog-to-digital conversion circuit 50 and a second analog-to-digital conversion circuit 60. The input end of the first analog-to-digital conversion circuit 50 is coupled to the second end of the voltage detection circuit 20, and the output end of the first analog-to-digital conversion circuit 50 is coupled to the first end of the control circuit 30. The input end of the second analog-to-digital conversion circuit 60 is coupled to the first end of the second signal source 40, and the output end of the second analog-to-digital conversion circuit 60 is coupled to the second end of the control circuit 30.

[0081] In this embodiment, due to the high conversion accuracy of the analog-to-digital conversion circuit, the voltage of the functional terminal and the second voltage can be converted from analog signals to digital signals through the first analog-to-digital conversion circuit and the second analog-to-digital conversion circuit and output to the control circuit, thereby improving the accuracy of liquid detection.

[0082] In one embodiment, if Figure 7As shown, the interface detection circuit further includes a second resistor R2, a first comparison circuit 70, and a second comparison circuit 80. The first end of the second resistor R2 is coupled in parallel with the second signal source 40. The first input end of the first comparison circuit 70 is coupled with the second end of the voltage detection circuit 20, the second input end of the first comparison circuit 70 is used to receive the first DC voltage VDC1, and the output end of the first comparison circuit 70 is coupled with the third end of the control circuit 30. The first input end of the second comparison circuit 80 is coupled with the first end of the second signal source 40, the second input end of the second comparison circuit 80 is used to receive the second DC voltage VDC2, and the output end of the second comparison circuit 80 is coupled with the fourth end of the control circuit 30.

[0083] In this embodiment, since the capacitance to ground of the functional terminal is different when the type of liquid is different, the zero-crossing point of the AC component of the voltage of the functional terminal is deviated. By coupling the first comparison circuit to the second end of the voltage detection circuit and receiving the first DC voltage, the voltage output by the first comparison circuit to the control circuit can reflect the zero-crossing point of the AC component of the voltage of the functional terminal. By connecting the second resistor in parallel with the second signal source as a reference, and coupling the second comparison circuit to the first end of the second signal source and receiving the second DC voltage, the voltage output by the second comparison circuit to the control circuit can reflect the zero-crossing point of the AC component of the second voltage. Since the control circuit can compare the zero-crossing point of the AC component of the voltage of the functional terminal and the zero-crossing point of the AC component of the second voltage, it is convenient to determine the size of the capacitance to ground to detect the type of liquid, thereby improving the accuracy of liquid detection.

[0084] Exemplarily, the first comparison circuit 70 and the second comparison circuit 80 may include a comparator. The first input terminal of the first comparison circuit 70 and the first input terminal of the second comparison circuit 80 may be a non-inverting input terminal of the comparator, or an inverting input terminal of the comparator. The second input terminal of the first comparison circuit 70 and the second input terminal of the second comparison circuit 80 may be an inverting input terminal of the comparator, or a non-inverting input terminal of the comparator.

[0085] Exemplarily, depending on the different coupling methods of the first comparison circuit 70 and the second comparison circuit 80, the control circuit 30 can compare the moment when the high voltage output by the first comparison circuit 70 and the second comparison circuit 80 switches to the low voltage or the moment when the low voltage output by the first comparison circuit 70 and the second comparison circuit 80 switches to determine the difference in zero crossing points, and then determine the capacitance Cx to ground of the functional terminal T.

[0086] In one embodiment, the interface detection circuit further includes a second resistor R2, a first operational amplifier circuit, and a second operational amplifier circuit. The first end of the second resistor R2 is coupled in parallel with the second signal source 40. The first input end of the first operational amplifier circuit is coupled with the second end of the voltage detection circuit 20, the second input end of the first operational amplifier circuit is used to receive the first DC voltage VDC1, and the output end of the first operational amplifier circuit is coupled with the third end of the control circuit 30. The first input end of the second operational amplifier circuit is coupled with the first end of the second signal source 40, the second input end of the second operational amplifier circuit is used to receive the second DC voltage VDC2, and the output end of the second operational amplifier circuit is coupled with the fourth end of the control circuit 30.

[0087] In this embodiment, since the capacitance to ground of the functional terminal is different when the type of liquid is different, the zero-crossing point of the AC component of the voltage of the functional terminal is deviated. By coupling the first operational amplifier circuit to the second end of the voltage detection circuit and receiving the first DC voltage, the voltage output by the first operational amplifier circuit to the control circuit can reflect the zero-crossing point of the AC component of the voltage of the functional terminal. By connecting the second resistor in parallel with the second signal source as a reference, and coupling the second operational amplifier circuit to the first end of the second signal source and receiving the second DC voltage, the voltage output by the second operational amplifier circuit to the control circuit can reflect the zero-crossing point of the AC component of the second voltage. Since the control circuit can compare the zero-crossing point of the AC component of the voltage of the functional terminal and the zero-crossing point of the AC component of the second voltage, it is convenient to determine the size of the capacitance to ground to determine the type of liquid, thereby improving the accuracy of liquid detection.

[0088] Exemplarily, the first operational amplifier circuit and the second operational amplifier circuit may include an operational amplifier. The first input terminal of the first operational amplifier circuit and the first input terminal of the second operational amplifier circuit may be a non-inverting input terminal of the operational amplifier, or an inverting input terminal of the operational amplifier. The second input terminal of the first operational amplifier circuit and the second input terminal of the second operational amplifier circuit may be an inverting input terminal of the operational amplifier, or a non-inverting input terminal of the operational amplifier.

[0089] Exemplarily, according to the different coupling methods of the first operational amplifier circuit and the second operational amplifier circuit, the control circuit 30 can compare the moment when the positive voltage and the negative voltage output by the first operational amplifier circuit and the second operational amplifier circuit switch or the moment when the negative voltage and the positive voltage switch to determine the difference in zero crossing points, and then determine the capacitance Cx to ground of the functional terminal T.

[0090] In one embodiment, the first DC voltage VDC1 has the same DC component as the first voltage, and the second DC voltage VDC2 has the same DC component as the second voltage.

[0091] In this embodiment, since the first DC voltage is the same as the DC component of the first voltage and the second DC voltage is the same as the DC component of the second voltage, the first comparison circuit and the second comparison circuit, or the first operational amplifier circuit and the second operational amplifier circuit can output the AC component of the corresponding voltage, so that the control circuit compares the zero-crossing moments of the two voltages to avoid the offset of the zero-crossing point caused by the DC component. Since the control circuit can compare the zero-crossing point of the AC component of the voltage of the functional terminal and the zero-crossing point of the AC component of the second voltage, the zero-crossing point is determined accurately, thereby improving the accuracy of liquid detection.

[0092] In one embodiment, the control circuit 30 is also used to detect the type of liquid.

[0093] In this embodiment, by comparing the zero-crossing point of the AC component of the voltage of the functional terminal and the zero-crossing point of the AC component of the second voltage, the capacitance to ground can be determined to detect the type of liquid, thereby improving the reliability of liquid detection.

[0094] For example, in the process of detecting the type of liquid, the resistance Rx and the capacitance Cx of the functional terminal T to ground may be combined for detection.

[0095] In one embodiment, if Figure 8 As shown, the interface detection circuit further includes a first switch unit T1 and a second switch unit T2. The first switch unit T1 is coupled between the first signal source 10 and the voltage detection circuit 20. The second switch unit T2 is coupled between the second signal source 40 and the control circuit 30.

[0096] In this embodiment, by adding the first switch unit and the second switch unit to the interface detection circuit, it can be turned on when it is necessary to detect whether there is liquid on the interface, and can be disconnected for detection when it is not necessary to detect whether there is liquid on the interface, thereby reducing the power consumption of the interface detection circuit.

[0097] Exemplarily, the first switch unit T1 and the second switch unit T2 may be transistors. Wherein, when the first switch unit T1 and the second switch unit T2 are N-type field effect transistors, the drain of the first switch unit T1 is coupled to the first signal source 10, and the source of the first switch unit T1 is coupled to the voltage detection circuit 20. The drain of the second switch unit T2 is coupled to the second signal source 40, and the source of the second switch unit T2 is coupled to the control circuit 30.

[0098] An exemplary embodiment of the present disclosure also provides an interface detection circuit, such as Fig. 9As shown, the interface detection circuit includes a first AC signal source 11, a first DC power supply 12, a control circuit 30, a second AC signal source 41, a second DC power supply 42, a first analog-to-digital conversion circuit 50, a second analog-to-digital conversion circuit 60, a first comparator CMP1, a second comparator CMP2, a first resistor R1, a second resistor R2, a first switch unit T1 and a second switch unit T2. The first end of the first AC signal source 11 is coupled to the drain of the first switch unit T1, and the second end of the first AC signal source 11 is coupled to the first end of the first DC power supply 12. The second end of the first DC power supply 12 is used to couple to the ground terminal GND1. The source of the first switch unit T1 is coupled to the first end of the first resistor R1, and the second end of the first resistor R1 is coupled to the input end of the first analog-to-digital conversion circuit 50, the non-inverting input end of the first comparator CMP1 and the functional terminal T of the interface 3. The output end of the first analog-to-digital conversion circuit 50 is coupled to the first end of the control circuit 30. The inverting input terminal of the first comparator CMP1 is used to receive the first DC voltage VDC1, and the output terminal of the first comparator CMP1 is coupled to the third terminal of the control circuit 30. The first terminal of the second AC signal source 41 is coupled to the drain of the second switch unit T2, and the second terminal of the second AC signal source 41 is coupled to the first terminal of the second DC power supply 42. The second terminal of the second DC power supply 42 is coupled to the first terminal of the second resistor R2 and the ground terminal GND1. The source of the second switch unit T2 is coupled to the second terminal of the second resistor R2, the input terminal of the second analog-to-digital conversion circuit 60, and the non-inverting input terminal of the second comparator CMP2. The inverting input terminal of the second comparator CMP2 is used to receive the second DC voltage VDC2, and the output terminal of the second comparator CMP2 is coupled to the fourth terminal of the control circuit 30. Among them, the control circuit 30 detects whether there is liquid and the type of liquid in the interface 3 by detecting the ground resistance Rx and the ground capacitance Cx between the function terminal T and the ground terminal GND.

[0099] In an exemplary embodiment, an electronic device is provided, and the electronic device is, for example, a mobile phone, a laptop computer, a tablet computer, a wearable device, etc. The electronic device includes the interface detection circuit as described above.

[0100] refer to Fig.10 As shown, electronic device 400 may include one or more of the following components: a processing component 402 , a memory 404 , a power component 406 , a multimedia component 408 , an audio component 410 , an input / output (I / O) interface 412 , a sensor component 414 , and a communication component 416 .

[0101] The processing component 402 generally controls the overall operation of the electronic device 400, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 402 may include one or more modules to facilitate the interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate the interaction between the multimedia component 408 and the processing component 402.

[0102] The memory 404 is configured to store various types of data to support operations on the electronic device 400. Examples of such data include instructions for any application or method operating on the electronic device 400, contact data, phone book data, messages, pictures, videos, etc. The memory 404 can be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0103] The power supply component 406 provides power to the various components of the electronic device 400. The power supply component 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 400.

[0104] The multimedia component 408 includes a screen that provides an output interface between the electronic device 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front camera module and / or a rear camera module. When the electronic device 400 is in an operating mode, such as a shooting mode or a video mode, the front camera module and / or the rear camera module may receive external multimedia data. Each front camera module and the rear camera module may be a fixed optical lens system or have a focal length and optical zoom capability.

[0105] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC), and when the electronic device 400 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 404 or sent via the communication component 416. In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.

[0106] I / O interface 412 provides an interface between processing component 402 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0107] The sensor assembly 414 includes one or more sensors for providing various aspects of status assessment for the electronic device 400. For example, the sensor assembly 414 can detect the open / closed state of the electronic device 400, the relative positioning of components, such as the display and keypad of the electronic device 400, and the sensor assembly 414 can also detect the position change of the electronic device 400 or a component of the electronic device 400, the presence or absence of user contact with the electronic device 400, the orientation or acceleration / deceleration of the electronic device 400, and the temperature change of the electronic device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 414 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0108] The communication component 416 is configured to facilitate wired or wireless communication between the electronic device 400 and other terminals. The electronic device 400 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0109] In an exemplary embodiment, the electronic device 400 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing terminals (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.

[0110] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. 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 disclosure. In this specification, the schematic representations of the above terms do 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. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0111] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0112] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the utility model disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The description and examples are to be regarded as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0113] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. An interface detection circuit, characterized in that: The interface detection circuit comprises: A first signal source, the first signal source is used to output a first voltage, and the first voltage changes periodically over time; a voltage detection circuit, wherein a first end of the voltage detection circuit is coupled to the first signal source, and a second end of the voltage detection circuit is used to couple to a functional terminal of an interface; A control circuit is coupled to the second end of the voltage detection circuit, and the control circuit is used to detect whether there is liquid in the interface according to the peak-to-peak value of the voltage of the functional terminal.

2. The interface detection circuit according to claim 1, characterized in that: The first signal source comprises: A first AC signal source, wherein a first end of the first AC signal source is coupled to a first end of the voltage detection circuit, and the first AC signal source is used to output a first AC voltage; A first DC power supply, wherein a first end of the first DC power supply is coupled to a second end of the first AC signal source, the second end of the first DC power supply is used to couple to a ground end, the first DC power supply is used to bias the first AC voltage to the first voltage, and a minimum value of the first voltage is greater than or equal to zero.

3. The interface detection circuit according to claim 1, characterized in that: The voltage detection circuit comprises: A first resistor, wherein a first end of the first resistor is coupled to a first end of the first signal source, and a second end of the first resistor is coupled to both a first end of the control circuit and the function terminal.

4. The interface detection circuit according to claim 1, characterized in that: When the interface is not connected to an external device, the functional terminal is not powered; and / or when the interface is connected to an external device, the functional terminal is not powered.

5. The interface detection circuit according to claim 1, characterized in that: The interface detection circuit also includes: A second signal source is coupled to the control circuit, and the second signal source is used to output a second voltage, and the second voltage is the same as the first voltage.

6. The interface detection circuit according to claim 5, characterized in that: The second signal source comprises: a second AC signal source, a first end of the second AC signal source being coupled to a second end of the control circuit, and the second AC signal source being used to output a second AC voltage; A second DC power supply, wherein a first end of the second DC power supply is coupled to a second end of the second AC signal source, a second end of the second DC power supply is used to couple to a ground end, and the second DC power supply is used to bias the second AC voltage to the second voltage, wherein a minimum value of the second voltage is greater than or equal to zero.

7. The interface detection circuit according to claim 5, characterized in that: The minimum value of the first voltage and the minimum value of the second voltage are both greater than or equal to zero; The interface detection circuit also includes: A first analog-to-digital conversion circuit, wherein an input terminal of the first analog-to-digital conversion circuit is coupled to the second terminal of the voltage detection circuit, and an output terminal of the first analog-to-digital conversion circuit is coupled to the first terminal of the control circuit; A second analog-to-digital conversion circuit, wherein an input end of the second analog-to-digital conversion circuit is coupled to a first end of the second signal source, and an output end of the second analog-to-digital conversion circuit is coupled to a second end of the control circuit.

8. The interface detection circuit according to claim 5, characterized in that: The interface detection circuit also includes: a second resistor, a first end of the second resistor being coupled in parallel with the second signal source; a first comparison circuit, wherein a first input terminal of the first comparison circuit is coupled to a second terminal of the voltage detection circuit, a second input terminal of the first comparison circuit is used to receive a first DC voltage, and an output terminal of the first comparison circuit is coupled to a third terminal of the control circuit; A second comparison circuit, wherein a first input terminal of the second comparison circuit is coupled to a first terminal of the second signal source, a second input terminal of the second comparison circuit is used to receive a second DC voltage, and an output terminal of the second comparison circuit is coupled to a fourth terminal of the control circuit.

9. The interface detection circuit according to claim 5, characterized in that: The interface detection circuit also includes: a second resistor, a first end of the second resistor being coupled in parallel with the second signal source; a first operational amplifier circuit, wherein a first input terminal of the first operational amplifier circuit is coupled to a second terminal of the voltage detection circuit, the second input terminal of the first operational amplifier circuit is used to receive a first DC voltage, and an output terminal of the first operational amplifier circuit is coupled to a third terminal of the control circuit; A second operational amplifier circuit, wherein the first input terminal of the second operational amplifier circuit is coupled to the first terminal of the second signal source, the second input terminal of the second operational amplifier circuit is used to receive a second DC voltage, and the output terminal of the second operational amplifier circuit is coupled to the fourth terminal of the control circuit.

10. The interface detection circuit according to claim 8 or 9, characterized in that: The first DC voltage has the same DC component as the first voltage, and the second DC voltage has the same DC component as the second voltage.

11. The interface detection circuit according to any one of claims 5 to 9, characterized in that: The interface detection circuit also includes: A first switch unit, wherein the first switch unit is coupled between the first signal source and the voltage detection circuit; A second switch unit is coupled between the second signal source and the control circuit.

12. An electronic device, characterized in that: The electronic device comprises the interface detection circuit according to any one of claims 1 to 11.