CN111381118B - Water inflow detection module, water inflow detection method and terminal - Google Patents
Water inflow detection module, water inflow detection method and terminal Download PDFInfo
- Publication number
- CN111381118B CN111381118B CN201811625645.9A CN201811625645A CN111381118B CN 111381118 B CN111381118 B CN 111381118B CN 201811625645 A CN201811625645 A CN 201811625645A CN 111381118 B CN111381118 B CN 111381118B
- Authority
- CN
- China
- Prior art keywords
- pin
- switch circuit
- pmic
- interface
- impedance
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Power Sources (AREA)
- Telephone Function (AREA)
Abstract
The disclosure discloses a water inlet detection module, a water inlet detection method and a terminal, and belongs to the field of circuits. The module comprises: the device comprises a C-Type universal serial bus USB Type-C interface, a switch circuit and a power management integrated circuit PMIC; the configuration channel CC pin and the ground GND pin of the USB Type-C interface are communicated with corresponding pins in the PMIC through a switch circuit. This is disclosed passes through switch circuit and PMIC with the CC pin and the GND pin of USB Type-C interface and connects, PMIC is in two role port DRP modes confirming the CC pin, and when confirming the CC output level between CC pin and the GND pin includes weak drop-down interrupt signal, confirm that USB Type-C interface is in the water intake state, it is difficult to carry out water-proof treatment to USB Type-C interface to have solved through structural seal among the correlation technique, thereby lead to USB Type-C interface to intake and arouse the problem of pin short circuit easily, the security performance at the terminal that is provided with this detection module of intaking has been improved.
Description
Technical Field
The present disclosure relates to the field of circuits, and in particular, to a water inlet detection module, a water inlet detection method, and a terminal.
Background
With the development of communication technology, terminals such as smart phones and tablet computers are increasingly widely used in life. For the terminal, the waterproof performance is an important safety index, and when water enters the charging interface in the charging process of the terminal, short circuit between pins of the charging interface is easily caused, so that the terminal can be failed or even burnt out at a certain probability.
In view of the above problems, in the related art, manufacturers of terminals may use a sealed structure to improve the waterproof performance of the terminal, and then it is difficult to perform sealing protection on the exposed portion of the terminal, for example, at a USB (Universal Serial Bus) interface.
Disclosure of Invention
The embodiment of the disclosure provides a water inlet detection module, a water inlet detection method and a terminal, which are used for solving the problems that in the related art, water is introduced due to the fact that a USB interface is difficult to perform sealing protection, and a terminal is easy to cause short circuit of pins in the USB interface when being charged, so that the terminal is broken down at a certain probability. The technical scheme is as follows:
in one aspect, an embodiment of the present disclosure provides a water inlet detection module, where the module is applied to a terminal, and the module includes a USB Type-C interface, a switch circuit, and a PMIC;
a CC pin of a configuration channel of the USB Type-C interface is connected with a CC input pin of the switch circuit, a CC output pin of the switch circuit is connected with a CC input pin of the PMIC, and the CC input pin of the switch circuit is communicated with the CC output pin of the switch circuit;
a grounding GND pin of the USB Type-C interface is connected with a GND input pin of the switch circuit, a GND output pin of the switch circuit is connected with a GND input pin of the PMIC, and when the CC pin is in a double-role port DRP mode, the GND input pin of the switch circuit is communicated with the GND output pin of the switch circuit;
the PMIC configured to determine whether a CC output level between the CC pin and the GND pin satisfies a preset condition when it is determined that the CC pin is in the DRP mode; when the CC output level meets the preset condition, determining that the USB Type-C interface is in a water inlet state;
the preset condition is that the output level comprises a weak pull-down interrupt signal, and the weak pull-down interrupt signal is a level signal with the level intensity smaller than a first level threshold value and the duration smaller than a first time threshold value.
In an alternative embodiment, the CC pin is a CC1 pin, the CC input pin of the switching circuit is a CC1 input pin of the switching circuit, the CC output pin of the switching circuit is a CC1 output pin of the switching circuit, and the CC input pin of the PMIC is a CC1 input pin of the PMIC;
the PMIC configured to determine whether a CC1 output level between the CC1 pin and the GND pin satisfies the preset condition when it is determined that the CC1 pin is in the DRP mode; and when the CC1 output level meets the preset condition, determining that the USB Type-C interface is in the water inlet state.
In an alternative embodiment, the CC pin is a CC2 pin, the CC input pin of the switch circuit is a CC2 input pin of the switch circuit, the CC output pin of the switch circuit is a CC2 output pin of the switch circuit, and the CC input pin of the PMIC is a CC2 input pin of the PMIC;
the PMIC configured to determine whether a CC2 output level between the CC2 pin and the GND pin satisfies the preset condition when it is determined that the CC2 pin is in the DRP mode; and when the CC2 output level meets the preset condition, determining that the USB Type-C interface is in the water inlet state.
In an optional embodiment, the sideband of the USB Type-C interface is connected to the SBU1 input pin of the switch circuit using the SBU1 pin, the SBU1 output pin of the switch circuit is connected to the SBU1 input pin of the PMIC, and when the CC pin is in the DRP mode, the SBU1 input pin of the switch circuit and the SBU1 output pin of the switch circuit are connected;
an SBU2 pin of the USB Type-C interface is connected with an SBU2 input pin of the switch circuit, an SBU2 output pin of the switch circuit is connected with an SBU2 input pin of the PMIC, and when the CC pin is in the DRP mode, the SBU2 input pin of the switch circuit is communicated with the SBU2 output pin of the switch circuit;
the PMIC further configured to determine whether there is an impedance below an impedance threshold in a first impedance between the SBU1 pin and the GND pin and a second impedance between the SBU2 pin and the GND pin when it is determined that the CC pin is in the DRP mode and the CC output level satisfies the preset condition; determining that the USB Type-C interface is in the water ingress state when it is determined that there is an impedance of the first impedance and the second impedance that is below the impedance threshold.
In an alternative embodiment, the PMIC includes a current source and a multiplexer, the SBU1 input pin and the SBU2 input pin of the PMIC are connected to the input pin of the multiplexer, and the output pin of the multiplexer is connected to the current source;
the PMIC further configured to cause the current source to supply power to the SBU1 pin and the SBU2 pin through the multiplexer; acquiring an SBU1 output level between the SBU1 pin and the GND pin and an SBU2 output level between the SBU2 pin and the GND pin; calculating to obtain the first impedance according to the SBU1 output level and the current of the current source; and calculating to obtain the second impedance according to the SBU2 output level and the current.
In an optional embodiment, the PMIC is further configured to determine whether the CC output level includes a periodic square wave, and determine that the CC pin is in the DRP mode when it is determined that the CC output level includes the periodic square wave.
In an optional embodiment, the module further comprises an application processor AP, a signal output pin of the PMIC being connected to a signal input pin of the AP;
the PMIC is further configured to send an alarm signal to the AP when the USB Type-C interface is determined to be in the water inlet state, wherein the alarm signal is used for triggering the AP to control the terminal to display a prompt window containing prompt information on a display screen, and the prompt information is used for indicating that the USB Type-C interface is in the water inlet state.
In an optional embodiment, the SBU1 output pin of the AP is connected to the SBU1 input pin of the switch circuit, and the SBU2 output pin of the AP is connected to the SBU2 input pin of the switch circuit;
the AP is configured to communicate an SBU1 input pin of the switch circuit with an SBU1 output pin of the switch circuit and communicate an SBU2 input pin of the switch circuit with an SBU2 output pin of the switch circuit when receiving a determination signal transmitted by the PMIC.
In one aspect, the present disclosure provides a terminal, including the above-mentioned water inflow detection module, a housing, and a cover plate;
the shell comprises four edges, and a USB Type-C interface in the water inlet detection module is arranged on any one of the four edges;
except the USB Type-C interface, other modules in the water inlet detection module are arranged in the shell and a cavity formed by the cover plate.
In one aspect, an embodiment of the present disclosure provides a water inflow detection method, where the method is executed by the terminal, and the method includes:
the PMIC of the terminal sends an alarm signal to an AP of the terminal when determining that the USB Type-C interface of the terminal is in a water inlet state;
after receiving the alarm signal, the AP generates a prompt window;
and the AP controls a display screen of the terminal to display the prompt window, the prompt window contains prompt information, and the prompt information is used for prompting that the USB Type-C interface is in the water inlet state.
The beneficial effects brought by the technical scheme provided by the embodiment of the disclosure at least comprise:
through passing through switch circuit and PMIC with the CC pin and the GND pin of USB Type-C interface and connecting, PMIC is through when confirming CC output level between the CC pin of USB Type-C interface and the GND pin includes weak drop-down interrupt signal, it is in water inlet state to confirm USB Type-C interface, it is difficult to carry out water repellent to USB Type-C interface through structural seal in the correlation technique to solved, thereby lead to USB Type-C interface to intake and arouse the problem of pin short circuit easily, the security performance of the terminal that is provided with this detection module of intaking has been improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
FIG. 1 is a schematic block diagram of pins in a USB Type-C interface;
FIG. 2 is a block circuit diagram of a water ingress detection module provided by an exemplary embodiment of the present disclosure;
FIG. 3 is a block diagram of a water ingress detection circuit provided by an exemplary embodiment of the present disclosure;
FIG. 4 is a waveform diagram of the output level of DRP mode;
FIG. 5 is a block circuit diagram of an intake water detection module provided in an exemplary embodiment of the present disclosure;
FIG. 6 is a block diagram of a water ingress detection circuit provided by one exemplary embodiment of the present disclosure;
FIG. 7 is a schematic diagram of a prompt window provided by an exemplary embodiment of the present disclosure;
fig. 8 is a cross-sectional schematic view of a terminal provided by an exemplary embodiment of the present disclosure;
fig. 9 is a flowchart of a water inlet detection method according to an exemplary embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more apparent, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
FIG. 1 shows a schematic block diagram of pins in a USB Type-C interface. As shown in fig. 1, the USB Type-C interface includes a first row of pins 110 and a second row of pins 120 that are symmetrical.
The first row of pins 110 includes in sequence: a GND (Ground) pin, a TX1+ pin, a TX 1-pin, a VBUS pin, a CC (Configuration Channel) 1 pin, a D + pin, a D-pin, an SBU (Side Band Use) 1 pin, a VBUS pin, an RX 2-pin, an RX2+ pin and a GND pin.
The second row of pins 120 includes in order: a GND pin, an RX1+ pin, an RX 1-pin, a VBUS pin, an SBU2 pin, a D-pin, a D + pin, a CC2 pin, a VBUS pin, a TX 2-pin, and a GND pin.
The functions of the pin comprise:
d + pin, D-pin: the D + pin and the D-pin provide signal paths for USB 2.0 signals when the USB 3.0 interface is unavailable.
V BUS Pin, GND pin: v BUS The pins and GND pins can provide power capability for the upstream data interface or, in some cases, support point-to-point power.
TX1/2 pin, RX1/2 pin: providing an overspeed data link of up to 2 lanes, achieving bi-directional bandwidth up to 20Gbps.
Pin CC1, pin CC 2: for discovery, configuration and management of connections. Only one signal of the CC1 pin and the CC2 pin is used as a configuration channel, and the other signal is used for supplying power to USB logic in an uplink Port (a Port of an Upstream Facing Port, UFP, standard class B or Micro-B device).
SBU1 pin, SUB2 pin: suitable for transmitting non-USB signals, for example for the transmission of analog audio signals.
FIG. 2 illustrates a block circuit diagram of an exemplary water ingress detection module of the present disclosure. As shown in fig. 2, the water inlet detection module 200 in the embodiment of the present disclosure includes a USB Type-C interface 210, a switch Circuit 220, and a PMIC (Power Management Integrated Circuit) 230.
The CC1 pin of USB Type-C interface 210 is connected with the CC1 input pin of switch circuit, the CC2 pin of USB Type-C interface 210 is connected with the CC2 input pin of switch circuit 220, the CC1 output pin of switch circuit 220 is connected with the CC1 input pin of PMIC, the CC2 output pin of switch circuit 220 is connected with the CC2 input pin of PMIC.
The GND pin of the USB Type-C interface is connected with the GND input pin of the switch circuit 220, and the GND output pin of the switch circuit 220 is connected with the GND input pin of the PMIC.
Optionally, the CC1 input pin of the switch circuit 220 is connected to the CC1 output pin of the switch circuit 220. When the CC1 pin is in the DRP mode, the GND input pin of the switch circuit 220 and the GND output pin of the switch circuit 220 are connected.
A PMIC230 configured to determine whether a CC1 output level between the CC1 pin and the GND pin satisfies a preset condition when it is determined that the CC1 pin is in the DRP mode; when the CC1 output level meets the preset condition, it is determined that the USB Type-C interface 210 is in the water inlet state.
The preset condition is that the output level comprises a weak pull-down interrupt signal, and the weak pull-down interrupt signal is a level signal with the level intensity smaller than a first level threshold and the signal duration smaller than a first time threshold.
Optionally, the CC2 input pin of the switch circuit 220 is connected to the CC2 output pin of the switch circuit 220. When the CC2 pin is in the DRP mode, the GND input pin of the switch circuit 220 and the GND output pin of the switch circuit 220 are connected.
A PMIC230 further configured to determine whether a CC2 output level between the CC2 pin and the GND pin satisfies a preset condition when it is determined that the CC2 pin is in the DRP mode; when the CC2 output level meets the preset condition, it is determined that the USB Type-C interface 210 is in the water inlet state.
And one pin of the CC1 pin and the CC2 pin is communicated with the PMIC, so that the water inlet detection can be realized. Hereinafter, the CC pin is referred to as CC1 pin or CC2 pin, and the CC output level is referred to as CC1 output level or CC2 output level.
The circuit diagram between the PMIC and the CC pin, GND pin is shown as circuit 300 in fig. 3. The pin 311 is a CC pin, the pin 312 is a GND pin, and the current source 315 and the load resistor 316 in the PMIC form a half bridge. When the USB Type-C interface is not connected to a device, the switches 313 and 314 are in the polling state, and the CC output level between the CC pin and the GND pin includes a square wave having a period T as shown in fig. 4 DRP I.e., the period of polling of switch 313 and switch 314. When the PMIC determines that the CC output level includes a periodic square wave, the CC pin is determined to be in a DRP mode.
When the USB Type-C interface is water-in, the pin CC and the pin GND are connected by water 320, and when the current source 315 drives the load resistor 316, the load resistor 316 is shorted, so that the CC output level outputs a weak pull-down interrupt signal. When the PMIC detects that the CC output level includes a weak pull-down interrupt signal, it determines that the USB Type-C interface 210 is in a water-in state.
It should be noted that, in the embodiment of the present disclosure, the pin in the USB Type-C interface is communicated with the PMIC through the switch circuit, so that the surge resistance of the circuit can be improved, and meanwhile, the switch circuit can play a multiplexing function, so that the pin in the USB Type-C interface is communicated with other circuits except the PMIC.
In the USB Type-C interface in the embodiment of the present disclosure, any GND pin of the four GND pins, or more than one GND pins, is connected to a GND input pin of the switch circuit, and the number and the position of the GND pins connected to the switch circuit are not limited herein.
In conclusion, in the embodiment of the present disclosure, the CC pin and the GND pin of the USB Type-C interface are connected to the PMIC through the switch circuit, and when the PMIC outputs the level through the CC pin and the GND pin of the USB Type-C interface, which are determined to include the weak pull-down interrupt signal, it is determined that the USB Type-C interface is in the water inlet state, thereby solving the problem that the USB Type-C interface is difficult to be subjected to waterproof treatment through structural sealing in the related art, thereby causing the USB Type-C interface to be subjected to water inlet and easily causing the pin short circuit, and improving the safety performance of the terminal provided with the water inlet detection module.
FIG. 5 illustrates a block circuit diagram of an exemplary water ingress detection module of the present disclosure. As shown in fig. 5, the water inlet detection module 500 in the embodiment of the disclosure includes a USB Type-C interface 510, a switch circuit 520, a PMIC530, and an AP (Application Processor) 540.
The CC1 pin of the USB Type-C interface 510 is connected to the CC1 input pin of the switch circuit 520, the CC2 pin of the USB Type-C interface 510 is connected to the CC2 input pin of the switch circuit 520, the CC1 output pin 5211 of the switch circuit 520 is connected to the CC1 input pin 531 of the PMIC, and the CC2 output pin of the switch circuit 520 is connected to the CC2 input pin of the PMIC 530.
The GND pin of the USB Type-C interface is connected with the GND input pin of the switch circuit 520, and the GND output pin of the switch circuit 520 is connected with the GND input pin of the PMIC.
An SBU1 pin of the USB Type-C interface 510 is connected with an SBU1 input pin 523 of the switch circuit 520, and an SBU1 output pin of the switch circuit 520 is connected with an SBU1 input pin of the PMIC 530; the SBU2 pin of the USB Type-C interface 510 is connected with the SBU2 input pin of the switch circuit 520, and the SBU2 output pin of the switch circuit 520 is connected with the SBU2 input pin of the PMIC 530.
The signal output pin of the PMIC530 is connected to the signal input pin of the AP 540. The SBU1 output pin of the AP540 is connected to the SBU1 output pin of the switch circuit 520 (not shown), and the SBU2 output pin of the AP540 is connected to the SBU1 output pin of the switch circuit 520 (not shown).
Optionally, the CC1 input pin of the switch circuit 520 is connected to the CC1 output pin of the switch circuit 520. When the CC1 pin is in the DRP mode, the GND input pin of the switch circuit 520 is connected to the GND output pin of the switch circuit 520, the SBU1 input pin of the switch circuit 520 is connected to the SBU1 output pin of the switch circuit 520, and the SBU2 input pin of the switch circuit 520 is connected to the SBU2 output pin of the switch circuit.
A PMIC530 configured to determine whether a CC1 output level between the CC1 pin and the GND pin satisfies a preset condition when it is determined that the CC1 pin is in the DRP mode; when the CC1 output level meets a preset condition, determining whether impedance lower than an impedance threshold exists in first impedance between the SBU1 pin and the GND pin and second impedance between the SBU2 pin and the GND515 pin; when the impedance lower than the impedance threshold value exists in the first impedance and the second impedance, the USB Type-C interface is determined to be in the water inlet state, and an alarm signal is sent to the AP 540.
Optionally, the CC2 input pin of the switch circuit 520 is connected to the CC2 output pin of the switch circuit 520. When the CC2 pin is in the DRP mode, the GND input pin of the switch circuit 520 is connected to the GND output pin of the switch circuit 520, the SBU1 input pin of the switch circuit 520 is connected to the SBU1 output pin of the switch circuit 520, and the SBU2 input pin of the switch circuit 520 is connected to the SBU2 output pin of the switch circuit.
A PMIC530 further configured to determine whether a CC2 output level between the CC2 pin and the GND pin satisfies a preset condition when it is determined that the CC2 pin is in the DRP mode; when the CC2 output level meets a preset condition, determining whether a first impedance between the SBU1 pin and the GND pin and a second impedance between the SBU2 pin and the GND pin have an impedance lower than an impedance threshold value; when the impedance lower than the impedance threshold value exists in the first impedance and the second impedance, the USB Type-C interface is determined to be in the water inlet state, and an alarm signal is sent to the AP 540.
And the AP540 is configured to generate a prompt window after receiving the alarm signal sent by the PMIC530, and control a display screen of the terminal to display the prompt window containing prompt information, wherein the prompt information is used for indicating that the USB Type-C interface of the terminal is in a water inlet state.
The circuit diagram between the PMIC and the CC pin (CC 1 pin or CC2 pin) and the GND pin is shown in the circuit 300 in fig. 3, which is not described herein.
The circuits between the PMIC and the SBU1 pin, SBU2 pin and GND pin are shown as the circuit 600 in fig. 6, and the SBU1 pin 611 and SBU2 pin 612 are respectively connected to the input interface of the multiplexer 616 in the PMIC through a switch circuit, and the output interface of the multiplexer 616 is connected to the GND pin 613. When the PMIC determines that a first impedance between the SBU1 pin 611 and the GND pin 613 and a second impedance between the SBU2 pin 612 and the GND pin 613 need to be measured, the switch 614 is closed, so that the current source 615 supplies power to the circuit 600.
When the USB Type-C interface intakes water, the SBU1 pin and the GND pin, or the SBU2 pin and the GND pin are conducted by the water 320, so that the SBU1 pin and the GND pin are short-circuited, or the SBU2 pin and the GND pin are short-circuited, and the first impedance or the second impedance is lower. The PMIC obtains an SBU1 output level between an SBU1 pin and a GND pin and an SBU2 output level between an SBU2 pin and the GND pin through measurement, a first impedance between the SBU1 pin and the GND pin and a second impedance between the SBU2 pin and the GND pin are obtained through calculation according to the current of the current source, and when the first impedance and the second impedance have impedances lower than an impedance threshold value, the USB Type-C interface is determined to be in a water inlet state.
In the embodiment of the present disclosure, when the PMIC530 determines that the CC pin (the CC1 pin or the CC2 pin) is in the DRP mode, the PMIC sends a determination signal to the AP540, and after receiving the determination signal, the AP540 enables the SBU1 input pin and the SBU1 output pin to be connected with each other, and enables the SBU2 input pin and the SBU2 output pin to be connected with each other.
In the embodiment of the disclosure, the PMIC needs to determine whether the USB Type-C interface is in a water inlet state through two detection steps, first, the CC output level of the CC pin is detected, and it is determined whether the CC output level meets a preset condition, because output of the CC pin may fluctuate, only the CC output level is determined to determine whether water inlet is not accurate, so the PMIC needs to determine a first impedance between the SBU1 pin and the GND pin and a second impedance between the SBU2 pin and the GND pin, and if an impedance lower than an impedance threshold exists in the first impedance and the second impedance, the USB Type-C interface is determined to be in the water inlet state.
For example, as shown in fig. 7, when the AP receives an alarm signal sent by the PMIC, a prompt window 711 is displayed on the display 710 of the control terminal 700, and a prompt message "USB Type-C interface water inlet, please don't plug into a power adapter! ".
It should be noted that, in the embodiment of the present disclosure, the pin in the USB Type-C interface is communicated with the PMIC through the switch circuit, so that the surge resistance of the circuit can be improved, and meanwhile, the switch circuit can play a multiplexing function, so that the pin in the USB Type-C interface is communicated with other circuits except the PMIC and the AP.
In the USB Type-C interface in the embodiment of the present disclosure, any GND pin of the four GND pins, or more than one GND pins, is connected to a GND input pin of the switch circuit, and the number and the position of the GND pins connected to the switch circuit are not limited herein.
In summary, in the embodiment of the present disclosure, the CC pin, the SBU1 pin, the SBU2 pin, and the GND pin of the USB Type-C interface are connected to the PMIC through the switch circuit, and the PMIC determines, by determining that the CC output level includes a weak pull-down interrupt signal, whether there is an impedance lower than an impedance threshold in the SBU1 pin and the GND pin, and determines that the USB Type-C interface is in a water inlet state when there is an impedance lower than the impedance threshold in the first impedance and the second impedance, so that a problem that the USB Type-C interface is difficult to perform waterproof processing on the USB Type-C interface through structural sealing in the related art is solved, thereby causing a pin short circuit easily due to water inlet of the USB Type-C interface, and improving the safety performance of the terminal provided with the water inlet detection module.
Optionally, in this embodiment of the disclosure, when it is determined that the USB Type-C interface is in the water inlet state, the PMIC sends an alarm signal to the AP, and the AP controls the display screen of the terminal to display a prompt window including prompt information according to the alarm signal, where the prompt information is used to prompt that the USB Type-C interface of the terminal is in the water inlet state, so as to improve the security performance of the terminal.
Fig. 8 illustrates a cross-sectional view of an exemplary terminal of the present disclosure. As shown in fig. 8, the terminal 800 provided in the embodiment of the present disclosure includes the water inlet detection module 850, the cover plate 860 and the housing 870 in the above embodiments.
The shell 870 comprises four edges, and the USB Type-C interface 810 of the water inlet detection module 850 is disposed on any one of the four edges of the shell 870; other modules (e.g., switch circuit 820, PMIC830, and AP 840) of the water ingress detection module 850 other than the USB Type-C interface 810 are disposed in the cavity formed by the housing 870 and the cover plate 860.
Fig. 9 shows a flowchart of a water inlet detection method according to an exemplary embodiment of the present disclosure. As shown in fig. 9, the method may be performed by the terminal 800 in the embodiment of fig. 8, and the method includes:
The terminal in this embodiment includes the water ingress detection module in any of the embodiments described above. The PMIC may refer to the embodiments of fig. 2 and 5, and details thereof are not repeated herein.
And step 902, after receiving the alarm signal, the AP generates a prompt window.
And after receiving the alarm signal sent by the PMIC, the AP generates a prompt window containing prompt information according to preset character and/or image information, wherein the prompt information is used for prompting that the USB Type-C interface is in a water inlet state.
And step 903, displaying a prompt window on a display screen of the AP control terminal, wherein the prompt window contains prompt information.
For example, as shown in fig. 7, when the AP receives an alarm signal sent by the PMIC, a prompt window 711 is displayed on the display 710 of the control terminal 700, where the prompt window 711 displays "USB Type-C interface water, please insert a power adapter! "is used as a prompt.
In conclusion, in the embodiment of the present disclosure, when it is determined that the USB Type-C interface of the terminal is in the water inlet state, the PMIC of the terminal sends an alarm signal to the AP of the terminal, the AP generates a prompt window according to the alarm signal, and the display screen of the AP control terminal displays the prompt window containing the prompt information, where the prompt information is used to prompt that the USB Type-C interface is in the water inlet state, so that the problem that the USB Type-C interface is difficult to be subjected to waterproof processing through structural sealing in the related art, so that the USB Type-C interface is easily subjected to water inlet to cause pin short circuit is solved, and the safety performance of the terminal provided with the water inlet detection module is improved.
The terminal in the present disclosure may be a smart phone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III, motion Picture Experts compress standard Audio Layer 3) player, an MP4 (Moving Picture Experts Group Audio Layer IV, motion Picture Experts compress standard Audio Layer 4) player, a laptop portable computer, a desktop computer, and the like.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated object, indicating that there may be three relationships, for example, a and/or B, which may indicate: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The above-mentioned serial numbers of the embodiments of the present disclosure are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is meant to be illustrative of the preferred embodiments of the present disclosure and not to be taken as limiting the disclosure, and any modifications, equivalents, improvements and the like that are within the spirit and scope of the present disclosure are intended to be included therein.
Claims (8)
1. The module is characterized by being applied to a terminal and comprising a C-Type Universal Serial Bus (USB) Type-C interface, a switch circuit and a Power Management Integrated Circuit (PMIC);
a CC (component carrier) pin of a configuration channel of the USB Type-C interface is connected with a CC input pin of the switch circuit, a CC output pin of the switch circuit is connected with a CC input pin of the PMIC, and the CC input pin of the switch circuit is communicated with the CC output pin of the switch circuit;
a grounding GND pin of the USB Type-C interface is connected with a GND input pin of the switch circuit, a GND output pin of the switch circuit is connected with a GND input pin of the PMIC, and when the CC pin is in a double-role port DRP mode, the GND input pin of the switch circuit is communicated with the GND output pin of the switch circuit;
the side band of the USB Type-C interface is connected with an SBU1 input pin of the switch circuit by using an SBU1 pin, an SBU1 output pin of the switch circuit is connected with an SBU1 input pin of the PMIC, and when the CC pin is in the DRP mode, the SBU1 input pin of the switch circuit is communicated with the SBU1 output pin of the switch circuit;
an SBU2 pin of the USB Type-C interface is connected with an SBU2 input pin of the switch circuit, an SBU2 output pin of the switch circuit is connected with an SBU2 input pin of the PMIC, and when the CC pin is in the DRP mode, the SBU2 input pin of the switch circuit is communicated with the SBU2 output pin of the switch circuit;
the PMIC configured to determine whether a CC output level between the CC pin and the GND pin satisfies a preset condition when it is determined that the CC pin is in the DRP mode; when the CC output level meets the preset condition, determining whether impedance lower than an impedance threshold exists in first impedance between the SBU1 pin and the GND pin and second impedance between the SBU2 pin and the GND pin; when it is determined that there is an impedance of the first impedance and the second impedance that is below the impedance threshold, determining that the USB Type-C interface is in a water ingress state;
the PMIC comprises a current source and a multiplexer, an SBU1 input pin and an SBU2 input pin of the PMIC are respectively connected with an input pin of the multiplexer through a switch circuit, and an output pin of the multiplexer is connected with the current source; the PMIC is further configured to enable the current source to supply power to the SBU1 pin and the SBU2 pin through the multiplexer by closing the switch circuit when the CC output level meets the preset condition; acquiring an SBU1 output level between the SBU1 pin and the GND pin and an SBU2 output level between the SBU2 pin and the GND pin; calculating to obtain the first impedance according to the SBU1 output level and the current of the current source; calculating to obtain the second impedance according to the SBU2 output level and the current; the preset condition is that the output level comprises a weak pull-down interrupt signal, and the weak pull-down interrupt signal is a level signal with the level intensity smaller than a first level threshold value and the duration smaller than a first time threshold value; the CC output level is obtained by driving a load resistor through the current source, and the current source and the load resistor form a half bridge.
2. The module of claim 1, wherein the CC pin is a CC1 pin, wherein the CC input pin of the switch circuit is a CC1 input pin of the switch circuit, wherein the CC output pin of the switch circuit is a CC1 output pin of the switch circuit, and wherein the CC input pin of the PMIC is a CC1 input pin of the PMIC;
the PMIC configured to determine whether a CC1 output level between the CC1 pin and the GND pin satisfies the preset condition when it is determined that the CC1 pin is in the DRP mode; when the CC1 output level meets the preset condition, determining whether an impedance lower than the impedance threshold exists in the first impedance and the second impedance; determining that the USB Type-C interface is in the water ingress state when it is determined that there is an impedance of the first impedance and the second impedance that is below the impedance threshold.
3. The module of claim 1, wherein the CC pin is a CC2 pin, wherein the CC input pin of the switch circuit is a CC2 input pin of the switch circuit, wherein the CC output pin of the switch circuit is a CC2 output pin of the switch circuit, and wherein the CC input pin of the PMIC is a CC2 input pin of the PMIC;
the PMIC configured to determine whether a CC2 output level between the CC2 pin and the GND pin satisfies the preset condition when it is determined that the CC2 pin is in the DRP mode; when the CC2 output level meets the preset condition, determining whether an impedance lower than the impedance threshold exists in the first impedance and the second impedance; determining that the USB Type-C interface is in the water ingress state when it is determined that there is an impedance of the first impedance and the second impedance that is below the impedance threshold.
4. The module of any of claims 1 to 3 wherein the PMIC is further configured to determine whether the CC output level comprises a periodic square wave, and when it is determined that the CC output level comprises the periodic square wave, determine that the CC pin is in the DRP mode.
5. A module according to any one of claims 1 to 3, further comprising an application processor AP, wherein the signal output pin of the PMIC is connected to the signal input pin of the AP;
the PMIC is further configured to send an alarm signal to the AP when the USB Type-C interface is determined to be in the water inlet state, wherein the alarm signal is used for triggering the AP to control the terminal to display a prompt window containing prompt information on a display screen, and the prompt information is used for indicating that the USB Type-C interface is in the water inlet state.
6. The module of claim 5, wherein the SBU1 output pin of the AP is connected to the SBU1 input pin of the switch circuit, and the SBU2 output pin of the AP is connected to the SBU2 input pin of the switch circuit;
the AP is configured to communicate the SBU1 input pin of the switch circuit with the SBU1 output pin of the switch circuit and communicate the SBU2 input pin of the switch circuit with the SBU2 output pin of the switch circuit when receiving the determination signal sent by the PMIC.
7. A terminal, characterized in that it comprises a water ingress detection module as claimed in any one of claims 1 to 6, a housing and a cover plate;
the shell comprises four edges, and a USB Type-C interface in the water inlet detection module is arranged on any one of the four edges;
except the USB Type-C interface, other modules in the water inlet detection module are arranged in the shell and a cavity formed by the cover plate.
8. A water ingress detection method, characterized in that the method is performed by the terminal of claim 7, the method comprising:
the PMIC of the terminal sends an alarm signal to an AP of the terminal when determining that the USB Type-C interface of the terminal is in a water inlet state;
after receiving the alarm signal, the AP generates a prompt window;
the AP controls a display screen of the terminal to display the prompt window, the prompt window contains prompt information, and the prompt information is used for prompting that the USB Type-C interface is in the water inlet state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811625645.9A CN111381118B (en) | 2018-12-28 | 2018-12-28 | Water inflow detection module, water inflow detection method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811625645.9A CN111381118B (en) | 2018-12-28 | 2018-12-28 | Water inflow detection module, water inflow detection method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111381118A CN111381118A (en) | 2020-07-07 |
CN111381118B true CN111381118B (en) | 2022-12-27 |
Family
ID=71214738
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811625645.9A Active CN111381118B (en) | 2018-12-28 | 2018-12-28 | Water inflow detection module, water inflow detection method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111381118B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114124079A (en) * | 2020-08-31 | 2022-03-01 | 华为技术有限公司 | Interface circuit, interface circuit protection method and terminal equipment |
CN115016007B (en) * | 2021-09-17 | 2023-04-14 | 荣耀终端有限公司 | Electronic Devices and Electronic Systems |
CN114387769B (en) * | 2021-12-28 | 2023-10-03 | 中国电信股份有限公司 | Water immersion alarm system and method |
CN114416624A (en) * | 2022-01-05 | 2022-04-29 | 昂宝电子(上海)有限公司 | USB interface and control circuit and control method thereof |
CN114236240B (en) * | 2022-02-25 | 2023-10-20 | 荣耀终端有限公司 | Liquid inlet detection circuit and electronic equipment |
CN114264423B (en) * | 2022-03-03 | 2022-07-05 | 荣耀终端有限公司 | Liquid inlet detection control method and electronic equipment |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108536055A (en) * | 2018-03-21 | 2018-09-14 | 维沃移动通信有限公司 | A kind of mobile terminal and detection method |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101945534B (en) * | 2010-09-01 | 2012-12-19 | 惠州Tcl移动通信有限公司 | Method and circuit for protecting circuit board in case of water inflow of mobile terminal and mobile terminal |
CN104836208B (en) * | 2014-02-11 | 2019-02-01 | 快捷半导体(苏州)有限公司 | Standard connector adapter protects circuit and guard method |
US9823286B2 (en) * | 2015-04-27 | 2017-11-21 | Motorola Mobility Llc | Moisture detection system for external electrical connector and methods therefor |
CN205721762U (en) * | 2016-03-31 | 2016-11-23 | 维沃移动通信有限公司 | Interface Circuit and Portable Terminal of Universal Serial Bus USB Interface |
KR102675073B1 (en) * | 2016-07-12 | 2024-06-14 | 삼성전자주식회사 | Electronic device supporting usb interface and control method for the usb interface |
CN108279361B (en) * | 2018-04-17 | 2020-06-02 | 南昌黑鲨科技有限公司 | Test method and test circuit for charging port of intelligent terminal |
CN108832592A (en) * | 2018-06-14 | 2018-11-16 | 珠海市魅族科技有限公司 | A kind of USB Type-C protection of connector circuit, method, apparatus and electronic equipment |
CN108810701B (en) * | 2018-06-27 | 2019-12-03 | 维沃移动通信有限公司 | A kind of Type-C interface method for detecting abnormality and mobile terminal |
-
2018
- 2018-12-28 CN CN201811625645.9A patent/CN111381118B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108536055A (en) * | 2018-03-21 | 2018-09-14 | 维沃移动通信有限公司 | A kind of mobile terminal and detection method |
Also Published As
Publication number | Publication date |
---|---|
CN111381118A (en) | 2020-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111381118B (en) | Water inflow detection module, water inflow detection method and terminal | |
US8756358B2 (en) | Method and device for identifying universal serial bus (USB) insertion or charger insertion of mobile terminal | |
CN108780347B (en) | Method and computing device for providing power link usage indication | |
US7673092B2 (en) | PCI Express interface | |
US7921233B2 (en) | Signal converter for an all-in-one USB connector that includes USB 2.0, USB 3.0 and eSATA | |
US10042801B2 (en) | System for detecting universal serial bus (USB) device and method thereof | |
US20220263278A1 (en) | Device and method of ensuring power delivery in universal serial bus interface | |
CN108604805B (en) | Charging method and related equipment | |
CN106597143B (en) | Test equipment and test method | |
CN101022278A (en) | Terminal equipment, connector, charger and charging method | |
EP4119965B1 (en) | Charging test apparatus and method | |
CN105048199B (en) | A kind of detecting system and its detection method of connector break-make | |
CN112799985A (en) | USB interface control method, USB control circuit and intelligent networking equipment mainboard | |
CN114090360B (en) | Server debugging device, method and medium thereof, and server debugger | |
CN109346883B (en) | System for realizing positive and negative insertion of Type-C interface | |
CN111984569A (en) | Interface switching circuit and electronic device using same | |
CN109478174B (en) | Switch for reversible interface | |
CN111886585B (en) | Terminal device, debugging card and debugging method | |
CN114124079A (en) | Interface circuit, interface circuit protection method and terminal equipment | |
CN112821156B (en) | Electronic tags chip and TYPE-C data line | |
CN214540750U (en) | USB control circuit, intelligent networking equipment mainboard and electronic equipment | |
CN117234815A (en) | Terminal equipment and external equipment access detection system | |
CN210111096U (en) | Interface and electronic equipment | |
CN114077565A (en) | Identification circuit, system control circuit, access circuit, interface equipment | |
CN215005823U (en) | USB speed switching detection device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |