WO2022022401A1 - Procédé de détection d'entrée d'eau dans une interface usb, et dispositif électronique - Google Patents

Procédé de détection d'entrée d'eau dans une interface usb, et dispositif électronique Download PDF

Info

Publication number
WO2022022401A1
WO2022022401A1 PCT/CN2021/108036 CN2021108036W WO2022022401A1 WO 2022022401 A1 WO2022022401 A1 WO 2022022401A1 CN 2021108036 W CN2021108036 W CN 2021108036W WO 2022022401 A1 WO2022022401 A1 WO 2022022401A1
Authority
WO
WIPO (PCT)
Prior art keywords
pin
resistor
electronic device
voltage
usb interface
Prior art date
Application number
PCT/CN2021/108036
Other languages
English (en)
Chinese (zh)
Inventor
乔义川
李泰安
赵星光
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022022401A1 publication Critical patent/WO2022022401A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3041Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is an input/output interface
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01VGEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
    • G01V3/00Electric or magnetic prospecting or detecting; Measuring magnetic field characteristics of the earth, e.g. declination, deviation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/30Assessment of water resources
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present application relates to the field of electronic technology, and in particular, to a method and electronic device for detecting water ingress of a USB interface.
  • USB Universal Serial Bus
  • the electronic device needs to have the function of detecting whether water has entered the USB interface. If the electronic device detects that water has entered the USB interface, it will prompt the user that there is water in the USB interface of the electronic device. In this way, the user can avoid connecting an external power source to the electronic device when the USB interface has water.
  • the electronic device can detect whether water has entered the USB interface through a water ingress detection chip.
  • a water ingress detection chip For some electronic devices, such as watches and wristbands, due to the limited space for placing chips in the electronic devices, it is impossible to place a chip for detecting water ingress. In this way, these electronic devices cannot perform water intrusion detection on the USB interface.
  • the embodiments of the present application provide a method and an electronic device for detecting water ingress of a USB interface, and the electronic device can perform the water ingress detection of a USB interface without requiring another water ingress detection chip.
  • a first aspect provides an electronic device, the electronic device includes a processor and a USB interface, the processor includes a first detection pin and a second detection pin, and the USB interface includes a first idle pin and a first voltage pin; The first detection pin is connected to the first idle pin, the second detection pin is connected to the first idle pin, and the first detection pin is connected to the second detection pin, wherein: the first detection pin is used to output the first detection pin.
  • a signal, the second detection pin receives the second signal; the first idle pin is suspended, and the first voltage pin is connected to the first voltage; the processor is used to determine the USB interface water ingress according to the change of the second signal.
  • the second signal received by the second detection pin is determined by the first signal.
  • the water covers the first idle pin and the first voltage pin.
  • the voltage of the first idle pin becomes the first voltage.
  • the second signal received by the second detection pin is determined by the first voltage.
  • the processor may determine that water has entered the USB interface according to the change of the second signal. In this way, without the need for a USB water ingress detection chip, the electronic device can detect the water ingress of the USB interface through the processor. The manufacturing cost of the electronic device is saved and the internal space of the electronic device is saved.
  • the electronic device further includes a first resistor; the first detection pin is connected to the first idle pin, which specifically includes: the first detection pin is connected to the first detection pin through the first resistor Free pin connections.
  • the first resistor functions to reduce the voltage received by the first detection pin. In this way, the first resistor can protect the first detection pin.
  • the electronic device further includes a second resistor, the second resistor is connected to the first resistor; the second detection pin is connected to the first idle pin, and specifically includes: a second detection pin The pin is connected to the first idle pin through the second resistor. After the USB interface enters the water, there is a voltage at the first idle pin, and the voltage will be input to the second detection pin.
  • the first resistor functions to reduce the voltage received by the second detection pin. In this way, the first resistor can protect the second detection pin.
  • the first detection pin is connected to the second detection pin, which specifically includes: the first detection pin is connected to the second detection pin through a first resistor and a second resistor .
  • the first voltage signal output by the first detection pin is divided by the first resistor and the second resistor and then input to the second detection pin.
  • the first resistor and the second resistor can protect the second detection pin and avoid overvoltage on the second detection pin.
  • the USB interface further includes a second idle pin and a second voltage pin, and the second detection pin is connected to the second idle pin; wherein: the second idle pin Floating, the second voltage pin is connected to the second voltage.
  • the second voltage is equal to the first voltage.
  • the electronic device further includes a first resistor and a second resistor, and the first resistor and the second resistor are connected; the first detection pin is connected to the first idle pin, which specifically includes : the first detection pin is connected to the first idle pin through the first resistor; the second detection pin is connected to the second idle pin, which specifically includes: the second detection pin is connected to the second idle pin through the second resistor .
  • the processor can also detect water entering the USB interface.
  • the first resistor includes a first pin and a second pin
  • the second resistor includes a third pin and a fourth pin
  • the first detection pin is connected to the first idle pin through the first resistor, which specifically includes: the first detection pin is connected to the first pin, and the second pin is connected to the first idle pin;
  • the second detection pin is connected to the second idle pin through the second resistor, which specifically includes: the second detection pin is connected to the third pin, and the fourth pin is connected to the second idle pin;
  • the first resistor is connected to the second resistor, and specifically includes: the second pin is connected to the fourth pin.
  • the first resistor is connected to the second resistor, which specifically includes: the second pin is connected to the third pin.
  • the first resistor is connected to the second resistor, which specifically includes: the first pin is connected to the third pin.
  • the first resistor is connected to the second resistor, which specifically includes: the first pin is connected to the fourth pin.
  • the electronic device further includes a first diode and a second diode; wherein: the first detection pin is connected to the anode of the first diode, and the first resistor It is connected to the anode of the first diode, the second detection pin is connected to the anode of the second diode, the second resistor is connected to the anode of the second diode; the cathode of the first diode is connected to the third voltage , the second diode is connected to the fourth voltage.
  • the first diode and the second diode can prevent the voltage received at the second detection pin from being too large.
  • the first diode and the second diode can protect the second detection pin.
  • the first signal is a periodically changing voltage signal, and the first voltage is greater than the voltage value of the highest level of the first signal.
  • the processor is specifically configured to: when the change period of the second signal is the same as the change period of the first signal, determine that the USB interface has not entered water; when the change of the second signal When the period is different from the change period of the first signal, it is determined that water has entered the USB interface.
  • the processor is specifically configured to: when the second signal is a fixed value, determine that the USB interface has entered water.
  • the first signal is a fifth voltage with a fixed voltage, and the fifth voltage is smaller than the first voltage.
  • the processor is specifically configured to: when the second signal is less than or equal to the first threshold, determine that the USB interface has not entered water, and the first threshold is determined according to the fifth voltage; The second signal is greater than or equal to the second threshold, and it is determined that the USB interface has entered water, the second threshold is determined according to the first voltage, and the second threshold is greater than the first threshold.
  • the second idle pin is in an idle state when the USB interface is charging or transmitting data.
  • the first frequency at which the first detection pin outputs the first signal is less than or equal to the upper limit value of the frequency at which the second detection pin receives the second signal.
  • a first internal resistance exists in the first detection pin, and a second internal resistance exists in the second detection pin; wherein: the resistance value of the first resistance is smaller than that of the first internal resistance
  • the resistance value of the second resistor is smaller than the resistance value of the second internal resistance. If the resistance values of the first resistor and the second resistor are too large, the second signal received by the second detection pin is relatively small and may not be detected. Therefore, limiting the size of the first resistor and the second resistor may not affect the detection of the second signal.
  • the present application provides a method for detecting water ingress of a USB interface.
  • the method is applied to an electronic device.
  • the electronic device includes a processor and a USB interface.
  • the processor includes a first detection pin and a second detection pin.
  • the interface includes a first idle pin and a first voltage pin, the first detection pin is connected to the first idle pin, the second detection pin is connected to the first idle pin, and the first detection pin is connected to the second detection tube
  • the pin connection includes: the electronic device outputs the first signal through the first detection pin; the electronic device obtains the second signal received by the second detection pin; the electronic device determines that the USB interface enters water according to the change of the second signal.
  • the electronic device can output the first signal through the first detection pin of the processor, and then the electronic device detects the second signal from the second detection pin in the processor; if the change period of the second signal is consistent with the second signal, the electronic device The device determines that the USB interface has not entered water; if the second signal is a fixed value, the electronic device determines that the USB interface has entered water.
  • the first voltage pin is connected to the first voltage, and the first idle pin is floating.
  • the first signal is a periodically changing voltage signal, and the first voltage is greater than the voltage value of the highest level of the first signal.
  • the electronic device determines that water has entered the USB interface according to the change of the second signal, including: when the change period of the second signal is the same as the change period of the first signal, the electronic device determines No water has entered the USB interface; when the change period of the second signal is different from the change period of the first signal, the electronic device determines that the USB interface has entered water.
  • the electronic device determines that the USB interface has entered water, which specifically includes: when the second signal is a fixed value , the electronic device determines that water has entered the USB interface.
  • the first signal is a fifth voltage with a fixed voltage, and the fifth voltage is smaller than the first voltage.
  • the electronic device determines that water has entered the USB interface according to the change of the second signal, including: when the second signal is less than or equal to the first threshold, the electronic device determines that the USB interface has not entered water. , the first threshold is determined according to the fifth voltage; when the second signal is greater than or equal to the second threshold, the electronic device determines that the USB interface has entered water, the second threshold is determined according to the first voltage, and the second threshold is greater than the first threshold.
  • an electronic device comprising: a communication interface, a memory and a processor; the communication interface, the memory and the processor are coupled, and the memory is used to store computer program code, the computer program code includes computer instructions, when the processor is retrieved from the memory Computer instructions are read to cause an electronic device to perform any of the possible implementations of the first aspect.
  • a computer-readable storage medium comprising instructions, wherein, when the above instructions are executed on an electronic device, the electronic device executes any one of the possible implementations of the second aspect.
  • a fifth aspect provides a computer product that, when the computer program product runs on a computer, enables the computer to execute any one of the possible implementations of the second aspect.
  • FIGS. 1A-1B are schematic diagrams of an electronic device provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of another electronic device provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a USB interface provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a USB interface water ingress detection circuit provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of the hardware structure of a USB interface water ingress detection device provided by an embodiment of the application.
  • 6 to 7 are schematic circuit diagrams of a USB interface before water entry according to an embodiment of the present application.
  • 8-9 are schematic circuit diagrams of a USB interface provided by an embodiment of the application after water enters;
  • FIG. 10 is a schematic diagram of a voltage waveform of a pin in an electronic device provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of the hardware structure of another USB interface water ingress detection device provided by an embodiment of the application.
  • FIGS. 12-13 are schematic circuit diagrams of a USB interface before water enters according to an embodiment of the present application.
  • 14-15 are schematic circuit diagrams of a USB interface provided by an embodiment of the present application after water enters;
  • 16 is a schematic diagram of the hardware structure of another USB interface water ingress detection device provided by an embodiment of the application.
  • FIGS. 17-18 are schematic circuit diagrams of a USB interface before water enters according to an embodiment of the present application.
  • 19-20 are schematic circuit diagrams of a USB interface provided by an embodiment of the present application after water enters;
  • 21 is a schematic diagram of the hardware structure of another USB interface water ingress detection device provided by an embodiment of the application.
  • FIGS. 22-23 are schematic circuit diagrams of a USB interface before water entry according to an embodiment of the present application.
  • 24-25 are schematic circuit diagrams of a USB interface provided by an embodiment of the present application after water enters;
  • 26 is a schematic diagram of the hardware structure of a USB interface water ingress detection device provided by an embodiment of the application.
  • FIGS. 27-28 are schematic circuit diagrams of a USB interface before water entry according to an embodiment of the present application.
  • 29-30 are schematic circuit diagrams of a USB interface provided by an embodiment of the application after water enters;
  • 31 is a schematic diagram of the hardware structure of another USB interface water ingress detection device provided by an embodiment of the application.
  • FIGS. 32-33 are schematic circuit diagrams of a USB interface before water enters according to an embodiment of the present application.
  • 34-35 are schematic circuit diagrams of a USB interface provided by an embodiment of the application after water enters;
  • 36 is a schematic diagram of the hardware structure of another USB interface water ingress detection device provided by an embodiment of the application.
  • FIGS. 37-38 are schematic circuit diagrams of a USB interface before water entry according to an embodiment of the present application.
  • 39-40 are schematic circuit diagrams of a USB interface provided by an embodiment of the application after water enters;
  • FIG. 41 is a schematic flowchart of a water inlet method for a USB interface provided by an embodiment of the present application.
  • FIG. 42 is a schematic diagram of a user interface provided by an embodiment of the present application.
  • 43 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the application.
  • FIG. 44 is a schematic diagram of a software framework provided by an embodiment of the present application.
  • first and second are only used for descriptive purposes, and should not be construed as implying or implying relative importance or implying the number of indicated technical features. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, the “multiple” The meaning is two or more.
  • the bracelet 100 shown in FIGS. 1A and 1B may include a wristband body 101 and a wrist watch 102 .
  • the wristband body 101 may include a USB interface 103 .
  • FIG. 1B only exemplarily shows the USB interface 103 in the wristband 100 , and the position of the USB interface in the wristband 100 is not limited in this embodiment of the present application.
  • FIG. 2 exemplarily shows a watch 200
  • the watch 200 may include a USB interface 201 . It can be understood that FIG. 2 only exemplarily shows the USB interface 201 in the watch 200 , and the specific position of the USB interface in the watch 200 is not limited in this embodiment of the present application.
  • the wristband 100 , the watch 200 , and electronic devices such as mobile phones can be charged by connecting to an external power source through a USB interface (such as the USB interface 103 shown in FIG. 1B ).
  • the electronic device can also connect with other electronic devices for data transmission through the USB interface.
  • the USB interface such as the USB interface 103 shown in FIG. 1B
  • the water connects to multiple pins in the USB.
  • connecting to an external power supply after the USB interface enters water may cause damage to some components in the electronic device (for example, the internal resistance in the USB interface is damaged, or the battery of the electronic device is burned out, etc.).
  • the pins in USB are generally divided into several types such as mini USB, micro USB, and USB Type-C.
  • the embodiments of the present application take USB Type-C as an example for description. Regarding mini USB and micro USB, reference may be made to the description in the prior art for details, which will not be repeated in this embodiment of the present application.
  • FIG 3 shows a schematic diagram of a USB Type-C interface.
  • the USB Type-C interface can include 24 pins.
  • A1-A12 has a total of 12 pins and B1-B12 has a total of 12 pins that are symmetrical up and down.
  • the pin A1, the pin B1, the pin A12, and the pin B12 are the GND pins, that is, the ground pins.
  • Pin A4, pin B4, pin A9, and pin B9 are VBUS pins, that is, voltage pins. In the protocol USB 3.1, the voltage at the VBUS pin is 5V.
  • the USB Type-C interface also includes CC1 pins, CC2 pins, TX1+ pins, TX1- pins, TX2+ pins, TX2- pins, D- pins, D+ pins, TX1+ pins, TX1- pins , TX2+ pin, TX2- pin, SBU1 pin, SBU2 pin, etc.
  • the functions of these pins can refer to the prior art, and details are not repeated here.
  • the liquid When liquid (such as water) enters the USB port, the liquid will connect some pins. For example, if the A4 pin (VBUS pin) and the A5 pin (SBU1 pin) are covered with liquid, then the VBUS pin and the SBU1 pin are connected by liquid. In this way, the voltage of the SBU1 pin is equal to the voltage of the VBUS pin. If the B9 pin (VBUS pin) and the B8 pin (SBU1 pin) are covered by liquid, then the VBUS pin and the SBU2 pin are connected by liquid. In this way, the voltage of the SBU2 pin is equal to the voltage of the VBUS pin.
  • the electronic device When water or liquid exists in the USB interface, the electronic device needs to detect the water inflow or the existence of liquid in the USB interface in time. Therefore, the electronic device can prompt the user that water has entered the USB interface.
  • the USB interface In the case of water entering the USB interface, the USB interface is connected to an external power supply through a USB cable, which may cause a short circuit of the pins of the USB interface, thereby damaging the internal circuits and components of the electronic device. In this way, the user can prevent the user from connecting an external power source to the USB interface without knowing that water has entered the USB interface.
  • FIG. 4 shows a schematic circuit diagram of a USB interface water intrusion detection device provided in the prior art.
  • the USB interface water ingress detection circuit may include a processor 300 , a water ingress detection chip 301 , a logic chip 302 , an audio codec chip 303 , a digital signal processor 304 , and a USB interface 305 .
  • the SBU1 pin and the SBU2 pin in the water ingress detection chip 301 are respectively connected to the SBU1 pin and the SBU2 pin in the USB interface 305 .
  • the DN_L pin in the water ingress detection chip 301 is connected to the DN pin in the USB interface 305 .
  • the DP_R pin in the water inlet detection chip 301 is connected to the DP pin in the USB interface 305 .
  • the water ingress detection chip 301 reports to the processor 300 .
  • the processor 300 determines pins whose voltage exceeds a preset threshold. If the voltage at the SBU1 pin, the SBU2 pin, the DP pin, and the DN pin in the water intrusion detection chip 301 exceeds a preset threshold.
  • the processor 300 determines that water has entered the USB interface 305 .
  • the logic chip 302 can be used to determine whether the USB connection line inserted in the USB interface is forward or reverse.
  • the audio codec chip 303 can be used for audio stream codec.
  • Digital signal processor 304 may be used to transmit digital signals.
  • the specific functions of the processor 300 , the water ingress detection chip 301 , the logic chip 302 , the audio codec chip 303 , the digital signal processor 304 , and the USB interface 305 can be referred to in the prior art, which will not be repeated here.
  • an additional chip ie, the water ingress detection chip 301 shown in FIG. 4 , is required to detect whether water has entered the USB interface.
  • some electronic devices such as the wristband shown in FIG. 1A ) have limited space for placing hardware, and cannot place a dedicated chip for water ingress detection. In this way, it is impossible for these electronic devices to detect the water ingress of the USB interface.
  • the present application provides a USB interface water ingress detection device applied to electronic equipment.
  • the device includes a processor and a USB interface
  • the processor may include a first detection pin and a second detection pin
  • the USB interface may include a first idle pin and a first voltage pin. Both the first detection pin and the second detection pin are connected to the first idle pin.
  • the first detection pin is used for outputting the first signal
  • the first voltage pin is connected to the first voltage.
  • the first idle pin is floating in the USB interface and is not connected to a voltage.
  • the processor determines that the USB interface has entered water according to the change of the second signal at the second detection pin. When the USB interface is not filled with water, the second signal received by the second detection pin is determined by the first signal.
  • the water When water enters the USB interface, the water covers the first idle pin and the first voltage pin. The voltage of the first idle pin becomes the first voltage. The second signal received by the second detection pin is determined by the first voltage. The processor may determine that water has entered the USB interface according to the change of the second signal. In this way, without the need for a USB water ingress detection chip, the electronic device can detect the water ingress of the USB interface through the processor. The manufacturing cost of the electronic device is saved and the internal space of the electronic device is saved.
  • FIG. 5 shows a structural block diagram of a device for detecting water ingress of a USB interface provided by an embodiment of the present application.
  • the USB interface water ingress detection device provided by the embodiment of the present application may be the wristband 100 shown in FIG. 1A , the watch 200 shown in FIG. 2 , or an electronic device such as a mobile phone and a tablet.
  • the provided USB interface water ingress detection device may include: a processor 500, a USB interface 530, the processor 500 may include a first detection pin 501 and a second detection pin 502, and the USB interface may include a first idle pin 531 and the first voltage pin 534. in:
  • the first detection pin 501 is connected to the first idle pin 531
  • the first detection pin 501 is connected to the second detection pin 502
  • the second detection pin 502 is connected to the first idle pin 531 .
  • the first detection pin 501 outputs a first signal.
  • the first signal is a periodically changing signal.
  • the transmission frequency of the first signal is related to the sampling frequency of the second detection pin 502 .
  • the transmission frequency of the first signal may be the first frequency.
  • the sampling frequency of the second detection pin 502 that is, the frequency at which the second detection pin 502 can receive a signal has a frequency upper limit value.
  • the first frequency is less than the upper frequency limit value.
  • the embodiments of the present application do not limit the specific sizes of the first frequency and the frequency upper limit value.
  • the maximum value of the voltage of the first signal does not exceed the first threshold.
  • the first threshold value is the maximum voltage value that the first detection pin 501 can withstand. That is, if the voltage at the first detection pin 501 exceeds the first threshold, the internal resistance of the first detection pin 501 will be over-voltage.
  • the first idle pin 531 is a floating pin in the USB interface 530 . That is, no voltage is connected to the first idle pin 531 .
  • the first idle pin 531 is a pin in an idle state in the USB interface 530 .
  • the first voltage pin 534 is connected to the first voltage.
  • the first voltage is greater than the maximum value of the first signal. For example, if the maximum value of the first signal is 1.8V, the first voltage is greater than 1.8V.
  • the second detection pin 502 receives the second signal.
  • an internal resistance may exist in the first detection pin 501, and an internal resistance may also exist in the second detection pin 502, which is not limited here.
  • the processor 500 may determine that water has entered the USB interface 530 according to the change of the second signal.
  • the processor 500 determines that the USB interface 530 has not entered water. If the second signal is a constant value, the processor 500 determines that water has entered the USB interface 530 .
  • the electronic device can detect the water ingress of the USB interface through the processor without the need of a USB water ingress detection chip.
  • the manufacturing cost of the electronic device is saved and the internal space of the electronic device is saved.
  • FIG. 6 shows a schematic circuit diagram of the USB interface in the USB interface detection circuit device provided in FIG. 5 before water enters.
  • the first detection pin 501 shown in FIG. 5 may be the GPIO pin shown in FIG. 6 .
  • the GPIO pin may be a pin in a general-purpose input/output (GPIO) module.
  • the second detection pin 502 shown in FIG. 5 may be the ADC pin shown in FIG. 6 .
  • the ADC pin may be a pin in an analog-to-digital converter (ADC).
  • the first idle pin 531 in FIG. 5 may be the SBU1 pin shown in FIG. 6 .
  • the first voltage pin 534 shown in FIG. 5 may be the VBUS pin shown in FIG. 6 .
  • the GPIO pin is connected to the ADC pin and to the SBU1 pin.
  • the ADC pin is connected to the SBU1 pin.
  • the SBU1 pin in FIG. 6 may be the A5 pin in the USB interface shown in FIG. 3 .
  • the VBUS pin in FIG. 6 may be the A4 pin in the USB interface shown in FIG. 3 .
  • the first idle pin 531 may be a pin in an idle state in the USB interface, for example, the B8 pin shown in FIG. 3 , that is, the SBU2 pin.
  • FIG. 7 is a simplified schematic circuit diagram of the circuit before the USB interface shown in FIG. 6 enters water.
  • the second signal received at the ADC pin eg V2 shown in Figure 7
  • the first signal output by the GPIO pin eg shown in Figure 7 V1
  • the voltage at the USB1 pin is 0.
  • the voltage signal V1 output from the GPIO pin can be directly input to the ADC pin.
  • the current flow can be from the GPIO pins to the ADC pins.
  • FIG. 8 shows a schematic circuit diagram of the USB interface in the USB interface detection device provided in FIG. 5 after water enters.
  • the liquid covers the SBU1 pin and the VBUS pin, that is, the SBU1 pin and the VBUS pin are connected by the liquid. Therefore, the voltage at the VBUS pin is given to the SBU1 pin through the liquid.
  • the first detection pin 501 shown in FIG. 5 may be the GPIO pin shown in FIG. 8 .
  • the second detection pin 502 shown in FIG. 5 may be the ADC pin shown in FIG. 8 .
  • the first idle pin 531 in FIG. 5 may be the SBU1 pin shown in FIG. 8 .
  • FIG. 5 may be the VBUS pin shown in FIG. 8 .
  • ADC pins, SBU1 pins, and VBUS pins shown in FIG. 8 reference may be made to the descriptions in FIG. 6 , which will not be repeated here.
  • FIG. 9 is a simplified circuit schematic diagram of the circuit after the USB interface shown in FIG. 8 enters water.
  • the voltage V1 of the VBUS pin is given to the SBU1 pin.
  • the voltage at the SBU1 pin is higher than the voltage at the GPIO pin. In this way, the current flows in the circuit before and after the USB interface enters the water in different directions.
  • the voltage V2 at the pin ADC is equal to the voltage V3 at the SBU1 pin.
  • the second signal received at the second detection pin is different before the USB interface is water in and after the USB is in water.
  • the second signal at the second detection pin may be equal to V1.
  • V1 is a periodically changing voltage signal.
  • V3 is a constant voltage signal. In this way, the processor 500 can determine whether water has entered the USB interface according to the second signal at the second detection pin.
  • the processor 500 determines that the USB interface 530 is not flooded with water. If the second signal is a voltage signal that does not change within a certain period of time, the processor 500 determines that water has entered the USB interface.
  • FIG. 10 exemplarily shows a schematic diagram of waveforms of the first signal and the second signal.
  • the first signal output by the first detection pin 501 may be the first signal 800 shown in FIG. 10 , which is a periodically changing square wave signal.
  • the first signal may be a square wave signal, or may be a sine signal, a cosine signal, or the like, which is not limited here.
  • the second signal may be the second signal 801 shown in FIG. 10 .
  • the second signal 801 is a periodically changing square wave signal, and its changing period is the same as that of the first signal 800 .
  • the second signal may be the second signal 802 as shown in FIG. 10 .
  • the second signal 802 is a voltage signal with a change value of 0 within a certain period of time.
  • the USB interface water ingress detection device may further include a first resistor and a second resistor.
  • FIG. 11 shows yet another device for detecting water ingress of a USB interface provided by an embodiment of the present application.
  • the USB interface water intrusion detection device may include: a processor 500 , a first resistor 510 , a second resistor 520 and a USB interface 530 .
  • the processor 500 may include a first detection pin 501 and a second detection pin 502 .
  • the USB interface 530 may include a first idle pin 531 and a first voltage pin 534 . in:
  • the first detection pin 501 is connected to the first idle pin 531 through the first resistor 510 .
  • the second detection pin 502 is connected to the first idle pin 531 through the second resistor 520 .
  • the first resistor 510 may be connected to the second resistor 520 .
  • the first detection pin 501 may be connected to the second detection pin 502 through the first resistor 510 and the second resistor 520 .
  • first detection pin 501 and the second detection pin 502 For details about the first detection pin 501 and the second detection pin 502, reference may be made to the description in FIG. 5 above, which will not be repeated here.
  • first idle pin 531 and the first voltage pin 534 reference may be made to the description in FIG. 5 , which will not be repeated here.
  • the resistance values of the first resistor 510 and the second resistor 520 are related according to the first signal output by the first detection pin 501. The greater the value of the first signal, the greater the resistance values of the first resistor 510 and the second resistor 520.
  • the resistance value of the first resistor 510 is smaller than the resistance value of the internal resistance in the first detection pin.
  • the resistance value of the second resistor 520 is smaller than the resistance value of the internal resistance in the second detection pin.
  • the resistance value of the first resistor 510 may be 330 k ⁇
  • the resistance value of the second resistor 520 may be 1 k ⁇ .
  • the specific resistance values of the first resistor 510 and the second resistor 520 are not limited in this embodiment of the present application.
  • the first resistor 510 may be composed of one or more resistors, or may be an equivalent resistor composed of one or more different components (eg, capacitors, inductors, etc.), which are not limited here.
  • the second resistor 520 may be composed of one or more resistors, or may be an equivalent resistor composed of one or more different components (eg, capacitors, inductors, etc.), which are not limited here.
  • the first resistor 510 may include an A pin and a B pin
  • the second resistor 520 may include a C pin and a D pin.
  • There are many ways to connect the first resistor 510 and the second resistor 520 for example, the A pin is connected to the C pin, the A pin is connected to the D pin, the B pin is connected to the C pin, and the B pin is connected to the D pin. pin connection.
  • the A pin is connected to the C pin
  • the A pin is connected to the D pin
  • the B pin is connected to the C pin
  • the B pin is connected to the D pin. pin connection.
  • FIG. 12 shows a schematic circuit diagram of the USB interface before water enters the USB interface detection circuit device provided in FIG. 11 .
  • the first detection pin 501 shown in FIG. 11 may be the GPIO pin in FIG. 12 .
  • the second detection pin 502 shown in FIG. 11 may be the ADC pin in FIG. 12 .
  • the first resistor 510 shown in FIG. 11 may be the resistor R1 shown in FIG. 12 .
  • the second resistor 520 shown in FIG. 11 may be the resistor R2 shown in FIG. 12 .
  • the first idle pin shown in FIG. 11 may be the SBU1 pin in FIG. 12 .
  • the first voltage pin 534 shown in FIG. 11 may be the VBUS pin in FIG. 12 .
  • the resistor R1 in FIG. 12 may include an A pin and a B pin.
  • Resistor R2 may include a C pin and a D pin.
  • the connection of the resistor R1 and the resistor R2 may include: the connection between the B pin of the resistor R1 and the D pin of the resistor R2.
  • FIG. 13 is a simplified circuit schematic diagram of the circuit before the USB interface shown in FIG. 12 enters water.
  • the voltage of the SBU1 pin is 0.
  • the voltage signal V1 outputted at the GPIO pin is input to the ADC pin through the resistor R1 and the resistor R2.
  • the voltage at the ADC pin V2 V1-V(R1)-V(R2).
  • V(R1) represents the voltage of the resistor R1
  • V(R2) represents the voltage of the resistor R2.
  • the resistor R1 and the resistor R2 can divide the voltage to protect the ADC pin.
  • FIG. 14 shows a schematic circuit diagram of the USB interface in the USB interface detection device provided in FIG. 11 after water enters.
  • the liquid covers the SBU1 pin and the VBUS pin, that is, the SBU1 pin and the VBUS pin are connected by liquid. Therefore, the voltage at the VBUS pin is given to the SBU1 pin through the liquid.
  • the first detection pin 501 shown in FIG. 11 may be the GPIO pin in FIG. 14 .
  • the second detection pin 502 shown in FIG. 11 may be the ADC pin in FIG. 14 .
  • the first resistor 510 shown in FIG. 11 may be the resistor R1 shown in FIG. 14 .
  • the first idle pin shown in FIG. 11 may be the SBU1 pin in FIG. 14 .
  • the first voltage pin 534 shown in FIG. 11 may be the VBUS pin in FIG. 14 .
  • the resistor R1 in FIG. 14 may include an A pin and a B pin.
  • Resistor R4 may include a C pin and a D pin.
  • the connection of the resistor R1 and the resistor R2 may include: the connection between the B pin of the resistor R1 and the D pin of the resistor R2.
  • FIG. 15 is a simplified circuit schematic diagram of the circuit shown in FIG. 14 after the USB interface has entered water.
  • the VBUS pin is connected to the SBU1 pin through the liquid.
  • the voltage at the SBU1 pin changes from 0 volts before water entry to V3.
  • the voltage at the SBU1 pin is higher than the GPIO pin. In this way, the current flows in the circuit before and after the USB interface enters the water in different directions.
  • the second detection pin 502 (eg ADC pin) in the processor 500 receives two voltages before and after the water ingress of the USB interface 530 Signals are different. In this way, the processor 500 can determine whether water has entered the USB interface 530 according to the change of the second signal. If the second signal is a periodically changing voltage signal, the processor 500 determines that the USB interface 530 is not flooded with water. If the second signal does not change within a certain period of time, the processor 500 determines that water has entered the USB interface.
  • the second signal is a periodically changing voltage signal
  • the processor 500 determines that the USB interface 530 is not flooded with water. If the second signal does not change within a certain period of time, the processor 500 determines that water has entered the USB interface.
  • the first resistor 510 and the second voltage 520 in the device can protect the second detection pin before the USB interface 530 enters water, so as to avoid overvoltage of the second detection pin.
  • the first resistor 510 can protect the first detection pin 501 and prevent the first detection pin 501 from being over-voltage.
  • the second resistor 520 can protect the second detection pin 502 from over-voltage on the second detection pin 502 .
  • the USB interface 530 may further include more pins in an idle state and pins that are connected to a voltage.
  • the device can detect whether there is water ingress between the first idle pin and the first voltage pin.
  • the device includes multiple pins of the USB interface, the device can detect whether water enters between the multiple pins. In this way, the USB interface can be detected in a wider range of water.
  • FIG. 16 shows a schematic diagram of another USB interface water intrusion detection device.
  • the USB interface water intrusion detection device may include: a processor 500 , a first resistor 510 , a second resistor 520 and a USB interface 530 .
  • the processor 500 may include a first detection pin 501 and a second detection pin 502 .
  • the USB interface 530 may include a first idle pin 531 and a first voltage pin 534 , and a second idle pin 532 and a second voltage pin 533 . in:
  • the first detection pin 501 is connected to the first idle pin 531 through the first resistor 510 .
  • the second detection pin 502 is connected to the second idle pin 532 through the second resistor 520 .
  • the first resistor 510 may be connected to the second resistor 520 .
  • the first detection pin 501 may be connected to the second detection pin 502 through the first resistor 510 and the second resistor 520 .
  • the second idle pin 532 is floating in the USB interface 530 and has no access voltage.
  • the second idle pin 532 is a pin in an idle state.
  • the B8 pin ie, the SBU2 pin
  • the second voltage pin may be the B9 pin (ie, the VBUS pin) shown in FIG. 3
  • the second voltage pin 533 is connected to the second voltage.
  • the second voltage may be equal to the first voltage, which is not limited here.
  • first detection pin 501 and the second detection pin 502 For details about the first detection pin 501 and the second detection pin 502, reference may be made to the description in FIG. 5 above, which will not be repeated here.
  • first idle pin 531 and the first voltage pin 534 reference may be made to the description in FIG. 5 , which will not be repeated here.
  • FIG. 17 shows a schematic circuit diagram of the USB interface in the USB interface detection circuit device provided in FIG. 16 before water enters.
  • the first detection pin 501 shown in FIG. 16 may be the GPIO pin in FIG. 17 .
  • the second detection pin 502 shown in FIG. 16 may be the ADC pin in FIG. 17 .
  • the first resistor 510 shown in FIG. 16 may be the resistor R1 shown in FIG. 17 .
  • the second resistor 520 shown in FIG. 16 may be the resistor R2 shown in FIG. 17 .
  • the first idle pin shown in FIG. 16 may be the SBU1 pin in FIG. 17 .
  • the first voltage pin 534 shown in FIG. 16 may be the VBUS1 pin in FIG. 17 .
  • the 16 may be the SBU2 pin in FIG. 17 .
  • the second voltage pin 533 shown in FIG. 16 may be the VBUS2 pin in FIG. 17 .
  • For the SBU2 pin reference may be made to the description of the SBU1 pin in FIG. 6 , which will not be repeated here.
  • the resistor R1 in FIG. 17 may include an A pin and a B pin.
  • Resistor R2 may include a C pin and a D pin.
  • the connection of the resistor R1 and the resistor R2 may include: the connection between the B pin of the resistor R1 and the D pin of the resistor R2.
  • FIG. 18 is a simplified circuit schematic diagram of the circuit before the USB interface shown in FIG. 17 enters water.
  • the voltage of the SBU1 pin is 0.
  • the voltage signal V1 outputted at the GPIO pin is input to the ADC pin through the resistor R1 and the resistor R2.
  • the voltage at the ADC pin V2 V1-V(R1)-V(R2).
  • V(R1) represents the voltage of the resistor R1
  • V(R2) represents the voltage of the resistor R2.
  • the resistor R1 and the resistor R2 can divide the voltage to protect the ADC pin.
  • FIG. 19 shows a schematic circuit diagram of the USB interface in the USB interface detection device provided in FIG. 16 after water enters.
  • the liquid covers the SBU1 pin and the VBUS1 pin, that is, the SBU1 pin and the VBUS pin are connected by liquid. Therefore, the voltage at the VBUS1 pin is given to the SBU1 pin through the liquid.
  • the liquid covers the SBU2 pin and the VBUS2 pin, that is, the SBU2 pin and the VBUS pin are connected by the liquid. Therefore, the voltage at the VBUS2 pin is given to the SBU2 pin through the liquid.
  • the first detection pin 501 shown in FIG. 16 may be the GPIO pin in FIG. 19 .
  • the second detection pin 502 shown in FIG. 16 may be the ADC pin in FIG. 19 .
  • the first resistor 510 shown in FIG. 16 may be the resistor R1 shown in FIG. 19 .
  • the second resistor 520 shown in FIG. 16 may be the resistor R2 shown in FIG. 19 .
  • the first idle pin shown in FIG. 16 may be the SBU1 pin in FIG. 19 .
  • the first voltage pin 534 shown in FIG. 16 may be the VBUS1 pin in FIG. 19 .
  • the second idle pin 532 shown in FIG. 16 may be the SBU2 pin in FIG. 19 .
  • the second voltage pin 533 shown in FIG. 16 may be the VBUS2 pin in FIG. 19 .
  • the first idle pin 531 is adjacent to the first voltage pin 534 .
  • the second idle pin 532 is adjacent to the second voltage pin 533 .
  • FIG. 20 is a simplified circuit schematic diagram of the circuit shown in FIG. 19 after the USB interface has entered water.
  • the VBUS1 pin is connected to the SBU1 pin through the liquid.
  • the voltage at the SBU1 pin changes from 0 volts before water entry to V3.
  • the VBUS2 pin is connected to the SBU1 pin through the liquid.
  • the voltage at the SBU2 pin changes from 0 volts before water in to V3.
  • the voltage at the SBU1 and SBU2 pins is higher than the GPIO pins. In this way, the current flows in the circuit before and after the USB interface enters the water in different directions. After the USB interface enters the water, the current flow in the circuit is divided into two paths.
  • V2 V3-V(R2).
  • V(R2) represents the voltage across resistor R2.
  • the second detection pin 502 (eg ADC pin) in the processor 500 receives two voltages before and after the water ingress of the USB interface 530 Signals are different. In this way, the processor 500 can determine whether water has entered the USB interface 530 according to the change of the second signal. If the second signal is a periodically changing voltage signal, the processor 500 determines that the USB interface 530 is not flooded with water. If the second signal does not change within a certain period of time, the processor 500 determines that water has entered the USB interface.
  • the second signal is a periodically changing voltage signal
  • the processor 500 determines that the USB interface 530 is not flooded with water. If the second signal does not change within a certain period of time, the processor 500 determines that water has entered the USB interface.
  • the first resistor 510 and the second voltage 520 in the device can protect the second detection pin before the USB interface 530 enters water, so as to avoid overvoltage of the second detection pin.
  • the first resistor 510 can protect the first detection pin 501 and prevent the first detection pin 501 from being over-voltage.
  • the second resistor 520 can protect the second detection pin 502 from over-voltage on the second detection pin 502 .
  • connection of the first resistor 510 to the second resistor 520 may include: the B pin of the first resistor 510 may be connected to the C pin of the second resistor 520 .
  • another USB interface water intrusion detection device may include: a processor 500 , a first resistor 510 , a second resistor 520 and a USB interface 530 .
  • the processor 500 may include a first detection pin 501 and a second detection pin 502.
  • the USB interface 530 may include a first idle pin 531 and a first voltage pin 534 , and a second idle pin 532 and a second voltage pin 533 . in:
  • the first detection pin 501 is connected to the first idle pin 531 through the first resistor 510 .
  • the second detection pin 502 is connected to the second idle pin 532 through the second resistor 520 .
  • the first detection pin 501 may be connected to the second detection pin 502 through a first resistor 510 .
  • the first resistor 510 may be connected to the second resistor 520 .
  • the B pin of the first resistor 510 may be connected to the C pin of the second resistor 520 .
  • first detection pin 501 and the second detection pin 502 For details about the first detection pin 501 and the second detection pin 502, reference may be made to the description in FIG. 5 above, which will not be repeated here.
  • first idle pin 531 and the first voltage pin 534 reference may be made to the description in FIG. 5 , which will not be repeated here.
  • FIG. 22 shows a schematic circuit diagram of the USB interface before water enters the USB interface detection circuit device provided in FIG. 21 .
  • the first detection pin 501 shown in FIG. 21 may be the GPIO pin in FIG. 22 .
  • the second detection pin 502 shown in FIG. 21 may be the ADC pin in FIG. 22 .
  • the first resistor 510 shown in FIG. 21 may be the resistor R1 shown in FIG. 22 .
  • the second resistor 520 shown in FIG. 21 may be the resistor R2 shown in FIG. 22 .
  • the first idle pin shown in FIG. 21 may be the SBU1 pin in FIG. 22 .
  • the first voltage pin 534 shown in FIG. 21 may be the VBUS1 pin in FIG. 22 .
  • the 21 may be the SBU2 pin in FIG. 22 .
  • the second voltage pin 533 shown in FIG. 21 may be the VBUS2 pin in FIG. 22 .
  • For the SBU2 pin reference may be made to the description of the SBU1 pin in FIG. 6 , which will not be repeated here.
  • FIG. 23 is a simplified schematic circuit diagram of the circuit before the USB interface shown in FIG. 22 enters water.
  • the voltage of the SBU1 pin and the SBU2 pin is 0.
  • the voltage signal V1 output at the GPIO pin is input to the ADC pin through the resistor R1.
  • V(R1) represents the voltage across resistor R1. In this way, when the voltage V1 output by the GPIO pin is too large or exceeds the maximum threshold of the voltage at the ADC pin, the resistor R1 can divide the voltage to protect the ADC pin.
  • FIG. 24 shows a schematic circuit diagram of the USB interface in the USB interface detection device provided in FIG. 21 after water enters.
  • the liquid covers the SBU1 pin and the VBUS1 pin, that is, the SBU1 pin and the VBUS pin are connected by liquid. Therefore, the voltage at the VBUS1 pin is given to the SBU1 pin through the liquid.
  • the liquid covers the SBU2 pin and the VBUS2 pin, that is, the SBU2 pin and the VBUS pin are connected by the liquid. Therefore, the voltage at the VBUS2 pin is given to the SBU2 pin through the liquid.
  • the first detection pin 501 shown in FIG. 21 may be the GPIO pin in FIG. 24 .
  • the second detection pin 502 shown in FIG. 21 may be the ADC pin in FIG. 24 .
  • the first resistor 510 shown in FIG. 21 may be the resistor R1 shown in FIG. 24 .
  • the second resistor 520 shown in FIG. 21 may be the resistor R2 shown in FIG. 24 .
  • the first idle pin shown in FIG. 21 may be the SBU1 pin in FIG. 24 .
  • the first voltage pin 534 shown in FIG. 21 may be the VBUS1 pin in FIG. 24 .
  • the second idle pin 532 shown in FIG. 21 may be the SBU2 pin in FIG. 24 .
  • the second voltage pin 533 shown in FIG. 21 may be the VBUS2 pin in FIG. 24 .
  • FIG. 25 is a simplified circuit schematic diagram of the circuit shown in FIG. 24 after the USB interface has entered water.
  • the VBUS1 pin is connected to the SBU1 pin through the liquid.
  • the voltage at the SBU1 pin changes from 0 volts before water entry to V3.
  • the VBUS2 pin is connected to the SBU1 pin through the liquid.
  • the voltage at the SBU2 pin changes from 0 volts before water in to V3.
  • the second detection pin 502 (eg ADC pin) in the processor 500 receives two voltages before and after the water ingress of the USB interface 530 Signals are different. In this way, the processor 500 can determine whether water has entered the USB interface 530 according to the change of the second signal. If the second signal is a periodically changing voltage signal, the processor 500 determines that the USB interface 530 is not flooded with water. If the second signal does not change within a certain period of time, the processor 500 determines that water has entered the USB interface.
  • the second signal is a periodically changing voltage signal
  • the processor 500 determines that the USB interface 530 is not flooded with water. If the second signal does not change within a certain period of time, the processor 500 determines that water has entered the USB interface.
  • the first resistor 510 and the second voltage 520 in the device can protect the second detection pin before the USB interface 530 enters water, so as to avoid overvoltage of the second detection pin.
  • the first resistor 510 can protect the first detection pin 501 and prevent the first detection pin 501 from being over-voltage.
  • the second resistor 520 can protect the second detection pin 502 from over-voltage on the second detection pin 502 .
  • connection of the first resistor 510 to the second resistor 520 may include: the A pin of the first resistor 510 is connected to the D pin of the second resistor 520 .
  • another USB interface water intrusion detection device may include: a processor 500 , a first resistor 510 , a second resistor 520 and a USB interface 530 .
  • the processor 500 may include a first detection pin 501 and a second detection pin 502 .
  • the USB interface 530 may include a first idle pin 531 and a first voltage pin 534 , and a second idle pin 532 and a second voltage pin 533 . in:
  • the first detection pin 501 is connected to the first idle pin 531 through the first resistor 510 .
  • the second detection pin 502 is connected to the second idle pin 532 through the second resistor 520 .
  • the first detection pin 501 can be connected to the second detection pin 502 through the second resistor 520 .
  • the first resistor 510 may be connected to the second resistor 520 .
  • the A pin of the first resistor 510 is connected to the D pin of the second resistor 520 .
  • first detection pin 501 and the second detection pin 502 For details about the first detection pin 501 and the second detection pin 502, reference may be made to the description in FIG. 5 above, which will not be repeated here.
  • first idle pin 531 and the first voltage pin 534 reference may be made to the description in FIG. 5 , which will not be repeated here.
  • FIG. 27 shows a schematic circuit diagram of the USB interface before water enters the USB interface detection circuit device provided in FIG. 26 .
  • the first detection pin 501 shown in FIG. 26 may be the GPIO pin in FIG. 27 .
  • the second detection pin 502 shown in FIG. 26 may be the ADC pin in FIG. 27 .
  • the first resistor 510 shown in FIG. 26 may be the resistor R1 shown in FIG. 27 .
  • the second resistor 520 shown in FIG. 26 may be the resistor R2 shown in FIG. 27 .
  • the first idle pin shown in FIG. 26 may be the SBU1 pin in FIG. 27 .
  • the first voltage pin 534 shown in FIG. 26 may be the VBUS1 pin in FIG. 27 .
  • the SBU2 pin in FIG. 27 may be the SBU2 pin in FIG. 27 .
  • the second voltage pin 533 shown in FIG. 26 may be the VBUS2 pin in FIG. 27 .
  • For the SBU2 pin reference may be made to the description of the SBU1 pin in FIG. 6 , which will not be repeated here.
  • FIG. 28 is a simplified schematic circuit diagram of the circuit before water entering the USB interface shown in FIG. 27 .
  • the voltage of the SBU1 pin and the SBU2 pin is 0.
  • the voltage signal V1 output at the GPIO pin is input to the ADC pin through the resistor R2.
  • V(R2) represents the voltage across resistor R2. In this way, when the voltage V1 output by the GPIO pin is too large or exceeds the maximum threshold of the voltage at the ADC pin, the resistor R2 can divide the voltage to protect the ADC pin.
  • FIG. 29 shows a schematic circuit diagram of the USB interface in the USB interface detection device provided in FIG. 26 after water enters.
  • the liquid covers the SBU1 pin and the VBUS1 pin, that is, the SBU1 pin and the VBUS pin are connected by liquid. Therefore, the voltage at the VBUS1 pin is given to the SBU1 pin through the liquid.
  • the liquid covers the SBU2 pin and the VBUS2 pin, that is, the SBU2 pin and the VBUS pin are connected by the liquid. Therefore, the voltage at the VBUS2 pin is given to the SBU2 pin through the liquid.
  • the first detection pin 501 shown in FIG. 26 may be the GPIO pin in FIG. 29 .
  • the second detection pin 502 shown in FIG. 26 may be the ADC pin in FIG. 29 .
  • the first resistor 510 shown in FIG. 26 may be the resistor R1 shown in FIG. 29 .
  • the second resistor 520 shown in FIG. 26 may be the resistor R2 shown in FIG. 29 .
  • the first idle pin shown in FIG. 26 may be the SBU1 pin in FIG. 29 .
  • the first voltage pin 534 shown in FIG. 26 may be the VBUS1 pin in FIG. 29 .
  • the second idle pin 532 shown in FIG. 26 may be the SBU2 pin in FIG. 29 .
  • the second voltage pin 533 shown in FIG. 26 may be the VBUS2 pin in FIG. 29 .
  • FIG. 30 is a simplified circuit schematic diagram of the circuit shown in FIG. 29 after the USB interface has entered water.
  • the VBUS1 pin is connected to the SBU1 pin through the liquid.
  • the voltage at the SBU1 pin changes from 0 volts before water entry to V3.
  • the VBUS2 pin is connected to the SBU1 pin through the liquid.
  • the voltage at the SBU2 pin changes from 0 volts before water in to V3.
  • the voltage at the SBU1 and SBU2 pins is higher than the GPIO pins. In this way, the current flows in the circuit before and after the USB interface enters the water in different directions. After the USB interface enters the water, the current flow in the circuit is divided into two paths.
  • V2 V3-V(R2).
  • V(R2) represents the voltage across resistor R2.
  • the second detection pin 502 (eg ADC pin) in the processor 500 receives two voltages before and after the water ingress of the USB interface 530 Signals are different. In this way, the processor 500 can determine whether water has entered the USB interface 530 according to the change of the second signal. If the second signal is a periodically changing voltage signal, the processor 500 determines that the USB interface 530 is not flooded with water. If the second signal does not change within a certain period of time, the processor 500 determines that water has entered the USB interface.
  • the second signal is a periodically changing voltage signal
  • the processor 500 determines that the USB interface 530 is not flooded with water. If the second signal does not change within a certain period of time, the processor 500 determines that water has entered the USB interface.
  • the first resistor 510 and the second voltage 520 in the device can protect the second detection pin before the USB interface 530 enters water, so as to avoid overvoltage of the second detection pin.
  • the first resistor 510 can protect the first detection pin 501 and prevent the first detection pin 501 from being over-voltage.
  • the second resistor 520 can protect the second detection pin 502 from over-voltage on the second detection pin 502 .
  • connection of the first resistor 510 to the second resistor 520 may include: the A pin of the first resistor 510 is connected to the C pin of the second resistor 520 .
  • another USB interface water intrusion detection device may include: a processor 500 , a first resistor 510 , a second resistor 520 and a USB interface 530 .
  • the processor 500 may include a first detection pin 501 and a second detection pin 502 .
  • the USB interface 530 may include a first idle pin 531 and a first voltage pin 534 , and a second idle pin 532 and a second voltage pin 533 . in:
  • the first detection pin 501 is connected to the first idle pin 531 through the first resistor 510 .
  • the second detection pin 502 is connected to the second idle pin 532 through the second resistor 520 .
  • the first detection pin 501 may be connected to the second detection pin 502 .
  • the first resistor 510 may be connected to the second resistor 520 .
  • the A pin of the first resistor 510 is connected to the C pin of the second resistor 520 .
  • first detection pin 501 and the second detection pin 502 For details about the first detection pin 501 and the second detection pin 502, reference may be made to the description in FIG. 5 above, which will not be repeated here.
  • first idle pin 531 and the first voltage pin 534 reference may be made to the description in FIG. 5 , which will not be repeated here.
  • FIG. 32 shows a schematic circuit diagram of the USB interface in the USB interface detection circuit device provided in FIG. 31 before water enters.
  • the first detection pin 501 shown in FIG. 31 may be the GPIO pin in FIG. 32 .
  • the second detection pin 502 shown in FIG. 31 may be the ADC pin in FIG. 32 .
  • the first resistor 510 shown in FIG. 31 may be the resistor R1 shown in FIG. 32 .
  • the second resistor 520 shown in FIG. 31 may be the resistor R2 shown in FIG. 32 .
  • the first idle pin shown in FIG. 31 may be the SBU1 pin in FIG. 32 .
  • the first voltage pin 534 shown in FIG. 31 may be the VBUS1 pin in FIG. 32 .
  • the SBU2 pin in FIG. 32 may be the SBU2 pin in FIG. 32 .
  • the second voltage pin 533 shown in FIG. 31 may be the VBUS2 pin in FIG. 32 .
  • For the SBU2 pin reference may be made to the description of the SBU1 pin in FIG. 6 , which will not be repeated here.
  • FIG. 34 shows a schematic circuit diagram of the USB interface in the USB interface detection device provided in FIG. 31 after water enters.
  • the liquid covers the SBU1 pin and the VBUS1 pin, that is, the SBU1 pin and the VBUS pin are connected by liquid. Therefore, the voltage at the VBUS1 pin is given to the SBU1 pin through the liquid.
  • the liquid covers the SBU2 pin and the VBUS2 pin, that is, the SBU2 pin and the VBUS pin are connected by the liquid. Therefore, the voltage at the VBUS2 pin is given to the SBU2 pin through the liquid.
  • the first detection pin 501 shown in FIG. 31 may be the GPIO pin in FIG. 34 .
  • the second detection pin 502 shown in FIG. 31 may be the ADC pin in FIG. 34 .
  • the first resistor 510 shown in FIG. 31 may be the resistor R1 shown in FIG. 34 .
  • the second resistor 520 shown in FIG. 31 may be the resistor R2 shown in FIG. 34 .
  • the first idle pin shown in FIG. 31 may be the SBU1 pin in FIG. 34 .
  • the first voltage pin 534 shown in FIG. 31 may be the VBUS1 pin in FIG. 34 .
  • the second idle pin 532 shown in FIG. 31 may be the SBU2 pin in FIG. 34 .
  • the second voltage pin 533 shown in FIG. 31 may be the VBUS2 pin in FIG. 34 .
  • FIG. 35 is a simplified circuit schematic diagram of the circuit shown in FIG. 34 after the USB interface has entered water.
  • the VBUS1 pin is connected to the SBU1 pin through the liquid.
  • the voltage at the SBU1 pin changes from 0 volts before water entry to V3.
  • the VBUS2 pin is connected to the SBU1 pin through the liquid.
  • the voltage at the SBU2 pin changes from 0 volts before water in to V3.
  • the voltage at the SBU1 and SBU2 pins is higher than the GPIO pins. In this way, the current flows in the circuit before and after the USB interface enters the water in different directions. After the USB interface enters the water, the current flow in the circuit is divided into two paths.
  • V2 V3-V(R2).
  • V(R2) represents the voltage across resistor R2.
  • the second detection pin 502 (eg ADC pin) in the processor 500 receives two voltages before and after the water ingress of the USB interface 530 Signals are different. In this way, the processor 500 can determine whether water has entered the USB interface 530 according to the change of the second signal. If the second signal is a periodically changing voltage signal, the processor 500 determines that the USB interface 530 is not flooded with water. If the second signal does not change within a certain period of time, the processor 500 determines that water has entered the USB interface.
  • the second signal is a periodically changing voltage signal
  • the processor 500 determines that the USB interface 530 is not flooded with water. If the second signal does not change within a certain period of time, the processor 500 determines that water has entered the USB interface.
  • the first resistor 510 and the second voltage 520 in the device can protect the second detection pin before the USB interface 530 enters water, so as to avoid overvoltage of the second detection pin.
  • the first resistor 510 can protect the first detection pin 501 and prevent the first detection pin 501 from being over-voltage.
  • the second resistor 520 can protect the second detection pin 502 from over-voltage on the second detection pin 502 .
  • the device for detecting water ingress of a USB interface may further include diodes, and the diodes are used to protect some pins in the device for detecting water ingress of a USB interface.
  • FIG. 36 shows another device for detecting water ingress of a USB interface provided by an embodiment of the present application.
  • the USB interface water intrusion detection device may include: a processor 500 , a first resistor 510 , a second resistor 520 , a USB interface 530 , and a first diode 540 and a second diode 550 .
  • the processor 500 may include a first detection pin 501 and a second detection pin 502 .
  • the USB interface 530 may include a first idle pin 531 and a first voltage pin 534 , and a second idle pin 532 and a second voltage pin 533 . in:
  • the first detection pin 501 is connected to the first idle pin 531 through the first resistor 510 .
  • the second detection pin 502 is connected to the second idle pin 532 through the second resistor 520 .
  • the first resistor 510 may be connected to the second resistor 520 .
  • the anode of the first diode 540 is connected to the first detection pin 501 , and the anode of the first diode 540 is connected to the first resistor 510 .
  • the anode of the second diode 550 is connected to the second detection pin 502 , and the anode of the second diode 550 is connected to the second resistor 520 .
  • the cathode of the first diode 540 is connected to a third voltage (eg, VCC1 shown in FIG. 36 ), and the cathode of the second diode 550 is connected to a fourth voltage (eg, VCC2 shown in FIG. 36 ).
  • first detection pin 501 and the second detection pin 502 For details about the first detection pin 501 and the second detection pin 502, reference may be made to the description in FIG. 5 above, which will not be repeated here.
  • first idle pin 531 and the first voltage pin 534 reference may be made to the description in FIG. 5 , which will not be repeated here.
  • FIG. 37 shows a schematic circuit diagram of the USB interface before water enters the USB interface detection circuit device provided in FIG. 36 .
  • the first detection pin 501 shown in FIG. 36 may be the GPIO pin in FIG. 37 .
  • the second detection pin 502 shown in FIG. 36 may be the ADC pin in FIG. 37 .
  • the first resistor 510 shown in FIG. 36 may be the resistor R1 shown in FIG. 37 .
  • the second resistor 520 shown in FIG. 36 may be the resistor R2 shown in FIG. 37 .
  • the first idle pin shown in FIG. 36 may be the SBU1 pin in FIG. 37 .
  • the first voltage pin 534 shown in FIG. 36 may be the VBUS1 pin in FIG. 37 .
  • the 36 may be the SBU2 pin in FIG. 37 .
  • the second voltage pin 533 shown in FIG. 36 may be the VBUS2 pin in FIG. 37 .
  • the first diode 540 shown in FIG. 36 may be the diode D1 in FIG. 37 .
  • the second diode 550 shown in FIG. 36 may be diode D2 in FIG. 37 .
  • For the SBU2 pin reference may be made to the description of the SBU1 pin in FIG. 6 , which will not be repeated here.
  • the diode D1 can be connected to the voltage VCC1, and the diode D2 can be connected to the voltage VCC2.
  • the voltage VCC1 is connected to the cathode of the diode D1.
  • the voltage VCC2 is connected to the cathode of the diode D2.
  • Voltage VCC1 and voltage VCC2 may be provided by processor 500 .
  • the voltage VCC1 may be equal to the voltage VCC2.
  • the voltage VCC1 and the voltage VCC2 may be equal to V1.
  • the specific magnitudes of the voltage VCC1 and the voltage VCC2 are not limited here.
  • FIG. 38 is a simplified schematic circuit diagram of the circuit before the USB interface shown in FIG. 37 enters water.
  • V(R1) is the voltage of the resistor R1
  • V(R2) is the voltage of the resistor R2.
  • diode D1 and diode D2 can avoid excessive voltage received at the ADC pin. Diode D1 and diode D2 protect the ADC pins.
  • FIG. 39 shows a schematic circuit diagram of the USB interface in the USB interface detection device provided in FIG. 36 after water has entered.
  • the liquid covers the SBU1 pin and the VBUS1 pin, that is, the SBU1 pin and the VBUS pin are connected by liquid. Therefore, the voltage at the VBUS1 pin is given to the SBU1 pin through the liquid.
  • the liquid covers the SBU2 pin and the VBUS2 pin, that is, the SBU2 pin and the VBUS pin are connected by the liquid. Therefore, the voltage at the VBUS2 pin is given to the SBU2 pin through the liquid.
  • the second detection pin 502 shown in FIG. 36 may be the ADC pin in FIG. 39 .
  • the first resistor 510 shown in FIG. 36 may be the resistor R1 shown in FIG. 39 .
  • the second resistor 520 shown in FIG. 36 may be the resistor R2 shown in FIG. 39 .
  • the first idle pin shown in FIG. 36 may be the SBU1 pin in FIG. 39 .
  • the first voltage pin 534 shown in FIG. 36 may be the VBUS1 pin in FIG. 39 .
  • the second idle pin 532 shown in FIG. 36 may be the SBU2 pin in FIG. 39 .
  • the second voltage pin 533 shown in FIG. 36 may be the VBUS2 pin in FIG. 39 .
  • the first diode 540 shown in FIG. 36 may be the diode D1 in FIG. 39 .
  • FIG. 40 is a simplified circuit schematic diagram of the circuit shown in FIG. 39 after the USB interface has entered water.
  • the VBUS1 pin is connected to the SBU1 pin through the liquid.
  • the voltage at the SBU1 pin changes from 0 volts before water entry to V3.
  • the VBUS2 pin is connected to the SBU1 pin through the liquid.
  • the voltage at the SBU2 pin changes from 0 volts before water in to V3.
  • the voltage at the SBU1 and SBU2 pins is higher than the GPIO pins. In this way, the current flows in the circuit before and after the USB interface enters the water in different directions. After the USB interface enters the water, the current flow in the circuit is divided into two paths.
  • one current flows from the SBU1 pin to the GPIO pin. Another current flows from the SBU2 pin to the ADC pin. If the voltage V3 at the SBU1 pin is still greater than VCC1 after being divided by the resistor R1, then the current flows from the SBU1 pin to the resistor R1, and then flows to the diode D1. This avoids excessive voltage input to the GPIO pins. If the voltage V3 at the SBU2 pin is still greater than VCC2 after being divided by the resistor R2, then the current flows from the SBU2 pin to the resistor R2, and then flows to the diode D2.
  • the second detection pin 502 (eg ADC pin) in the processor 500 receives two voltages before and after the water ingress of the USB interface 530 Signals are different. In this way, the processor 500 can determine whether water has entered the USB interface 530 according to the change of the second signal. If the second signal is a periodically changing voltage signal, the processor 500 determines that the USB interface 530 is not flooded with water. If the second signal does not change within a certain period of time, the processor 500 determines that water has entered the USB interface.
  • the second signal is a periodically changing voltage signal
  • the processor 500 determines that the USB interface 530 is not flooded with water. If the second signal does not change within a certain period of time, the processor 500 determines that water has entered the USB interface.
  • the first resistor 510 and the second voltage 520 in the device can protect the second detection pin before the USB interface 530 enters water, so as to avoid overvoltage of the second detection pin.
  • the first resistor 510 can protect the first detection pin 501 and prevent the first detection pin 501 from being over-voltage.
  • the second resistor 520 can protect the second detection pin 502 from over-voltage on the second detection pin 502 .
  • the first diode 540 can protect the first detection pin 501 from overvoltage on the first detection pin 501 .
  • the second diode 550 can protect the second detection pin 502 from over-voltage on the second detection pin 502 .
  • an embodiment of the present application provides a method for detecting water ingress of a USB interface. It can be understood that the device for detecting water ingress of the USB interface may also be an electronic device.
  • FIG. 41 shows a schematic flowchart of a method for detecting water ingress of a USB interface provided by an embodiment of the present application.
  • a method for detecting water ingress of a USB interface provided by an embodiment of the present application may include:
  • the electronic device outputs a first signal through a first detection pin.
  • the first device includes a processor and a USB interface.
  • the processor includes a first detection pin and a second detection pin.
  • the first detection pin is connected to the USB interface.
  • the second detection pin is connected to the USB interface, and the first detection pin can be connected to the second detection pin.
  • the USB interface includes a first idle pin and a first voltage pin
  • connecting the first detection pin with the USB interface specifically includes: connecting the first detection pin with the first idle pin.
  • the connection between the second detection pin and the USB interface specifically includes: connecting the second detection pin with the first idle pin.
  • the electronic device further includes a first resistor and a second resistor, for example, the first resistor 510 and the second resistor 520 shown in FIG. 11 .
  • the connecting of the first detection pin with the first idle pin may include: connecting the first detection pin with the first idle pin through a first resistor.
  • the connection of the second detection pin with the first idle pin may include: connecting the second detection pin with the first idle pin through a second resistor.
  • the connecting of the first detection pin to the second detection pin may include: the first detection pin is connected to the second detection pin through a first resistor and a second resistor.
  • the USB interface may further include a second idle pin and a second voltage pin. Both the first idle pin and the second idle pin are pins in an idle state in the USB interface. The distance between the first idle pin and the first voltage pin in the USB interface is smaller than the first preset distance. The distance between the second idle pin and the second voltage pin in the USB interface is smaller than the second preset distance. The first preset distance and the second preset distance may be equal.
  • the first idle pin may be the A5 pin
  • the first voltage pin may be the A4 pin
  • the A4 pin is adjacent to the A5 pin.
  • the second idle pin may be the B8 pin
  • the second voltage pin may be the B9 pin
  • the B8 pin is adjacent to the B9 pin.
  • the first voltage pin is connected to the first voltage
  • the second voltage pin is connected to the second voltage.
  • the first voltage may be equal to the second voltage.
  • connection of the first detection pin to the USB interface may include: the first detection pin is connected to the first idle pin, and the first detection pin is connected to the second idle pin through a first resistor.
  • the connection of the second detection pin with the USB interface may include: the second detection pin is connected with the second idle pin, and the second detection pin is connected with the first idle pin through the second resistor.
  • the first resistor is connected to the second resistor, and the first resistor may include a first pin and a second pin.
  • the first pin may be the A pin shown in FIG. 16
  • the second pin may be the B pin shown in FIG. 16 .
  • the second resistor may include a third pin and a fourth pin.
  • the third pin may be the C pin shown in FIG. 16
  • the fourth pin may be the D pin shown in FIG. 16 .
  • connecting the first resistor with the second resistor may include: connecting the second pin of the first resistor with the fourth pin of the second resistor.
  • connecting the second pin of the first resistor with the fourth pin of the second resistor may include: connecting the second pin of the first resistor with the fourth pin of the second resistor.
  • connecting the first resistor with the second resistor may include: connecting the second pin of the first resistor with the third pin of the second resistor.
  • connecting the second pin of the first resistor with the third pin of the second resistor may include: connecting the second pin of the first resistor with the third pin of the second resistor.
  • connecting the first resistor with the second resistor may include: connecting the first pin of the first resistor with the fourth pin of the second resistor.
  • connecting the first resistor with the second resistor may include: connecting the first pin of the first resistor with the fourth pin of the second resistor.
  • connecting the first resistor with the second resistor may include: connecting the first pin of the first resistor with the third pin of the second resistor.
  • connecting the first resistor with the second resistor may include: connecting the first pin of the first resistor with the third pin of the second resistor.
  • connecting the first detection pin to the second detection pin may include: the first detection pin is connected to the second detection pin through a first resistor and a second resistor, and the first detection pin The first detection pin is connected to the second detection pin through a first resistor, the first detection pin is connected to the second detection pin through a second resistor, and the first detection pin is directly connected to the second detection pin.
  • first detection pin is connected to the second detection pin through a first resistor
  • the first detection pin is connected to the second detection pin through a second resistor
  • the first detection pin is directly connected to the second detection pin.
  • connecting the first detection pin to the second idle pin may include: the first detection pin is connected to the second idle pin through a first resistor, and the first detection pin is connected to the second idle pin through a second resistor Connect to the second free pin.
  • connecting the second detection pin to the first idle pin may include: connecting the second detection pin to the first idle pin through a first resistor, and connecting the second detection pin to the first idle pin through a second resistor Connect to the first free pin.
  • the electronic device may include a first diode and a second diode.
  • the specific description can be described in FIG. 36 here, and details are not repeated here.
  • connecting the first detection pin to the first idle pin may include: the first detection pin may be connected to the second idle pin through a first diode and a first resistor.
  • the connection between the second detection pin and the second idle pin may include: the second detection pin may be connected to the second idle pin through a second diode and a second resistor.
  • the first detection pin is connected to the anode of the first diode, and the first resistor is connected to the anode of the first diode.
  • the anode of the second detection pin is connected to the anode of the second diode, and the second resistor is connected to the anode of the second diode.
  • the cathode of the first diode is connected to the third voltage
  • the cathode of the second diode is connected to the fourth voltage.
  • the third voltage may be the voltage VCC1 shown in FIG. 37
  • the fourth voltage may be the voltage VCC2 shown in FIG. 37 .
  • the third voltage may be equal to the fourth voltage.
  • the electronic device detects a second signal, where the second signal is a voltage signal received by a second detection pin.
  • the voltages of the first idle pin and the second idle pin in the USB interface are 0.
  • the water or other liquids will cover the first idle pins and the first voltage pins, and cover the second idle pins and the second voltage pins.
  • the first voltage of the first voltage pin is connected to the first idle pin.
  • the second voltage of the second voltage pin is connected to the second idle pin.
  • the second signal received by the second detection pin is determined by the first signal.
  • the second signal will change with the change of the first signal, for example, as the first signal becomes larger, the second signal becomes larger. As the first signal becomes smaller, the second signal becomes smaller.
  • the voltage value of the second signal is less than or equal to the voltage value of the first signal.
  • the second signal received by the second detection pin is determined by the voltage at the first detection pin or the second detection pin.
  • the voltage at the first idle pin or at the second idle pin is a fixed value. In this way, when water enters the USB interface, the second signal is also a fixed value. Reference may be made here to the descriptions of FIG. 9 , or FIG. 15 , FIG. 20 , FIG. 25 , etc., which will not be repeated here.
  • the electronic device determines that the USB interface has entered water according to the change of the second signal.
  • the first signal is a periodically varying signal, and the first voltage is greater than the voltage value of the highest level of the first signal.
  • the electronic device determines that water has entered the USB interface according to the change of the second signal, which specifically includes: when the change period of the second signal is the same as the change period of the first signal, the electronic device determines that the USB interface has not entered water; when the change period of the second signal When the change period of the first signal is different, the electronic device determines that water has entered the USB interface.
  • the electronic device determines that water has entered the USB interface.
  • the first signal is a fifth voltage with a fixed voltage, and the fifth voltage is smaller than the first voltage.
  • the electronic device determines that water has entered the USB interface according to the change of the second signal, including: when the second signal is less than or equal to the first threshold, the electronic device determines that the USB interface has not entered water, and the first threshold is determined according to the fifth voltage; when the second signal When the value is greater than or equal to the second threshold, the electronic device determines that water has entered the USB interface, the second threshold is determined according to the first voltage, and the second threshold is greater than the first threshold.
  • the electronic device after the electronic device determines that the USB interface has entered water, the electronic device triggers a prompt message, where the prompt message is used to prompt the user that the USB interface of the electronic device has entered water.
  • the prompt message may be a prompt box displayed in the user interface of the electronic device.
  • the user interface in the bracelet 100 shown in FIG. 42 may display a prompt box.
  • the bracelet 100 may include a user interface 104 therein.
  • User interface 104 may include tooltip 105 and controls 108 .
  • the prompt box 105 is used to prompt the user that water has entered the USB interface in the bracelet 100 .
  • the prompt box 105 may include a prompt icon 106 and a prompt text 107 .
  • the prompt text 107 may include prompt text "charging risk" and "detecting that the charging port is wet, there is a risk of short circuit" and so on.
  • the user clicks on the control 108, and the bracelet 100 can hide the prompt box 105.
  • the embodiment of the present application does not limit the specific form of the prompt box and the specific prompt text in the prompt box.
  • the prompt message may be the motor vibration of the electronic device to prompt the user that the USB interface has entered water.
  • the processor in the electronic device can send an instruction to instruct the motor to vibrate.
  • the prompt message may be a bell or a voice prompt.
  • the electronic device when the electronic device detects that the USB interface has entered water, the electronic device voice broadcasts the prompt text "The USB interface has entered water, please do not charge.” The specific prompt text is not limited here.
  • the electronic device rings for a first preset duration.
  • the first preset duration may be 5 seconds, 10 seconds, etc., which is not limited here.
  • the prompt message may be a combination of any two or more of the above prompt messages.
  • the prompt message may be a prompt box displayed in the user interface combined with motor vibration.
  • the prompt message may be a prompt box displayed in the user interface combined with a voice prompt.
  • the prompt message may be a prompt box displayed in the user interface, combining motor vibration and voice prompt. There is no limitation here.
  • the electronic device may output the first signal through the first detection pin of the processor, and then the electronic device detects the second signal output from the second detection pin in the processor; If the change period of the second signal is consistent with the second signal, the electronic device determines that the USB interface has not entered water; if the second signal is a fixed value, the electronic device determines that the USB interface has entered water.
  • FIG. 43 shows a schematic structural diagram of an electronic device 400 .
  • the electronic device 400 shown in FIG. 43 is only an example, and the electronic device 400 may have more or fewer components than those shown in FIG. 43, two or more components may be combined, or Different component configurations are possible.
  • the various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • the electronic device 400 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2.
  • Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, And a subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 400 .
  • the electronic device 400 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • graphics processor graphics processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the controller may be the nerve center and command center of the electronic device 400 .
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may contain multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 can couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface, so as to realize the touch function of the electronic device 400 .
  • the I2S interface can be used for audio communication.
  • the processor 110 may contain multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is typically used to connect the processor 110 with the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
  • the processor 110 communicates with the camera 193 through a CSI interface to implement the photographing function of the electronic device 400 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to implement the display function of the electronic device 400 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like.
  • the GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 400, and can also be used to transmit data between the electronic device 400 and peripheral devices. It can also be used to connect headphones to play audio through the headphones.
  • the interface can also be used to connect other electronic devices, such as AR devices.
  • the processor 110 may further include an ADC interface, the GPIO interface includes a first detection pin, and the ADC interface includes a second detection pin.
  • the USB interface includes a first idle pin and a first voltage pin.
  • the first detection pin is used for outputting the first signal
  • the second detection pin is used for receiving the second signal.
  • the first detection pin may be connected to the first idle pin.
  • the second detection pin may be connected to the first idle pin.
  • the first idle pin is a pin in an idle state in the USB interface.
  • the first voltage pin is connected to the first voltage.
  • the USB interface 130 may further include a second idle pin and a second voltage pin.
  • a first resistor and a second resistor may also be included between the processor 110 and the USB interface 130 .
  • the second idle pin is in an idle state in the USB interface 130 .
  • the second voltage pin is connected to the second voltage.
  • the first detection pin may be connected to the first idle pin through a first resistor.
  • the second detection pin may be connected to the second idle pin through a second resistor.
  • a first diode and a second diode may be further included between the processor 110 and the USB interface 130 .
  • the first detection pin can be connected to the second idle pin through the first diode and the first resistor.
  • the connection between the second detection pin and the second idle pin may include: the second detection pin may be connected to the second idle pin through a second diode and a second resistor.
  • the first detection pin is connected to the anode of the first diode, and the first resistor is connected to the anode of the first diode.
  • the anode of the second detection pin is connected to the anode of the second diode, and the second resistor is connected to the anode of the second diode.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the electronic device 400 .
  • the electronic device 400 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 400 . While the charging management module 140 charges the battery 142 , it can also supply power to the electronic device through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 400 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 400 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G, etc. applied on the electronic device 400 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modulation and demodulation processor may be independent of the processor 110, and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 400 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellites System
  • frequency modulation frequency modulation, FM
  • NFC near field communication technology
  • IR infrared technology
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through
  • the antenna 1 of the electronic device 400 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 400 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device 400 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 194 is used to display images, videos, and the like.
  • Display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • LED diode AMOLED
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the electronic device 400 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
  • the electronic device 400 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
  • the ISP is used to process the data fed back by the camera 193 .
  • the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 400 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 400 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, and the like.
  • Video codecs are used to compress or decompress digital video.
  • Electronic device 400 may support one or more video codecs.
  • the electronic device 400 can play or record videos in various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG Moving Picture Experts Group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 400 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 400 .
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 400 by executing the instructions stored in the internal memory 121 .
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 400 and the like.
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the electronic device 400 may implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
  • the electronic device 400 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be answered by placing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C.
  • the electronic device 400 may be provided with at least one microphone 170C. In other embodiments, the electronic device 400 may be provided with two microphones 170C, which may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 400 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the earphone jack 170D is used to connect wired earphones.
  • the earphone interface 170D can be the USB interface 130, or can be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
  • the pressure sensor 180A may be provided on the display screen 194 .
  • the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the electronic device 400 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 400 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 400 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the motion attitude of the electronic device 400 .
  • the angular velocity of electronic device 400 about three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shaking angle of the electronic device 400, calculates the distance to be compensated by the lens module according to the angle, and allows the lens to counteract the shaking of the electronic device 400 through reverse motion to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 400 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 400 can detect the opening and closing of the flip holster using the magnetic sensor 180D.
  • the electronic device 400 can detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 400 in various directions (generally three axes).
  • the magnitude and direction of gravity can be detected when the electronic device 400 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the electronic device 400 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 400 can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the electronic device 400 emits infrared light to the outside through light emitting diodes.
  • Electronic device 400 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that there is an object near the electronic device 400 . When insufficient reflected light is detected, the electronic device 400 may determine that there is no object near the electronic device 400 .
  • the electronic device 400 can use the proximity light sensor 180G to detect that the user holds the electronic device 400 close to the ear to talk, so as to automatically turn off the screen to save power.
  • Proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the electronic device 400 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 400 is in the pocket, so as to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 400 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering incoming calls with fingerprints, and the like.
  • the temperature sensor 180J is used to detect the temperature.
  • the electronic device 400 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 400 may reduce the performance of the processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection.
  • the electronic device 400 when the temperature is lower than another threshold, the electronic device 400 heats the battery 142 to avoid abnormal shutdown of the electronic device 400 caused by the low temperature.
  • the electronic device 400 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to touch operations may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 400 , which is different from the location where the display screen 194 is located.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal.
  • the bone conduction sensor 180M can also be disposed in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
  • the sensors in the sensor module 180 described above may be integrated into the processor 110 .
  • the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
  • the electronic device 400 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 400 .
  • Motor 191 can generate vibrating cues.
  • the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • the motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be connected to and separated from the electronic device 400 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
  • the electronic device 400 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the electronic device 400 interacts with the network through the SIM card to implement functions such as calls and data communication.
  • the electronic device 400 employs an eSIM, ie: an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 400 and cannot be separated from the electronic device 400 .
  • FIG. 44 is a block diagram of a software structure of an electronic device 400 according to an embodiment of the present invention.
  • the electronic device may include an application layer, an application framework layer, and a kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • the electronic device in this embodiment of the present application may include more or less application programs, and is not limited to the application program shown in FIG. 44 .
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, a device manager, and the like.
  • a window manager is used to manage window programs.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc.
  • Content providers are used to store and retrieve data and make these data accessible to applications.
  • the data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications.
  • a display interface can consist of one or more views.
  • the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide the communication function of the electronic device 400 .
  • the management of call status including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.
  • the notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications that appear on the screen in the form of dialog windows. For example, text information is prompted in the status bar, a prompt sound is issued, the electronic device vibrates, and the indicator light flashes.
  • the device manager is used to control the general input and output interface GPIO to output the first signal.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer includes at least display driver, camera driver, audio driver, sensor driver, and general-purpose input and output interface GPIO.
  • a corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes touch operations into raw input events (including touch coordinates, time stamps of touch operations, etc.). Raw input events are stored at the kernel layer.
  • the application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and the control corresponding to the click operation is the control of the camera application icon, as an example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer, and then starts the camera driver by calling the kernel layer.
  • the camera 193 captures still images or video.

Abstract

La présente demande divulgue un procédé de détection d'entrée d'eau dans une interface USB d'un dispositif électronique, et le dispositif électronique. Le procédé consistes : à émettre par le dispositif électronique, un premier signal au moyen d'une première broche de détection d'un processeur, puis à détecter par le dispositif électronique, un second signal émis par une seconde broche de détection du processeur; si la période de changement du second signal est cohérente avec celle du premier signal, à déterminer par le dispositif électronique qu'il n'y a pas d'entrée d'eau dans l'interface USB; et si le second signal est d'une valeur fixe, à déterminer par le dispositif électronique qu'il y a une entrée d'eau dans l'interface USB. Le dispositif électronique peut détecter une entrée d'eau dans l'interface USB sans puce supplémentaire de détection d'entrée d'eau d'interface USB, ce qui permet d'économiser le coût de fabrication du dispositif électronique et de réduire la consommation d'énergie du dispositif électronique.
PCT/CN2021/108036 2020-07-31 2021-07-23 Procédé de détection d'entrée d'eau dans une interface usb, et dispositif électronique WO2022022401A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010760267.6 2020-07-31
CN202010760267.6A CN114064381A (zh) 2020-07-31 2020-07-31 一种usb接口进水检测的方法及电子设备

Publications (1)

Publication Number Publication Date
WO2022022401A1 true WO2022022401A1 (fr) 2022-02-03

Family

ID=80037152

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/108036 WO2022022401A1 (fr) 2020-07-31 2021-07-23 Procédé de détection d'entrée d'eau dans une interface usb, et dispositif électronique

Country Status (2)

Country Link
CN (1) CN114064381A (fr)
WO (1) WO2022022401A1 (fr)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114264423B (zh) * 2022-03-03 2022-07-05 荣耀终端有限公司 进液检测控制方法和电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN206627597U (zh) * 2017-03-04 2017-11-10 维沃移动通信有限公司 一种检测usb插座进水腐蚀电路
US20180059771A1 (en) * 2016-08-25 2018-03-01 Samsung Electronics Co., Ltd. Semiconductor device and method of operating the same
CN110046117A (zh) * 2017-12-13 2019-07-23 三星电子株式会社 外来物质检测电路和包括外来物质检测电路的电子设备
CN110888168A (zh) * 2019-11-20 2020-03-17 歌尔科技有限公司 充电接口检测电路、智能穿戴设备及充电系统
WO2020073253A1 (fr) * 2018-10-10 2020-04-16 华为技术有限公司 Procédé, circuit et dispositif électronique permettant la détection d'une immersion dans l'eau

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180059771A1 (en) * 2016-08-25 2018-03-01 Samsung Electronics Co., Ltd. Semiconductor device and method of operating the same
CN206627597U (zh) * 2017-03-04 2017-11-10 维沃移动通信有限公司 一种检测usb插座进水腐蚀电路
CN110046117A (zh) * 2017-12-13 2019-07-23 三星电子株式会社 外来物质检测电路和包括外来物质检测电路的电子设备
WO2020073253A1 (fr) * 2018-10-10 2020-04-16 华为技术有限公司 Procédé, circuit et dispositif électronique permettant la détection d'une immersion dans l'eau
CN110888168A (zh) * 2019-11-20 2020-03-17 歌尔科技有限公司 充电接口检测电路、智能穿戴设备及充电系统

Also Published As

Publication number Publication date
CN114064381A (zh) 2022-02-18

Similar Documents

Publication Publication Date Title
CN110347269B (zh) 一种空鼠模式实现方法及相关设备
EP4002076A1 (fr) Procédé de rappel de message et dispositif électronique
CN110401767B (zh) 信息处理方法和设备
WO2022033320A1 (fr) Procédé de communication bluetooth, équipement terminal et support d'enregistrement lisible par ordinateur
WO2021052204A1 (fr) Procédé de découverte de dispositif basé sur un carnet d'adresses, procédé de communication audio et vidéo, et dispositif électronique
EP4231147A1 (fr) Procédé de traitement de commande de dessin et dispositif associé
WO2021083128A1 (fr) Procédé de traitement de son et appareil associé
WO2022001258A1 (fr) Procédé et appareil d'affichage à écrans multiples, dispositif terminal et support de stockage
CN114189846B (zh) 避免漏接电话的方法、系统、电子设备及存储介质
CN113448382B (zh) 多屏幕显示电子设备和电子设备的多屏幕显示方法
WO2021052407A1 (fr) Procédé de commande de dispositif électronique et dispositif électronique
WO2021073183A1 (fr) Procédé d'affichage permanent et dispositif mobile
WO2020151408A1 (fr) Procédé d'affichage de contacts et dispositif associé
WO2022143180A1 (fr) Procédé d'affichage collaboratif, dispositif terminal et support de stockage lisible par ordinateur
WO2022042768A1 (fr) Procédé d'affichage d'index, dispositif électronique et support de stockage lisible par ordinateur
WO2022022401A1 (fr) Procédé de détection d'entrée d'eau dans une interface usb, et dispositif électronique
WO2022228180A1 (fr) Procédé de gestion d'application et dispositif électronique
CN113901485B (zh) 应用程序加载方法、电子设备及存储介质
WO2022152167A1 (fr) Procédé et dispositif de sélection de réseau
WO2022037725A1 (fr) Procédé et appareil de récupération de service de système, et dispositif électronique
WO2021052408A1 (fr) Procédé d'affichage de dispositif électronique et dispositif électronique
CN114554012A (zh) 来电接听方法、电子设备及存储介质
CN110737916A (zh) 通信终端及处理方法
WO2023020420A1 (fr) Procédé d'affichage de volume, dispositif électronique et support de stockage
CN116723384B (zh) 进程的控制方法、电子设备及可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21848943

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21848943

Country of ref document: EP

Kind code of ref document: A1