Liquid detection method, apparatus, terminal, and storage medium
By setting wires around terminal components to collect resistance values and using these resistance values to determine liquid intrusion, the problem of insufficient accuracy of humidity sensors is solved, achieving efficient and low-cost liquid detection and improving terminal security and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING XIAOMI MOBILE SOFTWARE CO LTD
- Filing Date
- 2021-11-30
- Publication Date
- 2026-05-15
AI Technical Summary
Existing terminals suffer from insufficient accuracy of humidity sensors when detecting liquid intrusion, resulting in ineffective protection of the terminals, and are also costly and have complex circuit connections.
By setting up a first wire and a second wire around the component, the resistance value is collected. The liquid detection result is determined based on the resistance value. The liquid type and quantity are determined by using the resistance value threshold and set, and corresponding operations are performed.
It improves the accuracy and efficiency of liquid detection, reduces costs, decreases power consumption, and enhances terminal security and user experience.
Smart Images

Figure CN116203079B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and in particular to a liquid detection method, apparatus, terminal, and storage medium. Background Technology
[0002] With the development of science and technology, terminals such as smartphones and tablets are being used more and more widely in our lives. However, accidents are inevitable during the use of these terminals, such as impacts and water damage, which can cause financial losses to users and compromise the data stored inside the terminals. Therefore, improving the accuracy of liquid detection inside these terminals has become a focus of attention. Summary of the Invention
[0003] This disclosure provides a liquid detection method, apparatus, terminal, and storage medium, with the main objective of improving the accuracy of liquid detection results.
[0004] According to one aspect of this disclosure, a liquid detection method is provided, comprising:
[0005] Obtain the resistance value collected through the first wire and the second wire, which are arranged around the component;
[0006] Based on the resistance value, the liquid detection result at the location corresponding to the component is determined.
[0007] Optionally, determining the liquid detection result at the location corresponding to the component based on the resistance value includes:
[0008] If the resistance value is greater than the first resistance threshold, then the liquid detection result at the corresponding position of the component is determined to be that no liquid is present.
[0009] If the resistance value is less than the second resistance threshold, then the liquid detection result at the corresponding position of the component is determined to be the presence of liquid, and the second resistance threshold is equal to or less than the first resistance threshold.
[0010] Optionally, determining the liquid detection result at the location corresponding to the component based on the resistance value includes:
[0011] Obtain a set of resistance values, the set of resistance values including liquid type, liquid volume, and resistance values corresponding to the liquid type and liquid volume;
[0012] Based on the set of resistance values and the resistance values, the liquid detection result corresponding to the position of the component is determined.
[0013] Optionally, after determining the liquid detection result at the location corresponding to the component based on the resistance value, the method further includes:
[0014] Obtain the resistance value range corresponding to the resistance value;
[0015] Obtain operation information corresponding to the resistance value range, wherein different resistance value ranges correspond to different operation information;
[0016] Perform the operation corresponding to the operation information.
[0017] Optionally, performing the operation corresponding to the operation information includes:
[0018] If the operation information is display operation information, then display the prompt information corresponding to the liquid detection result;
[0019] If the operation information is to disconnect the control circuit, then disconnect the first control circuit corresponding to the component, or disconnect the second control circuit of the terminal power supply and the terminal system.
[0020] Optionally, obtaining the resistance value collected through the first wire and the second wire includes:
[0021] Obtain the resistance value sampling frequency;
[0022] Based on the resistance value sampling frequency, the resistance values collected through the first and second wires are obtained.
[0023] According to another aspect of this disclosure, a liquid detection device is provided, comprising a sampling module, a power supply module, and a detection module, wherein...
[0024] The sampling module includes a first wire and a second wire, which are arranged around the component.
[0025] One end of the first wire is connected to one end of the power supply module, the other end of the power supply module is connected to one end of the detection module, and the other end of the detection module is grounded and connected to one end of the second wire;
[0026] The detection module is used to determine the liquid detection result at the location corresponding to the component based on the resistance value between the other end of the first wire and the other end of the second wire.
[0027] Optionally, the components include at least one of a circuit board, a speaker, a microphone, a volume control, and a display control.
[0028] According to another aspect of this disclosure, a liquid detection device is provided, comprising:
[0029] A resistance acquisition unit is used to acquire the resistance value collected through a first wire and a second wire, the first wire and the second wire being arranged around the component;
[0030] A liquid detection unit is used to determine the liquid detection result at the location corresponding to the component based on the resistance value.
[0031] Optionally, when the liquid detection unit determines the liquid detection result at the location corresponding to the component based on the resistance value, it is specifically used for:
[0032] If the resistance value is greater than the first resistance threshold, then the liquid detection result at the corresponding position of the component is determined to be that no liquid is present.
[0033] If the resistance value is less than the second resistance threshold, then the liquid detection result at the corresponding position of the component is determined to be the presence of liquid, and the second resistance threshold is equal to or less than the first resistance threshold.
[0034] Optionally, the liquid detection unit includes a collection acquisition subunit and a result confirmation subunit. The liquid detection unit is used to determine the liquid detection result at the location corresponding to the component based on the resistance value:
[0035] The set acquisition subunit is used to acquire a set of resistance values, which includes liquid type, liquid volume, and resistance values corresponding to the liquid type and liquid volume.
[0036] The result confirmation subunit is used to determine the liquid detection result at the location corresponding to the component based on the set of resistance values and the resistance values.
[0037] Optionally, the device further includes an operation execution unit, used to obtain the resistance value range corresponding to the resistance value after determining the liquid detection result at the position corresponding to the component based on the resistance value;
[0038] Obtain operation information corresponding to the resistance value range, wherein different resistance value ranges correspond to different operation information;
[0039] Perform the operation corresponding to the operation information.
[0040] Optionally, when the operation execution unit performs the operation corresponding to the operation information, it is specifically used for:
[0041] If the operation information is display operation information, then display the prompt information corresponding to the liquid detection result;
[0042] If the operation information is to disconnect the control circuit, then disconnect the first control circuit corresponding to the component, or disconnect the second control circuit of the terminal power supply and the terminal system.
[0043] Optionally, the resistance value acquisition unit, when acquiring the resistance value collected through the first wire and the second wire, is specifically used for:
[0044] Obtain the resistance value sampling frequency;
[0045] Based on the resistance value sampling frequency, the resistance values collected through the first and second wires are obtained.
[0046] According to another aspect of this disclosure, a terminal is provided, comprising:
[0047] At least one processor; and
[0048] A memory communicatively connected to the at least one processor; wherein,
[0049] The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method described in any one of the preceding aspects.
[0050] According to another aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are used to cause the computer to perform the method described in any one of the preceding aspects.
[0051] According to another aspect of this disclosure, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the method described in any one of the preceding aspects.
[0052] In one or more embodiments of this disclosure, by acquiring the resistance values collected through the first and second wires, the liquid detection result corresponding to the component location can be determined based on the resistance values. Since the first and second wires are positioned around the component, the presence of liquid at the corresponding location around the component can be determined based on the resistance values around the component. This reduces the inaccuracy of determining liquid detection results based on humidity using a humidity sensor, improving the accuracy of liquid detection result determination and thus enhancing the user experience.
[0053] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0054] The accompanying drawings are provided to better understand this solution and do not constitute a limitation of this disclosure. Wherein:
[0055] Figure 1 This diagram illustrates a background illustration of a liquid detection method provided in an embodiment of the present disclosure.
[0056] Figure 2 This diagram illustrates a system architecture of a liquid detection method provided in an embodiment of the present disclosure.
[0057] Figure 3 A schematic flowchart of the first liquid detection method provided in this disclosure embodiment is shown;
[0058] Figure 4 A schematic flowchart of a second liquid detection method provided in an embodiment of this disclosure is shown;
[0059] Figure 5 This diagram illustrates a structure in which a first wire and a second wire, according to an embodiment of the present disclosure, are looped around a component.
[0060] Figure 6 This diagram illustrates the structure of a terminal for liquid detection provided in an embodiment of the present disclosure.
[0061] Figure 7 This diagram shows a schematic representation of the disconnection control circuit provided in an embodiment of the present disclosure.
[0062] Figure 8 This diagram illustrates the structure of the liquid detection device provided in an embodiment of the present disclosure.
[0063] Figure 9 This diagram shows a structural schematic of the first liquid detection device provided in an embodiment of the present disclosure;
[0064] Figure 10 This diagram illustrates the structure of the liquid detection unit provided in an embodiment of the present disclosure.
[0065] Figure 11 This diagram illustrates the structure of a second liquid detection device provided in an embodiment of the present disclosure.
[0066] Figure 12 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application;
[0067] Figure 13 This is a schematic diagram of the structure of the operating system and user space provided in the embodiments of this application;
[0068] Figure 14 yes Figure 13 Architecture diagram of the Android operating system in China;
[0069] Figure 15 yes Figure 13 Architecture diagram of the iOS operating system. Detailed Implementation
[0070] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0071] With the development of science and technology, current terminals have liquid splash protection. However, due to unexpected situations, such as the terminal falling into water, a large amount of liquid may splash onto the terminal, causing liquid to enter and damage it. To improve user convenience, various liquid detection methods have emerged.
[0072] According to some embodiments, Figure 1 This diagram illustrates a background illustration of a liquid detection method provided in an embodiment of this disclosure. Figure 1 As shown, the terminal can detect whether liquid has entered the terminal, for example, using a humidity sensor. The number of such humidity sensors can be, for example, at least one. Figure 1 As shown, for example, four humidity sensors can be set in the terminal. The terminal can acquire and control the humidity data collected by the humidity sensors at the corresponding locations. Based on the humidity data collected by the humidity sensors at the corresponding locations, the terminal can determine whether water has entered the locations corresponding to the humidity sensors.
[0073] In some embodiments, Figure 2 This diagram illustrates a system architecture of a liquid detection method provided in an embodiment of this disclosure. Figure 2 As shown, terminal 10 can control the humidity sensor 11 in terminal 10 to collect humidity and transmit the humidity data to processor 12. Processor 12 can determine whether the humidity in the terminal exceeds a humidity threshold. For example, when processor 12 determines that the humidity is greater than the humidity threshold, it can determine that liquid has entered the terminal 10, and then send liquid entry information to operation module 13. Operation module 13 can, for example, cut off the system power supply to protect the terminal. This operation module 13 can, for example, be an analog switch or a reset circuit with infinite delay.
[0074] It's easy to understand that humidity sensors measure relative humidity and cannot effectively detect whether liquid has entered the device. Furthermore, when the humidity in the air is high, such as 90%, the humidity sensor cannot accurately distinguish whether water has entered the device or if the air humidity is high. In addition, humidity sensors can only be distributed point by point, and the space in a device cannot support installing too many humidity sensors. Moreover, humidity sensors are expensive and have complex circuit connections. Therefore, determining liquid detection results based on humidity sensors can be inaccurate.
[0075] The present application will now be described in detail with reference to specific embodiments.
[0076] In the first embodiment, such as Figure 3 As shown, Figure 3 The diagram illustrates a flowchart of a first liquid detection method provided in this embodiment. This method can be implemented using a computer program and can run on a device for liquid detection. The computer program can be integrated into an application or run as a standalone utility application.
[0077] The liquid detection device can be a terminal with liquid detection functionality, including but not limited to: wearable devices, handheld devices, personal computers, tablets, in-vehicle devices, smartphones, computing devices, or other processing devices connected to a wireless modem. In different networks, the terminal may be called by different names, such as: user equipment, access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent or user device, cellular phone, cordless phone, personal digital assistant (PDA), 5G network, 4G network, 3G network, or terminals in future evolved networks.
[0078] Specifically, the liquid detection method includes:
[0079] S101, Obtain the resistance value collected through the first wire and the second wire, wherein the first wire and the second wire are arranged around the component;
[0080] According to some embodiments, the conductor refers to a wire made of a conductive material, including but not limited to copper, aluminum, or silver. The first conductor and the second conductor refer to the conductors used by the terminal for liquid detection, and neither the first conductor nor the second conductor is characterized as a fixed conductor. For example, when one end of the first conductor is connected to the power supply module, one end of the second conductor is grounded. When one end of the first conductor is grounded, one end of the second conductor is connected to the power supply module.
[0081] According to some embodiments, when one end of the first wire is connected to the power supply module and one end of the second wire is grounded, the first and second wires can, for example, be arranged around the component. When liquid is present around the component, a conductive loop is formed between the first and second wires due to the presence of the liquid. In this case, the portions of the first and second wires that are in contact with the liquid are referred to as the other end of the first and second wires.
[0082] According to some embodiments, the collected resistance value refers to the resistance of the conductive medium between the other end of the first wire and the other end of the second wire. This resistance value is not specifically a fixed value. For example, the resistance value will change when the type of conductive medium changes. The resistance value will also change when the volume of the conductive medium changes. The resistance value will also change when the temperature of the conductive medium changes. For example, when the conductive medium is air, the resistance value is infinite. When the conductive medium is 1 cm at 15°C... 2 When using tap water, the resistance value can be, for example, 1300Ω.
[0083] According to some embodiments, a component refers to a part of a terminal and may consist of at least two parts. The term "component" does not specifically refer to a single fixed component. Components include, but are not limited to, resistors, capacitors, inductors, potentiometers, electron tubes, heat sinks, electromechanical components, connectors, discrete semiconductor devices, electroacoustic devices, laser devices, electronic display devices, optoelectronic devices, sensors, power supplies, switches, micromotors, electronic transformers, relays, printed circuit boards, integrated circuits, various circuits, piezoelectric materials, crystals, quartz, ceramic magnetic materials, substrates for printed circuit boards, electronic functional process materials, electronic adhesive (tape) products, electronic chemical materials and components, speakers, microphones, cameras, etc.
[0084] It is easy to understand that when the terminal performs liquid detection, the first and second wires are looped around the component, and the first wire, the second wire, and the conductive medium between the other ends of the first and second wires can form a conductive loop. For example, the current input to the terminal can flow into the ground after passing through the first wire, the conductive medium, and the second wire in sequence. Alternatively, the current input to the terminal can also flow into the ground after passing through the second wire, the conductive medium, and the first wire in sequence. Based on the conductive loop, the terminal can acquire the resistance value between the first and second wires through the first and second wires.
[0085] S102, based on the resistance value, determines the liquid detection result at the corresponding position of the component.
[0086] According to some embodiments, the corresponding location of the component can be the location where the component is installed in the terminal. This corresponding location is not characterized by a fixed position. For example, the corresponding location of the component can be above the sensor. It can also be below the power supply. For example, when the component changes, its corresponding location will also change accordingly.
[0087] In some embodiments, the liquid detection result refers to the detection result determined by the terminal based on the acquired resistance value, corresponding to the location of the component. This liquid detection result does not specifically refer to a fixed liquid detection result. For example, the liquid detection result will change accordingly when the resistance value changes. For instance, when the resistance value is infinite, the liquid detection result is no liquid entering. When the resistance value is 1300Ω, the liquid detection result is liquid entering.
[0088] It is easy to understand that when the terminal collects the resistance value through the first wire and the second wire, the terminal can obtain the liquid detection result corresponding to the position of the conductive medium between the other end of the first wire and the other end of the second wire based on the resistance value. That is, the terminal can determine the liquid detection result corresponding to the position of the component based on the resistance value.
[0089] In this embodiment, resistance values collected through a first wire and a second wire are obtained, with the first and second wires arranged around the component. Based on the resistance values, the liquid detection result at the corresponding location of the component is determined. Therefore, the terminal can determine whether there is liquid at the corresponding location around the component based on the resistance values around the component, reducing the inaccuracy of liquid detection results based on humidity from a humidity sensor, improving the accuracy of liquid detection results, and thus enhancing the user experience.
[0090] Please see Figure 4 , Figure 4 This diagram illustrates a flow chart of a second liquid detection method provided in an embodiment of this disclosure. Specifically:
[0091] S201, obtain the resistance value sampling frequency;
[0092] The specific process is as described above, and will not be repeated here.
[0093] According to some embodiments, the resistance value sampling frequency refers to the frequency at which the terminal collects resistance values through the first and second wires. This resistance value sampling frequency does not specifically refer to a fixed frequency. When the terminal receives a frequency modification command for the sampling frequency, the sampling frequency will change accordingly. This frequency modification command includes, but is not limited to, voice frequency modification commands, click frequency modification commands, timed frequency modification commands, etc. For example, the terminal can collect a resistance value every 1 second through the first and second wires. The terminal can also collect a resistance value every 5 seconds through the first and second wires.
[0094] It is easy to understand that when the terminal performs liquid detection, it can obtain the resistance value sampling frequency. The terminal can, for example, modify the sampling frequency based on a click frequency modification command for the resistance value sampling frequency.
[0095] S202, Based on the resistance value sampling frequency, obtain the resistance value collected through the first wire and the second wire;
[0096] The specific process is as described above, and will not be repeated here.
[0097] According to some embodiments, Figure 5 This diagram illustrates a structure where a first and second conductor, according to an embodiment of this disclosure, are looped around a component. Figure 5 As shown, when the first and second conductors are arranged around the component, the spacing between them is not specifically a fixed distance. For example, the spacing between the first and second conductors can be less than a distance threshold. Alternatively, the spacing can be greater than a second distance threshold, where the second distance threshold is greater than the first distance threshold. For example, the distance between the first and second conductors can be 3 mm, and the distance between them can also be 4 mm.
[0098] According to some embodiments, when the terminal performs liquid detection, one end of the first wire and one end of the second wire are connected to an analog-to-digital converter (ADC). Figure 6 As shown, wire A is the first wire, and wire B is the second wire. The analog-to-digital converter can convert the analog signals input to the first and second wires into electrical signals, and obtain the voltage across the conductive medium between the other ends of the first and second wires.
[0099] In some embodiments, when the voltage obtained by the terminal is the voltage of the current source, it indicates that the conductive medium is air. In this case, the resistance value collected by the terminal through the first and second wires can be, for example, the resistance value corresponding to air. When the voltage obtained by the terminal is less than the voltage of the current source, it indicates that the conductive medium is not air. In this case, the terminal can determine the resistance value corresponding to the conductive medium between the first and second wires based on the voltage across the conductive medium and the current input from the current source.
[0100] For example, when the conductive medium is air, the current source voltage is 6V, and the current source current is 5mA, the voltage obtained by the terminal is 6V, and the resistance value of the conductive medium can be, for example, the resistance value corresponding to air. When the conductive medium is tap water, the current source voltage is 6V, and the current source current is 5mA, the voltage obtained by the terminal can be 4V, and the resistance value of the conductive medium can be, for example, 800Ω.
[0101] It is easy to understand that when the terminal obtains the resistance value sampling frequency, the terminal can collect the resistance value of the conductive medium between the other end of the first wire and the other end of the second wire based on the resistance value sampling frequency.
[0102] S203, based on the resistance value, determines the liquid detection result at the corresponding position of the component;
[0103] The specific process is as described above, and will not be repeated here.
[0104] According to some embodiments, the terminal can determine the liquid detection result at the location corresponding to the component by means of threshold detection.
[0105] In some embodiments, if the resistance value is greater than the first resistance threshold, the terminal can determine that the liquid detection result at the corresponding position of the component is that no liquid is present.
[0106] In some embodiments, the first resistance threshold refers to a threshold set by the terminal for detecting the presence of liquid at a corresponding location of a component. This first resistance threshold is not specifically a fixed threshold. When the terminal receives a condition modification instruction for the first resistance threshold, the first resistance threshold will change accordingly. The first resistance threshold can be, for example, 5kΩ, or it can also be 1MΩ. The first resistance threshold set for different regions can also be different. For example, the first resistance threshold set for a humid region may differ from the first resistance threshold set for a dry region.
[0107] In some embodiments, if the resistance value is less than the second resistance threshold, the liquid detection result at the corresponding position of the component is determined to be the presence of liquid, and the second resistance threshold is equal to or less than the first resistance threshold.
[0108] In some embodiments, the second resistance threshold refers to the threshold at which the liquid detection result at the corresponding location of the component is determined to indicate the presence of liquid. This second resistance threshold is not specifically a fixed threshold. When the terminal receives a condition modification instruction for the second resistance threshold, the first resistance threshold will also change accordingly. For example, the second resistance threshold can be 4kΩ or 5kΩ.
[0109] According to some embodiments, the first and second wires may, for example, be arranged around the microphone. The first resistance threshold obtained by the terminal may be, for example, 2kΩ, and the second resistance threshold may be, for example, 0.8kΩ. The resistance value acquired by the terminal through the first and second wires may, for example, be 3kΩ. If the terminal determines that the resistance value of 3kΩ acquired through the first and second wires is greater than the first resistance threshold of 2kΩ, then the terminal can determine that there is no liquid around the microphone. The resistance value acquired by the terminal through the first and second wires may, for example, be 500Ω. If the terminal determines that the resistance value of 500Ω acquired through the first and second wires is less than the second resistance threshold of 0.8kΩ, then the terminal can determine that there is liquid around the microphone.
[0110] According to some embodiments, when the terminal confirms the presence of liquid in the liquid detection result, the terminal can obtain a set of resistance values. This set of resistance values includes the liquid type, liquid volume, and the resistance values corresponding to the liquid type and volume. Based on the set of resistance values and the resistance values, the terminal can determine the liquid detection result at the location corresponding to the component. Determining the liquid detection result based on a pre-set set of resistance values reduces the number of steps involved in determining the liquid detection result and improves the efficiency of the determination process.
[0111] In some embodiments, the set of resistance values refers to different liquid information and their corresponding resistance values pre-stored in the terminal. Liquid information includes, but is not limited to, liquid type and liquid volume. This set of resistance values does not specifically refer to a fixed set of resistance values. For example, the set of resistance values may change when the stored liquid information changes or when the number of resistance values corresponding to that liquid information changes. The set of resistance values will also change when the liquid type changes. Liquid types include, but are not limited to, river water, seawater, tap water, purified water, sugary beverages, oil, alcohol, honey, gasoline, diesel, etc.
[0112] It is easy to understand that when the terminal obtains the resistance values collected by the first and second wires, the terminal can determine whether there is liquid at the corresponding location of the component through threshold detection. If the terminal determines that there is liquid at the corresponding location of the component, the terminal can, for example, estimate the type and amount of liquid entering at that location based on the set of resistance values and the resistance values themselves.
[0113] S204, obtain the resistance value range corresponding to the resistance value;
[0114] The specific process is as described above, and will not be repeated here.
[0115] According to some embodiments, a resistance value range refers to a range corresponding to a resistance value used to determine the extent of liquid penetration. There are at least one resistance value range, and different resistance value ranges correspond to different liquid detection results. The resistance value range does not specifically refer to a fixed range. For example, when the terminal receives a condition modification instruction for a resistance value range, the resistance value range will change accordingly. For example, when the minimum or maximum resistance threshold corresponding to the resistance value range changes, the resistance value range will also change accordingly.
[0116] It is easy to understand that when the terminal determines that the corresponding position of the component has entered the liquid, the terminal can obtain the resistance value range corresponding to the resistance value.
[0117] S205, obtain operation information corresponding to the resistance value range;
[0118] The specific process is as described above, and will not be repeated here.
[0119] According to some embodiments, the operation information refers to the operation information obtained by the terminal when it enters the liquid, corresponding to a range of resistance values. This operation information is not specifically defined as any fixed information. For example, when the terminal receives an instruction to modify the operation information, the operation information will change accordingly. This operation information may, for example, be a displayed operation message or a message indicating the disconnection of a control circuit.
[0120] In simple terms, when the terminal obtains a resistance value corresponding to a given resistance range, it can obtain the corresponding operation information. For example, when the terminal obtains a resistance value of 1300Ω, it can determine that the corresponding resistance range is 1k-2kΩ, and thus the operation information for this range is to disconnect the control circuit. Similarly, when the terminal obtains a resistance value of 300Ω, it can determine that the corresponding resistance range is 0-500Ω, and thus the operation information for this range is to display information.
[0121] S206, Perform the operation corresponding to the operation information.
[0122] It is easy to understand that when the terminal obtains operation information corresponding to the resistance value range, the terminal can execute the operation corresponding to the operation information. When the terminal determines that there is liquid at the corresponding location of the component, the terminal can directly turn off the main power switch.
[0123] According to some embodiments, if the operation information is to display operation information, the terminal can display prompt information corresponding to the liquid detection result.
[0124] In some embodiments, the prompt information refers to information used by the terminal to notify the user that liquid is present in the terminal. This prompt information is not specific to any particular fixed information. It includes, but is not limited to, the type and quantity of liquid. When components change, their corresponding positions may also change, and the prompt information may change accordingly.
[0125] In some embodiments, if the operation information is a display operation message, the terminal can also alert the user that liquid is present in the terminal based on the alarm module. This alarm module includes, but is not limited to, a buzzer, a vibration unit, and an indicator light.
[0126] According to some embodiments, if the operation information is to disconnect the control circuit, then the first control circuit corresponding to the component is disconnected, or the second control circuit of the terminal power supply and the terminal system is disconnected. The first control circuit refers to a circuit used only to control the component. The second control circuit refers to a circuit used to control the terminal power supply and the terminal system.
[0127] In some embodiments, when the terminal receives a condition modification instruction for the disconnection control circuit, the disconnection control circuit will change accordingly. For example, when the terminal detects liquid at the location corresponding to the camera, the terminal can disconnect the camera's control circuit. The terminal can also directly disconnect the terminal power supply when it detects liquid at the location corresponding to the camera.
[0128] In some embodiments, the methods for disconnecting the control circuit include, but are not limited to, disconnecting via a controllable switch or disconnecting via a switching chip. For example... Figure 7 As shown, when the microcontroller unit (MCU) can obtain the resistance values of the first and second wires from the ADC, the MCU can determine whether to control the controllable switch or the switch chip to disconnect the conductive loop between the system circuit and the battery based on the resistance value.
[0129] In this embodiment, by acquiring the resistance value sampling frequency, and based on this frequency, the resistance value collected through the first and second wires is obtained. This reduces the power consumption loss caused by excessively fast resistance sampling frequency, thus reducing terminal power consumption. Furthermore, the first and second wires can be arranged around the components, reducing the possibility of insufficient space to install too many humidity sensors, reducing the cost of determining liquid detection results, and improving the convenience of liquid detection. Secondly, based on the resistance value, the liquid detection result corresponding to the component's location can be determined, thus reducing the possibility of inaccurate liquid detection results based solely on humidity sensors, improving the accuracy of liquid detection. Additionally, by acquiring the resistance value range corresponding to the resistance value, operation information corresponding to that range can be obtained, and operations corresponding to that operation information can be executed. Since different resistance value ranges correspond to different operation information, different operations can be performed for different resistance values, improving the convenience of operation execution. When the operation information is to disconnect the control circuit, it also reduces liquid damage to the terminal, improving terminal safety. Finally, the terminal can determine whether liquid has entered the corresponding location around the component based on the resistance value around the component. This reduces the inaccuracy of liquid detection results based on humidity sensors, improves the accuracy of liquid detection results, and thus enhances the user experience.
[0130] The collection, storage, use, processing, transmission, provision, and disclosure of user personal information involved in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0131] The following are embodiments of the apparatus disclosed herein, which can be used to execute embodiments of the method disclosed herein. For details not disclosed in the apparatus embodiments of this disclosure, please refer to the embodiments of the method disclosed herein.
[0132] Please see Figure 8 This illustration shows a schematic diagram of a liquid detection device provided in an exemplary embodiment of the present disclosure. The liquid detection device can be implemented as all or part of a device through software, hardware, or a combination of both. The liquid detection device 800 includes a sampling module 801, a power supply module 802, and a detection module 803, wherein:
[0133] The sampling module 801 includes a first wire and a second wire, which are arranged around the component.
[0134] One end of the first wire is connected to one end of the power supply module 802, the other end of the power supply module 802 is connected to one end of the detection module 803, and the other end of the detection module 803 is grounded and connected to one end of the second wire.
[0135] The detection module 803 is used to determine the liquid detection result at the corresponding position of the component based on the resistance value between the other end of the first wire and the other end of the second wire.
[0136] Optionally, the components include at least one of a circuit board, a speaker, a microphone, a volume control, and a display control.
[0137] It is easy to understand that when the terminal performs liquid detection, the first and second wires are looped around the component, and the first wire, the second wire, and the conductive medium between the other ends of the first and second wires can form a conductive loop. For example, the current input to the terminal can flow into the ground after passing through the first wire, the conductive medium, and the second wire in sequence. Alternatively, the current input to the terminal can also flow into the ground after passing through the second wire, the conductive medium, and the first wire in sequence. Based on the conductive loop, the terminal can acquire the resistance value between the first and second wires through the first and second wires.
[0138] In some embodiments, when the conductive medium between the other ends of the first and second conductors is air, the voltage obtained by the terminal is the current source voltage. That is, when the voltage obtained by the terminal is the current source voltage, it indicates that the conductive medium is air. In this case, the resistance value collected by the terminal through the first and second conductors can be, for example, the resistance value corresponding to air, meaning the terminal determines that the liquid detection result at the location corresponding to the component is that no liquid is present. When the voltage obtained by the terminal is less than the current source voltage, it indicates that the conductive medium is not air. In this case, the terminal can determine the resistance value corresponding to the conductive medium between the first and second conductors based on the voltage across the conductive medium and the current input from the current source, meaning the terminal determines that the liquid detection result at the location corresponding to the component is that liquid is present.
[0139] In this embodiment, the sampling module includes a first wire and a second wire, which are arranged around the component. One end of the first wire is connected to one end of a power supply module, the other end of the power supply module is connected to one end of a detection module, and the other end of the detection module is grounded and connected to one end of the second wire. Therefore, the resistance value between the other ends of the first and second wires can be obtained. The detection module can be used to determine the liquid detection result at the location corresponding to the component based on the resistance value between the other ends of the first and second wires. Therefore, the terminal can determine whether liquid is present at the corresponding location around the component based on the resistance value around the component, reducing the inaccuracy of liquid detection results based on humidity from a humidity sensor, improving the accuracy of liquid detection results, and thus enhancing the user experience.
[0140] The following are embodiments of the apparatus disclosed herein, which can be used to execute embodiments of the method disclosed herein. For details not disclosed in the apparatus embodiments of this disclosure, please refer to the embodiments of the method disclosed herein.
[0141] Please see Figure 9 This illustration shows a schematic diagram of a first liquid detection device provided in an exemplary embodiment of the present disclosure. The liquid detection device can be implemented as all or part of a device through software, hardware, or a combination of both. The liquid detection device 900 includes:
[0142] The resistance acquisition unit 901 is used to acquire the resistance value collected through the first wire and the second wire, which are arranged around the component.
[0143] The liquid detection unit 902 is used to determine the liquid detection result at the corresponding position of the component based on the resistance value.
[0144] Optionally, the liquid detection unit 902, when determining the liquid detection result at the location corresponding to the component based on the resistance value, is specifically used for:
[0145] If the resistance value is greater than the first resistance threshold, the liquid detection result at the corresponding location of the component is determined to be that no liquid is present.
[0146] If the resistance value is less than the second resistance threshold, then the liquid detection result at the corresponding position of the component is determined to be the presence of liquid, and the second resistance threshold is equal to or less than the first resistance threshold.
[0147] Optional, Figure 10 This document shows a schematic diagram of the structure of the liquid detection unit provided in an embodiment of this application, as shown below. Figure 10 As shown, the liquid detection unit 902 includes an acquisition subunit 912 and a result confirmation subunit 922. The liquid detection unit 902 is used to determine the liquid detection result corresponding to the position of the component based on the resistance value:
[0148] Set acquisition subunit 912 is used to acquire a set of resistance values, which includes liquid type, liquid quantity, and resistance values corresponding to the liquid type and liquid quantity;
[0149] The result confirmation subunit 922 is used to determine the liquid detection result at the corresponding position of the component based on the set of resistance values and the resistance value.
[0150] Optional, Figure 11 This invention provides a schematic diagram of the structure of a second liquid detection device according to an embodiment of the present application. Figure 11 As shown, the liquid detection device 1100 also includes an operation execution unit 1103, which is used to determine the liquid detection result corresponding to the position of the component based on the resistance value, and then obtain the resistance value range corresponding to the resistance value.
[0151] Obtain operation information corresponding to the resistance value range, where different resistance value ranges correspond to different operation information;
[0152] Perform the operation corresponding to the operation information.
[0153] Optionally, the operation execution unit 1103, when performing the operation corresponding to the operation information, is specifically used for:
[0154] If the operation information is to display operation information, then display the prompt information corresponding to the liquid detection result;
[0155] If the operation information is to disconnect the control circuit, then disconnect the first control circuit corresponding to the component, or disconnect the second control circuit of the terminal power supply and the terminal system.
[0156] Optionally, the resistance acquisition unit 901, when acquiring the resistance value collected through the first wire and the second wire, is specifically used for:
[0157] Obtain the resistance value sampling frequency;
[0158] Based on the resistance value sampling frequency, the resistance values collected through the first and second wires are obtained.
[0159] It should be noted that the liquid detection device provided in the above embodiments is only illustrated by the division of the above functional modules when performing the liquid detection method. In practical applications, the above 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. In addition, the liquid detection device and the liquid detection method embodiments provided in the above embodiments belong to the same concept, and the implementation process is detailed in the method embodiments, which will not be repeated here.
[0160] The sequence numbers of the embodiments disclosed above are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0161] In this embodiment, the resistance value acquisition unit can acquire the resistance value collected through the first and second wires, which are arranged around the component. The liquid detection unit can determine the liquid detection result at the corresponding location of the component based on the resistance value. Therefore, the terminal can determine whether liquid has entered the corresponding location around the component based on the resistance value around the component, reducing the inaccuracy of liquid detection results determined by humidity sensors based on humidity, improving the accuracy of liquid detection results, and thus improving the user experience.
[0162] The acquisition, storage, and application of user personal information involved in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0163] This application also provides a computer storage medium that can store multiple instructions, which are adapted to be loaded and executed by a processor as described above. Figures 3-7 The liquid detection method of the illustrated embodiment can be found in the following document for detailed execution process. Figures 3-7 The specific details of the illustrated embodiments are not elaborated here. The computer-readable storage medium may include, but is not limited to, any type of disk, including floppy disks, optical disks, DVDs, CD-ROMs, microdrives, as well as magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic cards or optical cards, nanosystems (including molecular memory ICs), or any type of medium or device suitable for storing instructions and / or data.
[0164] This application also provides a computer program product comprising a non-transitory computer-readable storage medium storing a computer program, the computer program product storing at least one instruction, the at least one instruction being loaded and executed by a processor as described above. Figures 3-7 The liquid detection method of the illustrated embodiment can be found in the following document for detailed execution process. Figures 3-7 The specific details of the illustrated embodiments will not be elaborated here.
[0165] Please refer to Figure 12 This diagram illustrates a structural block diagram of a terminal provided in an exemplary embodiment of this application. The terminal in this application may include one or more components such as a processor 110, a memory 120, an input device 130, an output device 140, and a bus 150. The processor 110, memory 120, input device 130, and output device 140 are connected via the bus 150. The processor loads and executes as described above. Figures 3-9 The network connection method described in the illustrated embodiment can be found in the following document for a detailed execution process. Figures 3-9 The specific details of the illustrated embodiments will not be elaborated here.
[0166] Processor 110 may include one or more processing cores. Processor 110 connects to various parts of the terminal using various interfaces and lines, and performs various functions and processes data of terminal 100 by running or executing instructions, programs, code sets, or instruction sets stored in memory 120, and by calling data stored in memory 120. Optionally, processor 110 may be implemented using at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). Processor 110 may integrate one or more of the following: central processing unit (CPU), graphics processing unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into processor 110 and may be implemented separately using a communication chip.
[0167] The memory 120 may include random access memory (RAM) or read-only memory (ROM). Optionally, the memory 120 may include non-transitory computer-readable storage medium. The memory 120 may be used to store instructions, programs, code, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), instructions for implementing the various method embodiments described below, etc. The operating system may be the Android system, including systems deeply developed based on the Android system, the iOS system developed by Apple Inc., including systems deeply developed based on the iOS system, or other systems. The data storage area may also store data created by the terminal during use, such as phonebook data, audio and video data, chat log data, etc.
[0168] See Figure 13As shown, the memory 120 can be divided into operating system space and user space. The operating system runs in the operating system space, while native and third-party applications run in the user space. To ensure that different third-party applications can achieve good running performance, the operating system allocates corresponding system resources for each application. However, different application scenarios within the same third-party application have different requirements for system resources. For example, in local resource loading scenarios, third-party applications have high requirements for disk read speed; in animation rendering scenarios, third-party applications have high requirements for GPU performance. Since the operating system and third-party applications are independent of each other, the operating system often cannot promptly perceive the current application scenario of a third-party application, resulting in the operating system's inability to adapt system resources accordingly to the specific application scenario of the third-party application.
[0169] In order for the operating system to distinguish the specific application scenarios of third-party applications, it is necessary to establish data communication between the third-party applications and the operating system. This would allow the operating system to obtain the current scenario information of the third-party applications at any time, and then perform targeted system resource adaptation based on the current scenario.
[0170] Taking the Android operating system as an example, the programs and data stored in memory 120 are as follows: Figure 14As shown, the memory 120 can store the Linux kernel layer 320, the system runtime library layer 340, the application framework layer 360, and the application layer 380. The Linux kernel layer 320, system runtime library layer 340, and application framework layer 360 belong to the operating system space, while the application layer 380 belongs to the user space. The Linux kernel layer 320 provides low-level drivers for various terminal hardware components, such as display drivers, audio drivers, camera drivers, Bluetooth drivers, Wi-Fi drivers, and power management. The system runtime library layer 340 provides key feature support for the Android system through several C / C++ libraries. For example, the SQLite library provides database support, the OpenGL / ES library provides 3D graphics support, and the Webkit library provides browser kernel support. The system runtime library layer 340 also provides the Android runtime library, which mainly provides core libraries that allow developers to write Android applications using the Java language. The Application Framework Layer 360 provides various APIs that may be used when building applications. Developers can also use these APIs to build their own applications, such as activity management, window management, view management, notification management, content provider, package management, call management, resource management, and location management. At least one application runs in the Application Layer 380. These applications can be native applications that come with the operating system, such as contacts, SMS, clock, and camera apps; or third-party applications developed by third-party developers, such as games, instant messaging, photo editing, and network connectivity applications.
[0171] Taking the operating system as an example (iOS), the programs and data stored in memory 120 are as follows: Figure 15As shown, the iOS system includes: Core OS layer 420, Core Services layer 440, Media layer 460, and Cocoa Touch layer 480. Core OS layer 420 includes the operating system kernel, drivers, and low-level program frameworks. These low-level program frameworks provide hardware-level functionality for use by the program frameworks located in Core Services layer 440. Core Services layer 440 provides system services and / or program frameworks required by applications, such as Foundation framework, account framework, advertising framework, data storage framework, network connectivity framework, geolocation framework, motion framework, etc. Media layer 460 provides applications with audiovisual interfaces, such as interfaces related to graphics and images, audio technology, video technology, and AirPlay (wireless playback of audio and video transmission technologies). Cocoa Touch layer 480 provides various commonly used interface-related frameworks for application development and is responsible for user touch interaction on the terminal. Examples include local notification services, remote push services, advertising frameworks, game tool frameworks, message user interface (UI) frameworks, UIKit user interface frameworks, map frameworks, and so on.
[0172] exist Figure 15 The framework shown includes, but is not limited to, the base framework in the core service layer 440 and the UIKit framework in the touchable layer 480. The base framework provides many basic object classes and data types, offering the most basic system services to all applications, and is independent of the UI. The UIKit framework, on the other hand, provides a basic UI class library for creating touch-based user interfaces. iOS applications can use the UIKit framework to provide their UI, thus providing the application's infrastructure for building user interfaces, drawing, handling user interaction events, responding to gestures, and so on.
[0173] The methods and principles for implementing data communication between third-party applications and the operating system in the iOS system can be referenced from the Android system, and will not be elaborated here.
[0174] The input device 130 is used to receive input instructions or data, and includes, but is not limited to, a keyboard, mouse, camera, microphone, or touch device. The output device 140 is used to output instructions or data, and includes, but is not limited to, a display device and a speaker. In one example, the input device 130 and the output device 140 can be combined into a touch screen, which is used to receive touch operations from the user using a finger, stylus, or any suitable object on or near it, and to display the user interface of various applications. The touch screen is usually located on the front panel of the terminal. The touch screen can be designed as a full-screen, curved screen, or irregularly shaped screen. The touch screen can also be designed as a combination of a full-screen and a curved screen, or a combination of an irregularly shaped screen and a curved screen; this application embodiment does not limit this.
[0175] In addition, those skilled in the art will understand that the structure of the terminal shown in the above figures does not constitute a limitation on the terminal. The terminal may include more or fewer components than shown, or combine certain components, or have different component arrangements. For example, the terminal may also include radio frequency circuits, input units, sensors, audio circuits, wireless fidelity (WiFi) modules, power supplies, Bluetooth modules, etc., which will not be described in detail here.
[0176] In this embodiment, the executing entity for each step can be the terminal described above. Optionally, the executing entity for each step is the terminal's operating system. The operating system can be Android, iOS, or other operating systems; this embodiment does not limit this.
[0177] The terminal in this embodiment may also be equipped with a display device, which can be various devices capable of display functions, such as: cathode ray tube display (CR), light-emitting diode display (LED), e-ink screen, liquid crystal display (LCD), plasma display panel (PDP), etc. Users can use the display device on the terminal 100 to view displayed text, images, videos, and other information. The terminal may be a smartphone, tablet computer, gaming device, AR (Augmented Reality) device, automobile, data storage device, audio playback device, video playback device, laptop, desktop computing device, wearable device such as electronic watch, electronic glasses, electronic helmet, electronic bracelet, electronic necklace, electronic clothing, etc.
[0178] Those skilled in the art will clearly understand that the technical solutions of this application can be implemented using software and / or hardware. In this specification, "unit" and "module" refer to software and / or hardware capable of independently performing or cooperating with other components to perform specific functions. Hardware may include, for example, a Field-Programmable Gate Array (FPGA), an Integrated Circuit (IC), etc.
[0179] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0180] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0181] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some service interface; the indirect coupling or communication connection between devices or units may be electrical or other forms.
[0182] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0183] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0184] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, 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. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0185] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.
[0186] The foregoing description is merely an exemplary embodiment of this disclosure and should not be construed as limiting the scope of this disclosure. Any equivalent changes and modifications made in accordance with the teachings of this disclosure shall still fall within the scope of this disclosure. Other embodiments of this disclosure will be readily apparent to those skilled in the art upon consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not described herein. The specification and embodiments are to be considered exemplary only, and the scope and spirit of this disclosure are defined by the claims.
Claims
1. A liquid detection method, characterized in that, include: Obtain the resistance value collected through the first wire and the second wire, which are arranged around the component; Based on the resistance value, the liquid detection result at the location corresponding to the component is determined; The step of determining the liquid detection result at the location corresponding to the component based on the resistance value includes: If the resistance value is greater than the first resistance threshold, then the liquid detection result at the corresponding position of the component is determined to be that no liquid is present. If the resistance value is less than the second resistance threshold, then the liquid detection result at the corresponding position of the component is determined to be the presence of liquid, and the second resistance threshold is equal to or less than the first resistance threshold.
2. The method according to claim 1, characterized in that, The step of determining the liquid detection result at the location corresponding to the component based on the resistance value includes: Obtain a set of resistance values, the set of resistance values including liquid type, liquid volume, and resistance values corresponding to the liquid type and liquid volume; Based on the set of resistance values and the resistance values, the liquid detection result corresponding to the position of the component is determined.
3. The method according to claim 1, characterized in that, After determining the liquid detection result corresponding to the position of the component based on the resistance value, the method further includes: Obtain the resistance value range corresponding to the resistance value; Obtain operation information corresponding to the resistance value range, wherein different resistance value ranges correspond to different operation information; Perform the operation corresponding to the operation information.
4. The method according to claim 3, characterized in that, The execution of the operation corresponding to the operation information includes: If the operation information is display operation information, then display the prompt information corresponding to the liquid detection result; If the operation information is to disconnect the control circuit, then disconnect the first control circuit corresponding to the component, or disconnect the second control circuit of the terminal power supply and the terminal system.
5. The method according to claim 1, characterized in that, The process of obtaining the resistance value collected through the first and second wires includes: Obtain the resistance value sampling frequency; Based on the resistance value sampling frequency, the resistance values collected through the first and second wires are obtained.
6. A liquid detection device, characterized in that, It includes a sampling module, a power supply module, and a detection module, among which, The sampling module includes a first wire and a second wire, which are arranged around the component. One end of the first wire is connected to one end of the power supply module, the other end of the power supply module is connected to one end of the detection module, and the other end of the detection module is grounded and connected to one end of the second wire; The detection module is used to determine the liquid detection result at the location corresponding to the component based on the resistance value between the other end of the first wire and the other end of the second wire.
7. The liquid detection device according to claim 6, characterized in that, The components include at least one of a circuit board, a speaker, a microphone, a volume control, and a display control.
8. A liquid detection device, characterized in that, include: A resistance acquisition unit is used to acquire the resistance value collected through a first wire and a second wire, the first wire and the second wire being arranged around the component; A liquid detection unit is used to determine the liquid detection result at the location corresponding to the component based on the resistance value; The liquid detection unit, when determining the liquid detection result at the location corresponding to the component based on the resistance value, is specifically used for: If the resistance value is greater than the first resistance threshold, then the liquid detection result at the corresponding position of the component is determined to be that no liquid is present. If the resistance value is less than the second resistance threshold, then the liquid detection result at the corresponding position of the component is determined to be the presence of liquid, and the second resistance threshold is equal to or less than the first resistance threshold.
9. The apparatus according to claim 8, characterized in that, The liquid detection unit includes a collection acquisition subunit and a result confirmation subunit. The liquid detection unit is used to determine the liquid detection result corresponding to the location of the component based on the resistance value: The set acquisition subunit is used to acquire a set of resistance values, which includes liquid type, liquid volume, and resistance values corresponding to the liquid type and liquid volume. The result confirmation subunit is used to determine the liquid detection result at the location corresponding to the component based on the set of resistance values and the resistance values.
10. The apparatus according to claim 8, characterized in that, The device further includes an operation execution unit, used to obtain the resistance value range corresponding to the resistance value after determining the liquid detection result at the position corresponding to the component based on the resistance value; Obtain operation information corresponding to the resistance value range, wherein different resistance value ranges correspond to different operation information; Perform the operation corresponding to the operation information.
11. The apparatus according to claim 10, characterized in that, The operation execution unit, when performing the operation corresponding to the operation information, is specifically used for: If the operation information is display operation information, then display the prompt information corresponding to the liquid detection result; If the operation information is to disconnect the control circuit, then disconnect the first control circuit corresponding to the component, or disconnect the second control circuit of the terminal power supply and the terminal system.
12. The apparatus according to claim 8, characterized in that, The resistance value acquisition unit, when acquiring the resistance value collected through the first wire and the second wire, is specifically used for: Obtain the resistance value sampling frequency; Based on the resistance value sampling frequency, the resistance values collected through the first and second wires are obtained.
13. A terminal, comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; characterized in that, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5.
14. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-5.
15. A computer program product comprising a computer program that, when executed by a processor, implements the method according to any one of claims 1-5.