WO2020172771A1 - 浸水检测方法及电子设备 - Google Patents

浸水检测方法及电子设备 Download PDF

Info

Publication number
WO2020172771A1
WO2020172771A1 PCT/CN2019/076060 CN2019076060W WO2020172771A1 WO 2020172771 A1 WO2020172771 A1 WO 2020172771A1 CN 2019076060 W CN2019076060 W CN 2019076060W WO 2020172771 A1 WO2020172771 A1 WO 2020172771A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
ultrasonic
touch screen
water
environment
Prior art date
Application number
PCT/CN2019/076060
Other languages
English (en)
French (fr)
Inventor
廖松妹
刘浩东
张亮
沈晔星
杨波
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2019/076060 priority Critical patent/WO2020172771A1/zh
Priority to CN201980056930.XA priority patent/CN112639459B/zh
Publication of WO2020172771A1 publication Critical patent/WO2020172771A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N29/00Investigating or analysing materials by the use of ultrasonic, sonic or infrasonic waves; Visualisation of the interior of objects by transmitting ultrasonic or sonic waves through the object

Definitions

  • This application relates to the field of detection technology, in particular to a water immersion detection method and electronic equipment.
  • the capacitive touch screen used in electronic devices has a multi-point trigger function.
  • the triggering effect of water on the screen is similar to the triggering effect of human skin on the screen. It is easy to light up the screen and cause misoperation.
  • an electronic device is dropped into water, if it is turned on for a long time, its main board may be damaged by water.
  • the user needs to manually set the electronic device to enter the swimming mode before swimming; after the swimming, the wristband or the watch swimming mode needs to be manually turned off, which is complicated and affects the user experience.
  • the embodiments of the present application provide a water immersion detection method and an electronic device to detect the water immersion condition of the electronic device, thereby turning off the touch response function of the electronic device in time, and improving the user experience.
  • an embodiment of the present application provides a submergence detection method, the submergence detection method is used in an electronic device, the electronic device includes a touch screen, and the method includes: detecting multi-point trigger information of the touch screen of the electronic device, The multi-point trigger information includes the number of times the touch screen of the electronic device is simultaneously triggered in N different positions within the first preset time; the N is greater than or equal to 2; if it is determined that the touch screen of the electronic device is in the first preset time Assuming that the number of times that N different positions are simultaneously triggered within the time is greater than the preset value, the touch response function of the touch screen of the electronic device is turned off. In this way, it can automatically detect whether the electronic device is in the water, so that the touch response function of the electronic device can be turned off in time to prevent accidental touch.
  • the touch screen of the electronic device is re-detected. Click the trigger information. Therefore, it is possible to more accurately determine whether the electronic device is in the water through multiple detections.
  • an embodiment of the present application provides a water immersion detection method.
  • the water immersion detection method is used in an electronic device, the electronic device includes a touch screen, and the method includes: ultrasonic detection of the environment in which the electronic device is located; The descriptive features of the ultrasonic signal are extracted from the ultrasonic detection results. If it is determined that the electronic device is in the water based on the descriptive features of the ultrasonic signal and the pre-stored parameter table, the touch response function of the touch screen of the electronic device is turned off;
  • the parameter table includes the correspondence between the description characteristics of the ultrasonic signal and the environment in which the electronic device is located. As a result, the touch response function of the electronic device can be automatically turned off to prevent accidental touches.
  • the method before the ultrasonic detection of the environment in which the electronic device is located, the method further includes: detecting multi-point trigger information of the touch screen of the electronic device, where the multi-point trigger information includes all The number of times that the touch screen of the electronic device is simultaneously triggered at N different positions within the first preset time; the N is greater than or equal to 2; correspondingly; the ultrasonic detection of the environment in which the electronic device is located includes: if determined The number of times that the touch screen of the electronic device is simultaneously triggered at N different positions within the first preset time is greater than the preset value, and ultrasonic detection of the environment in which the electronic device is located is started. In this way, it can automatically detect whether the electronic device is in the water, so that the touch response function of the electronic device can be turned off in time to prevent accidental touch.
  • the touch screen of the electronic device is re-detected. Click the trigger information. Therefore, it is possible to more accurately determine whether the electronic device is in the water through multiple detections.
  • the ultrasonic detection of the environment in which the electronic device is located is stopped, and the detection is performed again. Multi-point trigger information of the touch screen of the electronic device. As a result, the ultrasonic power consumption of the electronic device can be reduced.
  • the method further includes: performing ultrasonic detection on the environment in which the electronic device is located at a preset time interval; The descriptive features of the ultrasonic signal extracted from the result and the parameter table, if it is determined that the electronic device is in water, the touch response function of the touch screen of the electronic device is kept off; if it is determined that the electronic device is not in water, it is turned on The touch response function of the touch screen of the electronic device. In this way, the touch response function of the electronic device can be automatically turned on after the electronic device leaves the water, without manual operation, and the user experience is improved.
  • an embodiment of the present application provides an electronic device, the electronic device includes: a touch screen, an ultrasonic detection device, and a processor connected to the ultrasonic detection device, the ultrasonic detection device is used to Ultrasonic detection is performed in the environment, and the ultrasonic detection result is sent to the processor; the processor is used to extract the descriptive features of the ultrasonic signal from the ultrasonic detection result; the processor is also used to: If it is determined that the electronic device is in the water, the touch response function of the touch screen of the electronic device is turned off, and the parameter table includes the description characteristics of the ultrasonic signal and the environment in which the electronic device is located. Correspondence between.
  • the processor is further configured to, if it is determined that the electronic device is not in the water according to the descriptive characteristics of the ultrasonic signal and a pre-stored parameter table, turn off the ultrasonic detection device. As a result, the ultrasonic power consumption of the electronic device can be reduced.
  • the processor is further configured to, after turning off the touch response function of the touch screen of the electronic device, control the ultrasonic detection device to perform an inspection on the environment in which the electronic device is located at preset time intervals.
  • Ultrasonic detection the description characteristics of the ultrasonic signal in the ultrasonic detection result and the parameter table, it is determined that the electronic device is in the water, then the touch response function of the touch screen of the electronic device is kept off; if it is determined that the electronic device is not Under water, the touch response function of the touch screen of the electronic device is turned on.
  • an embodiment of the present application provides an electronic device, the electronic device includes: a touch screen, a sensor provided in the screen of the electronic device, and a processor connected to the sensor; the sensor is used for detecting Multi-point trigger information of the touch screen of the electronic device, and send the multi-point trigger information to the processor; the multi-point trigger information includes N different information of the touch screen of the electronic device within a first preset time The number of times the position is triggered at the same time; the N is greater than or equal to 2; correspondingly; the processor is also used for determining the number of times the touch screen of the electronic device is triggered at the same time in N different positions within the first preset time If it is greater than the preset value, the touch response function of the touch screen of the electronic device is turned off.
  • the processor is further configured to: if the number of times that the touch screen of the electronic device is triggered at multiple points within the first preset time is less than or equal to the preset value, re-control The sensor detects multi-point trigger information of the touch screen of the electronic device.
  • an embodiment of the present application provides an electronic device, the electronic device includes: a touch screen, an ultrasonic detection device, and a processor connected to the ultrasonic detection device, the ultrasonic detection device is used for the electronic equipment Ultrasonic detection is performed in the environment, and the ultrasonic detection result is sent to the processor; the processor is used to extract the descriptive features of the ultrasonic signal from the ultrasonic detection result; the processor is also used to: If it is determined that the electronic device is in the water, the touch response function of the touch screen of the electronic device is turned off, and the parameter table includes the description characteristics of the ultrasonic signal and the environment in which the electronic device is located. Correspondence between.
  • the electronic device further includes: a sensor provided in a screen of the electronic device, the sensor is connected to the processor; the sensor is used to detect the touch screen of the electronic device Multi-point trigger information, and send the multi-point trigger information to the processor; the multi-point trigger information includes the number of times the touch screen of the electronic device is simultaneously triggered in N different positions within a first preset time; The N is greater than or equal to 2; correspondingly; the processor is further configured to, if it is determined that the number of times the touch screen of the electronic device is simultaneously triggered at N different positions within the first preset time is greater than a preset value, control The ultrasonic detection device starts ultrasonic detection of the environment in which the electronic device is located.
  • the processor is further configured to: if the number of times that the touch screen of the electronic device is triggered at multiple points within the first preset time is less than or equal to the preset value, re-control The sensor detects multi-point trigger information of the touch screen of the electronic device.
  • the processor is further configured to: if it is determined that the electronic device is not in the water according to the descriptive characteristics of the ultrasonic signal and a pre-stored parameter table, turn off the ultrasonic detection device, and restart Control the sensor to detect multi-point trigger information of the touch screen of the electronic device.
  • the processor is further configured to, after turning off the touch response function of the touch screen of the electronic device, control the ultrasonic detection device to perform an inspection on the environment in which the electronic device is located at preset time intervals.
  • Ultrasonic detection according to the descriptive features of the ultrasonic signal extracted from the ultrasonic detection result and the parameter table, if it is determined that the electronic device is in the water, the touch response function of the touch screen of the electronic device is kept closed; if it is determined that the If the electronic device is not in the water, the touch response function of the touch screen of the electronic device is turned on.
  • the ultrasonic detection device includes: an ultrasonic transmitting unit and an ultrasonic receiving unit.
  • the ultrasonic transmitting unit is a speaker
  • the ultrasonic receiving unit is a microphone
  • the descriptive characteristics of the ultrasonic signal include: ultrasonic waveform, ultrasonic frequency, or ultrasonic wave amplitude.
  • FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
  • FIG. 2 is a schematic flow chart of a water immersion detection method provided by an embodiment of the application
  • FIG. 3 is a schematic structural diagram of an ultrasonic detection device provided by an embodiment of the application.
  • FIG. 4 is a schematic structural diagram of a smart watch provided by an embodiment of the application.
  • FIG. 5 is a schematic diagram of a usage scenario of a smart watch provided by an embodiment of the application.
  • FIG. 6 is a schematic flowchart of another water immersion detection method provided by an embodiment of the application.
  • FIG. 7 is a schematic structural diagram of another electronic device provided by an embodiment of the application.
  • FIG. 8 is a schematic flowchart of another water immersion detection method provided by an embodiment of the application.
  • FIG. 9 is a schematic structural diagram of another electronic device provided by an embodiment of the application.
  • FIG. 10 is a schematic flow chart of another water immersion detection method provided by an embodiment of the application.
  • FIG. 11 is a schematic flowchart of another water immersion detection method provided by an embodiment of the application.
  • the embodiment of the application provides an electronic device.
  • the electronic device has, for example, a waterproof function.
  • the electronic device may be a smart wearable device or a mobile phone.
  • the smart wearable device may include a smart bracelet or a smart watch.
  • the electronic device includes a touch screen with a multi-point trigger function.
  • the touch screen may be, for example, a capacitive touch screen.
  • the capacitive touch screen works by using current induction of the human body. For example, it can be a four-layer composite glass screen.
  • the inner surface and the interlayer of the glass screen are each coated with a layer of indium tin oxide (ITO), the outermost layer is a thin layer of silica glass protective layer, and the interlayer ITO coating
  • ITO indium tin oxide
  • the layer is used as the working surface, four electrodes are drawn on the four corners, and the inner ITO is a shielding layer to ensure a good working environment.
  • the capacitor is a direct conductor, so the finger draws a small current from the contact point. This current flows from the electrodes on the four corners of the touch screen, and the current flowing through these four electrodes is proportional to the distance from the finger to the four corners.
  • the position of the touch point can be obtained by accurately calculating the ratio of these four currents.
  • the triggering effect of the impact of water on the touch screen is similar to the triggering effect of human skin on the screen, and it is easy to light up the screen.
  • FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of this application.
  • the electronic device 10 includes a touch screen 2, a processor 101 and an ultrasonic detection device 102.
  • the ultrasonic detection device 102 is used to perform ultrasonic detection on the environment in which the electronic device is located, and send the ultrasonic detection result to the processor 101.
  • the processor 101 is configured to extract descriptive features of the ultrasonic signal from the ultrasonic detection result.
  • the processor 101 is further configured to: if it is determined that the electronic device is in the water according to the description characteristics of the ultrasonic signal and the pre-stored parameter table, turn off the touch response function of the touch screen of the electronic device.
  • FIG. 2 is a schematic flowchart of a water immersion detection method provided by an embodiment of the application.
  • the water immersion detection method shown in FIG. 2 is used for the method shown in FIG. Electronic equipment.
  • the water immersion detection method includes the following steps:
  • the ultrasonic detection device performs ultrasonic detection on the environment where the electronic equipment is located.
  • FIG. 3 is a schematic structural diagram of an ultrasonic detection device provided by an embodiment of the application.
  • the ultrasonic detection device 102 includes: an ultrasonic transmitting unit 11 and an ultrasonic receiving unit 12, wherein both the ultrasonic transmitting unit 11 and the ultrasonic receiving unit 12 are connected to the processor 101.
  • the ultrasonic transmitting unit 11 is used to transmit ultrasonic signals to the environment in which the electronic device is located
  • the ultrasonic receiving unit 12 is used to receive the direct or reflected ultrasonic signals sent by the ultrasonic transmitting unit, and send the received ultrasonic signals to the processor 101 , So as to realize the ultrasonic detection of the environment in which the electronic equipment is located.
  • the electronic device may be a smart watch
  • FIG. 4 is a schematic structural diagram of a smart watch provided in an embodiment of the application.
  • the smart watch 1 includes a touch screen 2, an ultrasonic transmitting unit 11, and an ultrasonic receiving unit 12.
  • the ultrasonic transmitting unit 11 may be, for example, a speaker or a transducer provided on an electronic device
  • the ultrasonic receiving unit 12 may be, for example, It may be a microphone provided on an electronic device, and a waterproof membrane is attached to the microphone and the speaker, for example.
  • the speaker of the electronic device can be reused as the ultrasonic transmitting unit, and the microphone can be used as the ultrasonic receiving unit, without adding new components, which is convenient for production.
  • Fig. 5 is a schematic diagram of a usage scenario of a smart watch provided by an embodiment of the application.
  • the ultrasonic signal can propagate a preset distance, for example, when the distance from the ultrasonic transmitting position exceeds the preset distance, the ultrasonic signal will not be received.
  • the propagation distance of the ultrasonic signal sent by the ultrasonic transmitter unit 11 of the smart watch is greater than the linear distance between the ultrasonic transmitter unit 11 and the ultrasonic receiver unit 12, so that the ultrasonic receiver unit can receive the ultrasonic signal, and the ultrasonic The signal propagation distance is less than the distance between the user wearing the smart watch and other users wearing the smart watch. Therefore, when different users wear the smart watch for swimming, even if multiple smart watches send ultrasonic signals at the same time, they will not Interfere with each other.
  • the preset distance D may be 20 cm, for example.
  • the processor extracts the description feature of the ultrasonic signal from the ultrasonic detection result, and determines that the electronic device is located in the water according to the description feature of the ultrasonic signal and a pre-stored parameter table.
  • the ultrasonic receiving unit 12 can receive the ultrasonic signal passing through the environment of the electronic device as the ultrasonic detection result.
  • the processor of the electronic device can extract the descriptive feature of the ultrasonic signal from the ultrasonic detection result.
  • the descriptive feature of the ultrasonic signal can be extracted, for example, including: Obtain the waveform characteristics, frequency value, and amplitude value from the ultrasonic detection results.
  • the electronic device 10 further includes a memory 103, which may be ROM or other types of static storage devices that can store static information and instructions, RAM or other types of dynamic storage devices that can store information and instructions, or EEPROM, CD-ROM or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store instructions or data structures The form of desired program code and any other medium that can be accessed by the computer, but not limited to this.
  • the memory 103 may exist independently and is connected to the processor 101 through a communication bus.
  • the memory 103 may also be integrated with the processor 101. Among them, the memory 103 is used to store a software program for executing the solution of the present application, and the processor 101 controls the execution.
  • the memory 103 also stores a parameter table, etc., and the processor 101 can run or execute a software program stored in the memory 103 and call the parameter table stored in the memory 103 to determine the environment of the electronic device.
  • the parameter table includes the corresponding relationship between each description feature of the ultrasonic signal and the environment in which the electronic device is located. For example, an environment in which the electronic device is located may correspond to one or more description characteristics of the ultrasonic signal.
  • the processor 101 receives the ultrasonic detection result, it can determine the environment where the current electronic device is located according to the descriptive characteristics of one or more ultrasonic signals in the ultrasonic detection result.
  • the description characteristics of the ultrasonic signal can specifically be: ultrasonic wave, ultrasonic frequency, and ultrasonic amplitude.
  • the environment of the electronic device can be, for example, water, air, and other environments.
  • the environment of the electronic device can be expressed as 00 , 01, 10, can also be 1, 2, 3, or A, B, C, etc.
  • the corresponding relationship between the ultrasonic signal description feature of the parameter table and the environment in which the electronic device is located can be obtained by training using a convolutional neural network. First, a large number of ultrasonic signals passing through the environment of the electronic device in water, air, and other scenes can be collected, and description features can be extracted from the ultrasonic signals, and the corresponding relationship between each extracted description feature and the environment of the device can be determined. Then, a convolution operation is performed on the corresponding relationship between the description feature and the environment of the electronic device through the convolutional neural network to establish a model, and the relevant parameters in the model are extracted to establish the parameter table.
  • the processor turns off the touch response function of the touch screen of the electronic device.
  • the touch screen of the electronic device works by using the current induction of the human body, and can respond to the user's trigger.
  • the impact effect of water on the touch screen is similar to the user's touch.
  • the touch response function of the touch screen of the electronic device When the touch response function of the touch screen of the electronic device is turned on, the touch screen of the electronic device will respond to the user's touch or the impact of water flow.
  • the touch response function of the touch screen of the electronic device When the touch response function of the touch screen of the electronic device is turned off, the touch screen of the electronic device will not respond to the user's trigger or the impact of the water flow.
  • the touch response function of the touch screen of an electronic device especially a watch or a bracelet, is turned on.
  • the processor 101 can turn off the touch response function of the touch screen of the electronic device when it is determined that the electronic device is located in the water.
  • turning off the touch response function of the touch screen of the electronic device includes: the processor 101 controls the sensor in the touch screen of the electronic device not to collect data, or controls the touch screen to send trigger information to the processor 101 after receiving a user's trigger or the impact of water flow The processor 101 does not respond to the user's trigger or the impact of the water flow, thereby preventing the water from erroneously triggering the touch screen of the electronic device.
  • the electronic device can also be turned off.
  • the water immersion detection method provided by the embodiments of the present application can determine the environment of the electronic device through ultrasonic detection.
  • the touch response function of the touch screen of the electronic device can be turned off in time, thereby avoiding water's error on the touch screen of the electronic device. Triggered, the process does not require manual operation, which improves user experience.
  • the water immersion detection method further includes, for example, if the processor determines that the electronic device is not in the water according to the descriptive characteristics of the ultrasonic signal and the pre-stored parameter table, stopping the ultrasonic detection of the environment in which the electronic device is located.
  • the electronic device When the user wears the electronic device to wash his hands, bathe, swim or dive, the electronic device may be in the water for a period of time and not in the water for a period of time.
  • the user finishes washing his hands, bathing, swimming or diving he can choose to stop the environment where the electronic device is located Ultrasonic detection is performed to ensure that the user has finished bathing or swimming, and the time that the user is not in the water is detected to at least reach a first threshold.
  • the first threshold may be, for example, a cycle of a swimming action or a bathing action of the user.
  • Turning off the ultrasonic detection device based on the descriptive characteristics of the ultrasonic signal and the pre-stored parameter table determines that the electronic device is not in the water. It may also include: determining that the electronic device is not in the water for the first time according to the descriptive characteristics of the ultrasonic signal and the pre-stored parameter table When a threshold is reached, the ultrasonic detection of the environment in which the electronic device is located is stopped.
  • the ultrasonic detection of the environment in which the electronic device is located can be stopped, which can solve the problem of excessive power consumption of the ultrasonic detection.
  • FIG. 6 is a schematic flow chart of another water immersion detection method provided by an embodiment of the application. As shown in Figure 6, after turning off the touch response function of the touch screen of the electronic device, the water immersion detection method further includes:
  • the processor controls the ultrasonic detection device to perform ultrasonic detection on the environment where the electronic device is located at a preset time interval.
  • the preset time interval can be, for example, 1s, 1min, or other values.
  • the embodiment of the present application does not limit the specific value of the preset time interval.
  • the time required for the user to wash hands, bathe, swim, or dive is different, so that the electronic device is detected in time.
  • those skilled in the art can set a suitable time interval according to the actual situation, which all fall within the protection scope of this application.
  • Ultrasonic detection of the environment in which the electronic device is located at preset time intervals can reduce ultrasonic power consumption compared with always performing ultrasonic detection.
  • the processor extracts the descriptive characteristics of the ultrasonic signal from the ultrasonic detection result, and determines that the electronic device is not in the water according to the descriptive characteristics and parameter table of the ultrasonic signal.
  • the descriptive features of the ultrasonic signal extracted from the ultrasonic detection result correspond to the air or other environments in the parameter table, it can be determined that the electronic device is not in the water, and the user is considered to have finished washing hands, bathing, swimming or diving.
  • the processor enables the touch response function of the touch screen of the electronic device.
  • the touch response function of the touch screen of the electronic device can be automatically turned on without manual operation by the user, which improves the user experience.
  • the water immersion detection method provided by the embodiment of the present application can automatically start the touch response function of the touch screen of the electronic device after the electronic device leaves the water, without manual operation, and improves the user experience.
  • the immersion detection method further includes: if it is determined that the electronic device is located in the water according to the descriptive characteristics and parameter table of the ultrasonic signal, maintaining the state of turning off the touch response function of the touch screen of the electronic device.
  • the descriptive characteristics of the ultrasonic signal extracted from the ultrasonic detection result correspond to the state of the water in the parameter table, it can be determined that the electronic device is still in the water, and the user is considered to be washing hands, bathing, swimming or diving, and the touch screen of the electronic device can be kept closed. The status of the touch response function.
  • FIG. 7 is a schematic structural diagram of another electronic device provided by an embodiment of the application.
  • the electronic device 10 includes: a touch screen 2, a memory 103, a processor 101, and a sensor 104 provided in the touch screen 2 of the electronic device.
  • the sensor 104 is used to detect the multi-point trigger information of the touch screen of the electronic device, and send the multi-point trigger information to the processor 101.
  • the multi-point trigger information includes the number of times the touch screen of the electronic device is simultaneously triggered at N different positions within the first preset time, and N is greater than or equal to 2.
  • the processor 101 is further configured to turn off the touch screen of the electronic device 10 if it is determined that the number of times the touch screen of the electronic device is simultaneously triggered at N different positions within the first preset time is greater than the preset value pre-stored in the memory 103 The touch response function.
  • the touch screen may be, for example, a capacitive touch screen, and the capacitive touch screen can detect the multi-point trigger information.
  • the processor is further configured to, if the number of times that the touch screen of the electronic device is triggered by multiple points within the first preset time is less than or equal to the preset value, re-control the sensor to detect the multiple points of the touch screen of the electronic device. Click the trigger information.
  • FIG. 8 is a schematic flowchart of another water immersion detection method provided by an embodiment of the application.
  • the water immersion detection method in FIG. 8 is used for the electronic equipment shown in FIG. 7.
  • the water immersion detection method includes the following steps:
  • the sensor detects multi-point trigger information of the touch screen of the electronic device.
  • the multi-point trigger information includes the number of times the touch screen of the electronic device is simultaneously triggered at N different positions within the first preset time; N is greater than or equal to 2.
  • the touch response function of the touch screen of the electronic device is often turned on, and the multi-point trigger information of the touch screen of the electronic device can be detected at any time.
  • the first preset time can be 100ms, 1s or 2s; the N different positions can be random positions or fixed positions. This application does not limit the specific values of the location information at the first preset time and N different locations, and those skilled in the art can sample and obtain them according to actual conditions, and these all fall within the protection scope of this application.
  • the processor determines that the number of times the touch screen of the electronic device is simultaneously triggered at N different positions within a first preset time is greater than a preset value.
  • the multi-point trigger frequency of the touch screen of the electronic device by the user is less than the multi-point trigger frequency of the touch screen of the electronic device by water. Therefore, when the touch screen of the electronic device is triggered at the same time in N different positions within the first preset time If the number of times is greater than the preset value, it can be determined that the electronic device is located in the water.
  • the preset value can be 1, 2 or 6. This application does not limit the specific value of the preset value, and those skilled in the art can sample and obtain it according to actual conditions, and these all fall within the protection scope of this application.
  • the processor turns off the touch response function of the touch screen of the electronic device.
  • the touch response function of the touch screen of the electronic device can be turned off, thereby preventing the water from erroneously triggering the touch screen of the electronic device.
  • the water immersion detection method provided by the embodiments of the present application can automatically detect whether the electronic device is in the water by detecting the multi-point trigger information of the touch screen of the electronic device, so that the touch response function of the electronic device can be turned off in time to prevent accidental touch.
  • the water immersion detection method may further include: if it is determined that the number of times the touch screen of the electronic device is triggered by multiple points within the first preset time is less than or equal to a preset value, redetecting the multi-point trigger information of the touch screen of the electronic device.
  • the multi-point trigger information belongs to the user.
  • the normal trigger operation therefore, it is possible to maintain the state of enabling the touch response function of the touch screen of the electronic device, and re-detect the multi-point trigger information of the touch screen of the electronic device.
  • the water immersion detection method provided in the embodiments of the present application can continuously detect the multi-point trigger information of the touch screen of the electronic device, and can more accurately determine whether the electronic device is in the water.
  • FIG. 9 is a schematic structural diagram of another electronic device provided by an embodiment of the application.
  • the electronic device 10 includes: a touch screen 2, a memory 103, an ultrasonic detection device 102, a processor 101, and a sensor 104 provided in the touch screen 2 of the electronic device.
  • FIG. 10 is a schematic flowchart of another water immersion detection method provided by an embodiment of the application.
  • the water immersion detection method shown in FIG. 10 is used in the electronic device shown in FIG. 9.
  • the water immersion detection method includes the following steps:
  • the sensor detects multi-point trigger information of the touch screen of the electronic device.
  • the multi-point trigger information includes the number of times the touch screen of the electronic device is simultaneously triggered at N different positions within the first preset time; N is greater than or equal to 2.
  • the processor determines that the number of times the touch screen of the electronic device is simultaneously triggered at N different positions within a first preset time is greater than a preset value.
  • the multi-point trigger information of the touch screen of the electronic device is detected again. Therefore, it is possible to more accurately determine whether the electronic device is in the water through multiple detections.
  • the ultrasonic detection device performs ultrasonic detection on the environment where the electronic equipment is located;
  • the processor extracts the description feature of the ultrasonic signal from the ultrasonic detection result, and determines that the electronic device is located in the water according to the description feature of the ultrasonic signal and a pre-stored parameter table.
  • the parameter table includes the correspondence between the ultrasonic signal description characteristics and the environment in which the electronic device is located.
  • the processor turns off the touch response function of the touch screen of the electronic device.
  • the ultrasonic detection device is turned off, and the multi-point trigger information of the touch screen of the electronic device is detected again. As a result, the ultrasonic power consumption of the electronic device can be reduced.
  • the immersion detection method provided in the embodiments of the application can automatically detect the multi-point trigger information of the touch screen of the electronic device, and then trigger the ultrasonic detection of the environment in which the electronic device is located according to the multi-point trigger information, and can accurately determine the immersion condition of the electronic device Therefore, the touch response function of the touch screen of the electronic device can be turned off in time to prevent accidental touch.
  • FIG. 11 is a schematic flowchart of another water immersion detection method provided by an embodiment of the application. As shown in FIG. 11, after the touch response function of the touch screen of the electronic device is turned off, the water immersion detection method further includes:
  • the processor controls the ultrasonic detection device to perform ultrasonic detection on the environment where the electronic device is located at a preset time interval.
  • the processor extracts the description feature of the ultrasonic signal from the ultrasonic detection result, and determines that the electronic device is not in the water according to the description feature of the ultrasonic signal and a pre-stored parameter table.
  • the processor enables the touch response function of the touch screen of the electronic device.
  • the touch response function of the touch screen of the electronic device is kept turned off.

Landscapes

  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种浸水检测方法,所述浸水检测方法用于电子设备,所述电子设备包括触摸屏,所述方法包括:对所述电子设备所处环境进行超声波检测;从超声波检测结果中提取超声波信号的描述特征,若根据所述超声波信号的描述特征和预先存储的参数表判断所述电子设备位于水中,则关闭所述电子设备的触摸屏的触摸响应功能;其中,所述参数表包括所述超声波信号描述特征与所述电子设备所处环境之间的对应关系。由此,当电子设备浸水时,能够自动关闭电子设备的触摸响应功能,防止误触。

Description

浸水检测方法及电子设备 技术领域
本申请涉及检测技术领域,尤其涉及一种浸水检测方法及电子设备。
背景技术
目前,大部分的电子设备都具有防水特性,用户在洗手、洗澡、游泳或者潜水时可以不用取下智能穿戴设备。
但是,电子设备采用的电容式触摸屏具有多点触发功能,当电子设备浸水时,水对屏幕的触发效应类似于人体皮肤对屏幕的触发效应,很容易点亮屏幕,从而导致误操作,除此之外,当电子设备掉入水中时,如果长时间开启,可能会导致其主板浸水损坏。
因此,用户在游泳之前,需要手动设定电子设备进入游泳模式;游泳结束后,需要手动关闭手环或手表游泳模式,操作较为复杂,影响用户体验。
发明内容
本申请实施例提供一种浸水检测方法及电子设备,以检测电子设备的浸水情况,从而及时关闭电子设备的触摸响应功能,提高了用户体验。
为达到上述目的,本申请的实施例采用如下技术方案:
第一方面,本申请实施例提供一种浸水检测方法,所述浸水检测方法用于电子设备,所述电子设备包括触摸屏,所述方法包括:检测所述电子设备的触摸屏的多点触发信息,所述多点触发信息包括所述电子设备的触摸屏在第一预设时间内N个不同位置同时被触发的次数;所述N大于或等于2;若确定所述电子设备的触摸屏在第一预设时间内N个不同位置同时被触发的次数大于预设值,则关闭所述电子设备的触摸屏的触摸响应功能。由此,能够自动检测电子设备是否在水中,从而可以及时关闭电子设备的触摸响应功能,防止误触。
在可选的实现方式中,若所述电子设备的触摸屏在所述第一预设时间内多点被触发的次数小于或等于所述预设值,则重新检测所述电子设备的触摸屏的多点触发信息。由此,通过多次检测能够更加准确的判断电子设备是否在水中。
第二方面,本申请实施例提供一种浸水检测方法,所述浸水检测方法用于电子设备,所述电子设备包括触摸屏,所述方法包括:对所述电子设备所处环境进行超声波检测;从超声波检测结果中提取超声波信号的描述特征,若根据所述超声波信号的描述特征和预先存储的参数表判断所述电子设备位于水中,则关闭所述电子设备的触摸屏的触摸响应功能;其中,所述参数表包括所述超声波信号描述特征与所述电子设备所处环境之间的对应关系。由此,能够自动关闭电子设备的触摸响应功能,防止误触。
在可选的实现方式中,所述对所述电子设备所处环境进行超声波检测之前,所述方法还包括:检测所述电子设备的触摸屏的多点触发信息,所述多点触发信息包括所述电子设备的触摸屏在第一预设时间内N个不同位置同时被触发的次数;所述N大于或等于2;相应的;所述对所述电子设备所处环境进行超声波检测包括:若确定所述 电子设备的触摸屏在第一预设时间内N个不同位置同时被触发的次数大于预设值,开始对所述电子设备所处环境进行超声波检测。由此,能够自动检测电子设备是否在水中,从而可以及时关闭电子设备的触摸响应功能,防止误触。
在可选的实现方式中,若所述电子设备的触摸屏在所述第一预设时间内多点被触发的次数小于或等于所述预设值,则重新检测所述电子设备的触摸屏的多点触发信息。由此,通过多次检测能够更加准确的判断电子设备是否在水中。
在可选的实现方式中,若根据所述超声波信号的描述特征和预先存储的参数表确定所述电子设备不在水中,则停止对所述电子设备所处环境进行超声波检测,并重新检测所述电子设备的触摸屏的多点触发信息。由此,能够降低电子设备的超声波功耗。
在可选的实现方式中,所述关闭所述电子设备的触摸屏的触摸响应功能后,所述方法还包括:以预设时间间隔对所述电子设备所处的环境进行超声波检测;根据超声波检测结果中提取的超声波信号的描述特征和所述参数表,确定所述电子设备位于水中,则保持关闭所述电子设备的触摸屏的触摸响应功能的状态;若确定所述电子设备不在水中,则开启所述电子设备的触摸屏的触摸响应功能。由此,能够在电子设备离开水之后自动开启电子设备的触摸响应功能,无需人工操作,提高了用户体验。
第三方面,本申请实施例提供一种电子设备,所述电子设备包括:触摸屏,超声波检测装置,以及与所述超声波检测装置连接的处理器,所述超声波检测装置用于对所述电子设备所处环境进行超声波检测,并将超声波检测结果发送给所述处理器;所述处理器用于从超声波检测结果中提取超声波信号的描述特征;所述处理器还用于,若根据所述超声波信号的描述特征和预先存储的参数表判断所述电子设备位于水中,则关闭所述电子设备的触摸屏的触摸响应功能,所述参数表包括所述超声波信号描述特征与所述电子设备所处环境之间的对应关系。
在可选的实现方式中,所述处理器还用于,若根据所述超声波信号的描述特征和预先存储的参数表确定所述电子设备不在水中,则关闭所述超声波检测装置。由此,能够降低电子设备的超声波功耗。
在可选的实现方式中,所述处理器还用于,关闭所述电子设备的触摸屏的触摸响应功能后,控制所述超声波检测装置以预设时间间隔对所述电子设备所处的环境进行超声波检测;超声波检测结果中的超声波信号的描述特征和所述参数表,确定所述电子设备位于水中,则保持关闭所述电子设备的触摸屏的触摸响应功能的状态;若确定所述电子设备不在水中,则开启所述电子设备的触摸屏的触摸响应功能。
第四方面,本申请实施例提供一种电子设备,所述电子设备包括:触摸屏,设置在所述电子设备的屏幕中的传感器,以及与所述传感器连接的处理器;所述传感器用于检测所述电子设备的触摸屏的多点触发信息,并将所述多点触发信息发送给所述处理器;所述多点触发信息包括所述电子设备的触摸屏在第一预设时间内N个不同位置同时被触发的次数;所述N大于或等于2;相应的;所述处理器还用于,若确定所述电子设备的触摸屏在第一预设时间内N个不同位置同时被触发的次数大于预设值,则关闭所述电子设备的触摸屏的触摸响应功能。
在可选的实现方式中,所述处理器还用于,若所述电子设备的触摸屏在所述第一预设时间内多点被触发的次数小于或等于所述预设值,则重新控制所述传感器检测所 述电子设备的触摸屏的多点触发信息。
第五方面,本申请实施例提供一种电子设备,所述电子设备包括:触摸屏,超声波检测装置,以及与所述超声波检测装置连接的处理器,所述超声波检测装置用于对所述电子设备所处环境进行超声波检测,并将超声波检测结果发送给所述处理器;所述处理器用于从超声波检测结果中提取超声波信号的描述特征;所述处理器还用于,若根据所述超声波信号的描述特征和预先存储的参数表判断所述电子设备位于水中,则关闭所述电子设备的触摸屏的触摸响应功能,所述参数表包括所述超声波信号描述特征与所述电子设备所处环境之间的对应关系。
在可选的实现方式中,所述电子设备还包括:设置在所述电子设备的屏幕中的传感器,所述传感器与所述处理器连接;所述传感器用于检测所述电子设备的触摸屏的多点触发信息,并将所述多点触发信息发送给所述处理器;所述多点触发信息包括所述电子设备的触摸屏在第一预设时间内N个不同位置同时被触发的次数;所述N大于或等于2;相应的;所述处理器还用于,若确定所述电子设备的触摸屏在第一预设时间内N个不同位置同时被触发的次数大于预设值,则控制所述超声波检测装置开始对所述电子设备所处环境进行超声波检测。
在可选的实现方式中,所述处理器还用于,若所述电子设备的触摸屏在所述第一预设时间内多点被触发的次数小于或等于所述预设值,则重新控制所述传感器检测所述电子设备的触摸屏的多点触发信息。
在可选的实现方式中,所述处理器还用于,若根据所述超声波信号的描述特征和预先存储的参数表确定所述电子设备不在水中,则关闭所述超声波检测装置,并则重新控制所述传感器检测所述电子设备的触摸屏的多点触发信息。
在可选的实现方式中,所述处理器还用于,关闭所述电子设备的触摸屏的触摸响应功能后,控制所述超声波检测装置以预设时间间隔对所述电子设备所处的环境进行超声波检测;根据超声波检测结果中提取的超声波信号的描述特征和所述参数表,若确定所述电子设备位于水中,则保持关闭所述电子设备的触摸屏的触摸响应功能的状态;若确定所述电子设备不在水中,则开启所述电子设备的触摸屏的触摸响应功能。
在可选的实现方式中,所述超声波检测装置包括:超声波发送单元和超声波接收单元。
在可选的实现方式中,所述超声波发送单元为扬声器,所述超声波接收单元为麦克风。由此,能够复用电子设备的扬声器和麦克风,无需额外增加新的部件,便于生产。
在可选的实现方式中,所述超声波信号的描述特征包括:超声波波形、超声波频率或超声波波幅。
本申请的这些方面或其他方面在以下实施例的描述中会更加简明易懂。
附图说明
图1为本申请实施例提供的一种电子设备的结构示意图;
图2为本申请实施例提供的一种浸水检测方法的流程示意图;
图3为本申请实施例提供的超声波检测装置的结构示意图;
图4为本申请实施例提供的智能手表的结构示意图;
图5为本申请实施例提供的智能手表的使用场景示意图;
图6为本申请实施例提供的另一种浸水检测方法的流程示意图;
图7为本申请实施例提供的另一种电子设备的结构示意图;
图8为本申请实施例提供的另一种浸水检测方法的流程示意图;
图9为本申请实施例提供的另一种电子设备的结构示意图;
图10为本申请实施例提供的另一种浸水检测方法的流程示意图;
图11为本申请实施例提供的另一种浸水检测方法的流程示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请的描述中,为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。
本申请实施例提供一种电子设备。该电子设备例如具有防水功能,该电子设备可以是智能穿戴设备或手机,智能穿戴设备可以包括:智能手环或智能手表等。该电子设备包括具有多点触发功能的触摸屏,该触摸屏例如可以是电容式触摸屏,电容式触摸屏是利用人体的电流感应进行工作的。例如可以是一块四层复合玻璃屏,玻璃屏的内表面和夹层各涂有一层氧化铟锡(Indium tin oxide,简写为ITO),最外层是一薄层矽土玻璃保护层,夹层ITO涂层作为工作面,四个角上引出四个电极,内层ITO为屏蔽层以保证良好的工作环境。当用户手指触摸在金属层上时,由于人体电场,用户和触摸屏表面形成以一个耦合电容,对于高频电流来说,电容是直接导体,于是手指从接触点吸走一个很小的电流。这个电流分从别触摸屏的四角上的电极中流出,并且流经这四个电极的电流与手指到四角的距离成正比,通过对这四个电流比例的精确计算,得出触摸点的位置。当电子设备浸水时,水对触摸屏的冲击产生的触发效应类似于人体皮肤对屏幕的触发效应,很容易点亮屏幕。
图1为本申请实施例提供的一种电子设备的结构示意图。如图1所示,电子设备10包括:触摸屏2、处理器101和超声波检测装置102,超声波检测装置102用于对电子设备所处环境进行超声波检测,并将超声波检测结果发送给处理器101。处理器101用于从超声波检测结果中提取超声波信号的描述特征。处理器101还用于:若根据超声波信号的描述特征和预先存储的参数表判断电子设备位于水中,则关闭电子设备的触摸屏的触摸响应功能。
对此,本申请实施例提供一种电子设备的浸水检测方法,图2为本申请实施例提供的一种浸水检测方法的流程示意图,图2所示的浸水检测方法用于图1所示的电子设备。如图2所示,该浸水检测方法包括如下步骤:
S101、超声波检测装置对电子设备所处环境进行超声波检测。
超声波是一种频率高于20000HZ的声波。图3为本申请实施例提供的超声波检测装置的结构示意图。如图3所示,超声波检测装置102包括:超声波发送单元11和超声波接收单元12,其中,超声波发送单元11和超声波接收单元12均与处理器101连 接。超声波发送单元11用于向电子设备所处环境中发射超声波信号,超声波接收单元12用于接收由超声波发射单元发出的经过直达或反射的超声波信号,并将接收到的超声波信号发送给处理器101,从而实现对电子设备所处环境的超声波检测。
举例来说,电子设备例如可以是智能手表,图4为本申请实施例提供的智能手表的结构示意图。如图4所示,智能手表1包括:触摸屏2、超声波发送单元11和超声波接收单元12,其中,超声波发送单元11例如可以是设置在电子设备上的扬声器或者换能器,超声波接收单元12例如可以是设置在电子设备上的麦克风,该麦克风和扬声器上例如还贴有防水膜。由此,可以复用电子设备的扬声器作为超声波发送单元,并将麦克风作为超声波接收单元,无需额外增加新的部件,便于生产。
图5为本申请实施例提供的智能手表的使用场景示意图。如图5所示,该超声波信号例如可以传播预设距离,当距离超声波发射位置超过该预设距离时,则不会接收到该超声波信号。举例来说,该智能手表的超声波发送单元11发送的超声波信号的传播距离大于超声波发送单元11和超声波接收单元12之间的直线距离,以使得超声波接收单元能够接收到该超声波信号,且该超声波信号的传播距离小于穿戴该智能手表的用户和其他穿戴该智能手表的用户之间的距离,因此,当不同用户穿戴该智能手表游泳时,多台该智能手表即使同时发送超声波信号,也不会相互干扰。其中,该预设距离D例如可以是20cm。
S102、处理器从超声波检测结果中提取超声波信号的描述特征,根据超声波信号的描述特征和预先存储的参数表确定电子设备位于水中。
超声波发送单元发送的超声波信号经过该电子设备所处环境之后,超声波信号的波形特征、频率以及幅值发生变化,超声波接收单元12能够接收经过电子设备所处环境的超声波信号,作为超声波检测结果。超声波接收单元12将该超声波检测结果发送给电子设备的处理器后,该电子设备的处理器能够从超声波检测结果中提取超声波信号的描述特征,提取超声波信号的描述特征例如可以包括:从接收到的超声波检测结果中获取其波形特征、频率值,以及幅值。
其中,电子设备10还包括存储器103,存储器103可以是ROM或可存储静态信息和指令的其他类型的静态存储设备,RAM或者可存储信息和指令的其他类型的动态存储设备,也可以是EEPROM、CD-ROM或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器103可以是独立存在,通过通信总线与处理器101相连接。存储器103也可以和处理器101集成在一起。其中,存储器103用于存储执行本申请方案的软件程序,并由处理器101来控制执行。
存储器103中还存储有参数表等,处理器101可以通过运行或执行存储在存储器103内的软件程序,以及调用存储在存储器103中的参数表,以确定电子设备所处环境。其中,参数表包括超声波信号的各描述特征与电子设备所处环境之间的对应关系,电子设备所处的一种环境例如可以对应一个或多个超声波信号的描述特征。当处理器101接收到超声波检测结果后,可以根据超声波检测结果中的一个或多个超声波信号的描述特征确定当前电子设备所处环境。
超声波信号的描述特征具体可以是:超声波波形、超声波频率以及超声波的幅值等,电子设备所处环境例如可以是:水中、空气中,以及其他环境,该电子设备所处环境例如可以表示为00,01,10,也可以为1,2,3,还可以为A,B,C等。该参数表的超声波信号描述特征与电子设备所处环境之间的对应关系可采用卷积神经网络的方式训练获得。首先,可以大量采集水中,空气以及其他场景中经过电子设备所处环境的超声波信号,并从超声波信号中提取描述特征,确定提取出的每个描述特征与设备所处环境之间的对应关系,接着通过卷积神经网络对描述特征和电子设备所处环境的对应关系进行卷积运算以建立模型,并提取模型中的相关参数建立该参数表。
S103、处理器关闭电子设备的触摸屏的触摸响应功能。
电子设备的触摸屏是利用人体的电流感应进行工作的,能够对用户的触发产生响应,水对触摸屏的冲击效果类似于用户的触碰。当电子设备的触摸屏的触摸响应功能处于开启状态时,电子设备的触摸屏会对用户的触摸或水流的冲击产生响应。当电子设备的触摸屏的触摸响应功能处于关闭状态时,电子设备的触摸屏不会对用户的触发或水流的冲击产生响应。正常情况下,电子设备,特别是手表或手环的触摸屏的触摸响应功能处于开启状态,当电子设备位于水中时,为了避免水流的冲击引起误操作,需要用户手动关闭。
本实施例中处理器101能够在确定该电子设备位于水中时,关闭电子设备的触摸屏的触摸响应功能。其中,关闭电子设备的触摸屏的触摸响应功能包括:处理器101控制电子设备的触摸屏中的传感器不进行数据采集,或者控制触摸屏在接收用户的触发或水流的冲击后将触发信息发送给处理器101,处理器101对用户的触发或水流的冲击不作响应,从而可以防止水对电子设备的触摸屏的误触发。
当然,为了避免该电子设备的主板进水,也可以关闭该电子设备。
本申请实施例提供的浸水检测方法,能够通过超声波检测确定电子设备所处环境,当电子设备在水中时,可以及时关闭电子设备的触摸屏的触摸响应功能,避免了水对电子设备的触摸屏的误触发,该过程无需人工操作,提高了用户体验。
该浸水检测方法例如还包括:若处理器根据超声波信号的描述特征和预先存储的参数表确定电子设备不在水中,则停止对电子设备所处环境进行超声波检测。
用户穿戴该电子设备洗手、洗澡、游泳或者潜水时,该电子设备可能一段时间在水中,一段时间不在水中,当用户结束洗手、洗澡、游泳或者潜水时,可以选择停止对该电子设备所处环境进行超声波检测,为确保用户已经结束洗澡或者游泳,则检测用户不在水中的时间至少达到第一阈值,第一阈值例如可以是用户一个游泳动作或洗澡动作的周期。当检测用户不在水中的时间大于或等于该动作周期时,可以认为用户已经结束洗澡或者游泳,此时可以停止对该电子设备所处环境进行超声波检测。
上述根据超声波信号的描述特征和预先存储的参数表确定电子设备不在水中,则关闭超声波检测装置,还可以包括:根据超声波信号的描述特征和预先存储的参数表确定电子设备不在水中的时间达到第一阈值时,停止对所述电子设备所处环境进行超声波检测。
本申请实施例提供的浸水检测方法,通过超声波检测确定电子设备不在水中时,可以停止对电子设备所处环境进行超声波检测,能够解决超声波检测功耗过大的问题。
当用户结束洗手、洗澡、游泳或者潜水时,可重新开启电子设备的触摸屏的触摸响应功能。图6为本申请实施例提供的另一种浸水检测方法的流程示意图。如图6所述,关闭电子设备的触摸屏的触摸响应功能后,该浸水检测方法还包括:
S201、处理器控制超声波检测装置以预设时间间隔对电子设备所处的环境进行超声波检测。
预设时间间隔例如可以是1s,1min或其他值,本申请实施例对预设时间间隔的具体值不作限制,用户洗手、洗澡、游泳或者潜水所需时间不同,为及时检测到电子设备所处环境的改变情况,本领域技术人员可根据实际情况设置合适的时间间隔,这些均属于本申请的保护范围。
以预设时间间隔对电子设备所处的环境进行超声波检测,与一直进行超声波检测相比,能够降低超声波功耗。
S202、处理器从超声波检测结果中提取超声波信号的描述特征,根据超声波信号的描述特征和参数表,确定电子设备不在水中。
当超声波检测结果中提取的超声波信号的描述特征对应该参数表中空气中或其他环境时,可以确定电子设备不在水中,认为用户洗手、洗澡、游泳或者潜水结束。
S203、处理器开启电子设备的触摸屏的触摸响应功能。
确定电子设备不在水中时,可自动开启电子设备的触摸屏的触摸响应功能,不需要用户手动操作,提高了用户体验。
本申请实施例提供的浸水检测方法,能够在电子设备离开水之后自动开启电子设备的触摸屏的触摸响应功能,无需人工操作,提高了用户体验。
该浸水检测方法还包括:若根据超声波信号的描述特征和参数表,确定电子设备位于水中,则保持关闭电子设备的触摸屏的触摸响应功能的状态。
当超声波检测结果中提取的超声波信号的描述特征对应该参数表中水中的状态时,可以确定电子设备仍位于水中,认为用户还在洗手、洗澡、游泳或者潜水,可保持关闭电子设备的触摸屏的触摸响应功能的状态。
本申请实施例还提供一种电子设备,图7为本申请实施例提供的另一种电子设备的结构示意图。如图7所示,电子设备10包括:触摸屏2,存储器103,处理器101,以及设置在电子设备的触摸屏2中的传感器104。
传感器104用于检测电子设备的触摸屏的多点触发信息,并将多点触发信息发送给处理器101。其中,多点触发信息包括电子设备的触摸屏在第一预设时间内N个不同位置同时被触发的次数,N大于或等于2。相应的,处理器101还用于,若确定电子设备的触摸屏在第一预设时间内N个不同位置同时被触发的次数大于存储器103中预先存储的预设值,则关闭电子设备10的触摸屏的触摸响应功能。
该触摸屏例如可以是电容式触摸屏,电容式触摸屏能检测到该多点触发信息。
在可选的实现方式中,处理器还用于,若电子设备的触摸屏在第一预设时间内多点被触发的次数小于或等于预设值,则重新控制传感器检测电子设备的触摸屏的多点触发信息。
对此,图8为本申请实施例提供的另一种浸水检测方法的流程示意图。图8中的浸水检测方法用于如图7所示的电子设备,如图8所示,该浸水检测方法包括如下步 骤:
S301、传感器检测电子设备的触摸屏的多点触发信息。
其中,多点触发信息包括电子设备的触摸屏在第一预设时间内N个不同位置同时被触发的次数;N大于或等于2。
举例来说,电子设备的触摸屏的触摸响应功能常处于开启状态,可以随时检测到电子设备的触摸屏的多点触发信息。第一预设时间可以为100ms,1s或2s;N个不同位置可以是随机位置,也可以为固定位置。本申请对第一预设时间、N个不同位置的位置信息的具体值不作限制,本领域技术人员可根据实际情况采样获取,这些均属于本申请的保护范围。
S302、处理器确定电子设备的触摸屏在第一预设时间内N个不同位置同时被触发的次数大于预设值。
举例来说,用户对电子设备的触摸屏的多点触发频率小于水对电子设备的触摸屏的多点触发频率,因此,当电子设备的触摸屏在第一预设时间内N个不同位置同时被触发的次数大于预设值,可以确定该电子设备位于水中。该预设值可以为1、2或6,本申请对该预设值的具体取值不作限定,本领域技术人员可根据实际情况采样获取,这些均属于本申请的保护范围。
S302、处理器关闭电子设备的触摸屏的触摸响应功能。
确定该电子设备位于水中后,可关闭该电子设备的触摸屏的触摸响应功能,从而可以防止水对电子设备的触摸屏的误触发。
本申请实施例提供的浸水检测方法,通过检测电子设备的触摸屏的多点触发信息,能够自动检测电子设备是否在水中,从而可以及时关闭电子设备的触摸响应功能,防止误触。
该浸水检测方法还可包括:若确定电子设备的触摸屏在第一预设时间内多点被触发的次数小于或等于预设值,则重新检测电子设备的触摸屏的多点触发信息。
举例来说,若检测到该电子设备的触摸屏在第一预设时间内多点被触发的次数小于或等于预设值,可以确定该电子设备不在水中,以及,该多点触发信息属于用户的正常触发操作,因此,可以保持开启该电子设备的触摸屏的触摸响应功能的状态,并重新检测电子设备的触摸屏的多点触发信息。
本申请实施例提供的浸水检测方法,可以持续检测电子设备的触摸屏的多点触发信息,能够更加准确的判断电子设备是否在水中。
本申请实施例还提供一种电子设备,图9为本申请实施例提供的另一种电子设备的结构示意图。如图9所示,电子设备10包括:触摸屏2,存储器103,超声波检测装置102,处理器101,以及设置在电子设备的触摸屏2中的传感器104。
本申请实施例还提供一种浸水检测方法,该浸水检测方法用于电子设备,图10为本申请实施例提供的另一种浸水检测方法的流程示意图。图10中示出的浸水检测方法用于图9所示的电子设备。如图10所示,该浸水检测方法包括如下步骤:
S401、传感器检测电子设备的触摸屏的多点触发信息。其中,多点触发信息包括电子设备的触摸屏在第一预设时间内N个不同位置同时被触发的次数;N大于或等于2。
S402、处理器确定电子设备的触摸屏在第一预设时间内N个不同位置同时被触发的次数大于预设值。
若电子设备的触摸屏在第一预设时间内多点被触发的次数小于或等于预设值,则重新检测电子设备的触摸屏的多点触发信息。由此,通过多次检测能够更加准确的判断电子设备是否在水中。
S403、超声波检测装置对电子设备所处环境进行超声波检测;
S404、处理器从超声波检测结果中提取超声波信号的描述特征,根据超声波信号的描述特征和预先存储的参数表确定电子设备位于水中。其中,参数表包括超声波信号描述特征与电子设备所处环境之间的对应关系。
S405、处理器关闭电子设备的触摸屏的触摸响应功能。
若根据超声波信号的描述特征和预先存储的参数表确定电子设备不在水中,则关闭超声波检测装置,并重新检测电子设备的触摸屏的多点触发信息。由此,能够降低电子设备的超声波功耗。
本申请实施例提供的浸水检测方法,能自动检测电子设备的触摸屏的多点触发信息,接着根据该多点触发信息触发对电子设备所处环境的超声波检测,可准确判断出电子设备的浸水情况,从而能及时关闭电子设备的触摸屏的触摸响应功能,防止误触。
图11为本申请实施例提供的另一种浸水检测方法的流程示意图。如图11所述,关闭电子设备的触摸屏的触摸响应功能后,该浸水检测方法还包括:
S501、处理器控制超声波检测装置以预设时间间隔对电子设备所处的环境进行超声波检测。
S502、处理器从超声波检测结果中提取超声波信号的描述特征,根据超声波信号的描述特征和预先存储的参数表确定电子设备不在水中。
S503、处理器开启电子设备的触摸屏的触摸响应功能。
若根据超声波信号的描述特征和预先存储的参数表确定电子设备位于水中,则保持关闭电子设备的触摸屏的触摸响应功能的状态。
尽管结合具体特征及其实施例对本申请进行了描述,显而易见的,在不脱离本申请的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本申请的示例性说明,且视为已覆盖本申请范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。

Claims (13)

  1. 一种浸水检测方法,其特征在于,所述浸水检测方法用于电子设备,所述电子设备包括触摸屏,所述方法包括:
    对所述电子设备所处环境进行超声波检测;
    从超声波检测结果中提取超声波信号的描述特征,若根据所述超声波信号的描述特征和预先存储的参数表判断所述电子设备位于水中,则关闭所述电子设备的触摸屏的触摸响应功能;其中,所述参数表包括所述超声波信号描述特征与所述电子设备所处环境之间的对应关系。
  2. 根据权利要求1所述的浸水检测方法,其特征在于,所述对所述电子设备所处环境进行超声波检测之前,所述方法还包括:
    检测所述电子设备的触摸屏的多点触发信息,所述多点触发信息包括所述电子设备的触摸屏在第一预设时间内N个不同位置同时被触发的次数;所述N大于或等于2;相应的;
    所述对所述电子设备所处环境进行超声波检测包括:
    若确定所述电子设备的触摸屏在第一预设时间内N个不同位置同时被触发的次数大于预设值,开始对所述电子设备所处环境进行超声波检测。
  3. 根据权利要求2所述的浸水检测方法,其特征在于,若所述电子设备的触摸屏在所述第一预设时间内多点被触发的次数小于或等于所述预设值,则重新检测所述电子设备的触摸屏的多点触发信息。
  4. 根据权利要求2或3所述的浸水检测方法,其特征在于,若根据所述超声波信号的描述特征和预先存储的参数表确定所述电子设备不在水中,则停止对所述电子设备所处环境进行超声波检测,并重新检测所述电子设备的触摸屏的多点触发信息。
  5. 根据权利要求1-4任一项所述的浸水检测方法,其特征在于,所述关闭所述电子设备的触摸屏的触摸响应功能后,所述方法还包括:
    以预设时间间隔对所述电子设备所处的环境进行超声波检测;
    根据超声波检测结果中提取的超声波信号的描述特征和所述参数表,若确定所述电子设备位于水中,则保持关闭所述电子设备的触摸屏的触摸响应功能的状态;若确定所述电子设备不在水中,则开启所述电子设备的触摸屏的触摸响应功能。
  6. 一种电子设备,其特征在于,所述电子设备包括:触摸屏,超声波检测装置,以及与所述超声波检测装置连接的处理器,
    所述超声波检测装置用于对所述电子设备所处环境进行超声波检测,并将超声波检测结果发送给所述处理器;
    所述处理器用于从超声波检测结果中提取超声波信号的描述特征;
    所述处理器还用于,若根据所述超声波信号的描述特征和预先存储的参数表确定所述电子设备位于水中,则关闭所述电子设备的触摸屏的触摸响应功能,所述参数表包括所述超声波信号描述特征与所述电子设备所处环境之间的对应关系。
  7. 根据权利要求6所述的电子设备,其特征在于,所述电子设备还包括:设置在所述电子设备的屏幕中的传感器,所述传感器与所述处理器连接;
    所述传感器用于检测所述电子设备的触摸屏的多点触发信息,并将所述多点触发信息发送给所述处理器;所述多点触发信息包括所述电子设备的触摸屏在第一预设时间内N个 不同位置同时被触发的次数;所述N大于或等于2;相应的;
    所述处理器还用于,若确定所述电子设备的触摸屏在第一预设时间内N个不同位置同时被触发的次数大于预设值,则控制所述超声波检测装置对所述电子设备所处环境进行超声波检测。
  8. 根据权利要求7所述的电子设备,其特征在于,所述处理器还用于,若所述电子设备的触摸屏在所述第一预设时间内多点被触发的次数小于或等于所述预设值,则重新控制所述传感器检测所述电子设备的触摸屏的多点触发信息。
  9. 根据权利要求7或8所述的电子设备,其特征在于,所述处理器还用于,若根据所述超声波信号的描述特征和预先存储的参数表确定所述电子设备不在水中,则关闭所述超声波检测装置,并控制所述传感器重新检测所述电子设备的触摸屏的多点触发信息。
  10. 根据权利要求6-9任一项所述的电子设备,其特征在于,所述处理器还用于,关闭所述电子设备的触摸屏的触摸响应功能后,控制所述超声波检测装置以预设时间间隔对所述电子设备所处的环境进行超声波检测;
    并根据超声波检测结果中提取的超声波信号的描述特征和所述参数表,若确定所述电子设备位于水中,则保持关闭所述电子设备的触摸屏的触摸响应功能的状态;若确定所述电子设备不在水中,则开启所述电子设备的触摸屏的触摸响应功能。
  11. 根据权利要求6-10任一项所述的电子设备,其特征在于,所述超声波检测装置包括:超声波发送单元和超声波接收单元。
  12. 根据权利要求11所述的电子设备,其特征在于,所述超声波发送单元为扬声器,所述超声波接收单元为麦克风。
  13. 根据权利要求6-12任一项所述的电子设备,其特征在于,所述超声波信号的描述特征包括:超声波波形、超声波频率或超声波波幅。
PCT/CN2019/076060 2019-02-25 2019-02-25 浸水检测方法及电子设备 WO2020172771A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2019/076060 WO2020172771A1 (zh) 2019-02-25 2019-02-25 浸水检测方法及电子设备
CN201980056930.XA CN112639459B (zh) 2019-02-25 2019-02-25 浸水检测方法及电子设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/076060 WO2020172771A1 (zh) 2019-02-25 2019-02-25 浸水检测方法及电子设备

Publications (1)

Publication Number Publication Date
WO2020172771A1 true WO2020172771A1 (zh) 2020-09-03

Family

ID=72238820

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/076060 WO2020172771A1 (zh) 2019-02-25 2019-02-25 浸水检测方法及电子设备

Country Status (2)

Country Link
CN (1) CN112639459B (zh)
WO (1) WO2020172771A1 (zh)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420117A (zh) * 2007-10-26 2009-04-29 比亚迪股份有限公司 浸水防护装置和包括该浸水防护装置的防水供电***
US20090158822A1 (en) * 2007-12-20 2009-06-25 General Electric Company Devices, methods and systems for measuring one or more characteristics of a biomaterial in a suspension
CN201440086U (zh) * 2009-04-23 2010-04-21 北京宝力马传感技术有限公司 一种浸水探测装置
CN102003951B (zh) * 2009-09-01 2013-01-02 黄石新兴管业有限公司 全管水浸式球墨铸铁管超声波自动检测装置
JP2013170943A (ja) * 2012-02-21 2013-09-02 Denso Corp 水没検出装置
CN105869357A (zh) * 2016-05-06 2016-08-17 东莞文胜鼎电子科技有限公司 浸水告警装置和浸水告警***
CN107705605A (zh) * 2017-09-29 2018-02-16 北京新能源汽车股份有限公司 电动车辆浸水预警方法及装置

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS599555A (ja) * 1982-07-08 1984-01-18 Toshiba Corp 超音波探傷装置
CN101522003B (zh) * 2008-02-28 2011-11-09 鸿富锦精密工业(深圳)有限公司 便携式电子设备及其落水保护方法
CN202217254U (zh) * 2010-08-12 2012-05-09 上海科斗电子科技有限公司 蓝牙超声波触摸屏
CN202068171U (zh) * 2011-03-15 2011-12-07 中兴通讯股份有限公司 一种电子设备水中保护装置
KR101496168B1 (ko) * 2014-04-28 2015-02-26 주식회사 힐세리온 다양한 해상도를 갖는 무선통신단말기에 적용이 가능한 초음파 진단시스템 및 진단방법
JP6482922B2 (ja) * 2015-03-27 2019-03-13 京セラ株式会社 電子機器
JP6140217B2 (ja) * 2015-05-12 2017-05-31 京セラ株式会社 電子機器、制御方法及び制御プログラム
JP6484129B2 (ja) * 2015-06-29 2019-03-13 京セラ株式会社 電子機器、画像表示方法及び画像表示プログラム
CN105224127B (zh) * 2015-09-23 2019-03-29 联想(北京)有限公司 一种信息处理方法及电子设备
CN106921788B (zh) * 2015-12-28 2020-05-12 青岛海信移动通信技术股份有限公司 一种移动终端控制方法及移动终端
GB201602319D0 (en) * 2016-02-09 2016-03-23 Elliptic Laboratories As Proximity detection
KR20180094290A (ko) * 2017-02-15 2018-08-23 삼성전자주식회사 전자 장치 및 전자 장치의 수중 촬영 판단 방법
CN109085940B (zh) * 2017-06-14 2022-09-23 江西欧迈斯微电子有限公司 触控终端及其触控方法和装置
CN107395803A (zh) * 2017-07-26 2017-11-24 上海展扬通信技术有限公司 浸水保护***、装置及方法
CN110221720A (zh) * 2019-04-29 2019-09-10 华为技术有限公司 一种触摸方法及电子设备

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420117A (zh) * 2007-10-26 2009-04-29 比亚迪股份有限公司 浸水防护装置和包括该浸水防护装置的防水供电***
US20090158822A1 (en) * 2007-12-20 2009-06-25 General Electric Company Devices, methods and systems for measuring one or more characteristics of a biomaterial in a suspension
CN201440086U (zh) * 2009-04-23 2010-04-21 北京宝力马传感技术有限公司 一种浸水探测装置
CN102003951B (zh) * 2009-09-01 2013-01-02 黄石新兴管业有限公司 全管水浸式球墨铸铁管超声波自动检测装置
JP2013170943A (ja) * 2012-02-21 2013-09-02 Denso Corp 水没検出装置
CN105869357A (zh) * 2016-05-06 2016-08-17 东莞文胜鼎电子科技有限公司 浸水告警装置和浸水告警***
CN107705605A (zh) * 2017-09-29 2018-02-16 北京新能源汽车股份有限公司 电动车辆浸水预警方法及装置

Also Published As

Publication number Publication date
CN112639459B (zh) 2022-04-12
CN112639459A (zh) 2021-04-09

Similar Documents

Publication Publication Date Title
US11972105B2 (en) Force sensing system and method
US20210075634A1 (en) Electronic device and method for controlling thereof
CN107422915B (zh) 触摸屏的响应控制方法、装置、存储介质及终端
Wang et al. Ubiquitous keyboard for small mobile devices: harnessing multipath fading for fine-grained keystroke localization
KR20160137240A (ko) 주변 환경 인식 방법 및 그 전자 장치
CN104246877A (zh) 用于音频信号处理的***和方法
CN107734523A (zh) 一种信号强度提示方法、终端设备及计算机可读介质
CN104751852A (zh) 一种声音处理的方法和装置
WO2021008000A1 (zh) 语音唤醒方法、装置及电子设备、存储介质
KR20130137020A (ko) 가청 사운드 및 초음파를 이용한 소스 정위를 위한 시스템들, 방법들, 장치, 및 컴퓨터 판독가능 매체들
EP2736233A1 (en) Method for controlling portable device by using humidity sensor and portable device thereof
US9582121B2 (en) Signal processing for acoustic user input
CN104142879B (zh) 一种音频响度提示方法、装置及用户终端
CN109478409A (zh) 用于计算设备的话筒噪声抑制
CN104683696A (zh) 一种基于超声波测量实现摄像头快速准确自拍的方法
CN113241085B (zh) 回声消除方法、装置、设备及可读存储介质
CN109524018B (zh) 一种回声处理方法及设备
CN110390953B (zh) 啸叫语音信号的检测方法、装置、终端及存储介质
CN109616098A (zh) 基于频域能量的语音端点检测方法和装置
JP6294747B2 (ja) 報知音感知装置、報知音感知方法及びプログラム
WO2020172771A1 (zh) 浸水检测方法及电子设备
CN104217728A (zh) 一种音频处理方法及电子设备
CN109256145A (zh) 基于终端的音频处理方法、装置、终端和可读存储介质
KR101340028B1 (ko) 사용자 단말의 터치 검출 방법, 장치 및 이를 이용한 사용자 단말
CN116959495A (zh) 一种语音信号信噪比估计方法、***

Legal Events

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

Ref document number: 19917105

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19917105

Country of ref document: EP

Kind code of ref document: A1