CN109062456B - Touch control method, touch control device and terminal equipment - Google Patents

Touch control method, touch control device and terminal equipment Download PDF

Info

Publication number
CN109062456B
CN109062456B CN201811189855.8A CN201811189855A CN109062456B CN 109062456 B CN109062456 B CN 109062456B CN 201811189855 A CN201811189855 A CN 201811189855A CN 109062456 B CN109062456 B CN 109062456B
Authority
CN
China
Prior art keywords
state
target object
determining
touch
preset
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201811189855.8A
Other languages
Chinese (zh)
Other versions
CN109062456A (en
Inventor
张海平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811189855.8A priority Critical patent/CN109062456B/en
Publication of CN109062456A publication Critical patent/CN109062456A/en
Application granted granted Critical
Publication of CN109062456B publication Critical patent/CN109062456B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/043Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using propagating acoustic waves

Abstract

The application discloses a touch control method, a touch control device, a terminal device and a computer readable storage medium, wherein the touch control method comprises the following steps: transmitting an ultrasonic signal through an ultrasonic sensor of a terminal device, and receiving a reflected signal of the ultrasonic signal; determining the state of a target object reflecting the ultrasonic signal according to the reflected signal, wherein the state comprises a wet state and a dry state; and determining the current touch mode of the terminal equipment according to the state of the target object, wherein the touch mode comprises floating touch and contact touch. Through the application, the sensitivity of the mobile terminal for detecting the touch operation of objects such as wet fingers can be improved, and the method has high usability and practicability.

Description

Touch control method, touch control device and terminal equipment
Technical Field
The present application belongs to the field of information processing technologies, and in particular, to a touch control method, a touch control apparatus, a terminal device, and a computer-readable storage medium.
Background
With the popularization of touch screens in various terminal devices, people often implement interaction with terminal devices such as mobile phones by performing touch operation on the touch screen, and when fingers of a user sweat or just wash hands and are in a wet state, the sensitivity of identifying wet fingers through the touch screen is greatly reduced, so that the user cannot effectively perform touch operation.
Disclosure of Invention
In view of the above, the present application provides a touch control method, a touch control apparatus, a terminal device and a computer readable storage medium, which can improve the sensitivity of a mobile terminal in detecting a touch operation of an object such as a wet finger.
A first aspect of the present application provides a touch control method, including:
transmitting an ultrasonic signal through an ultrasonic sensor of a terminal device, and receiving a reflected signal of the ultrasonic signal;
determining the state of a target object reflecting the ultrasonic signal according to the reflected signal, wherein the state comprises a wet state and a dry state;
and determining the current touch mode of the terminal equipment according to the state of the target object, wherein the touch mode comprises floating touch and contact touch.
A second aspect of the present application provides a touch control device, including:
the ultrasonic module is used for transmitting ultrasonic signals through an ultrasonic sensor of the terminal equipment and receiving reflected signals of the ultrasonic signals;
a first determining module, configured to determine, according to the reflected signal, a state of a target object that reflects the ultrasonic signal, where the state includes a wet state and a dry state;
and the second determining module is used for determining the current touch mode of the terminal equipment according to the state of the target object, wherein the touch mode comprises floating touch and contact touch.
A third aspect of the present application provides a terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to the first aspect when executing the computer program.
A fourth aspect of the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of the first aspect as described above.
A fifth aspect of the application provides a computer program product comprising a computer program which, when executed by one or more processors, performs the steps of the method as described in the first aspect above.
Therefore, the ultrasonic signal is transmitted by the ultrasonic sensor of the terminal equipment, and the reflected signal of the ultrasonic signal is received; determining the state of a target object reflecting the ultrasonic signal according to the reflected signal, wherein the state comprises a wet state and a dry state; and determining the current touch mode of the terminal equipment according to the state of the target object, wherein the touch mode comprises floating touch and contact touch. The state of the target object which reflects the ultrasonic signals can be determined according to the reflection signals, so that the touch mode with high sensitivity can be determined according to the state of the target object, and if the target object is a finger and the finger is in a wet state, the touch mode of the terminal equipment can be determined to be suspension touch, so that the detection sensitivity of the mobile terminal on touch operation of the wet finger is improved through suspension touch, the user experience is improved, and the touch control device has high usability and practicability.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart illustrating an implementation of a touch control method according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart illustrating another implementation of the touch control method according to the embodiment of the present application;
fig. 3 is a schematic flowchart of another implementation process of the touch control method according to the embodiment of the present application;
fig. 4 is a schematic structural diagram of a touch control device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In particular implementations, the terminal devices described in embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the devices described above are not portable communication devices, but rather are desktop computers having touch-sensitive surfaces (e.g., touch screen displays and/or touch pads).
In the discussion that follows, a terminal device that includes a display and a touch-sensitive surface is described. However, it should be understood that the terminal device may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The terminal device supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications that may be executed on the terminal device may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
In addition, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not intended to indicate or imply relative importance.
In order to explain the technical solution of the present application, the following description will be given by way of specific examples.
Example one
Referring to fig. 1, a schematic diagram of an implementation flow of a touch control method provided in an embodiment of the present application is shown, where the touch control method may include the following steps:
step S101, transmitting an ultrasonic signal through an ultrasonic sensor of the terminal equipment, and receiving a reflected signal of the ultrasonic signal.
In the embodiment of the present application, in the above-mentioned ultrasonic sensor, the ultrasonic signal can be transmitted and received through one probe, and the function of transmitting the ultrasonic signal and receiving the reflected signal can also be realized through two probes respectively. For example, the ultrasonic sensor may be disposed at a side where the screen of the terminal device is located, for example, below the screen, at an upper end or a lower end of a plane where the screen of the terminal device is located, and the like.
In the embodiment of the present invention, the touch control may be implemented by a user contacting hardware of the terminal device, or may be implemented by detecting information such as a user's motion by using various sensing signals such as ultrasonic waves, infrared rays, and capacitive sensing. When the information such as the action of the user is detected by detecting the sensing signal to realize the control, the user can realize the touch operation without contacting with the hardware of the terminal equipment. In this case, the touch may be a touch in a broad sense, and is not limited to a touch to implement control, but may also be implemented by sensing or the like when a certain distance exists between the user and the terminal device.
And step S102, when the distance between the target object and the screen of the terminal equipment is detected to be smaller than a preset distance threshold, determining the state of the target object reflecting the ultrasonic signal according to the reflected signal, wherein the state comprises a wet state and a dry state.
The target object may be an object used by a user to perform a touch operation, such as a finger or a stylus, the wet state may be a state in which the moisture on the surface of the target object is greater than a preset moisture value, and correspondingly, the dry state may be a state in which the moisture on the surface of the target object is not greater than the preset moisture value. In a specific application, the wet state and the dry state may be distinguished according to parameters such as a relevant parameter of a touch screen of the terminal device, a sensitivity of a relevant sensor, and a measurement range, for example, if the sensitivity of the touch screen of the terminal device for recognizing a touch operation of a wet finger is high, the preset moisture value may be high, so that when the moisture on the surface of the target object is high, the state of the target object is determined to be the wet state.
In the embodiment of the present application, when the target object in the dry state reflects the ultrasonic signal, the degree of absorption, reflection, refraction, and the like of the ultrasonic signal is different from that of the target object in the wet state, so that the energy information in the reflected signal is different from the energy information of the ultrasonic signal, and therefore, the state of the target object reflecting the ultrasonic signal can be determined according to the energy information in the reflected signal. For example, if the target object is a finger of a user, when the finger of the user is in a dry state, the finger reflecting the ultrasonic signal may be considered as a solid, and when the finger of the user is in a wet state, a surface of the finger reflecting the ultrasonic signal is covered with a liquid, so that when the ultrasonic signal is reflected by the finger of the user, due to a difference between a property of the liquid and a property of the solid, a degree of absorption, refraction, and the like of the ultrasonic signal on the surface of the finger in the wet state is different from that of the solid.
In addition, the ultrasonic signal may include a plurality of sound wave signals with different wavelengths, so that the state of the target object may be determined according to energy information of sound waves with different wavelengths in the reflected signal; alternatively, the ultrasonic signal may be a sound wave signal with a preset wavelength, so that the state of the target object is determined by detecting an energy change of a reflected signal corresponding to the sound wave signal with the preset wavelength.
In addition, optionally, in this embodiment of the application, the state of the target object that reflects the ultrasonic signal may be determined according to the reflection signal.
The distance between the detection target object and the screen of the terminal device may be detected by the ultrasonic sensor, or may be detected by a sensing device different from the ultrasonic sensor in step S101, for example, by an infrared sensor or another ultrasonic sensor; when the ultrasonic sensor is used for detecting through other sensing equipment, the ultrasonic sensor of the terminal equipment can be used for transmitting ultrasonic signals so as to reduce the power consumption of the ultrasonic sensor. Of course, the operation of detecting the distance between the target object and the screen of the terminal device may be independent of the operation of transmitting the ultrasonic signal by the ultrasonic sensor described above. The specific detection method is not limited herein.
Optionally, the determining the state of the target object reflecting the ultrasonic signal according to the reflected signal may include:
calculating a time difference between a receiving time of receiving the reflected signal and a transmitting time of transmitting the ultrasonic signal;
calculating the distance between a target object reflecting the ultrasonic signal and the screen of the terminal equipment according to the time difference;
and if the distance is smaller than a preset distance threshold value, determining the state of the target object reflecting the ultrasonic signal according to the reflected signal.
In the embodiment of the application, the distance between the target object and the screen of the terminal device can be detected through the ultrasonic signal transmitted by the ultrasonic sensor and the received reflected signal, at this time, the distance can be detected and the state of the target object reflecting the ultrasonic signal can be determined through the ultrasonic sensor, and the distance between the target object and the screen of the terminal device does not need to be detected through other sensing devices, so that the utilization rate of hardware is improved.
Step S103, determining a current touch mode of the terminal device according to the state of the target object, where the touch mode includes a floating touch and a contact touch.
The floating touch control mode may be a mode in which touch control can be achieved without contacting the terminal device, and at this time, touch control operation may be achieved through actions, gestures, and the like when a finger, a stylus, and the like of a user are close to a screen of the terminal device. The floating touch can be realized by sensing devices such as an infrared sensor, an ultrasonic sensor, a depth camera, a self-capacitance and a mutual capacitance. The touch control may be a mode in which touch control is implemented by contacting the terminal device, and exemplarily, the touch control may be implemented by a capacitive touch screen or a resistive touch screen.
In the embodiment of the application, the terminal device can simultaneously realize the floating touch control and the contact touch control, and the specific implementation mode can be set according to a specific application scene. For example, an infrared sensor, an ultrasonic sensor, and the like may be disposed behind the capacitive touch screen of the terminal device, so that when a dry state of a finger of a user is detected, a touch is implemented through the capacitive touch screen, and when a wet state of the finger of the user is detected, a floating touch is implemented through the infrared sensor, the ultrasonic sensor, and the like. In addition, for example, the self-capacitance and mutual capacitance technologies may also be combined in a capacitive touch screen of the terminal device to implement floating touch and contact touch.
Since the state of the target object affects the sensitivity of the terminal device for recognizing touch operation, selecting a touch mode with higher sensitivity according to the state of the target object enables a user to perform touch operation more effectively. For example, when the state of the target object is a wet state, it may be determined that the current touch mode of the terminal device is a floating touch, so as to avoid a negative effect of moisture on the surface of the target object on the detection of the touch screen, and improve the sensitivity of the terminal device in detecting the touch operation; when the state of the target object is a dry state, it may be determined that the current touch mode of the terminal device is touch, such as capacitive touch, so that the touch operation of the user may be accurately detected through a capacitive touch screen, and the power consumption is saved compared with floating touch.
In the embodiment of the application, the state of the target object reflecting the ultrasonic signal can be determined according to the reflection signal, so that the touch mode with higher sensitivity can be determined according to the state of the target object, and if the target object is a finger and the finger is in a wet state, the touch mode of the terminal device can be determined to be suspension touch, so that the detection sensitivity of touch operation on the wet finger is improved through suspension touch, the user experience is improved, and the touch device has stronger usability and practicability.
Example two
Referring to fig. 2, is a schematic view of another implementation flow of the touch control method provided in the embodiment of the present application, where the touch control method may include the following steps:
step S201, transmitting an ultrasonic signal by an ultrasonic sensor of the terminal device, and receiving a reflected signal of the ultrasonic signal.
Step S202, acquiring energy information of preset wavelength in the reflected signal, and determining the state of the target object reflecting the ultrasonic signal according to the energy information, wherein the state includes a wet state and a dry state.
When the target object in the dry state reflects the ultrasonic signal, the degree of absorption, reflection, refraction and the like of the sound wave with the preset wavelength in the ultrasonic signal is different from that of the target object in the wet state, so that the state of the target object reflecting the ultrasonic signal can be determined according to the energy information of the preset wavelength in the reflected signal.
In the embodiment of the present application, the preset wavelength may be one or more wavelengths, or may be a wavelength interval, for example, the preset wavelength may be 30 kilohertz (Hz), or may be an interval in [30kHz, 50kHz ]; in addition, the preset wavelength can be determined by a user according to the information of the test result, the propagation property of the ultrasonic wave in the liquid and the solid in advance and the like. The energy information of the preset wavelength may include a ratio of energy of the preset wavelength to total energy of the reflected signal, an energy level of the preset wavelength, an energy distribution of the preset wavelength in the reflected signal, and the like.
Optionally, the acquiring energy information of a preset wavelength in the reflected signal, and determining a state of a target object reflecting the ultrasonic signal according to the energy information includes:
acquiring the ratio of energy with preset wavelength in the reflected signal to the total energy of the reflected signal;
if the ratio of the energy of the preset wavelength in the reflected signal to the total energy of the reflected signal meets a first preset condition, determining that the state of the target object is a wet state;
correspondingly, the determining the current touch mode of the terminal device according to the state of the target object includes:
and if the state of the target object is a wet state, determining that the current touch mode of the terminal equipment is floating touch.
The first preset condition may be that a ratio of energy of a preset wavelength in the reflected signal to total energy of the reflected signal is in a preset interval, and the like.
Optionally, the acquiring energy information of a preset wavelength in the reflected signal, and determining a state of a target object reflecting the ultrasonic signal according to the energy information includes:
acquiring the energy distribution condition of preset wavelength in the reflected signal;
if the energy distribution condition meets a second preset condition, determining that the state of the target object is a wet state;
correspondingly, the determining the current touch mode of the terminal device according to the state of the target object includes:
and if the state of the target object is a wet state, determining that the current touch mode of the terminal equipment is floating touch.
The energy distribution condition may be an energy value of a preset wavelength, an energy value variation trend of different preset wavelengths, an energy ratio condition of different preset wavelengths, and the like. Correspondingly, the second preset condition may be that the user performs setting according to an actual application scenario. For example, the preset wavelength may include a wavelength within a specified preset interval, and the energy distribution of the preset wavelength in the reflected signal may include a waveform formed by the preset wavelength in the reflected signal or a frequency and an energy value corresponding to the preset wavelength; or, for example, the energy distribution may be a waveform formed by a ratio of a preset wavelength or a frequency corresponding to the preset wavelength in the reflected signal to energy thereof in the total energy. Correspondingly, the second preset condition may be that the similarity between the waveform and the preset waveform is smaller than a preset similarity threshold.
Step S203, determining a current touch mode of the terminal device according to the state of the target object, where the touch mode includes a floating touch and a contact touch.
In the embodiment of the present application, the steps S201 and S203 are respectively the same as the steps S101 and S103, and reference may be specifically made to the related description of the steps S101 and S103, which is not repeated herein.
In the embodiment of the application, since the ultrasonic signals with the preset wavelengths have different energies after being reflected by the target objects in different states, the state of the target object can be effectively judged by the energy information with the preset wavelengths, so that the current touch mode of the terminal device can be accurately determined in time, and the sensitivity of touch operation for detecting objects such as wet fingers is improved.
EXAMPLE III
Referring to fig. 3, it is a schematic view of a further implementation flow of the touch control method provided in the embodiment of the present application, where the touch control method may include the following steps:
step S301, transmitting an ultrasonic signal through an ultrasonic sensor of the terminal equipment, and receiving a reflected signal of the ultrasonic signal.
Step S302, obtaining a ratio of the energy of the reflected signal to the energy of the ultrasonic signal.
In the embodiment of the present application, by comparing the reflection signal with the ultrasonic signal, the energy loss condition of the reflection signal compared with the ultrasonic signal can be determined, so as to determine the state of the target object according to the energy loss condition. The energy of the reflection signal may be a total energy of the reflection signal, or may specify an energy of the reflection signal at a time, such as a peak of the energy of the reflection signal received within a preset time.
Optionally, the ratio of the energy of the acquired reflection signal to the energy of the ultrasonic signal includes:
acquiring the total energy of a received reflection signal within a preset time, and calculating the ratio of the total energy of the reflection signal to the total energy of the ultrasonic signal;
and/or acquiring a peak value of energy of the received reflection signal within preset time, and calculating a ratio of the peak value of the energy of the reflection signal to the energy of the corresponding ultrasonic signal.
Step S303, determining a state of the target object reflecting the ultrasonic signal according to a ratio of the energy of the reflected signal to the energy of the ultrasonic signal, where the state includes a wet state and a dry state.
For example, the determining the state of the target object reflecting the ultrasonic signal according to the ratio of the energy of the reflected signal to the energy of the ultrasonic signal may include:
and when the ratio of the energy of the reflected signal to the energy of the ultrasonic signal is in a specified ratio interval (such as greater than a specified ratio or less than a specified ratio), determining that the state of the target object is a wet state.
Step S304, determining a current touch mode of the terminal device according to the state of the target object, where the touch mode includes a floating touch and a contact touch.
In the embodiment of the present application, the steps S301 and S304 are respectively the same as the steps S101 and S103, and reference may be specifically made to the related description of the steps S101 and S103, which is not repeated herein.
In the embodiment of the application, the state of the target object reflecting the ultrasonic signal can be determined by rapidly judging the energy loss condition of the reflected signal compared with the ultrasonic signal by obtaining the ratio of the energy of the reflected signal to the energy of the ultrasonic signal, so that the state of the target object reflecting the ultrasonic signal can be rapidly determined in a simple and feasible manner, the calculated amount of the terminal equipment is small, and the practicability and the usability are strong.
It should be understood that the sequence numbers of the steps in the first, second and third embodiments do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Example four
Fig. 4 is a schematic structural diagram of the touch control device provided in the embodiment of the present application, and for convenience of description, only the relevant portions of the touch control device related to the embodiment of the present application are shown. The touch control device may be used in various terminals having a touch function, such as a notebook Computer, a Pocket Computer (PPC), a Personal Digital Assistant (PDA), and the like, and may be a software unit, a hardware unit, a software and hardware combination unit, and the like, which are built in the terminals. The touch control device 400 in the embodiment of the present application includes:
an ultrasonic module 401, configured to transmit an ultrasonic signal through an ultrasonic sensor of a terminal device and receive a reflected signal of the ultrasonic signal;
a first determining module 402, configured to determine a state of a target object reflecting the ultrasonic signal according to the reflected signal, where the state includes a wet state and a dry state;
a second determining module 403, configured to determine a current touch mode of the terminal device according to the state of the target object, where the touch mode includes a floating touch and a contact touch.
Optionally, the first determining module 402 is specifically configured to:
and acquiring energy information of preset wavelength in the reflected signal, and determining the state of a target object reflecting the ultrasonic signal according to the energy information.
Optionally, the first determining module 402 is specifically configured to:
acquiring the ratio of energy with preset wavelength in the reflected signal to the total energy of the reflected signal;
if the ratio of the energy of the preset wavelength in the reflected signal to the total energy of the reflected signal meets a first preset condition, determining that the state of the target object is a wet state;
correspondingly, the second determining module 403 is specifically configured to:
and if the state of the target object is a wet state, determining that the current touch mode of the terminal equipment is floating touch.
Optionally, the first determining module 402 specifically includes:
the comparison unit is used for acquiring the energy distribution condition of the preset wavelength in the reflected signal;
a first determining unit, configured to determine that the state of the target object is a wet state if the energy distribution meets a second preset condition;
correspondingly, the second determining module 403 is specifically configured to:
and if the state of the target object is a wet state, determining that the current touch mode of the terminal equipment is floating touch.
Optionally, the first determining module 402 specifically includes:
an acquisition unit for acquiring a ratio of energy of a reflected signal to energy of the ultrasonic signal;
and a second determination unit configured to determine a state of the target object reflecting the ultrasonic signal based on a ratio of the energy of the reflected signal to the energy of the ultrasonic signal.
Optionally, the obtaining unit is specifically configured to:
acquiring the total energy of a received reflection signal within a preset time, and calculating the ratio of the total energy of the reflection signal to the total energy of the ultrasonic signal;
and/or acquiring a peak value of energy of the received reflection signal within preset time, and calculating a ratio of the peak value of the energy of the reflection signal to the energy of the corresponding ultrasonic signal.
Optionally, the first determining module 402 specifically includes:
a first calculating unit for calculating a time difference between a reception time when the reflected signal is received and a transmission time when the ultrasonic signal is transmitted;
a second calculation unit, configured to calculate a distance between a target object that reflects the ultrasonic signal and a screen of the terminal device according to the time difference;
and a third determining unit configured to determine a state of the target object reflecting the ultrasonic signal according to the reflected signal if the distance is smaller than a preset distance threshold.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
EXAMPLE five
An embodiment of the present application provides a terminal device, please refer to fig. 5, where the terminal device in the embodiment of the present application includes: a memory 501, one or more processors 502 (only one shown in fig. 5), and a computer program stored on the memory 501 and executable on the processors. Wherein: the memory 501 is used to store software programs and modules, and the processor 502 executes various functional applications and data processing by operating the software programs and units stored in the memory 501. Specifically, the processor 502 realizes the following steps by running the above-mentioned computer program stored in the memory 501:
transmitting an ultrasonic signal through an ultrasonic sensor of a terminal device, and receiving a reflected signal of the ultrasonic signal;
determining the state of a target object reflecting the ultrasonic signal according to the reflected signal, wherein the state comprises a wet state and a dry state;
and determining the current touch mode of the terminal equipment according to the state of the target object, wherein the touch mode comprises floating touch and contact touch.
Assuming that the above is the first possible embodiment, in a second possible embodiment provided based on the first possible embodiment, the determining a state of the target object reflecting the ultrasonic signal based on the reflected signal includes:
and acquiring energy information of preset wavelength in the reflected signal, and determining the state of a target object reflecting the ultrasonic signal according to the energy information.
In a third possible embodiment based on the second possible embodiment, the acquiring energy information of a preset wavelength in the reflected signal and determining a state of a target object reflecting the ultrasonic signal according to the energy information includes:
acquiring the ratio of energy with preset wavelength in the reflected signal to the total energy of the reflected signal;
if the ratio of the energy of the preset wavelength in the reflected signal to the total energy of the reflected signal meets a first preset condition, determining that the state of the target object is a wet state;
correspondingly, the determining the current touch mode of the terminal device according to the state of the target object includes:
and if the state of the target object is a wet state, determining that the current touch mode of the terminal equipment is floating touch.
In a fourth possible embodiment based on the second possible embodiment, the acquiring energy information of a preset wavelength in the reflected signal and determining a state of a target object reflecting the ultrasonic signal according to the energy information includes:
the acquiring energy information of a preset wavelength in the reflected signal and determining the state of the target object reflecting the ultrasonic signal according to the energy information includes:
acquiring the energy distribution condition of preset wavelength in the reflected signal;
if the energy distribution condition meets a second preset condition, determining that the state of the target object is a wet state;
correspondingly, the determining the current touch mode of the terminal device according to the state of the target object includes:
and if the state of the target object is a wet state, determining that the current touch mode of the terminal equipment is floating touch.
In a fifth possible embodiment based on the first possible embodiment, the determining a state of the target object reflecting the ultrasonic signal based on the reflected signal includes:
acquiring the ratio of the energy of the reflected signal to the energy of the ultrasonic signal;
and determining the state of the target object reflecting the ultrasonic signal according to the ratio of the energy of the reflected signal to the energy of the ultrasonic signal.
In a sixth possible implementation form based on the fifth possible implementation form, the obtaining a ratio of the energy of the reflected signal to the energy of the ultrasonic signal includes:
acquiring the total energy of a received reflection signal within a preset time, and calculating the ratio of the total energy of the reflection signal to the total energy of the ultrasonic signal;
and/or acquiring a peak value of energy of the received reflection signal within preset time, and calculating a ratio of the peak value of the energy of the reflection signal to the energy of the corresponding ultrasonic signal.
In a seventh possible implementation manner, which is provided based on the first possible implementation manner, or the second possible implementation manner, or the third possible implementation manner, or the fourth possible implementation manner, or the fifth possible implementation manner, or the sixth possible implementation manner, the processor 502 further implements the following steps when executing the computer program stored in the memory 501:
the determining a state of the target object reflecting the ultrasonic signal based on the reflected signal includes:
calculating a time difference between a receiving time of receiving the reflected signal and a transmitting time of transmitting the ultrasonic signal;
calculating the distance between a target object reflecting the ultrasonic signal and the screen of the terminal equipment according to the time difference;
and if the distance is smaller than a preset distance threshold value, determining the state of the target object reflecting the ultrasonic signal according to the reflected signal.
Further, as shown in fig. 5, the terminal device may further include: one or more input devices 503 (only one shown in fig. 5) and one or more output devices 504 (only one shown in fig. 5). The memory 501, processor 502, input device 503, and output device 504 are connected by a bus 505.
It should be understood that in the embodiments of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor may be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 503 may include a keyboard, a touch pad, a touch screen, a fingerprint sensor (for collecting fingerprint information of a user and direction information of a fingerprint), a microphone, a camera, an ultrasonic sensor, etc., and the output device 504 may include a display, a speaker, etc.
Memory 501 may include both read-only memory and random access memory and provides instructions and data to processor 502. Some or all of the memory 501 may also include non-volatile random access memory. For example, the memory 501 may also store device type information.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of external device software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the above-described modules or units is only one logical functional division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The integrated units, modules, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above may be implemented by a computer program, which may be stored in a computer readable storage medium and used by a processor to implement the steps of the embodiments of the methods described above. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer-readable storage medium may include: any entity or device capable of carrying the above-described computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer readable Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signal, telecommunication signal, software distribution medium, etc. It should be noted that the computer readable storage medium may contain other contents which can be appropriately increased or decreased according to the requirements of the legislation and the patent practice in the jurisdiction, for example, in some jurisdictions, the computer readable storage medium does not include an electrical carrier signal and a telecommunication signal according to the legislation and the patent practice.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (6)

1. A touch control method is characterized by comprising the following steps:
transmitting an ultrasonic signal through an ultrasonic sensor of a terminal device, and receiving a reflected signal of the ultrasonic signal;
determining the state of a target object reflecting the ultrasonic signal according to the reflected signal, wherein the state comprises a wet state and a dry state;
determining a current touch mode of the terminal equipment according to the state of the target object, wherein the touch mode comprises floating touch and contact touch;
the determining the state of the target object reflecting the ultrasonic signal according to the reflected signal comprises:
acquiring the energy distribution condition of a preset wavelength in the reflected signal; the preset wavelength comprises a wavelength in a specified preset interval, and the energy distribution condition is a waveform formed by the preset wavelength in the reflected signal or a frequency corresponding to the preset wavelength and an energy value thereof, or a waveform formed by the preset wavelength in the reflected signal or a ratio of the frequency corresponding to the preset wavelength and the energy value thereof to a total energy value;
if the energy distribution condition meets a second preset condition, determining that the state of the target object is a wet state; the second preset condition is that the similarity of the waveform and a preset waveform is smaller than a preset similarity threshold;
correspondingly, the determining the current touch mode of the terminal device according to the state of the target object includes:
and if the state of the target object is a wet state, determining that the current touch mode of the terminal equipment is suspension touch.
2. The touch control method according to claim 1, wherein before determining the state of the target object that reflects the ultrasonic signal according to the reflection signal, the method includes:
calculating a time difference between the receiving time of the received reflection signal and the transmitting time of the transmitted ultrasonic signal;
calculating the distance between a target object reflecting the ultrasonic signal and a screen of the terminal equipment according to the time difference;
and if the distance is smaller than a preset distance threshold value, determining the state of a target object reflecting the ultrasonic signal according to the reflected signal.
3. A touch control device, comprising:
the ultrasonic module is used for transmitting an ultrasonic signal through an ultrasonic sensor of the terminal equipment and receiving a reflected signal of the ultrasonic signal;
the first determination module is used for determining the state of a target object reflecting the ultrasonic signal according to the reflected signal, wherein the state comprises a wet state and a dry state;
the second determining module is used for determining the current touch mode of the terminal equipment according to the state of the target object, wherein the touch mode comprises floating touch and contact touch;
the first determining module further comprises:
the comparison unit is used for acquiring the energy distribution condition of the preset wavelength in the reflected signal; the preset wavelength comprises a wavelength in a specified preset interval, and the energy distribution condition is a waveform formed by the preset wavelength in the reflected signal or a frequency corresponding to the preset wavelength and an energy value thereof, or a waveform formed by the preset wavelength in the reflected signal or a ratio of the frequency corresponding to the preset wavelength and the energy value thereof to a total energy value;
the first determining unit is used for determining that the state of the target object is a wet state if the energy distribution condition meets a second preset condition; the second preset condition is that the similarity of the waveform and a preset waveform is smaller than a preset similarity threshold;
correspondingly, the second determining module is specifically configured to:
and if the state of the target object is a wet state, determining that the current touch mode of the terminal equipment is suspension touch.
4. The touch control device of claim 3, wherein the first determining module further comprises:
a first calculation unit for calculating a time difference between a reception time at which the reflected signal is received and a transmission time at which the ultrasonic signal is transmitted;
the second calculation unit is used for calculating the distance between a target object reflecting the ultrasonic signal and the screen of the terminal equipment according to the time difference;
and the third determining unit is used for determining the state of the target object reflecting the ultrasonic signal according to the reflected signal if the distance is smaller than a preset distance threshold.
5. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the steps of the method according to claim 1 or 2 are implemented when the processor executes the computer program.
6. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to claim 1 or 2.
CN201811189855.8A 2018-10-12 2018-10-12 Touch control method, touch control device and terminal equipment Active CN109062456B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811189855.8A CN109062456B (en) 2018-10-12 2018-10-12 Touch control method, touch control device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811189855.8A CN109062456B (en) 2018-10-12 2018-10-12 Touch control method, touch control device and terminal equipment

Publications (2)

Publication Number Publication Date
CN109062456A CN109062456A (en) 2018-12-21
CN109062456B true CN109062456B (en) 2022-01-07

Family

ID=64764802

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811189855.8A Active CN109062456B (en) 2018-10-12 2018-10-12 Touch control method, touch control device and terminal equipment

Country Status (1)

Country Link
CN (1) CN109062456B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110362260A (en) * 2019-06-06 2019-10-22 努比亚技术有限公司 A kind of terminal control method, terminal and computer readable storage medium
CN110309752B (en) * 2019-06-24 2021-09-10 Oppo广东移动通信有限公司 Ultrasonic processing method, ultrasonic processing apparatus, storage medium, and electronic device
CN112782283B (en) * 2019-11-07 2023-05-30 北京小米移动软件有限公司 Suction capacity measuring method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718056A (en) * 2016-01-19 2016-06-29 北京小米移动软件有限公司 Gesture recognition method and device
CN106055138A (en) * 2015-04-15 2016-10-26 三星电子株式会社 Touch input processing method and electronic device for supporting the same
CN106371751A (en) * 2016-08-30 2017-02-01 宇龙计算机通信科技(深圳)有限公司 Screen sliding method and device
CN106940608A (en) * 2017-03-07 2017-07-11 广东欧珀移动通信有限公司 A kind of control method of display screen, display screen and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11157115B2 (en) * 2017-03-31 2021-10-26 Apple Inc. Composite cover material for sensitivity improvement of ultrasonic touch screens

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055138A (en) * 2015-04-15 2016-10-26 三星电子株式会社 Touch input processing method and electronic device for supporting the same
CN105718056A (en) * 2016-01-19 2016-06-29 北京小米移动软件有限公司 Gesture recognition method and device
CN106371751A (en) * 2016-08-30 2017-02-01 宇龙计算机通信科技(深圳)有限公司 Screen sliding method and device
CN106940608A (en) * 2017-03-07 2017-07-11 广东欧珀移动通信有限公司 A kind of control method of display screen, display screen and electronic equipment

Also Published As

Publication number Publication date
CN109062456A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
JP5469746B2 (en) Touch detection device ground detection
US9665217B2 (en) Touch panel scan control
CN109062456B (en) Touch control method, touch control device and terminal equipment
US8743065B2 (en) Method of identifying a multi-touch rotation gesture and device using the same
JP5481581B2 (en) Touch detection method and touch control device
CN109739223B (en) Robot obstacle avoidance control method and device, terminal device and storage medium
CN103425332A (en) User interface navigation utilizing pressure-sensitive touch
US20120249599A1 (en) Method of identifying a multi-touch scaling gesture and device using the same
CN101601082B (en) Touch detection system
US20120249471A1 (en) Method of identifying a multi-touch rotation gesture and device using the same
US20120249448A1 (en) Method of identifying a gesture and device using the same
JP2014531676A (en) Electronic book page conversion method, apparatus, and portable device
TWI488082B (en) Portable electronic apparatus and touch sensing method
WO2018157348A1 (en) Method for determining touch-control detection of false-positive point, and capacitive touch-control device and electronic device
US11385741B2 (en) Method to reduce blanking area for palm rejection in low cost in-cell displays
CN107291367B (en) Use method and device of eraser
TW201344508A (en) Touch detecting method and touch control device using the same
US9965098B2 (en) Clamshell electronic device and calibration method capable of enabling calibration based on separated number of cover
JP5692764B2 (en) Object detection method and apparatus using the same
CN108815840B (en) Method and device for controlling application program, mobile terminal and storage medium
CN111226190A (en) List switching method and terminal
TWI494767B (en) Method, system, electronic device and peripheral device of communication
TW201643631A (en) Touch apparatus and touch detecting method thereof
US9971457B2 (en) Audio augmentation of touch detection for surfaces
CN110875876B (en) Electronic red packet identification method, electronic red packet identification device and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant