Terminal water entry detection method and device, terminal and computer readable storage medium

By combining ultrasonic sensors and a touchscreen, the system uses fingerprint detection and press duration to determine whether the terminal is submerged in water, solving the problem that traditional terminals cannot detect submersion and ensuring the reliability and safety of underwater use.

CN121996093AInactive Publication Date: 2026-05-08REALME MOBILE TELECOMM SHENZHEN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
REALME MOBILE TELECOMM SHENZHEN CO LTD
Filing Date
2024-11-05
Publication Date
2026-05-08
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional terminals cannot detect water immersion, making it impossible to determine whether the equipment has been submerged when used underwater.

Method used

By combining an ultrasonic sensor and a touchscreen, fingerprint detection information from the fingerprint pressing area and the touchscreen's reporting information are obtained. The duration of the pressing is then used to determine whether the device has been submerged in water.

Benefits of technology

It achieves accurate detection of whether the terminal is submerged in water while the screen is locked, ensuring reliability and safety when used underwater and avoiding additional resource consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121996093A_ABST
    Figure CN121996093A_ABST
Patent Text Reader

Abstract

The invention relates to a terminal water entry detection method and device, a terminal and a computer readable storage medium. The method comprises the steps of obtaining fingerprint detection information based on an ultrasonic signal transmitted by an ultrasonic sensor of a terminal when it is detected that the terminal is in a screen locking state; the fingerprint detection information is used for representing whether a fingerprint pressing result exists in a fingerprint pressing area of the terminal detected by the ultrasonic sensor; under the condition that the fingerprint detection information represents that fingerprint pressing exists in a fingerprint pressing area, detected by the ultrasonic sensor, of the terminal, the pressing duration of the fingerprint pressing is obtained, and point reporting information of a touch screen of the terminal is obtained; the report point information is used for representing whether the touch screen detects a pressing event; according to the point reporting information and the pressing duration, obtaining a water entry detection result; the water entry detection result is used for representing whether the terminal enters water or not. By adopting the method, the terminal can realize water entry detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal detection technology, and in particular to a method, apparatus, terminal, and computer-readable storage medium for detecting water immersion in a terminal. Background Technology

[0002] With the diversification of people's life scenarios, there is an increasing demand for underwater terminals, such as capturing users' diving footage through the terminal.

[0003] However, in traditional technologies, the terminal cannot detect water ingress. Summary of the Invention

[0004] This application provides a method, apparatus, terminal, and computer-readable storage medium for detecting water immersion in a terminal, enabling the terminal to perform water immersion detection.

[0005] In a first aspect, embodiments of this application provide a method for detecting water ingress into a terminal, including:

[0006] When the terminal is detected to be in a locked state, fingerprint detection information is obtained based on the ultrasonic signal emitted by the ultrasonic sensor of the terminal; the fingerprint detection information is used to characterize whether there is a fingerprint pressing result in the fingerprint pressing area of ​​the terminal detected by the ultrasonic sensor.

[0007] When the fingerprint detection information indicates that there is a fingerprint press in the fingerprint pressing area of ​​the terminal detected by the ultrasonic sensor, the press duration of the fingerprint press is obtained, and the reporting information of the touch screen of the terminal is obtained; the reporting information is used to indicate whether the touch screen has detected a press event.

[0008] Based on the reported information and the pressing duration, a water immersion detection result is obtained; the water immersion detection result is used to characterize whether the terminal has been immersed in water.

[0009] Secondly, embodiments of this application provide a terminal water ingress detection device, comprising:

[0010] The first acquisition module is used to acquire fingerprint detection information based on the ultrasonic signal emitted by the ultrasonic sensor of the terminal when the terminal is detected to be in a locked screen state; the fingerprint detection information is used to characterize whether there is a fingerprint pressing result in the fingerprint pressing area of ​​the terminal detected by the ultrasonic sensor.

[0011] The second acquisition module is used to acquire the duration of the fingerprint press when the fingerprint detection information indicates that there is a fingerprint press in the fingerprint press area of ​​the terminal detected by the ultrasonic sensor, and to acquire the reporting information of the touch screen of the terminal; the reporting information is used to indicate whether the touch screen has detected a press event.

[0012] The detection module is used to obtain water immersion detection results based on the reported information and the pressing duration; the water immersion detection results are used to characterize whether the terminal has been immersed in water.

[0013] Thirdly, embodiments of this application provide a terminal, including an ultrasonic sensor, a memory, and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of the terminal water immersion detection method as described in the first aspect.

[0014] Fourthly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the first aspect.

[0015] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the steps of the terminal water ingress detection method as described in the first aspect.

[0016] The aforementioned terminal water immersion detection method, apparatus, terminal, and computer-readable storage medium, when the terminal is detected to be in a locked state, can acquire fingerprint detection information based on the ultrasonic signal emitted by the terminal's ultrasonic sensor, indicating whether a fingerprint has been pressed in the fingerprint pressing area detected by the ultrasonic sensor. If the acquired fingerprint detection information indicates that the ultrasonic sensor has detected a fingerprint in the fingerprint pressing area of ​​the terminal, by acquiring the duration of the fingerprint press and reporting information indicating whether the terminal's touchscreen has detected the press event, the terminal can detect whether it has been immersed in water based on the acquired reporting information and the duration of the fingerprint press. This allows the terminal to achieve water immersion detection through the ultrasonic sensor and the reporting information from the touchscreen, solving the problem that traditional technologies cannot perform water immersion detection. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a flowchart of a terminal water ingress detection method in one embodiment;

[0019] Figure 2 Here is a flowchart of a terminal water ingress detection method in another embodiment;

[0020] Figure 3 Here is a flowchart of a terminal water ingress detection method in another embodiment;

[0021] Figure 4 Here is a flowchart of a terminal water ingress detection method in another embodiment;

[0022] Figure 5 Here is a flowchart of a terminal water ingress detection method in another embodiment;

[0023] Figure 6 Here is a flowchart of a terminal water ingress detection method in another embodiment;

[0024] Figure 7 This is a structural block diagram of a terminal water ingress detection device in one embodiment;

[0025] Figure 8 This is a structural block diagram of the terminal water ingress detection device in another embodiment;

[0026] Figure 9 This is a structural block diagram of the terminal water ingress detection device in another embodiment;

[0027] Figure 10 This is a structural block diagram of the terminal water ingress detection device in another embodiment;

[0028] Figure 11 This is a structural block diagram of the terminal water ingress detection device in another embodiment;

[0029] Figure 12 This is a structural block diagram of the terminal water ingress detection device in another embodiment;

[0030] Figure 13 This is a schematic diagram of the internal structure of a terminal in one embodiment. Detailed Implementation

[0031] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0032] The terminal water immersion detection method provided in this application embodiment can be applied to terminals including ultrasonic sensors and touch screen reporting functions. The terminal can be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. Portable wearable devices can be smartwatches, smart bracelets, head-mounted devices, etc.

[0033] In one embodiment, such as Figure 1As shown, a method for detecting water ingress into a terminal is provided. This embodiment illustrates the application of this method to a terminal. It is understood that this method can also be applied to a server, and further to a system including both a terminal and a server, and implemented through interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0034] S201, when the terminal is detected to be in a locked state, fingerprint detection information is obtained based on the ultrasonic signal emitted by the terminal's ultrasonic sensor; the fingerprint detection information is used to characterize whether there is a fingerprint pressing result in the fingerprint pressing area of ​​the terminal detected by the ultrasonic sensor.

[0035] It can be understood that after the ultrasonic sensor emits an ultrasonic signal to the fingerprint pressing area of ​​the terminal, if there is a fingerprint pressing in the fingerprint pressing area, the ultrasonic signal emitted to the fingerprint pressing area will generate an echo signal. Therefore, the terminal's processor can determine whether there is a fingerprint pressing in the fingerprint pressing area based on whether there is an echo signal in the ultrasonic signal emitted by the ultrasonic sensor.

[0036] In this embodiment, the terminal's processor can monitor the terminal's screen status. If the monitoring information indicates that the terminal's screen is locked, the terminal's processor can send a control command to the ultrasonic sensor. This control command controls the ultrasonic sensor to emit ultrasonic signals towards the fingerprint pressing area of ​​the terminal, and obtains fingerprint detection information through the emitted ultrasonic signals. Optionally, when the terminal detects fingerprint information through the emitted ultrasonic signals, the terminal can determine that the obtained fingerprint detection information indicates that the fingerprint pressing area of ​​the terminal, detected by the ultrasonic sensor, has a fingerprint pressing feature. Conversely, if the terminal does not detect fingerprint information through the emitted ultrasonic signals, the terminal can determine that the obtained fingerprint detection information indicates that the fingerprint pressing area of ​​the terminal, detected by the ultrasonic sensor, has no fingerprint pressing feature.

[0037] S202, when the fingerprint detection information indicates that there is a fingerprint press in the fingerprint pressing area of ​​the terminal detected by the ultrasonic sensor, the duration of the fingerprint press is obtained, and the reporting information of the terminal's touch screen is obtained; the reporting information is used to indicate whether the touch screen has detected the press event.

[0038] First, in this embodiment, it should be noted that the principle of the terminal's touch screen reporting is that if the touch screen is completely submerged in water, the touch screen will experience a circuit break, and the touch screen will not report any points when pressed; if the touch screen is not completely submerged in water, the touch screen can report points when pressed.

[0039] It should be noted that in this embodiment, if the fingerprint detection information obtained by the terminal indicates that there is a fingerprint press in the fingerprint pressing area of ​​the terminal, and the reporting information of the terminal's touch screen indicates that the touch screen has detected a press event, it is still impossible to determine whether the terminal has entered the water. This is because there may be a delay in the reporting information of the terminal's touch screen being sent to the processor even if the terminal has not entered the water, so that the reporting information of the touch screen indicates that the touch screen has not detected a press event. In this case, if the terminal is determined to be in the water based on the reporting information of the touch screen, there may be a misjudgment. Therefore, the terminal can further combine the fingerprint pressing duration in the fingerprint pressing area to obtain the water entry detection result of whether the terminal has entered the water.

[0040] In this embodiment, it is understood that when the fingerprint detection information indicates a fingerprint press in the fingerprint pressing area of ​​the terminal detected by the ultrasonic sensor, it suggests that the user may have a need to use the terminal and is attempting to wake up the terminal through the fingerprint pressing area. In this case, the terminal can further obtain the pressing duration of the fingerprint in the fingerprint pressing area to determine whether the fingerprint pressing is triggered by the user voluntarily or accidentally. Furthermore, when the terminal determines that there is a fingerprint press in the fingerprint pressing area, it can also obtain the reporting information from the terminal's touchscreen to make a preliminary judgment on whether the terminal has been submerged in water. To ensure the accuracy of the water immersion detection results, the obtained fingerprint pressing duration can be combined to further detect whether the terminal has been submerged in water.

[0041] S203, based on the reported information and the duration of pressing, obtain the water immersion detection result; the water immersion detection result is used to characterize whether the terminal has been immersed in water.

[0042] Optionally, in this embodiment, it can be preliminarily determined whether the terminal has entered water based on the reported information from the touchscreen, and further combined with the fingerprint pressing duration of the fingerprint pressing area of ​​the terminal to finally determine the water entry detection result of the terminal. It can be understood that in this embodiment, if the obtained water entry detection result indicates that the terminal has not entered water, it may mean that the terminal has not entered water at all, or that the terminal has a tendency to enter water but some areas of the terminal have not yet entered water; if the obtained water entry detection result indicates that the terminal has entered water, it means that the terminal has completely entered water.

[0043] In the aforementioned terminal water immersion detection method, when the terminal is detected to be in a locked state, fingerprint detection information can be obtained based on the ultrasonic signal emitted by the terminal's ultrasonic sensor, indicating whether there is a fingerprint press result in the fingerprint pressing area of ​​the terminal detected by the ultrasonic sensor. When the obtained fingerprint detection information indicates that the ultrasonic sensor has detected a fingerprint press in the fingerprint pressing area of ​​the terminal, by obtaining the press duration of the fingerprint and the reporting information indicating whether the terminal's touch screen has detected the press event, the terminal can autonomously detect whether it has been immersed in water based on the obtained reporting information and the press duration of the fingerprint. This allows the terminal to autonomously perform water immersion detection through the ultrasonic sensor and the reporting information of the touch screen, solving the problem that the terminal cannot perform water immersion detection in traditional technologies.

[0044] This embodiment will explain the specific implementation method for obtaining water immersion detection results based on the reporting information from the terminal's touchscreen and the pressing duration of the fingerprint pressing area on the terminal. In one embodiment, such as Figure 2 As shown, the above S203 includes:

[0045] S301, if the reporting information indicates that the touchscreen detected a pressing event, the water ingress detection result is determined to be that the terminal has not been submerged in water.

[0046] In this embodiment, the reporting principle of the terminal's touchscreen is that if the touchscreen is completely submerged in water, no report will be made if there is a fingerprint on the fingerprint pressing area of ​​the terminal. If the touchscreen is not completely submerged in water, a report can still be made if there is a fingerprint on the fingerprint pressing area of ​​the terminal. If the ultrasonic signal emitted by the terminal's ultrasonic sensor detects a fingerprint on the fingerprint pressing area of ​​the terminal, and if the report information of the terminal's touchscreen represents that the touchscreen has detected a pressing event, it means that the terminal's touchscreen can report a report if there is a fingerprint on the fingerprint pressing area of ​​the terminal, and it can be determined that the terminal has not been submerged in water.

[0047] S302, if the touchscreen does not detect a press event when the reporting information indicates that the water immersion detection result is determined based on the press duration.

[0048] In this embodiment, if the ultrasonic signal emitted by the terminal's ultrasonic sensor detects a fingerprint press on the terminal's fingerprint area, but the touchscreen's reporting information indicates that the touchscreen did not detect a press event, it could be due to the terminal being submerged in water. This could also be due to a user's accidental triggering causing the ultrasonic signal emitted by the terminal's ultrasonic sensor to detect a fingerprint press on the terminal's fingerprint area, or a delay in the generation of the touchscreen's reporting information. In such scenarios, as an optional implementation, the duration of the fingerprint press on the terminal's fingerprint area can be further used to determine whether the terminal is submerged in water. Optionally, if the duration of the fingerprint press on the terminal's fingerprint area exceeds a preset duration threshold, it indicates that the user may have pressed the terminal's fingerprint area underwater. However, based on the touchscreen's reporting principle, the touchscreen's reporting information indicates that the touchscreen did not detect a press event, thus confirming that the terminal is submerged in water.

[0049] In this embodiment, if the touchscreen's reporting information indicates that a press event has been detected, the water immersion detection result is determined to be that the terminal has not been submerged in water. If the touchscreen's reporting information indicates that no press event has been detected, the water immersion status is further determined based on the duration of the fingerprint press in the fingerprint area of ​​the terminal. This approach considers the causes of the detected fingerprint press in the terminal's fingerprint area from multiple perspectives, thereby ensuring the accuracy of the determination of whether the terminal has been submerged in water. In addition, the process of determining whether the terminal has been submerged in water utilizes the terminal's own equipment, eliminating the need to add additional equipment to the terminal and avoiding additional resource consumption when determining whether the terminal has been submerged in water.

[0050] In the scenario described above, where fingerprint detection information is obtained based on the ultrasonic signal emitted by the ultrasonic sensor emitted by the terminal, the fingerprint detection information can be obtained based on the echo signal of the ultrasonic signal emitted by the terminal's ultrasonic sensor. In one embodiment, such as... Figure 3 As shown, the above S201 includes:

[0051] S401, control the ultrasonic sensor to emit a first ultrasonic signal toward the fingerprint pressing area at a first emission frequency.

[0052] In this embodiment, the terminal can send a first control command to its own ultrasonic sensor, which controls the ultrasonic sensor to emit a first ultrasonic signal at a first transmission frequency toward the fingerprint pressing area of ​​the terminal. Further, it is understood that if a fingerprint is pressed in the fingerprint pressing area of ​​the terminal, the emitted first ultrasonic signal will generate an echo signal. Optionally, in this embodiment, to reduce the terminal's power consumption, the aforementioned first transmission frequency can be a low-frequency ultrasonic signal; that is, the terminal can use a low-frequency ultrasonic signal to scan and obtain fingerprint detection information of the fingerprint pressing area of ​​the terminal.

[0053] S402, obtain fingerprint detection information based on the first echo signal of the first ultrasonic signal.

[0054] In this embodiment, as described in the previous embodiment, if a fingerprint is pressed in the fingerprint pressing area of ​​the terminal, the emitted first ultrasonic signal will generate an echo signal; if no fingerprint is pressed in the fingerprint pressing area of ​​the terminal, the emitted first ultrasonic signal will not generate an echo signal. Therefore, in this embodiment, the terminal can obtain fingerprint detection information of the fingerprint pressing area of ​​the terminal based on the first echo signal of the first ultrasonic signal emitted by the ultrasonic sensor. Optionally, in this embodiment, if the terminal detects the first echo information of the first ultrasonic signal, it can be determined that the fingerprint detection information indicates that a fingerprint is pressed in the fingerprint pressing area of ​​the terminal; if the terminal does not detect the first echo signal of the first ultrasonic signal, it can be determined that the fingerprint detection information indicates that no fingerprint is pressed in the fingerprint pressing area of ​​the terminal.

[0055] In this embodiment, the terminal controls its own ultrasonic sensor to emit a first ultrasonic signal to the fingerprint pressing area of ​​the terminal at a first transmission frequency. The process of obtaining fingerprint detection information of the fingerprint pressing area of ​​the terminal based on the first echo signal of the first ultrasonic signal is relatively simple and easy to implement, ensuring the feasibility of obtaining fingerprint detection information of the fingerprint pressing area of ​​the terminal.

[0056] This embodiment will explain in detail the process of obtaining the fingerprint pressing duration of the fingerprint pressing area of ​​the terminal. In one embodiment, as follows: Figure 4 As shown, "obtaining the duration of fingerprint press" in S202 above includes:

[0057] S501, when there is a fingerprint pressing in the fingerprint pressing area of ​​the terminal detected by the ultrasonic sensor, the ultrasonic sensor is controlled to emit a second ultrasonic signal to the fingerprint pressing area at a second emission frequency; the second emission frequency is faster than the first emission frequency.

[0058] In this embodiment, if the fingerprint detection information indicates that a fingerprint is pressed in the fingerprint pressing area of ​​the terminal detected by the ultrasonic sensor, based on the first echo signal of the first ultrasonic signal, the terminal can send a second control command to the ultrasonic sensor. This second control command controls the ultrasonic sensor to emit a second ultrasonic signal to the fingerprint pressing area of ​​the terminal at a second transmission frequency, where the second transmission frequency is faster than the first transmission frequency. It is understood that when the terminal is in a locked state, emitting ultrasonic information at a lower first transmission frequency to obtain fingerprint detection information can reduce the terminal's power consumption. When the obtained fingerprint detection information indicates a fingerprint is pressed in the fingerprint pressing area of ​​the terminal, emitting a second ultrasonic signal at a higher second transmission frequency ensures the speed of the detected fingerprint pressing information. For example, when the terminal is in a locked state, the ultrasonic fingerprint detection of the terminal can be adjusted to a press detection mode. When no fingerprint press is detected, the fingerprint information can be detected at a frequency of once every 500ms. After a fingerprint press is detected, the frequency can be adjusted to once every 50ms, thus balancing the terminal's power consumption and the speed of fingerprint press detection.

[0059] S502, acquire the number of times the second echo signal of the second ultrasonic signal is received.

[0060] S503 obtains the press duration based on the number of receptions and the second transmission frequency.

[0061] In this embodiment, when the fingerprint detection information indicates that the ultrasonic sensor detects a fingerprint on the fingerprint pressing area of ​​the terminal, if the user presses and holds the fingerprint pressing area of ​​the terminal, the fingerprint will remain pressed continuously. Therefore, as an optional implementation, the terminal can determine the pressing duration of the fingerprint pressing area by obtaining the number of times the second echo signal of the transmitted second ultrasonic signal is received, based on the number of times the second echo signal is received and the second transmission frequency. For example, if the second transmission frequency is to transmit an ultrasonic signal to detect fingerprint information once every 50ms, and assuming that the number of times the second echo signal is received is 2, then the pressing duration of the fingerprint pressing area of ​​the terminal can be determined to be 50*2=100ms. As another example, if the second transmission frequency is to transmit an ultrasonic signal once every 50ms, then the terminal transmits a total of 20 ultrasonic signals in 1 second. If the terminal can continuously receive 20 echo signals within this 1 second, it means that the user has been continuously pressing and holding the fingerprint pressing area within this 1 second, that is, the user has been pressing and holding the fingerprint pressing area for 1 second, and the pressing duration is 1 second.

[0062] In this embodiment, when it is determined that the acquired fingerprint detection information indicates that there is a fingerprint pressing area of ​​the terminal detected by the ultrasonic sensor, the terminal controls the ultrasonic sensor to emit a second ultrasonic signal to the fingerprint pressing area of ​​the terminal at a second transmission frequency faster than the first transmission frequency. This ensures the detection speed of the fingerprint pressing area detected by the terminal. Furthermore, the process of obtaining the number of times the second echo signal of the second ultrasonic signal is received is relatively simple. Thus, the pressing duration of the fingerprint pressing area of ​​the terminal can be quickly obtained based on the number of times the second echo signal is received and the second transmission frequency, ensuring the efficiency of the terminal in obtaining the pressing duration of the fingerprint pressing area.

[0063] Even when the terminal is not submerged in water, in some scenarios, users may need to unlock it using ultrasonic waves. Therefore, in one embodiment, the above method further includes:

[0064] Step A: If it is determined that the terminal has not been submerged in water, the ultrasonic sensor is controlled to verify and compare the scanned fingerprint image with a preset reference fingerprint image to determine whether to unlock.

[0065] In this implementation, assuming the terminal is not submerged in water, in some scenarios, the user may need to unlock the terminal to enable it to function. Therefore, as an optional implementation, assuming the terminal is not submerged in water, the terminal can control an ultrasonic sensor to compare the scanned fingerprint image with a preset reference fingerprint image (such as the owner's fingerprint image) to determine whether to unlock. For example, if the scanned fingerprint image matches the preset reference fingerprint image, the terminal can determine to unlock; if the scanned fingerprint image does not match the preset reference fingerprint image, the terminal can determine not to unlock.

[0066] In this embodiment, when it is determined that the terminal has not entered the water, the ultrasonic sensor is controlled to verify and compare the scanned fingerprint image with a preset reference fingerprint image to determine whether to unlock. This ensures that the terminal can use ultrasonic waves for water entry detection and also that the terminal can use ultrasonic waves to unlock on water, thus enriching the terminal's working modes.

[0067] In scenarios where the terminal is submerged in water, users may require the terminal to be used underwater. Based on the above embodiments, in one embodiment, the method further includes:

[0068] Step B: If it is confirmed that the terminal has entered the water, switch the terminal's working mode to underwater working mode.

[0069] In this embodiment, if it is determined that the terminal has entered the water, the user may have a need to use the terminal underwater, such as taking underwater photos. In this scenario, the terminal can switch its working mode to underwater working mode to enable functions such as underwater unlocking and underwater photography, thus realizing the terminal's underwater working function. Optionally, in one embodiment, if it is determined that the terminal has entered the water, the camera application on the terminal can be activated to enable the terminal's underwater photography function.

[0070] In some implementations, when it is determined that the terminal has entered the water, the terminal's operating mode is switched to underwater operating mode. This can be achieved by adjusting some of the terminal's operating parameters, including software and hardware operating parameters, so that the terminal can adapt to the underwater operating environment.

[0071] In this embodiment, when it is determined that the terminal has entered the water, by switching the terminal's working mode to the underwater working mode, the terminal can continue to be used even when it is submerged in water, providing convenience for underwater use of the terminal and enriching the terminal's usage scenarios.

[0072] To facilitate understanding by those skilled in the art, the terminal water ingress detection method provided in this disclosure is described in detail below, such as... Figure 5 As shown, the method may include:

[0073] S1, when the terminal is detected to be in a locked state, the ultrasonic sensor is controlled to emit a first ultrasonic signal to the fingerprint pressing area at a first emission frequency.

[0074] S2, obtain fingerprint detection information based on the first echo signal of the first ultrasonic signal; the fingerprint detection information is used to characterize whether there is a fingerprint pressing result in the fingerprint pressing area of ​​the terminal detected by the ultrasonic sensor.

[0075] S3, when there is a fingerprint pressing in the fingerprint pressing area of ​​the terminal detected by the ultrasonic sensor, the ultrasonic sensor is controlled to emit a second ultrasonic signal to the fingerprint pressing area at a second emission frequency; the second emission frequency is faster than the first emission frequency.

[0076] S4, obtain the number of times the second echo signal of the second ultrasonic signal is received.

[0077] S5, based on the number of receptions and the second transmission frequency, obtain the fingerprint pressing duration of the fingerprint pressing area of ​​the terminal.

[0078] S6, obtain the touch report information of the terminal's touch screen; the touch report information is used to characterize whether the touch screen has detected a press event.

[0079] S7, if the reported information indicates that the touchscreen detected a pressing event, it is determined that the terminal has not been submerged in water.

[0080] S8, if the touchscreen does not detect a press event when the reporting information indicates that the press duration is greater than a preset duration threshold, then it is determined that the terminal has entered water.

[0081] S9, if it is determined that the terminal has not been submerged in water, controls the ultrasonic sensor to verify and compare the scanned fingerprint image with the preset reference fingerprint image to determine whether to unlock.

[0082] S10: If it is determined that the terminal has entered the water, switch the terminal's working mode to underwater working mode.

[0083] S11: If it is confirmed that the terminal has entered the water, open the camera application on the terminal.

[0084] It should be noted that the descriptions of the above steps can be found in the relevant descriptions in the above embodiments, and their effects are similar, so they will not be repeated here.

[0085] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0086] Based on the same inventive concept, this application also provides a terminal water ingress detection device for implementing the terminal water ingress detection method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more terminal water ingress detection device embodiments provided below can be found in the limitations of the terminal water ingress detection method described above, and will not be repeated here.

[0087] In one embodiment, such as Figure 6 As shown, a terminal water ingress detection device is provided, comprising: a first acquisition module 10, a second acquisition module 11, and a detection module 12, wherein:

[0088] The first acquisition module 10 is used to acquire fingerprint detection information based on the ultrasonic signal emitted by the ultrasonic sensor of the terminal when the terminal is detected to be in a locked state; the fingerprint detection information is used to characterize whether there is a fingerprint pressing result in the fingerprint pressing area of ​​the terminal detected by the ultrasonic sensor.

[0089] The second acquisition module 11 is used to acquire the duration of fingerprint pressure and the reporting information of the terminal's touch screen when the fingerprint detection information indicates that there is fingerprint pressure in the fingerprint pressure area of ​​the terminal detected by the ultrasonic sensor; the reporting information is used to indicate whether the touch screen has detected the pressure event.

[0090] The detection module 12 is used to obtain the water entry detection result based on the reported information and the duration of pressing; the water entry detection result is used to characterize whether the terminal has entered water.

[0091] The terminal water ingress detection device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0092] Based on the above embodiments, such as Figure 7 As shown, optionally, the detection module 12 includes: a first determining unit 121 and a second determining unit 122, wherein:

[0093] The first determining unit 121 is used to determine that the water entry detection result is that the terminal has not entered water when the reporting information indicates that the touch screen has detected a pressing event.

[0094] The second determining unit 122 is used to determine the water entry detection result based on the pressing duration when the reporting information indicates that the touch screen has not detected a pressing event.

[0095] The terminal water ingress detection device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0096] Based on the above embodiments, please continue to refer to Figure 7 Optionally, the second determining unit 122 is specifically used to determine the water ingress detection result as terminal water ingress if the pressing duration is greater than a preset duration threshold.

[0097] The terminal water ingress detection device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0098] Based on the above embodiments, such as Figure 8 As shown, optionally, the first acquisition module 10 includes: a first control unit 101 and a first acquisition unit 102, wherein:

[0099] The first control unit 101 is used to control the ultrasonic sensor to emit a first ultrasonic signal to the fingerprint pressing area at a first emission frequency.

[0100] The first acquisition unit 102 is used to acquire fingerprint detection information based on the first echo signal of the first ultrasonic signal.

[0101] The terminal water ingress detection device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0102] Based on the above embodiments, such as Figure 9 As shown, optionally, the second acquisition module 11 includes: a second control unit 111, a second acquisition unit 112, and a third acquisition unit 113, wherein:

[0103] The second control unit 111 is used to control the ultrasonic sensor to emit a second ultrasonic signal to the fingerprint pressing area at a second emission frequency when there is a fingerprint pressing in the fingerprint pressing area of ​​the terminal detected by the ultrasonic sensor; the second emission frequency is faster than the first emission frequency.

[0104] The second acquisition unit 112 is used to acquire the number of times the second echo signal of the second ultrasonic signal is received.

[0105] The third acquisition unit 113 is used to acquire the pressing duration based on the number of receptions and the second transmission frequency.

[0106] The terminal water ingress detection device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0107] Based on the above embodiments, such as Figure 10 As shown, optionally, the above device further includes: a control module 13, wherein:

[0108] The control module 13 is used to control the ultrasonic sensor to verify and compare the scanned fingerprint image with a preset reference fingerprint image when it is determined that the terminal has not been submerged in water, in order to determine whether to unlock.

[0109] The terminal water ingress detection device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0110] Based on the above embodiments, such as Figure 11 As shown, optionally, the above device further includes: a switching module 14, wherein:

[0111] The switching module 14 is used to switch the terminal's operating mode to underwater operating mode when it is determined that the terminal has entered the water.

[0112] The terminal water ingress detection device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0113] Based on the above embodiments, such as Figure 12As shown, optionally, the above device further includes: an opening module 15, wherein:

[0114] The activation module 15 is used to activate the camera application on the terminal when it is determined that the terminal has entered the water.

[0115] The terminal water ingress detection device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0116] Each module in the aforementioned terminal water ingress detection device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the computer device's memory as software, so that the processor can call and execute the corresponding operations of each module.

[0117] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 13 As shown, the computer device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a method for detecting water immersion in a terminal. The display unit is used to form a visually visible image and can be a display screen, projection device, or virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0118] Those skilled in the art will understand that Figure 13 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0119] In one embodiment, a terminal is provided, including an ultrasonic sensor, a memory, and a processor. The memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0120] When the terminal is detected to be in a locked state, fingerprint detection information is obtained based on the ultrasonic signal emitted by the terminal's ultrasonic sensor; the fingerprint detection information is used to characterize whether there is a fingerprint press result in the fingerprint pressing area of ​​the terminal detected by the ultrasonic sensor.

[0121] When fingerprint detection information indicates that there is a fingerprint press in the fingerprint pressing area of ​​the terminal detected by the ultrasonic sensor, the press duration of the fingerprint is obtained, and the reporting information of the terminal's touch screen is obtained; the reporting information is used to indicate whether the touch screen has detected the press event.

[0122] Based on the reported information and the duration of pressing, the water immersion detection results are obtained; the water immersion detection results are used to characterize whether the terminal has been immersed in water.

[0123] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0124] If the reported information indicates that the touchscreen detected a press event, the water immersion detection result is determined to be that the terminal has not been immersed in water;

[0125] If the touchscreen does not detect a press event when the reporting information indicates that the water immersion detection result is determined based on the press duration.

[0126] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0127] If the pressing time exceeds the preset time threshold, the water ingress detection result is determined to be water ingress at the terminal.

[0128] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0129] The ultrasonic sensor is controlled to emit a first ultrasonic signal toward the fingerprint pressing area at a first emission frequency;

[0130] Fingerprint detection information is obtained based on the first echo signal of the first ultrasonic signal.

[0131] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0132] When a fingerprint is pressed in the fingerprint pressing area of ​​the terminal detected by the ultrasonic sensor, the ultrasonic sensor is controlled to emit a second ultrasonic signal toward the fingerprint pressing area at a second transmission frequency; the second transmission frequency is faster than the first transmission frequency.

[0133] The number of times the second echo signal of the second ultrasonic signal is received;

[0134] The press duration is obtained based on the number of receptions and the second transmission frequency.

[0135] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0136] If the terminal is confirmed to be dry, the ultrasonic sensor will scan the fingerprint image and compare it with a preset reference fingerprint image to determine whether to unlock.

[0137] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0138] If it is confirmed that the terminal has entered the water, switch the terminal's operating mode to underwater operating mode.

[0139] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0140] Once it is confirmed that the device has entered the water, open the camera application on the device.

[0141] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0142] When the terminal is detected to be in a locked state, fingerprint detection information is obtained based on the ultrasonic signal emitted by the terminal's ultrasonic sensor; the fingerprint detection information is used to characterize whether there is a fingerprint press result in the fingerprint pressing area of ​​the terminal detected by the ultrasonic sensor.

[0143] When fingerprint detection information indicates that there is a fingerprint press in the fingerprint pressing area of ​​the terminal detected by the ultrasonic sensor, the press duration of the fingerprint is obtained, and the reporting information of the terminal's touch screen is obtained; the reporting information is used to indicate whether the touch screen has detected the press event.

[0144] Based on the reported information and the duration of pressing, the water immersion detection results are obtained; the water immersion detection results are used to characterize whether the terminal has been immersed in water.

[0145] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0146] If the reported information indicates that the touchscreen detected a press event, the water immersion detection result is determined to be that the terminal has not been immersed in water;

[0147] If the touchscreen does not detect a press event when the reporting information indicates that the water immersion detection result is determined based on the press duration.

[0148] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0149] If the pressing time exceeds the preset time threshold, the water ingress detection result is determined to be water ingress at the terminal.

[0150] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0151] The ultrasonic sensor is controlled to emit a first ultrasonic signal toward the fingerprint pressing area at a first emission frequency;

[0152] Fingerprint detection information is obtained based on the first echo signal of the first ultrasonic signal.

[0153] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0154] When a fingerprint is pressed in the fingerprint pressing area of ​​the terminal detected by the ultrasonic sensor, the ultrasonic sensor is controlled to emit a second ultrasonic signal toward the fingerprint pressing area at a second transmission frequency; the second transmission frequency is faster than the first transmission frequency.

[0155] The number of times the second echo signal of the second ultrasonic signal is received;

[0156] The press duration is obtained based on the number of receptions and the second transmission frequency.

[0157] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0158] If the terminal is confirmed to be dry, the ultrasonic sensor will scan the fingerprint image and compare it with a preset reference fingerprint image to determine whether to unlock.

[0159] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0160] If it is confirmed that the terminal has entered the water, switch the terminal's operating mode to underwater operating mode.

[0161] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0162] Once it is confirmed that the device has entered the water, open the camera application on the device.

[0163] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:

[0164] When the terminal is detected to be in a locked state, fingerprint detection information is obtained based on the ultrasonic signal emitted by the terminal's ultrasonic sensor; the fingerprint detection information is used to characterize whether there is a fingerprint press result in the fingerprint pressing area of ​​the terminal detected by the ultrasonic sensor.

[0165] When fingerprint detection information indicates that there is a fingerprint press in the fingerprint pressing area of ​​the terminal detected by the ultrasonic sensor, the press duration of the fingerprint is obtained, and the reporting information of the terminal's touch screen is obtained; the reporting information is used to indicate whether the touch screen has detected the press event.

[0166] Based on the reported information and the duration of pressing, the water immersion detection results are obtained; the water immersion detection results are used to characterize whether the terminal has been immersed in water.

[0167] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0168] If the reported information indicates that the touchscreen detected a press event, the water immersion detection result is determined to be that the terminal has not been immersed in water;

[0169] If the touchscreen does not detect a press event when the reporting information indicates that the water immersion detection result is determined based on the press duration.

[0170] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0171] If the pressing time exceeds the preset time threshold, the water ingress detection result is determined to be water ingress at the terminal.

[0172] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0173] The ultrasonic sensor is controlled to emit a first ultrasonic signal toward the fingerprint pressing area at a first emission frequency;

[0174] Fingerprint detection information is obtained based on the first echo signal of the first ultrasonic signal.

[0175] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0176] When a fingerprint is pressed in the fingerprint pressing area of ​​the terminal detected by the ultrasonic sensor, the ultrasonic sensor is controlled to emit a second ultrasonic signal toward the fingerprint pressing area at a second transmission frequency; the second transmission frequency is faster than the first transmission frequency.

[0177] The number of times the second echo signal of the second ultrasonic signal is received;

[0178] The press duration is obtained based on the number of receptions and the second transmission frequency.

[0179] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0180] If the terminal is confirmed to be dry, the ultrasonic sensor will scan the fingerprint image and compare it with a preset reference fingerprint image to determine whether to unlock.

[0181] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0182] If it is confirmed that the terminal has entered the water, switch the terminal's operating mode to underwater operating mode.

[0183] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0184] Once it is confirmed that the device has entered the water, open the camera application on the device.

[0185] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0186] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0187] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0188] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for detecting water ingress at a terminal, characterized in that, include: When the terminal is detected to be in a locked state, fingerprint detection information is obtained based on the ultrasonic signal emitted by the ultrasonic sensor of the terminal. The fingerprint detection information is used to characterize whether the fingerprint pressing area of ​​the terminal detected by the ultrasonic sensor has a fingerprint pressing result; When the fingerprint detection information indicates that there is a fingerprint press in the fingerprint pressing area of ​​the terminal detected by the ultrasonic sensor, the pressing duration of the fingerprint press is obtained, and the reporting information of the touch screen of the terminal is obtained. The reporting information is used to characterize whether the touchscreen has detected a press event; Based on the reported information and the duration of the pressure, the water entry detection result is obtained; The water immersion detection results are used to characterize whether the terminal has been submerged in water.

2. The method according to claim 1, characterized in that, The step of obtaining the water entry detection result based on the reported point information and the pressing duration includes: If the reported information indicates that the touchscreen has detected a press event, the water immersion detection result is determined to be that the terminal has not been immersed in water; If the reported information indicates that the touchscreen did not detect a press event, the water immersion detection result is determined based on the press duration.

3. The method according to claim 2, characterized in that, The step of determining the water entry detection result based on the pressing duration includes: If the pressing duration exceeds a preset duration threshold, then the water ingress detection result is determined to be that the terminal has been submerged in water.

4. The method according to any one of claims 1 to 3, characterized in that, The ultrasonic sensor based on the terminal emits ultrasonic signals to obtain fingerprint detection information, including: The ultrasonic sensor is controlled to emit a first ultrasonic signal toward the fingerprint pressing area at a first emission frequency; The fingerprint detection information is obtained based on the first echo signal of the first ultrasonic signal.

5. The method according to claim 4, characterized in that, The process of obtaining the duration of the fingerprint press includes: When the fingerprint detection information indicates that there is a fingerprint pressing area of ​​the terminal detected by the ultrasonic sensor, the ultrasonic sensor is controlled to emit a second ultrasonic signal to the fingerprint pressing area at a second emission frequency; the second emission frequency is faster than the first emission frequency. The number of times the second echo signal of the second ultrasonic signal is received is obtained; The pressing duration is obtained based on the number of receptions and the second transmission frequency.

6. The method according to any one of claims 1 to 3, characterized in that, The method further includes: If it is determined that the terminal has not been submerged in water, the ultrasonic sensor is controlled to verify and compare the scanned fingerprint image with a preset reference fingerprint image to determine whether to unlock.

7. The method according to any one of claims 1 to 3, characterized in that, The method further includes: If it is determined that the terminal has entered the water, the terminal's operating mode is switched to underwater operating mode.

8. The method according to any one of claims 1 to 3, characterized in that, The method further includes: If it is determined that the terminal has entered the water, the camera application on the terminal is activated.

9. A terminal water ingress detection device, characterized in that, include: The first acquisition module is used to acquire fingerprint detection information based on the ultrasonic signal emitted by the ultrasonic sensor of the terminal when the terminal is detected to be in a locked screen state; the fingerprint detection information is used to characterize whether there is a fingerprint pressing result in the fingerprint pressing area of ​​the terminal detected by the ultrasonic sensor. The second acquisition module is used to acquire the duration of the fingerprint press and the reporting information of the touch screen of the terminal when the fingerprint detection information indicates that there is a fingerprint press in the fingerprint pressing area of ​​the terminal detected by the ultrasonic sensor. The reporting information is used to characterize whether the touchscreen has detected a press event; The detection module is used to obtain the water entry detection result based on the reported point information and the pressing duration; The water immersion detection results are used to characterize whether the terminal has been submerged in water.

10. A terminal comprising an ultrasonic sensor, a memory, and a processor, wherein the memory stores a computer program, characterized in that, When the computer program is executed by the processor, the processor performs the steps of the terminal water ingress detection method as described in any one of claims 1 to 8.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 8.

12. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 8.