Drainage circuit, drainage method, driving method of electronic equipment and electronic equipment

By introducing temperature acquisition, control and heating circuits into the USB Type C interface of electronic devices, rapid evaporation of incoming water is achieved, and the charging interface is easily invaded by liquids in a wet environment is solved, improving the safety of the device and users Experience.

CN119298314APending Publication Date: 2025-01-10HONOR DEVICE CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411808656.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

When electronic equipment is used outdoors or in environments with high humidity, the charging interface is susceptible to invasion of liquids, resulting in safety accidents such as short circuits, overheating or fire, and cannot be drained quickly after water inflow, affecting the user experience.

Method used

A drainage circuit is designed, including a temperature acquisition circuit, a control circuit and a heating circuit. By monitoring the temperature of the USB Type C interface, it determines whether the drainage function is activated, and the heating circuit is used to generate heat to evaporate the incoming water to quickly clean up the incoming water.

Benefits of technology

It effectively avoids long-term damage to the equipment by water inlet, ensures safety in use in humid environments, improves the reliability and durability of the equipment, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119298314A_ABST
    Figure CN119298314A_ABST
Patent Text Reader

Abstract

The invention provides a drainage circuit, a drainage method, a driving method of electronic equipment and the electronic equipment, and relates to the technical field of charging management. The drainage circuit is arranged between a VBUS pin of a USB Type C interface of the electronic equipment and a charging control chip of the electronic equipment, the drainage circuit comprises a temperature acquisition circuit, a control circuit and a heating circuit, the temperature acquisition circuit is used for acquiring the temperature of the USB Type C interface, the control circuit is used for acquiring the temperature of the USB Type C interface and generating a control signal, and the heating circuit is used for heating the temperature of the USB Type C interface. The heating circuit is used for generating heat in response to the control signal. The invention aims to solve the problem that the use experience of a user is affected as water cannot be quickly drained after water enters the electronic equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the field of charging management technology, and in particular to a drainage circuit, a drainage method, a driving method of an electronic device, and an electronic device. Background Art

[0002] With the widespread popularity and multifunctional development of electronic devices, users are using electronic devices outdoors or in humid environments more frequently. During the use of electronic devices, the charging port is exposed to the outside environment and is vulnerable to the threat of liquid intrusion. Liquid entering the charging port may cause a short circuit, which in turn damages the internal circuit and even causes serious safety accidents such as overheating and fire. Summary of the invention

[0003] The embodiments of the present application provide a drainage circuit, a drainage method, a driving method of an electronic device and an electronic device, which are used to improve the problem that the electronic device cannot drain water quickly after being flooded, thus affecting the user experience.

[0004] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions: In a first aspect, an embodiment of the present application provides a drainage circuit, which is arranged between a voltage bus (VBUS) pin of a type C universal serial bus (USB Type C) interface of an electronic device and a charging control chip of the electronic device. The drainage circuit includes a temperature acquisition circuit, a control circuit and a heating circuit. The temperature acquisition circuit is used to acquire the temperature of the USB Type C interface, the control circuit is used to acquire the temperature of the USB Type C interface and generate a control signal, and the heating circuit is used to generate heat in response to the control signal.

[0005] In the above technical solution, when the electronic device is in a water-filled state, the control circuit will determine whether it is necessary to start the drainage function based on the temperature data of the USB Type C interface collected by the temperature acquisition circuit. When executing the drainage function, the control circuit generates heat through the heating circuit and effectively transfers the heat to the USB Type C interface, so that the water entering the interface is evaporated by heat. This process can quickly clean up the water that enters the electronic device, prevent the water from causing long-term damage to the device or affecting its normal function, and ensure the safety of the device in a humid environment. In addition, the present application not only improves the reliability of electronic devices in harsh environments, but also improves the user experience and enhances the durability and anti-interference ability of the device.

[0006] In an embodiment of the first aspect of the present application, the heating circuit includes: a switching device and a heating device, the first end of the heating device is connected to the VBUS pin, the second end of the heating device is connected to the first end of the switching device, the second end of the switching device is connected to the ground end, and the controlled end of the switching device is connected to the output end of the control circuit.

[0007] In an embodiment of the first aspect of the present application, the heating device comprises a resistor or a wire.

[0008] In an embodiment of the first aspect of the present application, the temperature acquisition circuit includes a thermistor, a first end of the thermistor is connected to an input end of the control circuit, and a second end of the thermistor is connected to a ground end.

[0009] In a second aspect, the present application provides a drainage method, which is applied to an electronic device, wherein the electronic device includes a processor and a drainage circuit according to any one of the first aspects above, and the method includes: the processor responds to a drainage instruction, determines the connection status of the USB Type C interface, and when the connection status of the USB Type C interface is an idle state, the drainage circuit determines whether to start the drainage function.

[0010] In an embodiment of the second aspect of the present application, the method also includes: when the connection state of the USB Type C interface is a non-idle state, sending a first prompt message to the user, the first prompt message being used to prompt the user that the electronic device exits a drainage function.

[0011] In an embodiment of the second aspect of the present application, the drainage instruction is generated by the following steps: generating the drainage instruction in response to a touch instruction of the user, or generating the drainage instruction at preset time intervals.

[0012] In an embodiment of the second aspect of the present application, the drainage circuit determines whether to start the drainage function, including: the control circuit determines the temperature change value of the USB Type C interface, and starts the drainage function when the temperature change value is less than the temperature change threshold, or starts the drainage function when the temperature change value is greater than or equal to the temperature change threshold and the temperature of the USB Type C interface is less than the temperature threshold value.

[0013] In an embodiment of the second aspect of the present application, after starting the drainage function, the method also includes: when the temperature of the USB Type C interface is greater than or equal to the temperature threshold value, sending a second prompt message to the user, the second prompt message is used to prompt the user that the electronic device exits the drainage function.

[0014] In an embodiment of the second aspect of the present application, the drainage circuit determines whether to start the drainage function, including: the control circuit determines the temperature change value of the USB Type C interface, and when the temperature change value of the USB Type C interface is greater than or equal to the temperature change threshold, and the temperature of the USB Type C interface is greater than or equal to the temperature threshold value, a second prompt message is sent to the user, and the second prompt message is used to prompt the user that the electronic device exits the drainage function.

[0015] In a third aspect, the present application provides an electronic device, which includes a drainage circuit, a USB Type C interface, and a charging control chip. The drainage circuit is arranged between the VBUS pin of the USB Type C interface of the electronic device and the charging control chip of the electronic device. The drainage circuit is the drainage circuit of any one of the above-mentioned first aspects.

[0016] In an embodiment of the third aspect of the present application, the distance between the heating device and the USB Type C interface base end is less than a first distance threshold.

[0017] In an embodiment of the third aspect of the present application, the distance between the temperature acquisition circuit and the USB Type C interface base end is less than the second distance threshold.

[0018] In an embodiment of the third aspect of the present application, the first distance threshold is less than the second distance threshold.

[0019] In a fourth aspect, the present application provides a driving method of an electronic device, the method comprising: On the first interface, a first control is displayed, and the first control is used to prompt the user to start the drainage function; In response to the user touching the first control, the second interface is displayed, and the electronic device performs a drainage function; In response to the drainage function completion signal, the third display interface is displayed, and the electronic device exits the drainage function.

[0020] In a fifth aspect, the present application provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on an electronic device (such as a mobile phone), the electronic device executes the method of the first aspect or the fourth aspect and any possible design thereof.

[0021] Among them, the technical effects of the second to fifth aspects refer to the technical effects of the first aspect and any of its embodiments, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application; Figure 2A schematic diagram of the structure of a Type-C interface provided in an embodiment of the present application; Figure 3 A connection diagram of a drainage circuit provided in an embodiment of the present application; Figure 4 A functional module diagram of a drainage circuit provided in an embodiment of the present application; Figure 5 A schematic diagram of a process flow of a driving method of an electronic device provided in an embodiment of the present application; Figure 6 An interface diagram of an electronic device provided in an embodiment of the present application; Figure 7 An interface diagram of another electronic device provided in an embodiment of the present application; Figure 8 A schematic flow chart of a drainage method provided in an embodiment of the present application; Fig. 9 An interface diagram of another electronic device provided in an embodiment of the present application; Fig.10 An interface diagram of another electronic device provided in an embodiment of the present application; Fig.11 An interface diagram of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] The terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "above", "the" and "this" are intended to also include, for example, "one or more" such expressions, unless there is an explicit contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one or more than two (including two). The character " / " generally represents that the front and back associated objects are a kind of "or" relationship.

[0024] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0025] In the following, the terms "first", "second", etc. are used only for convenience of description and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", etc. may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more. For example, a plurality of processing units refers to two or more processing units.

[0026] In addition, in the embodiments of the present application, "upper", "lower", "left" and "right" are not limited to being defined relative to the orientation of the components schematically placed in the drawings. It should be understood that these directional terms can be relative concepts, which are used for description and clarification relative to the components, and can change accordingly according to the change in the orientation of the components placed in the drawings. In the drawings, for the sake of clarity, the thickness of the layers and regions is exaggerated, and the size ratio relationship between the parts in the drawings does not reflect the actual size ratio relationship.

[0027] In the embodiments of the present application, unless otherwise clearly specified and limited, the term "connection" should be understood in a broad sense. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection or an indirect connection through an intermediate medium. In addition, the term "electrical connection" can be a direct electrical connection or an indirect electrical connection through an intermediate medium.

[0028] In the embodiments of the present application, the term "module" is generally a functional structure divided according to logic, and the "module" can be implemented by pure hardware, or by a combination of software and hardware. In the embodiments of the present application, "and / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, B exists alone, and A and B exist at the same time.

[0029] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0030] The embodiment of the present application provides an electronic device, which can be fixed or mobile. In addition, the electronic device can also be called user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal equipment, vehicle-mounted terminal equipment, industrial control terminal equipment, mobile station, remote station, remote terminal equipment, mobile device, wireless communication equipment, terminal agent, etc. Exemplarily, the electronic device can be a mobile phone, a tablet computer (pad), a desktop computer, a laptop computer, an all-in-one computer, a vehicle-mounted terminal, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, etc.

[0031] In some embodiments of the present application, the electronic device may also be a device with a transceiver function, such as a chip system, wherein the chip system may include a chip and may also include other discrete devices.

[0032] An embodiment of the present application provides an electronic device, Figure 1 A structural diagram of an electronic device 100 is shown.

[0033] The electronic device 100 may include at least one of a mobile phone, a foldable electronic device, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, an in-vehicle device, a smart home device, or a smart city device. The embodiment of the present application does not impose any special restrictions on the specific type of the electronic device 100.

[0034] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) connector 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera module 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. 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, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0035] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0036] The following uses a mobile phone as an example of an electronic device to illustrate the application scenario of the present application. In a mobile phone, the USB connector 130 may be a Type-C interface. The Type-C interface is an open interface that is often exposed to the external environment and is therefore susceptible to water intrusion. Water entering the charging interface may cause a short circuit, thereby damaging the electronic components inside the mobile phone, and may even cause serious problems such as overheating, fire, or explosion. In addition, contact with water in a charged state may cause electric shock to the user.

[0037] The following is an explanation of the pin structure of the Type-C interface. Figure 2 The Type-C interface may include a GND1 pin, a VBUS1 pin, a CC pin, a D+ pin, a D- pin, a SUB pin, a VBUS2 pin, a GND2 pin, a TX- pin, a TX+ pin, a RX+ pin, and a RX- pin. Among them, the D+ pin, the D- pin, and the SUB pin are used as data pins. The VBUS1 pin and the VBUS2 pin are used as power pins. The GND1 pin and the GND2 pin are used as ground pins. The CC pin is used as an identification pin. The TX- pin, the TX+ pin, the RX+ pin, and the RX- pin are used as communication pins.

[0038] After the phone gets soaked in water, the CC pin of the Type-C interface no longer has detection function enabled, and users cannot use the charging and data transmission functions normally. Currently, after the Type-C interface gets soaked in water, users need to leave the phone alone for a while and wait for the water in the Type-C interface to evaporate naturally before using it again, which greatly affects the user experience.

[0039] In order to solve the above problems, the first aspect of the embodiment of the present application provides a drainage circuit. Figure 3 , the drainage circuit 300 is arranged on the VBUS bus between the USB connector 130 and the charging management module 140. As an example, the USB connector 130 may be a USB Type-C interface, and the charging management module 140 may be a charging control chip, that is, the drainage circuit 300 may be arranged between the VBUS pin of the USB Type C interface of the electronic device and the charging control chip of the electronic device.

[0040] First, the functional module composition of the drainage circuit 300 is described. Figure 4The drainage circuit 300 may include a temperature acquisition circuit 301, a control circuit 302, and a heating circuit 303. The function of the temperature acquisition circuit 301 is to monitor and collect temperature information of the USB Type C interface in real time. The temperature acquisition circuit 301 may be arranged at the base of the USB Type C interface to continuously monitor the temperature change of the USB Type C interface. The temperature acquisition circuit 301 converts these temperature signals into electrical signals and transmits them to the control circuit 302.

[0041] The function of the control circuit 302 is to process the temperature data provided by the temperature acquisition circuit 301 and determine whether the current environment needs to start the drainage function. Specifically, the control circuit 302 determines whether the temperature of the USB Type C interface is abnormally high or reaches a preset threshold based on the received temperature signal. If the temperature reaches the set start-up condition, the control circuit 302 will generate a control signal to instruct the heating circuit 303 to start.

[0042] Once the control signal from the control circuit 302 is received, the heating circuit 303 will respond to the signal and start working. The function of the heating circuit 303 is to generate heat through the heating element and transfer the heat to the USB Type C interface. When the heating circuit 303 is started, it will generate a certain amount of heat, and by transferring the generated heat to the USB Type C interface, the water in the USB Type C interface is quickly heated and evaporated.

[0043] In an optional implementation, the heating circuit 303 may include a switching device and a heating device, the switching device may be a transistor, the gate of the transistor may be connected to the output end of the control circuit 302, and the control circuit 302 controls whether the heating device is turned on by controlling the gate-source voltage of the transistor. The heating device may be a resistor or a wire, and when current passes through the heating device, the heating device generates heat based on Joule's law.

[0044] The function of the switch device is to control the working state of the heating device, that is, to control whether the current passes through the heating device, thereby controlling whether the heating device generates heat. In this embodiment, the switch device can be a transistor. In a specific implementation, the gate of the transistor receives a control signal from the control circuit 302 by connecting to the output terminal of the control circuit 302. The control circuit 302 determines whether the heating function needs to be started based on the temperature signal provided by the temperature acquisition circuit 301. When the condition is met, the control circuit 302 applies an appropriate voltage signal to the transistor through the gate.

[0045] As an example, for a metal-oxide semiconductor field effect transistor, when the gate voltage reaches or exceeds a certain threshold, the transistor is turned on, allowing current to flow from the source to the drain, thereby energizing the heating device. For a bipolar junction transistor, when the base current reaches a certain value, the transistor is turned on, and current flows from the collector to the emitter, driving the heating device to work. By controlling the gate voltage or base current of the transistor, the control circuit 302 can accurately adjust the opening and closing of the heating circuit 303.

[0046] The main function of the heating device is to convert electrical energy into thermal energy, thereby heating the interface. When the heating circuit 303 controls the current to flow through the heating device through the switching device, the heating device will generate heat due to the current passing through. The heating device can be a resistor or a wire, and their working principle is based on Joule's law. In the heating circuit 303, when the transistor is turned on, current will flow through the heater). According to Joule's law, the resistor in the heating device will limit the flow of current, causing electrical energy to be converted into thermal energy, thereby heating the device and releasing heat. The heat will eventually be transferred to the USB Type C interface, accelerating the evaporation of water in the interface.

[0047] In an optional implementation, the temperature acquisition circuit 301 includes a thermistor, a first end of the thermistor is connected to an input end of the control circuit 302, and a second end of the thermistor is connected to a ground end.

[0048] The temperature acquisition circuit 301 may include a thermistor, which is used to monitor the temperature change of the USB Type C interface in real time. A thermistor is a component whose resistance value changes with temperature. Its resistance value changes as the temperature rises or falls. There are two common types of thermistors: negative temperature coefficient (NTC) thermistor: when the temperature rises, the resistance value decreases. Positive temperature coefficient (PTC) thermistor: when the temperature rises, the resistance value increases.

[0049] In this embodiment, an NTC thermistor may be used. The NTC thermistor can provide a clear relationship between temperature change and resistance change, thereby providing accurate temperature data for the control circuit 302. When the temperature changes, the resistance value of the thermistor will change accordingly. For example, if the temperature of the USB Type C interface rises due to water intrusion, the resistance value of the thermistor will decrease, causing the voltage output by the voltage divider circuit to change. The control circuit 302 can determine the USB Type C interface temperature collected by the thermistor based on this voltage change.

[0050] The above-mentioned embodiment is an explanation of the composition of the functional modules of the drainage circuit 300 . The following will explain the layout positions of the functional modules of the drainage circuit 300 .

[0051] The USB Type C interface can be set on a smaller circuit board (such as a USB small board), which provides interface connection and transmission of electrical signals. In order to effectively perform drainage operations, the position of the USB Type C interface needs to be coordinated with the heating device and thermistor in the drainage circuit 300. The heating device can be set on the side of the base end of the USB Type C interface. The heating device helps the USB Type C interface to heat and accelerate the evaporation of the incoming water by generating heat. In order to ensure that heat can be effectively transferred to the USB Type C interface and improve the heating efficiency, the spacing distance between the heating device and the base end of the USB Type C interface needs to be controlled within a reasonable range, so the spacing distance between the heating device and the base end of the USB Type C interface can be less than the first threshold. The smaller the distance between the heating device and the base end of the interface, the higher the heat transfer efficiency. Reducing the spacing can reduce heat loss, improve the efficiency of the heating device, ensure that the USB Type C interface is heated quickly, and thus accelerate the evaporation process of the incoming water. However, the spacing distance between the heating device and the base end of the USB Type C interface needs to be greater than a safe distance threshold to ensure that the high temperature generated by the heating device does not cause overheating damage to the USB Type C interface or surrounding components. If the distance between the heating element and the base of the USB Type C connector is too small, heat may quickly accumulate in the connector area, causing the connector temperature to rise sharply. Excessive temperature may damage the connector itself and may even affect the circuits and other components inside the device.

[0052] The thermistor is mainly used to accurately monitor the temperature change of the USB Type C interface and feed back the temperature information to the control circuit 302. The design requirements of the thermistor enable it to accurately sense the temperature of the interface without being interfered by other factors. In order to ensure that the thermistor can accurately measure the temperature, the spacing distance between them needs to be less than the second threshold. Too large a distance may cause temperature measurement errors, and the thermistor cannot accurately sense the interface temperature, thereby affecting the judgment and control of the drainage function. The thermistor needs to be close to the base end of the interface, but not too close to the heating device to prevent the high temperature of the heating device from affecting the measurement accuracy of the thermistor.

[0053] In order to ensure that the thermistor can accurately measure the interface temperature and prevent the heat of the heating device from directly affecting the thermistor's acquisition results, the distance between the thermistor and the USB Type C interface base needs to be greater than the distance between the heating device and the interface base. That is, the distance between the thermistor and the USB Type C interface base needs to be greater than the distance between the heating device and the USB Type C interface base.

[0054] As an example, the distance between the heating device and the USB Type C interface base end may be 10 mm, and the distance between the thermistor and the USB Type C interface base end may be 15 mm. In this way, the thermistor can effectively sense the interface temperature while avoiding the influence of heat radiation from the heating device.

[0055] By setting a reasonable spacing distance and position, it can be ensured that the heating device efficiently heats the USB Type C interface, and the thermistor can accurately monitor temperature changes, and finally start or stop the drainage function through the control circuit 302.

[0056] The above-mentioned implementation is an explanation of the functional module composition and layout position of the drainage circuit 300 provided by the present application. The driving method of the electronic device provided by the present application will be explained below in conjunction with the accompanying drawings. Figure 5 FIG. 1 is a flow chart of a method for driving an electronic device provided in an embodiment of the present application. The method can be applied to Figure 1 The driving method of the electronic device may include: S501 to S503.

[0057] S501: On a first interface, a first control is displayed, where the first control is used to prompt a user to start a drainage function.

[0058] When the user actively enables the drainage function, the electronic device may receive the user's operation on the drainage function, and in response, Figure 6 As shown in , the electronic device can display a first interface 601. In the first interface 601, the user can actively configure the execution time of the drainage operation through the drainage time configuration control 602 in the first control, and choose whether to start the drainage operation through the start drainage control 603 in the first control.

[0059] S502: In response to the user touching the first control, the second interface is displayed, and the electronic device performs a drainage function.

[0060] When entering Figure 7 After the second interface is displayed, the processor and drain circuit of the electronic device will execute the following Figure 8 The drainage method shown may include: S701~S703.

[0061] S701: The processor determines a connection status of the USB Type C interface in response to a drain instruction.

[0062] The connection state of the USB Type C interface may include an idle state and a non-idle state. When a cable is connected to the USB Type C interface, the connection state of the USB Type C interface is a non-idle state.

[0063] Idle state: When the USB Type C interface is not connected to any external device (for example, when the data cable or power cable is not connected), the connection state of the interface is idle. In this case, the USB Type C interface is in standby or unused state, which is suitable for judging and executing the drainage function.

[0064] Non-idle state: When the USB Type C interface is connected to an external device (for example, when a data cable or power cable is connected), the connection state of the interface is non-idle. At this time, the interface is undergoing normal electrical connection and data transmission and is not suitable for drainage operation.

[0065] After the processor receives the drain instruction, it detects the connection status through the configuration channel (CC) pin of the USB Type C interface. The CC pin is used to determine whether there is a device connected to the USB Type C interface and to determine the connection status through voltage changes. The processor samples the voltage signal of the CC pin, converts it into a voltage waveform and analyzes its changes. The CC pin of the USB Type C interface generates different voltages according to the status of the connected device. By monitoring and analyzing the changes in these voltage waveforms, the processor can determine the connection status of the USB Type C interface.

[0066] It should be noted that the drainage instruction can be actively triggered by the user through the above implementation, or the drainage instruction can be generated by the processor at preset time intervals and passively triggered by the electronic device.

[0067] S7021: When the connection state of the USB Type C interface is an idle state, the drainage circuit determines whether to start the drainage function.

[0068] When the connection state of the USB Type C interface is in an idle state, the VBUS bus of the USB Type C interface is powered on, and the drainage circuit continues to determine whether to start the drainage function.

[0069] S7022: When the connection state of the USB Type C interface is not in an idle state, send a first prompt message to the user.

[0070] When the connection state of the USB Type C interface is not idle, that is, the interface is in a connected state, the drainage circuit will not perform the drainage function. At this time, the electronic device will send a first prompt message to the user through the control circuit, which prompts the user that the current device has not started the drainage function and suggests that the user disconnect the interface and try again. As an example, when the connection state of the USB Type C interface is not idle, the display interface of the electronic device is Figure 7The display interface shown switches to Fig. 9 The first prompt message may be "The device is connecting to an external device and the drainage function cannot be started. Please disconnect and try again", ensuring that the user understands why the device cannot currently perform the drainage function and instructing the user on how to operate.

[0071] S703: The control circuit determines a temperature change value of the USB Type C interface.

[0072] When it is necessary to continue to determine whether to start the drainage function, the control circuit can obtain the real-time temperature of the USB Type C interface through the temperature acquisition circuit, and then determine the temperature change value of the USB Type C interface according to the difference between the real-time temperatures of two acquisition cycles.

[0073] S7041: When the temperature change value is less than the temperature change threshold, the drainage function is started.

[0074] The temperature change value of the USB Type C interface can represent the short circuit state of the VBUS pin. After determining the temperature change value of the USB Type C interface, when the temperature change value of the USB Type C interface is less than the preset temperature change threshold, it means that the temperature of the USB Type C interface has not risen abnormally fast and there is no short circuit. Therefore, the drainage function can be directly started.

[0075] S7042: The control circuit starts the drainage function when the temperature change value is greater than or equal to the temperature change threshold and the temperature of the USB Type C interface is less than the temperature threshold.

[0076] If the temperature of the USB Type C interface rises rapidly in a short period of time, the change value will be significantly higher than the preset temperature change threshold. The USB Type C interface may have a short circuit or other abnormal conditions, such as excessive current causing the interface to heat up rapidly. A temperature change threshold can be set (for example, 10°C / second). If the temperature change value exceeds the threshold, a short circuit may exist. When a short circuit occurs, it is necessary to further determine whether the current electronic device meets the conditions for starting the drainage function. The temperature value of the USB Type C interface can be used as a basis for judgment. When the temperature value of the USB Type C interface is less than the temperature threshold, the drainage function can be started.

[0077] S7043: When the temperature change value of the USB Type C interface is greater than or equal to the temperature change threshold, and the temperature of the USB Type C interface is greater than or equal to the temperature threshold, a second prompt message is sent to the user.

[0078] When the temperature change value of the USB Type C interface is greater than the preset temperature change threshold, it means that the temperature of the USB Type C interface has risen abnormally quickly, and there may be a short circuit. When there is a short circuit, it is necessary to further determine whether the current electronic device meets the conditions for starting the drainage function. The relationship between the temperature value of the USB Type C interface and the temperature threshold value can be used as a basis for judgment. If the temperature of the USB Type C interface exceeds the temperature threshold value, it means that the interface temperature is too high and may cause serious damage to the device. At this time, the drainage function should not be started. At this time, the display interface of the electronic device is Figure 7 The display interface shown switches to Fig.10 The second prompt message may be "The current temperature of the USB Type C interface is too high and the drainage function cannot be started normally. Please wait and try again."

[0079] S705: When the temperature of the USB Type C interface is greater than or equal to the temperature threshold, a third prompt message is sent to the user.

[0080] After the drainage function is started normally, the water in the USB Type C interface is drained. After the preset drainage time is reached, the drainage function is automatically exited. The content of the third prompt information is used to prompt the user that the drainage operation has been completed normally.

[0081] S503: In response to the drainage function completion signal, a third display interface is displayed, and the electronic device exits the drainage function.

[0082] When the drainage circuit completes drainage, it will feed back a drainage function completion signal to the processor. In response to the drainage function completion signal, the processor will change the display interface of the electronic device from Figure 7 The display interface shown switches to Fig.11 As shown in the display interface. As an example, the content of the third prompt information can be "drainage operation completed". Then the user can exit the drainage function by clicking the corresponding control.

[0083] The effects of the implementation methods of the present application are described below in conjunction with Table 1. It can be seen that by adopting the implementation methods of the present application, the temperature near the USB Type C interface can be increased to about 100° C., and the water in the USB Type C interface can be quickly discharged, which greatly reduces the user's waiting time and improves the user's experience.

[0084] Table 1

[0085] An embodiment of the present application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on the above-mentioned electronic device, the electronic device executes each function or step executed by the electronic device in the above-mentioned method embodiment.

[0086] The embodiment of the present application also provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes each function or step executed by the electronic device in the above method embodiment.

[0087] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0088] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0089] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0090] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0091] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0092] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

[0093] An embodiment of the present application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on the above-mentioned terminal device, the terminal device executes each function or step executed by the terminal device in the above-mentioned method embodiment.

[0094] The embodiment of the present application also provides a computer program product. When the computer program product is executed on a terminal device, the terminal device executes each function or step executed by the terminal device in the above method embodiment.

[0095] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0096] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0097] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0098] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0099] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0100] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A drainage circuit, characterized in that: The drainage circuit is arranged between the voltage bus VBUS pin of the Type C universal serial bus USBType C interface of the electronic device and the charging control chip of the electronic device, and the drainage circuit includes: A temperature collection circuit, used to collect the temperature of the USB Type C interface; A control circuit, used to obtain the temperature of the USB Type C interface and generate a control signal; The heating circuit is used for generating heat in response to the control signal.

2. The drainage circuit according to claim 1, characterized in that: The heating circuit comprises: a switch device and a heating device; The first end of the heating device is connected to the VBUS pin, the second end of the heating device is connected to the first end of the switch device, the second end of the switch device is connected to the ground end, and the controlled end of the switch device is connected to the output end of the control circuit.

3. The drainage circuit according to claim 2, characterized in that: The heating device includes a resistor or a wire.

4. The drainage circuit according to claim 1, characterized in that: The temperature acquisition circuit comprises a thermistor, a first end of the thermistor is connected to an input end of the control circuit, and a second end of the thermistor is connected to a ground end.

5. A drainage method, characterized in that: Applied to an electronic device, the electronic device comprising a processor and the drainage circuit according to any one of claims 1 to 4; Methods include: The processor determines, in response to the drain instruction, a connection status of the USB Type C interface; When the connection state of the USB Type C interface is an idle state, the drainage circuit determines whether to start the drainage function.

6. The method according to claim 5, characterized in that The method further comprises: When the connection state of the USB Type C interface is a non-idle state, a first prompt message is sent to the user, where the first prompt message is used to prompt the user that the electronic device has not entered a drainage function.

7. The method according to claim 5, characterized in that The drainage instruction is generated by the following steps: generating the drainage instruction in response to a touch instruction of a user; Alternatively, the drainage instruction is generated at preset time intervals.

8. The method according to claim 5, characterized in that The drainage circuit determines whether to start the drainage function including: The control circuit determines a temperature change value of the USB Type C interface; When the temperature change value is less than the temperature change threshold, starting the drainage function; Or, when the temperature change value is greater than or equal to the temperature change threshold and the temperature of the USB Type C interface is less than the temperature threshold, the drainage function is started.

9. The method according to claim 5, characterized in that The drainage circuit determines whether to start the drainage function including: The control circuit determines a temperature change value of the USB Type C interface; When the temperature change value of the USB Type C interface is greater than or equal to the temperature change threshold, and the temperature of the USB Type C interface is greater than or equal to the temperature threshold, a second prompt message is sent to the user, and the second prompt message is used to prompt the user that the electronic device abnormally exits the drainage function.

10. The method according to claim 8, characterized in that After the drainage function is started, the method further includes: When the temperature of the USB Type C interface is greater than or equal to the temperature threshold value, a third prompt message is sent to the user, where the third prompt message is used to prompt the user that the electronic device normally exits the drainage function.

11. An electronic device, characterized in that: The electronic device comprises a drainage circuit, a USB Type C interface and a charging control chip, wherein the drainage circuit is arranged between the VBUS pin of the USB Type C interface of the electronic device and the charging control chip of the electronic device, and the drainage circuit comprises the drainage circuit according to any one of claims 1 to 4.

12. The electronic device according to claim 11, characterized in that: The distance between the heating device and the USB Type C interface base end is less than a first distance threshold.

13. The electronic device according to claim 12, characterized in that: The distance between the temperature acquisition circuit and the USB Type C interface base end is less than the second distance threshold.

14. The electronic device according to claim 13, characterized in that: The first distance threshold is smaller than the second distance threshold.

15. A method for driving an electronic device, characterized in that: The method comprises: On the first interface, a first control is displayed, and the first control is used to prompt the user to start the drainage function; In response to the user touching the first control, a second interface is displayed, and the electronic device performs a drainage function; In response to the drainage function completion signal, the third display interface is displayed, and the electronic device exits the drainage function.

16. A computer-readable storage medium, characterized in that: including computer instructions; When the computer instructions are executed on an electronic device, the electronic device is caused to execute the method according to any one of claims 5 to 10 or claim 15.

Citation Information

Patent Citations

  • A short circuit fault processing device and method

    CN108370170A

  • Foreign matter cleaning method and device of Type-c interface, storage medium and electronic equipment

    CN109616836A

  • Interface assembly and electronic equipment

    CN117293588A

  • Waterproof device and method, equipment interface, equipment and storage medium

    CN117847970A

  • Dynamic picture processing method, electronic equipment and computer readable storage medium

    CN118963624A