CN215641865U - Detection circuit and detection device - Google Patents

Detection circuit and detection device Download PDF

Info

Publication number
CN215641865U
CN215641865U CN202121629979.0U CN202121629979U CN215641865U CN 215641865 U CN215641865 U CN 215641865U CN 202121629979 U CN202121629979 U CN 202121629979U CN 215641865 U CN215641865 U CN 215641865U
Authority
CN
China
Prior art keywords
resistor
detection circuit
comparator
controller
input end
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202121629979.0U
Other languages
Chinese (zh)
Inventor
黄卫员
陈毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tonly Electronics Holdings Ltd
Original Assignee
Tonly Electronics Holdings Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tonly Electronics Holdings Ltd filed Critical Tonly Electronics Holdings Ltd
Priority to CN202121629979.0U priority Critical patent/CN215641865U/en
Application granted granted Critical
Publication of CN215641865U publication Critical patent/CN215641865U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The utility model provides a detection circuit and a detection device, wherein the detection circuit is applied to a data communication interface, the data communication interface is provided with a differential signal pin, and the detection circuit comprises: the input end of the liquid detection circuit is connected with the differential signal pin; the input end of the controller is connected with the output end of the liquid detection circuit; and the input end of the prompt module is connected with the output end of the controller. The technical scheme of the utility model aims to avoid the damage of the data communication interface caused by the liquid existing in the data communication interface.

Description

Detection circuit and detection device
Technical Field
The utility model relates to the technical field of Type-C interfaces, in particular to a detection circuit and a detection device.
Background
Type-C is an interface Type that can be applied to both a PC (master device) and an external device (slave device, such as a mobile phone), and is the latest USB interface profile standard. Wherein, because the small volume of Type-C interface, the pin is many, pin interval is intensive, consequently, in case the pin widen of Type-C interface, for example many times plug Type-C interface, incorrect plug Type-C interface, the pin of Type-C interface is by oxidation etc. and leads to the pin widen of Type-C interface, then, the short circuit condition then appears easily in the pin of Type-C interface, the pin short circuit of Type-C interface can lead to the Type-C interface to generate heat, the Type-C interface is damaged.
In addition, if the Type-C interface has liquid to exist, then, after the power supply, then there can be the electric field and produce the ionization reaction between the bus power pin of Type-C interface and other pins of Type-C interface, and then lead to the pin widen of Type-C interface for the short circuit condition appears in the pin of Type-C interface, and the pin short circuit of Type-C interface can lead to the Type-C interface to generate heat, and the Type-C interface is damaged.
SUMMERY OF THE UTILITY MODEL
The utility model provides a detection circuit and a detection device, aiming at avoiding the damage of a data communication interface caused by the existence of liquid in the data communication interface.
In order to achieve the above object, the present invention provides a detection circuit, which is applied to a data communication interface, where the data communication interface has a differential signal pin, and the detection circuit includes:
the input end of the liquid detection circuit is connected with the differential signal pin;
the input end of the controller is connected with the output end of the liquid detection circuit;
and the input end of the prompt module is connected with the output end of the controller.
Optionally, the differential signal pin includes a first differential signal pin and a second differential signal pin, the input terminal of the controller includes a first input terminal and a second input terminal, and the body fluid detection circuit includes a first liquid detection circuit and a second liquid detection circuit;
the input end of the first liquid detection circuit is connected with the first differential signal pin, and the output end of the first liquid detection circuit is connected with the first input end of the controller;
the input end of the second liquid detection circuit is connected with the second differential signal pin, and the output end of the second liquid detection circuit is connected with the second input end of the controller.
Optionally, the data communication interface further includes a bus power pin, and the first liquid detection circuit includes a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor, and a first comparator;
the first resistor and the second resistor are connected in series between the bus power supply pin and the ground end, and the common end of the first resistor and the second resistor is connected with the positive input end of the first comparator;
the third resistor and the fourth resistor are connected between the bus power supply pin and the ground end in series, and the common end of the third resistor and the fourth resistor is connected with the negative input end of the first comparator;
a positive input end of the first comparator is connected with the first differential signal pin, and an output end of the first comparator is connected with one end of the fifth resistor and the first input end of the controller; the other end of the fifth resistor is connected with a power supply module.
Optionally, the detection circuit further includes a first filter circuit;
the positive input end of the first comparator is connected with the first differential signal pin through the first filter circuit.
Optionally, the second liquid detection circuit includes a sixth resistor, a seventh resistor, an eighth resistor, a ninth resistor, a tenth resistor, and a second comparator;
the sixth resistor and the seventh resistor are connected in series between the bus power pin and the ground, and a common end of the sixth resistor and the seventh resistor is connected with a positive input end of the second comparator;
the eighth resistor and the ninth resistor are connected between the bus power supply pin and the ground end in series, and the common end of the eighth resistor and the ninth resistor is connected with the negative input end of the second comparator;
a positive input end of the second comparator is connected to the second differential signal pin, and an output end of the second comparator is connected to one end of the tenth resistor and the second input end of the controller; the other end of the tenth resistor is connected with the power supply module.
Optionally, the detection circuit further includes a second filter circuit;
and the positive input end of the second comparator is connected with the second differential signal pin through the second filter circuit.
Optionally, the input end of the controller further includes a third input end, and the detection circuit further includes a temperature detection circuit for detecting a temperature of the data communication interface;
and the output end of the temperature detection circuit is connected with the third input end of the controller.
Optionally, the temperature detection circuit includes an eleventh resistor, a twelfth resistor, a thirteenth resistor, a fourteenth resistor, a thermistor, a first capacitor, and a third comparator;
one end of the eleventh resistor is connected with a power supply module, and the other end of the eleventh resistor is connected with the positive input end of the third comparator; the thermistor is connected in parallel with the first capacitor and then connected between the positive input end and the ground end of the third comparator in series;
the twelfth resistor and the thirteenth resistor are connected between the power supply module and the ground terminal in series, and a common end of the twelfth resistor and the thirteenth resistor is connected with a negative input end of the third comparator;
one end of the fourteenth resistor is connected with the power module, the other end of the fourteenth resistor is connected with the output end of the third comparator, and the output end of the third comparator is connected with the third input end of the controller.
Optionally, the detection circuit further includes a power supply circuit;
the first power input end of the power supply circuit is connected with the power module, the second power input end of the power supply circuit is connected with the bus power pin of the data communication interface, and the output end of the power supply circuit is connected with the power end of the liquid detection circuit and the power end of the temperature detection circuit.
To achieve the above object, the present invention further provides a detection apparatus including the detection circuit as described in any one of the above.
According to the technical scheme, whether liquid exists in the data communication interface or not is detected through the liquid detection circuit, once the liquid exists in the data communication interface, the liquid detection circuit outputs an electric signal for representing the existence of the liquid to the controller, and the controller sends a prompt message for representing the existence of the liquid in the data communication interface to a user through the prompt module so that the user can take corresponding measures in time. By the arrangement, the data communication interface can be prevented from being damaged due to the fact that liquid exists in the data communication interface.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
FIG. 1 is a block diagram of a detection circuit according to an embodiment of the present invention;
FIG. 2 is a block diagram of an embodiment of the liquid detection circuit of FIG. 1;
FIG. 3 is a schematic diagram of a pin configuration of an exemplary embodiment of the data communication interface of FIG. 2;
FIG. 4 is a schematic circuit diagram of an embodiment of the liquid detection circuit of FIG. 2;
FIG. 5 is a block diagram of another embodiment of the detection circuit of the present invention;
FIG. 6 is a schematic circuit diagram of an embodiment of the temperature detection circuit of FIG. 5;
FIG. 7 is a block diagram of a detection circuit according to another embodiment of the present invention;
fig. 8 is a schematic circuit diagram of an embodiment of the power supply circuit in fig. 7.
The reference numbers illustrate:
10 data communication interface 20 Liquid detection circuit
30 Controller 40 Prompt module
50 Power supply module 60 Temperature detection circuit
70 Power supply circuit 201 First liquid detection circuit
202 Second liquid detection circuit NTC Thermal resistor
R1~R18 First to eighteenth resistors C1~C4 First to fourth capacitors
GND Ground terminal TX First differential signal pin
RX Second differential signal pin VBUS Bus power supply pin
U1A First comparator U1B Second comparator
U1C Third comparator D1 First diode
D2 Second diode
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, if directional indications (such as up, down, left, right, front, and back … …) are involved in the embodiment of the present invention, the directional indications are only used to explain the relative positional relationship between the components, the movement situation, and the like in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indications are changed accordingly.
In addition, if there is a description of "first", "second", etc. in an embodiment of the present invention, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
FIG. 1 is a block diagram of a detection circuit according to an embodiment of the present invention.
The detection circuit is applied to the data communication interface 10, the data communication interface 10 can be a Type-C interface, and of course, the detection circuit can also be applied to other applicable data communication interfaces, which is not limited herein, and the utility model is fully described by taking the data communication interface 10 as the Type-C interface as an example.
The data communication interface 10, i.e. the Type-C interface, includes a differential signal pin, which may be a first differential signal pin TX or a second differential signal pin RX for transmitting a differential signal in the Type-C interface, and the Type-C interface further includes a bus power pin VBUS for voltage input and output.
The detection circuit comprises a liquid detection circuit 20, a controller 30 and a prompt module 40, wherein the input end of the liquid detection circuit 20 is connected with a differential signal pin of a Type-C interface; the output end of the liquid detection circuit 20 is connected with the input end of the controller 30; an output of the controller 30 is connected to an input of a prompt module 40.
The liquid detection circuit 20 is used for detecting whether liquid exists in the Type-C interface. This liquid detection circuitry 20 can be formed by liquid detection sensor, also can be realized by other detection circuitry that can detect whether Type-C interface exists liquid.
The controller 30 may be a single chip, a DSP or a microprocessor such as an FPGA.
The prompt module 40 may be a display module, such as an LED display module and an LCD display module, or a voice prompt module, such as a buzzer and a speaker; the intelligent alarm device can also be formed by combining a display module and a prompt module.
The method comprises the following specific steps: if the Type-C interface has liquid, then, after supplying power, there will be an electric field between the bus power supply pin VBUS of Type-C interface and other pins of Type-C interface, and the existence of electric field can lead to the electron removal in the liquid, and the electron removal in the liquid can make the voltage of the differential signal pin of Type-C interface rise. Based on this, according to the technical solution of this embodiment, the voltage of the differential signal pin of the Type-C interface is detected in real time or at regular time by the liquid detection circuit 20. If the voltage of the differential signal pin of the Type-C interface is within the preset voltage range, the liquid detection circuit 20 outputs an electric signal of a first level to the controller 30, and the controller 30 sends a prompt message that the Type-C interface does not have liquid to the user through the prompt module 40.
If the Type-C interface has liquid, then, under the effect of the electric field, the electronic movement in the liquid will cause the voltage of the differential signal pin of the Type-C interface to rise, and once the liquid detection circuit 20 detects that the voltage of the differential signal pin of the Type-C interface rises and exceeds the preset voltage range, the liquid detection circuit 20 outputs the electrical signal of the second level to the controller 30. Controller 30 then sends the prompt message that there is liquid in Type-C interface to the user through prompt module 40 to supply the user in time to take corresponding solution, for example, remind the user in time to extract outside Type-C equipment and Type-C line, and in time handle the liquid of Type-C interface, avoid the pin of Type-C interface to be corroded by liquid and lead to the pin short circuit of Type-C interface, the Type-C interface is damaged. So set up, can improve the security that the user used Type-C interface.
According to the technical scheme of the embodiment, whether liquid exists in the data communication interface 10 is detected through the liquid detection circuit 20, once the liquid exists in the data communication interface 10, the liquid detection circuit 20 outputs an electric signal for representing the existence of the liquid to the controller 30, and the controller 30 sends a prompt message for representing the existence of the liquid in the data communication interface 10 to a user through the prompt module 40, so that the user can take corresponding measures in time. With this arrangement, it is possible to prevent the data communication interface 10 from being damaged due to the presence of liquid in the data communication interface 10.
Optionally, referring to fig. 2, in an embodiment, the differential signal pins of the data communication interface 10 include a first differential signal pin TX and a second differential signal pin RX, the input terminals of the controller 30 include a first input terminal and a second input terminal, and the body fluid detection circuit 20 includes a first fluid detection circuit 201 and a second fluid detection circuit 202; the input of the first liquid detection circuit 201 is connected to the first differential signal pin TX of the data communication interface 10, and the output of the first liquid detection circuit 201 is connected to the first input of the controller 30. The input of the second liquid detection circuit 202 is connected to the second differential signal pin RX of the data communication interface 10, and the output of the second liquid detection circuit 202 is connected to the second input of the controller 30.
The first liquid detection circuit 201 may include a voltage divider circuit and a comparator circuit, and the first liquid detection circuit 201 is configured to detect a voltage level of the first differential signal pin TX of the Type-C interface and feed the voltage level back to the controller 30.
The second liquid detection circuit 202, which may be composed of a voltage divider circuit and a comparator circuit, detects the voltage of the second differential signal pin RX of the Type-C interface and feeds the detected voltage back to the controller 30.
In practice, as shown in FIG. 3, the Type-C interface includes 24 pins, including two sets of differential signal pins TX/RX, which are disposed at four corners of the Type-C interface. The present embodiment mainly detects two sets of differential signal pins TX/RX of the Type-C interface through the first liquid detection circuit 201 and the second liquid detection circuit 202, and determines whether liquid exists in the Type-C interface according to the voltage variation of the two sets of differential signal pins TX/RX of the Type-C interface.
Specifically, in the embodiment, the first liquid detection circuit 201 detects the voltage of the first differential signal pin TX of the Type-C interface, and if no liquid exists around the first differential signal pin TX of the Type-C interface, the voltage of the first differential signal pin TX of the Type-C interface is within a preset voltage range, and the first liquid detection circuit 201 accordingly outputs a first level, such as a low-level electrical signal, to the controller 30. If there is liquid around the first differential signal pin TX of the Type-C interface, under the action of the electric field, the voltage of the first differential signal pin TX of the Type-C interface is increased due to the movement of electrons in the liquid. Based on this, once the first liquid detection circuit 201 detects that the voltage of the first differential signal pin TX of the Type-C interface rises and exceeds the preset voltage range, the first liquid detection circuit 201 outputs a second level, e.g., a high level electrical signal, to the controller 30.
Meanwhile, in the present embodiment, the second liquid detection circuit 202 detects the voltage of the second differential signal pin RX of the Type-C interface, and if no liquid exists around the second differential signal pin RX of the Type-C interface, the voltage of the second differential signal pin RX of the Type-C interface is within a preset voltage range, and the second liquid detection circuit 202 outputs a first level, such as a low-level electrical signal, to the controller 30 accordingly. If there is liquid around the second differential signal pin TX of the Type-C interface, the voltage of the second differential signal pin RX of the Type-C interface is increased due to the movement of electrons in the liquid under the action of the electric field. Based on this, once the second liquid detection circuit 202 detects that the voltage of the second differential signal pin RX of the Type-C interface rises and exceeds the preset voltage range, the second liquid detection circuit 202 outputs a second level, e.g., a high level electrical signal, to the controller 30.
If the level of one of the first liquid detection circuit 201 and the second liquid detection circuit 202 is inverted, it indicates that liquid exists in the Type-C interface.
To sum up, the voltage of the first differential signal pin TX and the voltage of the second differential signal pin RX arranged at four corners of the Type-C interface are detected by the first liquid detection circuit 201 and the second liquid detection circuit 202 in this embodiment, and whether liquid exists in the Type-C interface is determined according to the voltage of the first differential signal pin TX and the voltage change condition of the second differential signal pin RX, and when liquid exists in the Type-C interface, prompt information is sent to a user in time through the prompt module 40, so that the user can take corresponding solutions in time, thereby avoiding the pin short circuit of the Type-C interface caused by the liquid existing in the Type-C interface, and further damaging the Type-C interface.
Optionally, referring to fig. 3 and 4, in an embodiment, the data communication interface 10 further has a bus power pin VBUS, and the first liquid detection circuit 201 includes a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a fifth resistor R5, and a first comparator U1A; the first resistor R1 and the second resistor R2 are connected in series between the bus power pin VBUS of the data communication interface 10 and the ground GND, and a common terminal of the first resistor R1 and the second resistor R2 is connected to the positive input terminal of the first comparator U1A; the third resistor R3 and the fourth resistor R4 are connected in series between the bus power supply pin VBUS of the data communication interface 10 and the ground terminal GND, and a common terminal of the third resistor R3 and the fourth resistor R4 is connected to the negative input terminal of the first comparator U1A; the positive input end of the first comparator U1A is further connected to the first differential signal pin TX of the data communication interface 10, and the output end of the first comparator U1A is connected to one end of the fifth resistor R5 and the first input end of the controller 30; the other end of the fifth resistor R5 is connected to a power module 50.
Specifically, if no liquid exists around the first differential signal pin TX of the Type-C interface, the voltage of the positive input terminal of the first comparator U1A is less than the voltage of the negative input terminal of the first comparator U1A, and the first comparator U1A outputs a low-level electrical signal to the controller 30.
If there is liquid around the first differential signal pin TX of the Type-C interface, under the action of the electric field, the voltage of the first differential signal pin TX of the Type-C interface is increased due to the movement of electrons in the liquid, and correspondingly, the voltage of the positive input terminal of the first comparator U1A is also increased, so that the voltage of the positive input terminal of the first comparator U1A is finally greater than the voltage of the negative input terminal of the first comparator U1A. Since the first comparator U1A is configured with an open-collector output, when the voltage at the positive input terminal of the first comparator U1A is greater than the voltage at the negative input terminal of the first comparator U1A, the first comparator U1A is in a high-impedance state, and at this time, the first input terminal of the controller 30 is at a high level under the pull-up action of the fifth resistor R5. In this embodiment, the fifth resistor R5 is provided to invert the level of the first input terminal of the controller 30, so as to prevent the first comparator U1A from outputting a high voltage to damage the back-end chip.
It can be understood that, since the first resistor R1 and the second resistor R2 divide the voltage of the bus power pin VBUS of the Type-C interface and output the divided voltage to the positive input terminal of the first comparator U1A, the third resistor R3 and the fourth resistor R4 also divide the voltage of the bus power pin VBUS of the Type-C interface and output the divided voltage to the negative input terminal of the first comparator U1A. Therefore, through reasonably setting the resistance values of the first resistor R1, the second resistor R2, the third resistor R3 and the fourth resistor R4, it can be ensured that when the Type-C interface is free of liquid, the voltage of the positive input end of the first comparator U1A is smaller than the voltage of the negative input end of the first comparator U1A, and therefore, once the Type-C interface has liquid, the voltage of the first differential signal pin TX of the Type-C interface is increased, the level inversion output by the first comparator U1A can be triggered quickly, and therefore the detection sensitivity can be effectively improved.
The resistance values of the first resistor R1 and the second resistor R2 can be selected to be larger than 1M omega, and the arrangement can ensure that the driving capability of the first comparator U1A is weaker, and the normal use of the Type-C interface cannot be influenced. It should be understood that if no external device is plugged into the Type-C interface, the bus power pin VBUS of the Type-C interface has no voltage output, and the positive input terminal of the first comparator U1A has no voltage, in which case, even if there is liquid in the Type-C interface, the liquid in the Type-C interface will not generate ionization reaction to corrode the pin of the Type-C interface due to no electric field effect.
Optionally, in an embodiment, the detection circuit further includes a first filter circuit (not shown); the positive input terminal of the first comparator U1A in the first liquid detection circuit 201 is connected to the first differential signal pin TX of the Type-C interface through the first filter circuit.
In practical applications, if an external device is inserted into the Type-C interface, the first differential signal pin TX of the Type-C interface is easily interfered by an electromagnetic signal of an environment, so that the first comparator U1A is triggered by mistake. Moreover, the presence of a high-frequency pulse signal at the first differential signal pin TX of the Type-C interface may also cause the first comparator U1A to be triggered by mistake. Based on this, the first filter circuit is provided in this embodiment to filter the interference signal of the first differential signal pin TX of the Type-C interface, so as to prevent the first comparator U1A from being triggered by mistake, and achieve the purpose of improving the stability and reliability of the circuit.
Alternatively, referring to fig. 3 and 4, the first filter circuit includes a second capacitor C2, a fifteenth resistor R15 and a sixteenth resistor R16; the first differential signal pin TX of the Type-C interface is connected to the positive input end of the first comparator U1A through a fifteenth resistor R15 and a sixteenth resistor R16; one end of the second capacitor C2 is connected to the positive input terminal of the first comparator U1A, and the other end of the second capacitor C2 is grounded.
Optionally, referring to fig. 3 and 4, in an embodiment, the second liquid detection circuit 202 includes a sixth resistor R6, a seventh resistor R7, an eighth resistor R8, a ninth resistor R9, a tenth resistor R10, and a second comparator U1B; the sixth resistor R6 and the seventh resistor R7 are connected in series between the bus power pin VBUS of the data communication interface 10 and the ground GND, and a common terminal of the sixth resistor R6 and the seventh resistor R7 is connected to the positive input terminal of the second comparator U1B; the eighth resistor R8 and the ninth resistor R9 are connected in series between the bus power supply pin VBUS of the data communication interface 10 and the ground terminal GND, and a common terminal of the eighth resistor R8 and the ninth resistor R9 is connected to a negative input terminal of the second comparator U1B; the positive input end of the second comparator U1B is further connected to the second differential signal pin RX of the data communication interface 10, and the output end of the second comparator U1B is connected to one end of the tenth resistor R10 and the second input end of the controller 30; the other end of the tenth resistor R10 is connected to the power supply module 50.
Specifically, if no liquid exists around the second differential signal pin RX of the Type-C interface, the voltage of the positive input terminal of the second comparator U1B is less than the voltage of the negative input terminal of the second comparator U1B, and the second comparator U1B outputs a low-level electrical signal to the controller 30.
If there is liquid around the second differential signal pin RX of the Type-C interface, under the action of the electric field, the voltage of the second differential signal pin RX of the Type-C interface is increased due to the movement of electrons in the liquid, and correspondingly, the voltage of the positive input terminal of the second comparator U1B is also increased, so that the voltage of the positive input terminal of the second comparator U1B is finally higher than the voltage of the negative input terminal of the second comparator U1B. Since the second comparator U1B has an open collector output structure, when the voltage at the positive input terminal of the second comparator U1B is greater than the voltage at the negative input terminal of the second comparator U1B, the second comparator U1B is in a high-impedance state, and at this time, the level of the second input terminal of the controller 30 is inverted under the pull-up action of the tenth resistor R10, and the second input terminal of the controller 30 is at a high level. With the arrangement, the second comparator U1B can be prevented from outputting high voltage to damage the rear-end chip.
It can be understood that, since the sixth resistor R6 and the seventh resistor R7 divide the voltage of the bus power pin VBUS of the Type-C interface and output the divided voltage to the positive input terminal of the second comparator U1B; the eighth resistor R8 and the ninth resistor R9 are also negative inputs of the second comparator U1B, and output the voltage divided by the bus power pin VBUS of the Type-C interface. Therefore, through reasonably setting the resistance values of the sixth resistor R6, the seventh resistor R7, the eighth resistor R8 and the ninth resistor R9, it can be ensured that when the Type-C interface is free from liquid, the voltage of the positive input end of the second comparator U1B is smaller than the voltage of the negative input end of the second comparator U1B, and thus, once the Type-C interface has liquid, the voltage of the second differential signal pin RX of the Type-C interface rises, the level inversion output by the second comparator U1B can be triggered quickly, and therefore, the detection sensitivity can be effectively improved.
In this embodiment, the resistances of the sixth resistor R6 and the seventh resistor R7 may be selected to be greater than 1M Ω, so that the driving capability of the second comparator U1B is weak, and the normal use of the Type-C interface is not affected. It should be understood that if no external device is plugged into the Type-C interface, the bus power pin VBUS of the Type-C interface has no voltage output, and the positive input terminal of the second comparator U1B has no voltage, in which case, even if there is liquid in the Type-C interface, the liquid in the Type-C interface will not generate ionization reaction to corrode the pin of the Type-C interface due to no electric field effect.
Optionally, in an embodiment, the negative input terminal of the second comparator U1B may be multiplexed with the negative input terminal of the first comparator U1A by the third resistor R3 and the fourth resistor R4; that is, the voltage of the bus power pin VBUS of the Type-C interface can be divided by the third resistor R3 and the fourth resistor R4 in the first temperature detection circuit 201, and then output to the negative input terminal of the second comparator U1B. By the arrangement, the eighth resistor R8 and the ninth resistor R9 do not need to be separately arranged to provide the reference voltage for the negative input end of the second comparator U1B, so that circuit components can be saved, and the circuit cost is reduced.
Optionally, in an embodiment, the detection circuit further includes a second filter circuit (not shown); and the positive input terminal of the second comparator U1B in the second liquid detection circuit 202 is connected to the second differential signal pin RX of the Type-C interface through a second filter circuit.
In practical applications, if an external device is plugged into the Type-C interface, the second differential signal pin RX of the Type-C interface is easily interfered by an electromagnetic signal of an environment, so that the second comparator U1B is triggered by mistake. Moreover, the presence of a high-frequency pulse signal at the second differential signal pin RX of the Type-C interface may also cause the second comparator U1B to be triggered by mistake. Therefore, the second filter circuit is provided in this embodiment to filter the interference signal of the second differential signal pin RX of the Type-C interface, so as to prevent the second comparator U1B from being triggered by mistake, thereby improving the stability and reliability of the circuit.
Alternatively, referring to fig. 3 and 4, the second filter circuit includes a third capacitor C3, a seventeenth resistor R17, and an eighteenth resistor R18; the second differential signal pin RX of the Type-C interface is connected to the positive input terminal of the second comparator U1B through a seventeenth resistor R17 and an eighteenth resistor R18; one end of the third capacitor C3 is connected to the positive input terminal of the second comparator U1B, and the other end of the third capacitor C3 is grounded.
Optionally, referring to fig. 5, in an embodiment, the input terminal of the controller 30 further includes a third input terminal, and the detection circuit further includes a temperature detection circuit 60 for detecting the temperature of the data communication interface 10; an output of the temperature detection circuit 60 is connected to a third input of the controller 30.
The temperature detection circuit 60 may be composed of a temperature sensor, or may be composed of a thermistor and a comparator. The temperature detection circuit 60 is configured to detect a temperature of the data communication interface 10 and output an electrical signal corresponding to the temperature of the data communication interface 10 to the controller 30.
In practical application, once a short circuit occurs to a pin of the Type-C interface, for example, the pin of the Type-C interface is short-circuited due to corrosion of liquid, or the pin of the Type-C interface is short-circuited due to improper user operation, the Type-C interface generates heat, and the temperature of the Type-C interface increases. Based on this, the present embodiment provides the temperature detection circuit 60 to detect the temperature of the Type-C interface in real time or at regular time, so as to further determine whether the Type-C interface is abnormal through the temperature detection circuit 60.
Specifically, if the temperature detection circuit 60 detects that the temperature of the Type-C interface is within the preset temperature range, for example, if the temperature of the Type-C interface is detected to be less than 60 ℃, the temperature detection circuit 60 outputs a second level, for example, a high-level electrical signal to the controller 30, and the controller 30 determines that the temperature of the Type-C interface is normal accordingly.
If the temperature detection circuit 60 detects that the temperature of the Type-C interface is out of the predetermined temperature range, for example, if the temperature of the Type-C interface is detected to be greater than 60 ℃, the temperature detection circuit 60 outputs a first level, for example, a low level electrical signal to the controller 30, and the controller 30 determines that the temperature of the Type-C interface is abnormal accordingly. The controller 30 sends prompt information to the user through the prompt module 40 to prompt the user to process timely.
Optionally, referring to fig. 6, in an embodiment, the temperature detecting circuit 60 includes an eleventh resistor R11, a twelfth resistor R12, a thirteenth resistor R13, a fourteenth resistor R14, a thermistor NTC, a first capacitor C1, and a third comparator U1C; wherein the content of the first and second substances,
one end of the eleventh resistor R11 is connected to a power module 50, and the other end of the eleventh resistor R11 is connected to the positive input end of the third comparator U1C; the thermistor NTC is connected in parallel with the first capacitor C1 and then connected in series between the positive input terminal of the third comparator U1C and the ground terminal GND; the twelfth resistor R12 and the thirteenth resistor R14 are connected in series between the power module 50 and the ground terminal GND, and the common terminal of the twelfth resistor R12 and the thirteenth resistor R13 is connected with the negative input terminal of the third comparator U1C; one end of the fourteenth resistor R14 is connected to the power module 50, the other end of the fourteenth resistor R14 is connected to the output terminal of the third comparator U1C, and the output terminal of the third comparator U1C is further connected to the third input terminal of the controller 30.
In this embodiment, the thermistor NTC can be arranged on the shell of the Type-C interface, can also be arranged in the shell of the Type-C interface, and can also be arranged at other suitable positions of the Type-C interface, where the thermistor NTC can be arranged according to actual needs. The thermistor NTC is sensitive to temperature and exhibits different resistance values at different temperatures.
Based on this, the temperature of the Type-C interface is sensed by the thermistor NTC, wherein the thermistor NTC and the eleventh resistor R11 divide the voltage of the power module 50 and output the divided voltage to the positive input terminal of the third comparator U1C; and the twelfth resistor R12 and the thirteenth resistor R13 divide the voltage of the power module 50 and output the divided voltage to the negative input terminal of the third comparator U1C.
If the pin of the Type-C interface is not shorted, that is, the temperature of the Type-C interface is within the preset temperature range, the voltage of the positive input terminal of the third comparator U1C is greater than the voltage of the negative input terminal of the third comparator U1C, the third comparator U1C is in a high impedance state, and at this time, the third input terminal of the controller 30 is at a high level under the pull-up action of the fourteenth resistor R14. With such an arrangement, the third comparator U1C can be prevented from outputting a high voltage to damage the back-end chip.
Once the pin of the Type-C interface is shorted to cause the temperature of the Type-C interface to increase, and the resistance of the thermistor NTC decreases accordingly as the temperature of the Type-C interface increases, the voltage output to the positive input terminal of the third comparator U1C after the voltage of the power module 50 is divided by the thermistor NTC and the eleventh resistor R11 also decreases. When the temperature of the Type-C interface exceeds the preset temperature range, the voltage of the positive input terminal of the third comparator U1C is less than the voltage of the negative input terminal of the third comparator U1C, so that the third comparator U1C outputs a low level and the level of the third input terminal of the controller 30 is inverted. The controller 30 judges that the temperature of the Type-C interface is abnormal according to the temperature, and the temperature exceeds the preset temperature range, and the controller 30 sends prompt information to the user through the prompt module 40 to remind the user of timely processing.
Optionally, referring to fig. 7, in an embodiment, the detection circuit further includes a power supply circuit 70; the first power input terminal of the power supply circuit 70 is connected to the power module 50, the second power input terminal of the power supply circuit 70 is connected to the bus power pin VBUS of the data communication interface 10, and the output terminal of the power supply circuit 70 is connected to the power source terminal of the liquid detection circuit 20 and the power source terminal of the temperature detection circuit 60.
Specifically, if the Type-C interface is not plugged into the adapter, the power module 50 supplies power to the liquid detection circuit 20 and the temperature detection circuit 60 through the power supply circuit 70. If the Type-C interface is plugged into the adapter, the bus power pin VBUS output voltage of the Type-C interface supplies power to the liquid detection circuit 20 and the temperature detection circuit 60 through the power supply circuit 70. By arranging two power supply inputs, the purpose of reliably supplying power to the liquid detection circuit 20 and the temperature detection circuit 60 is achieved.
Optionally, referring to fig. 8, in an embodiment, the power supply circuit 70 includes a fourth capacitor C4, a first diode D1, and a second diode D2. The anode of the first diode D1 is connected to the power module 50, and the cathode of the first diode D1 is connected to the power source of the liquid detection circuit 20 and the power source of the temperature detection circuit 60. The anode of the second diode D2 is connected to the bus power pin VBUS of the Type-C interface, and the cathode of the second diode D2 is connected to the power source of the liquid detection circuit 20 and the power source of the temperature detection circuit 60. One end of the fourth capacitor C4 is connected to the power source of the liquid detection circuit 20 and the power source of the temperature detection circuit 60, and the other end of the fourth capacitor C4 is grounded.
The first diode D1 and the fourth capacitor C4 are used for filtering the interference signal in the voltage output by the power module 50, and stably supplying power to the liquid detection circuit 20 and the temperature detection circuit 60. And first diode D1 and second diode D2 have the unidirectional flux characteristic, can keep apart Type-C interface and power module 50, avoid Type-C interface and power module 50 mutual interference. Referring to fig. 4, 6 and 8, the output terminal COM-VCC of the power supply circuit 70 is specifically connected to the power supply terminal of the first comparator U1A and the power supply terminal of the second comparator U1B in the liquid detection circuit 20, and supplies power to the first comparator U1A and the second comparator U1B. Meanwhile, the output terminal COM-VCC of the power supply circuit 70 is connected to the power supply terminal of the third comparator U1C in the temperature detection circuit 60, and supplies power to the third comparator U1C.
The utility model also provides a detection device, which comprises the detection circuit; the detailed structure of the detection circuit can refer to the above embodiments, and is not described herein again; it can be understood that, because the detection circuit is used in the detection apparatus of the present invention, the embodiment of the detection apparatus of the present invention includes all technical solutions of all embodiments of the detection circuit, and the achieved technical effects are also completely the same, and are not described herein again.
The above description is only an alternative embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A detection circuit is characterized by comprising a liquid detection circuit, a controller and a prompt module;
the input end of the liquid detection circuit is used for acquiring a voltage signal so as to perform liquid detection through the voltage signal, the output end of the liquid detection circuit is connected with the input end of the controller, and the output end of the controller is connected with the input end of the prompt module;
the liquid detection circuit is used for outputting an electric signal representing that liquid exists to the controller when the voltage signal is larger than a preset voltage range;
and the controller is used for controlling the prompt module to send prompt information when receiving an electric signal for representing that liquid exists.
2. The detection circuit of claim 1, wherein the detection circuit is applied to a data communication interface provided with a first differential signal pin and a second differential signal pin, the input of the controller comprises a first input and a second input, and the body fluid detection circuit comprises a first fluid detection circuit and a second fluid detection circuit;
the input end of the first liquid detection circuit is connected with the first differential signal pin, and the output end of the first liquid detection circuit is connected with the first input end of the controller;
the input end of the second liquid detection circuit is connected with the second differential signal pin, and the output end of the second liquid detection circuit is connected with the second input end of the controller;
the first liquid detection circuit is used for detecting the voltage of the first differential signal pin and outputting an electric signal representing that liquid exists in the data communication interface to the controller when the voltage of the first differential signal pin exceeds a first preset voltage range;
the second liquid detection circuit is used for detecting the voltage of the second differential signal pin and outputting an electric signal representing that liquid exists in the data communication interface to the controller when the voltage of the second differential signal pin exceeds a second preset voltage range;
and the controller is used for controlling the prompt module to send prompt information when receiving an electric signal for representing that liquid exists in the data communication interface.
3. The detection circuit of claim 2, wherein the data communication interface further has a bus power pin, and the first liquid detection circuit comprises a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor, and a first comparator;
the first resistor and the second resistor are connected in series between the bus power supply pin and the ground end, and the common end of the first resistor and the second resistor is connected with the positive input end of the first comparator;
the third resistor and the fourth resistor are connected between the bus power supply pin and the ground end in series, and the common end of the third resistor and the fourth resistor is connected with the negative input end of the first comparator;
a positive input end of the first comparator is connected with the first differential signal pin, and an output end of the first comparator is connected with one end of the fifth resistor and the first input end of the controller; the other end of the fifth resistor is connected with a power supply module.
4. The detection circuit of claim 3, wherein the detection circuit further comprises a first filter circuit;
the positive input end of the first comparator is connected with the first differential signal pin through the first filter circuit;
the first filter circuit is used for filtering interference signals of the first differential signal pin.
5. The detection circuit of claim 4, wherein the second liquid detection circuit comprises a sixth resistor, a seventh resistor, an eighth resistor, a ninth resistor, a tenth resistor, and a second comparator;
the sixth resistor and the seventh resistor are connected in series between the bus power pin and the ground, and a common end of the sixth resistor and the seventh resistor is connected with a positive input end of the second comparator;
the eighth resistor and the ninth resistor are connected between the bus power supply pin and the ground end in series, and the common end of the eighth resistor and the ninth resistor is connected with the negative input end of the second comparator;
a positive input end of the second comparator is connected to the second differential signal pin, and an output end of the second comparator is connected to one end of the tenth resistor and the second input end of the controller; the other end of the tenth resistor is connected with the power supply module.
6. The detection circuit of claim 5, wherein the detection circuit further comprises a second filtering circuit;
the positive input end of the second comparator is connected with the second differential signal pin through the second filter circuit;
the second filter circuit is used for filtering the interference signal of the second differential signal pin.
7. The sensing circuit of any one of claims 2-6, wherein the input of the controller further comprises a third input, the sensing circuit further comprising a temperature sensing circuit for sensing a temperature of the data communication interface;
the output end of the temperature detection circuit is connected with the third input end of the controller;
the temperature detection circuit is used for detecting the temperature of the data communication interface and outputting an electric signal representing the temperature abnormity of the data communication interface to the controller when the temperature of the data communication interface is higher than a preset temperature;
the controller is also used for controlling the prompt module to send prompt information when receiving an electric signal for representing the temperature abnormity of the data communication interface.
8. The detection circuit of claim 7, wherein the temperature detection circuit comprises an eleventh resistor, a twelfth resistor, a thirteenth resistor, a fourteenth resistor, a thermistor, a first capacitor, and a third comparator;
one end of the eleventh resistor is connected with a power supply module, and the other end of the eleventh resistor is connected with the positive input end of the third comparator; the thermistor is connected in parallel with the first capacitor and then connected between the positive input end and the ground end of the third comparator in series;
the twelfth resistor and the thirteenth resistor are connected between the power supply module and the ground terminal in series, and a common end of the twelfth resistor and the thirteenth resistor is connected with a negative input end of the third comparator;
one end of the fourteenth resistor is connected with the power module, the other end of the fourteenth resistor is connected with the output end of the third comparator, and the output end of the third comparator is connected with the third input end of the controller.
9. The detection circuit of claim 8, wherein the detection circuit further comprises a power supply circuit;
the first power input end of the power supply circuit is connected with the power module, the second power input end of the power supply circuit is connected with the bus power pin of the data communication interface, and the output end of the power supply circuit is connected with the power end of the liquid detection circuit and the power end of the temperature detection circuit.
10. A detection arrangement, characterized in that the detection arrangement comprises a detection circuit according to any of claims 1-9.
CN202121629979.0U 2021-07-16 2021-07-16 Detection circuit and detection device Active CN215641865U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202121629979.0U CN215641865U (en) 2021-07-16 2021-07-16 Detection circuit and detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202121629979.0U CN215641865U (en) 2021-07-16 2021-07-16 Detection circuit and detection device

Publications (1)

Publication Number Publication Date
CN215641865U true CN215641865U (en) 2022-01-25

Family

ID=79890541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202121629979.0U Active CN215641865U (en) 2021-07-16 2021-07-16 Detection circuit and detection device

Country Status (1)

Country Link
CN (1) CN215641865U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114264423A (en) * 2022-03-03 2022-04-01 荣耀终端有限公司 Liquid inlet detection control method and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114264423A (en) * 2022-03-03 2022-04-01 荣耀终端有限公司 Liquid inlet detection control method and electronic equipment
CN114264423B (en) * 2022-03-03 2022-07-05 荣耀终端有限公司 Liquid inlet detection control method and electronic equipment

Similar Documents

Publication Publication Date Title
US8024491B1 (en) Detecting a connection to an unpowered host
CN106169783B (en) Electronic equipment, charger, integrated circuit and electronic equipment connector detection method
EP3171480B1 (en) Method for identifying types of cables, power adaptor and cable
EP3104498B1 (en) A testing device for wireless power transfer, and an associated method
US20130179603A1 (en) Apparatus and method of identifying a usb or an mhl device
CN215641865U (en) Detection circuit and detection device
US10998683B2 (en) Connector protection method and system
CN206627597U (en) One kind detection USB socket water inlet open circuit potential
CN215526903U (en) Anti-reverse connection early warning and alarming device of display screen and display structure
CN216696605U (en) Battery temperature detection circuit
CN210038763U (en) USB equipment plug detection circuit under operating system off-line state
CN214407667U (en) Detection circuit, water tank and equipment
CN109060070A (en) A kind of detection system and method that the automatic liquid delivery based on probe-type is used up
CN114786319A (en) Anti-static method, intelligent equipment, device, equipment and storage medium
CN113848503A (en) Connection detection circuit, alarm device and base station
CN210465555U (en) Device for detecting output ripple noise of power adapter and charger
CN110109792B (en) USB device plug detection circuit under off-line state of operating system
CN212255616U (en) Charging detection device
CN106650512B (en) A kind of method and electronic equipment for protecting electronic equipment
EP2497162B2 (en) Connector
CN214703788U (en) Impedance detection circuit and socket device
CN217403634U (en) NTC automatic switch-over detection circuitry
CN108879598B (en) USB interface protection circuit and electronic equipment
CN212726505U (en) Power supply system
CN213244425U (en) DMX programmable module capable of reading output power

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant