CN111190509B - Touch detection method and device, wireless earphone and storage medium - Google Patents
Touch detection method and device, wireless earphone and storage medium Download PDFInfo
- Publication number
- CN111190509B CN111190509B CN201911379350.2A CN201911379350A CN111190509B CN 111190509 B CN111190509 B CN 111190509B CN 201911379350 A CN201911379350 A CN 201911379350A CN 111190509 B CN111190509 B CN 111190509B
- Authority
- CN
- China
- Prior art keywords
- touch
- areas
- area
- capacitance value
- detection method
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/044—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0485—Scrolling or panning
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Position Input By Displaying (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application discloses a touch detection method, a device, a wireless earphone and a computer readable storage medium, wherein the method comprises the following steps: performing capacitance detection on each touch area in the touch panel so as to determine the touch state of each touch area; the touch panel comprises a plurality of touch areas in at least two extending directions, and each extending direction at least comprises two touch areas; and determining a sliding direction based on the touch states of all the touch areas, and executing corresponding operation according to the sliding direction. According to the touch detection method, capacitance detection is conducted on each touch area in the touch panel, so that the touch state of each touch area is obtained, and the sliding direction can be determined based on the change of the touch state of each touch area in a preset time window. Therefore, according to the touch detection method, multiple sliding actions can be defined on the premise that the hardware size is not changed, and multiple operations are further achieved through the wireless earphone.
Description
Technical Field
The present invention relates to the field of earphone technologies, and in particular, to a touch detection method and apparatus, a wireless earphone, and a computer readable storage medium.
Background
With the popularization of wireless earphone technology, the proportion of the wireless earphone technology in the whole earphone market in the E-commerce market is greatly improved. In particular, the convenience of TWS (Chinese full name: true Wireless stereo, english full name: true Wireless Stereo) earphone use brings excellent user experience for users. In the related art, the wireless earphone has a small external dimension, so that the touch pad cannot define more sliding actions, the function of the touch pad of the wireless earphone is less, great inconvenience is caused in the use process, and the user experience effect is affected.
Therefore, how to define various sliding actions without changing the hardware size is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The present application is directed to a touch detection method and apparatus, and a wireless headset and a computer-readable storage medium that define a plurality of sliding actions without changing the hardware size.
In order to achieve the above object, the present application provides a touch detection method, including:
performing capacitance detection on each touch area in the touch panel so as to determine the touch state of each touch area; the touch panel comprises a plurality of touch areas in at least two extending directions, and each extending direction at least comprises two touch areas;
and determining a sliding direction based on the touch states of all the touch areas, and executing corresponding operation according to the sliding direction.
Wherein the capacitive detection of each touch area in the touch panel to determine a touch state of each touch area includes:
determining an initial capacitance value of each touch area in the touch panel, and acquiring a current capacitance value of each touch area;
determining the touch state of a touch area with the difference value of the current capacitance value and the initial capacitance value being larger than or equal to a preset value as touch;
and determining the touch state of the touch area with the difference value of the current capacitance value and the initial capacitance value smaller than the preset value as non-touch.
Wherein the determining the sliding direction based on the touch states of all the touch areas includes:
recording the touch states of all the touch areas into a register address;
and determining the sliding direction based on the change condition of the register address in a preset time window.
The touch pad is divided into a plurality of touch areas by at least two dividing lines, an intersection point exists between the dividing lines, and at least two touch areas have axisymmetric relation.
Wherein the dividing lines comprise a first dividing line which is 45 degrees with respect to the horizontal direction and a second dividing line which is 45 degrees with respect to the vertical direction.
Wherein the touch panel includes a circular touch panel and a rectangular touch panel.
To achieve the above object, the present application provides a touch detection device, including:
the detection module is used for carrying out capacitance detection on each touch area in the touch panel so as to determine the touch state of each touch area; the touch panel comprises a plurality of touch areas in at least two extending directions, and each extending direction at least comprises two touch areas;
and the determining module is used for determining the sliding direction based on the touch states of all the touch areas and executing corresponding operations according to the sliding direction.
Wherein, the detection module includes:
an acquisition unit, configured to determine an initial capacitance value of each touch area in the touch panel, and acquire a current capacitance value of each touch area;
a first determining unit, configured to determine a touch state of a touch area where a difference value between the current capacitance value and the initial capacitance value is greater than or equal to a preset value as a touch;
and a second determining unit, configured to determine that the touch state of the touch area where the difference value between the current capacitance value and the initial capacitance value is smaller than the preset value is not touched.
To achieve the above object, the present application provides a wireless earphone, including:
a memory for storing a computer program;
and a processor for implementing the steps of the touch detection method as described above when executing the computer program.
To achieve the above object, the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the touch detection method as described above.
According to the scheme, the touch detection method provided by the application comprises the following steps: performing capacitance detection on each touch area in the touch panel so as to determine the touch state of each touch area; the touch panel comprises a plurality of touch areas in at least two extending directions, and each extending direction at least comprises two touch areas; and determining a sliding direction based on the touch states of all the touch areas, and executing corresponding operation according to the sliding direction.
In the application, the touch pad comprises a plurality of touch areas with at least two extending directions, each extending direction can realize actions in two sliding directions, each extending direction at least comprises two touch areas, namely, the touch pad in the application at least comprises four touch areas, and at least can identify actions in four sliding directions. According to the touch detection method, capacitance detection is conducted on each touch area in the touch panel, so that the touch state of each touch area is obtained, and the sliding direction can be determined based on the change of the touch state of each touch area in a preset time window. Therefore, according to the touch detection method, multiple sliding actions can be defined on the premise that the hardware size is not changed, and multiple operations are further achieved through the wireless earphone. The application also discloses a touch detection device, a wireless earphone and a computer readable storage medium, and the technical effects can be achieved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. The accompanying drawings are included to provide a further understanding of the disclosure, and are incorporated in and constitute a part of this specification, illustrate the disclosure and together with the description serve to explain, but do not limit the disclosure. In the drawings:
fig. 1 is a schematic view of touch area division of a touch panel in the related art;
FIG. 2 is a flow chart illustrating a method of touch detection according to an exemplary embodiment;
fig. 3 to 8 are schematic views of touch area division of the touch pad provided in the present application;
FIG. 9 is a flowchart illustrating another touch detection method according to an example embodiment;
FIG. 10 is a block diagram of a touch detection system provided herein;
FIG. 11 is a graph of touch state versus time for each touch area;
FIG. 12 is a block diagram of a touch detection device according to an exemplary embodiment;
fig. 13 is a block diagram of a wireless headset according to an exemplary embodiment.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
In the related art, the touch area of the touch panel is divided as shown in fig. 1, and includes four touch areas in one extending direction, that is, four touch areas arranged in a horizontal direction: pad1, pad2, pad3, and pad4. Since the extending direction of the touch area in the touch panel is one, 2 sliding directions can be realized: the pad1 can only recognize left and right sliding, but not upward and downward sliding based on the change of the touch state of each touch area, and the pad4 can only complete two functional instructions. Therefore, in the present application, the touch panel includes a plurality of touch areas in at least two extending directions, and each extending direction includes at least two touch areas, so that at least four sliding-direction actions can be recognized.
The embodiment of the application discloses a touch detection method, which defines a plurality of sliding actions on the premise of not changing the hardware size.
Referring to fig. 2, a flowchart of a touch detection method according to an exemplary embodiment is shown, as shown in fig. 2, including:
s101: performing capacitance detection on each touch area in the touch panel so as to determine the touch state of each touch area; the touch panel comprises a plurality of touch areas in at least two extending directions, and each extending direction at least comprises two touch areas;
the execution body of the embodiment may be a central processing unit (MCU) in the wireless earphone, so as to identify the sliding actions of the touch pad in different directions. The touch pad comprises a plurality of touch areas in at least two extending directions, each extending direction at least comprises two touch areas, each touch area is respectively connected to one input pin of the capacitance control touch device, and when any touch area is touched, a capacitance signal is transmitted to the capacitance control touch device through the input pin so as to carry out capacitance detection.
Specifically, the method comprises the following steps: determining an initial capacitance value of each touch area in the touch panel, and acquiring a current capacitance value of each touch area; determining the touch state of a touch area with the difference value of the current capacitance value and the initial capacitance value being larger than or equal to a preset value as touch; and determining the touch state of the touch area with the difference value of the current capacitance value and the initial capacitance value smaller than the preset value as non-touch.
In an implementation, the central processor performs capacitance detection on each touch area in the touch panel through the capacitance control touch device to determine the touch state of each touch area. When the finger is not touching, there is a static capacitance Cp, i.e. the initial capacitance value, for each touch area. When a finger touches, the parasitic capacitance CF on the finger is coupled to the static capacitance Cp, and the capacitance value of the touch area is cx=cf+cp. And when the difference value between the current capacitance value and the initial capacitance value is larger than or equal to a preset value, namely CF is larger than or equal to the preset value, judging that the touch state of the touch area is touch, otherwise, judging that the touch state of the touch area is not touch. Of course, a Sigma Delta analog to digital converter in a capacitive control touch may convert the capacitance value into corresponding digital counts, which the capacitive control touch detects whether it is touching by processing. The digital count V1 corresponding to Cp corresponds to the original count, the digital count corresponding to the capacitance Cx is V2 when the finger touches, the variation Δv of the count (Δv=v2-V1) is compared with a preset value set in the capacitance control touch device, and when Δv is greater than or equal to the preset value, the finger touches, the state 1 is defined, and when less than the preset value, the finger does not touch, the state 0 is defined.
The specific division manner of the touch area in the touch panel is not limited herein, and preferably, the touch panel is divided into a plurality of touch areas by at least two dividing lines, an intersection point exists between the dividing lines, at least two touch areas have an axisymmetric relationship, and the extending direction may be a symmetry axis. It will be appreciated that the present embodiment is likewise not limited to the shape of the touch panel, and the touch panel may include a circular touch panel, a rectangular touch panel, and the like. Fig. 3 to 8 are division examples of a touch panel, and in fig. 3 and 7, the dividing line includes a first dividing line at 45 degrees to a horizontal direction and a second dividing line at 45 degrees to a vertical direction, and the entire touch panel is divided into 4 touch areas including two extending directions: the sliding motion in the four directions of up, down, left and right can be recognized in the horizontal direction and the vertical direction. In fig. 4 and 5, the entire touch panel is divided into 4 touch areas including two extending directions: the sliding motion in the four directions of up, down, left and right can be recognized in the horizontal direction and the vertical direction. In fig. 6 and 8, the entire touch pad is divided into 4 touch areas including three extending directions, i.e., three symmetry axes in the drawing, and a sliding motion in six directions can be recognized.
S102: and determining a sliding direction based on the touch states of all the touch areas, and executing corresponding operation according to the sliding direction.
In this step, the sliding direction is determined based on the touch states of all the touch areas, and an operation corresponding to the sliding direction is performed. It is understood that when a finger slides on the touch pad, the time that the touch state of each touch area is touched is different, and the sliding direction of the finger can be determined based on the changing sequence of the touch states of each touch area. In a specific implementation, different sliding directions may be predefined to correspond to different functions, for example, sliding up to increase volume, sliding down to decrease volume, sliding left to play the previous audio, and sliding right to play the next audio may be defined.
As a preferred embodiment, the step of determining the sliding direction based on the touch states of all the touch areas includes: recording the touch states of all the touch areas into a register address; and determining the sliding direction based on the change condition of the register address in a preset time window.
In a specific implementation, when the capacitance control touch device detects a touch state change of a certain touch area, an interrupt signal is sent to a central processing unit in the wireless earphone, and the central processing unit reads the touch state of each touch area through the I2C and records the touch state of each touch area into a register address so as to identify a sliding mode. Taking fig. 3 as an example, 0 indicates no touch, 1 indicates touch, and the touch states are recorded in the register addresses in the order of pad1, pad2, pad3, and pad4, and if the register address changes from 0001 to 0100, the sliding direction is rightward, if the register address changes from 0100 to 0001, the sliding direction is leftward, if the register address changes from 0010 to 1000, the sliding direction is upward, and if the register address changes from 1000 to 0010, the sliding direction is downward.
In this embodiment of the present application, the touch pad includes a plurality of touch areas with at least two extending directions, each extending direction may implement actions with two sliding directions, and each extending direction includes at least two touch areas, that is, the touch pad in this application includes at least four touch areas, and at least actions with four sliding directions may be identified. According to the touch detection method, capacitance detection is conducted on each touch area in the touch panel, so that the touch state of each touch area is obtained, and the sliding direction can be determined based on the change of the touch state of each touch area in a preset time window. Therefore, according to the touch detection method provided by the embodiment of the application, various sliding actions can be defined on the premise of not changing the hardware size, and various operations are further realized through the wireless earphone.
The embodiment of the application discloses a touch detection method, and compared with the previous embodiment, the technical scheme is further described and optimized. Specific:
referring to fig. 9, a flowchart of another touch detection method according to an exemplary embodiment is shown, as shown in fig. 9, including:
s201: determining an initial capacitance value of each touch area in the touch panel, and acquiring a current capacitance value of each touch area; the touch panel comprises a plurality of touch areas in at least two extending directions, and each extending direction at least comprises two touch areas;
s202: determining the touch state of a touch area with the difference value of the current capacitance value and the initial capacitance value being larger than or equal to a preset value as touch;
s203: and determining the touch state of the touch area with the difference value of the current capacitance value and the initial capacitance value smaller than the preset value as non-touch.
S204: recording the touch states of all the touch areas into a register address;
s205: and determining the sliding direction based on the change condition of the register address in a preset time window.
S206: and executing corresponding operation according to the sliding direction.
In the application, the touch pad comprises a plurality of touch areas with at least two extending directions, each extending direction can realize actions in two sliding directions, each extending direction at least comprises two touch areas, namely, the touch pad in the application at least comprises four touch areas, and at least can identify actions in four sliding directions. According to the touch detection method, the touch state of each touch area is determined by detecting the capacitance change of each touch area, and the sliding direction can be determined based on the touch state of each touch area. Therefore, according to the touch detection method, multiple sliding actions can be defined on the premise that the hardware size is not changed, and multiple operations are further achieved through the wireless earphone.
Referring to fig. 10, fig. 10 is a schematic diagram of a Touch detection system provided in the present application, and as shown in fig. 10, a Touch pad of a wireless headset is divided into 4 sector-shaped Touch areas (pad 1, pad2, pad3, and pad 4), each Touch area is connected to one pin of a capacitive Touch controller (Touch IC), and the capacitive Touch controller is connected to a central processing unit (MCU) of the wireless headset through an I2C.
Referring to fig. 11, fig. 11 is a graph showing a change in touch state with respect to time for each touch area, 0 indicating no touch, and 1 indicating touch. As shown in fig. 11, none of the initial times pad1, pad2, pad3, pad4 is touched, and state 0000 is written into the register of the Touch IC. When the finger slides from pad1 to pad3, the capacitance of pad1 changes at time t1, and the change amount is larger than the set threshold, and the touch is determined to be changed from state 0 to state 1. The Touch IC detects the state change in the register, sends the interrupt signal to MCU, MCU reads this address bit state is 1000 at this moment, namely pad1, pad2, pad3, pad4 state is touching, not touching sequentially. The capacitance variation is different due to the different contact areas of the finger and the pad. And the contact areas of pad2 and pad4 are smaller, the capacitance variation is smaller than or equal to a set threshold value, and the touch is judged as no touch. At time t2, the pad3 capacitance changes, and the change amount is larger than the set threshold, and the touch is determined to be changed from the state 0 to the state 1. At the moment, the state in the Touch IC detection register changes again, an interrupt signal is sent to the MCU, and the MCU reads that the address bit state is 1010, and the states of pad1, pad2, pad3 and pad4 are Touch, non-Touch, touch and non-Touch. The MCU reads that the state is changed from 0000 to 1000, then is changed to 1010, and the MCU judges that the MCU slides downwards and sends a corresponding control instruction. Thereafter, at time t3, the MCU notifies the Touch IC to resume the initial state 0000. Similarly, pad3 slides toward pad1, identified as sliding upward; pad2 slides toward pad4, identifying it as sliding to the left; pad4 slides toward pad2, identified as sliding to the right. Therefore, the embodiment can realize four sliding modes of upward, downward, leftward and rightward, and further realize four functional instructions. Taking left sliding as an example, the contact surface of the finger with the pad1 and the pad3 is smaller in the sliding process, the probability of making touch misjudgment is smaller, and the false triggering probability is greatly reduced.
A touch detection device provided in the embodiments of the present application is described below, and a touch detection device described below and a touch detection method described above may be referred to with each other.
Referring to fig. 12, a structure diagram of a touch detection apparatus according to an exemplary embodiment is shown, as shown in fig. 12, including:
a detection module 100, configured to perform capacitance detection on each touch area in the touch panel, so as to determine a touch state of each touch area; the touch panel comprises a plurality of touch areas in at least two extending directions, and each extending direction at least comprises two touch areas;
and the determining module 200 is used for determining a sliding direction based on the touch states of all the touch areas and executing corresponding operations according to the sliding direction.
In this embodiment of the present application, the touch pad includes a plurality of touch areas with at least two extending directions, each extending direction may implement actions with two sliding directions, and each extending direction includes at least two touch areas, that is, the touch pad in this application includes at least four touch areas, and at least actions with four sliding directions may be identified. According to the touch detection device provided by the embodiment of the application, capacitance detection is performed on each touch area in the touch panel so as to acquire the touch state of each touch area, and the sliding direction can be determined based on the change of the touch state of each touch area in a preset time window. Therefore, the touch detection device provided by the embodiment of the application can define various sliding actions on the premise of not changing the hardware size, and further realizes various operations through the wireless earphone.
Based on the above embodiment, as a preferred implementation manner, the detection module 100 includes:
an acquisition unit, configured to determine an initial capacitance value of each touch area in the touch panel, and acquire a current capacitance value of each touch area;
a first determining unit, configured to determine a touch state of a touch area where a difference value between the current capacitance value and the initial capacitance value is greater than or equal to a preset value as a touch;
and a second determining unit, configured to determine that the touch state of the touch area where the difference value between the current capacitance value and the initial capacitance value is smaller than the preset value is not touched.
On the basis of the above embodiment, as a preferred implementation manner, the determining module 200 includes:
a recording unit, configured to record touch states of all the touch areas into a register address;
the determining unit is used for determining the sliding direction based on the change condition of the register address in a preset time window;
and the execution unit is used for executing corresponding operation according to the sliding direction.
On the basis of the above embodiment, as a preferred implementation manner, the touch panel is divided into a plurality of touch areas by at least two dividing lines, an intersection point exists between the dividing lines, and at least two touch areas have an axisymmetric relationship.
On the basis of the above embodiment, as a preferred embodiment, the dividing line includes a first dividing line at 45 degrees to the horizontal direction and a second dividing line at 45 degrees to the vertical direction.
On the basis of the above embodiment, as a preferred implementation manner, the touch panel includes a circular touch panel and a rectangular touch panel.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
The present application also provides a wireless earphone, referring to fig. 13, and as shown in fig. 13, a structure diagram of the wireless earphone provided in the embodiment of the present application may include a processor 11 and a memory 12. The wireless headset may also include one or more of a multimedia component 13, an input/output (I/O) interface 14, and a communication component 15.
The processor 11 is configured to control the overall operation of the wireless headset to perform all or part of the steps in the touch detection method described above. The memory 12 is used to store various types of data to support operation at the wireless headset, which may include, for example, instructions for any application or method operating on the wireless headset, as well as application related data, such as contact data, messages, pictures, audio, video, and the like. The Memory 12 may be implemented by any type or combination of volatile or non-volatile Memory devices, such as static random access Memory (Static Random Access Memory, SRAM for short), electrically erasable programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM for short), erasable programmable Read-Only Memory (Erasable Programmable Read-Only Memory, EPROM for short), programmable Read-Only Memory (Programmable Read-Only Memory, PROM for short), read-Only Memory (ROM for short), magnetic Memory, flash Memory, magnetic disk, or optical disk. The multimedia component 13 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen, the audio component being for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signals may be further stored in the memory 12 or transmitted through the communication component 15. The audio assembly further comprises at least one speaker for outputting audio signals. The I/O interface 14 provides an interface between the processor 11 and other interface modules, which may be a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 15 is used for wired or wireless communication between the wireless headset and other devices. Wireless communication, such as Wi-Fi, bluetooth, near field communication (Near Field Communication, NFC for short), 2G, 3G or 4G, or a combination of one or more thereof, the corresponding communication component 15 may thus comprise: wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the wireless headset may be implemented by one or more application specific integrated circuits (Application Specific Integrated Circuit, abbreviated ASIC), digital signal processor (Digital Signal Processor, abbreviated DSP), digital signal processing device (Digital Signal Processing Device, abbreviated DSPD), programmable logic device (Programmable Logic Device, abbreviated PLD), field programmable gate array (Field Programmable Gate Array, abbreviated FPGA), controller, microcontroller, microprocessor, or other electronic components for performing the touch detection method described above.
In another exemplary embodiment, a computer readable storage medium comprising program instructions which, when executed by a processor, implement the steps of the touch detection method described above is also provided. For example, the computer readable storage medium may be the memory 12 described above including program instructions executable by the processor 11 of the wireless headset to perform the touch detection method described above.
In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it would be obvious to those skilled in the art that various improvements and modifications can be made to the present application without departing from the principles of the present application, and such improvements and modifications fall within the scope of the claims of the present application.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Claims (10)
1. A touch detection method, characterized by being applied to a wireless headset, the method comprising:
performing capacitance detection on each touch area in a touch panel of the wireless earphone so as to determine the touch state of each touch area; the touch panel comprises a plurality of touch areas in at least two extending directions, and each extending direction at least comprises two touch areas;
and determining a sliding direction based on the touch states of all the touch areas, and executing corresponding operation according to the sliding direction.
2. The touch detection method of claim 1, wherein the capacitive detection of each touch area in the touch pad of the wireless headset to determine the touch state of each touch area comprises:
determining an initial capacitance value of each touch area in a touch panel of the wireless earphone, and acquiring a current capacitance value of each touch area;
determining the touch state of a touch area with the difference value of the current capacitance value and the initial capacitance value being larger than or equal to a preset value as touch;
and determining the touch state of the touch area with the difference value of the current capacitance value and the initial capacitance value smaller than the preset value as non-touch.
3. The touch detection method according to claim 1, wherein the determining a sliding direction based on touch states of all the touch areas includes:
recording the touch states of all the touch areas into a register address;
and determining the sliding direction based on the change condition of the register address in a preset time window.
4. The touch detection method according to claim 1, wherein the touch panel is divided into a plurality of touch areas by at least two dividing lines, an intersection point exists between the dividing lines, and at least two of the touch areas have an axisymmetric relationship.
5. The touch detection method of claim 4, wherein the dividing lines include a first dividing line at 45 degrees to a horizontal direction and a second dividing line at 45 degrees to a vertical direction.
6. The touch detection method of claim 4, wherein the touch panel comprises a circular touch panel and a rectangular touch panel.
7. A touch detection device for use with a wireless headset, the device comprising:
the detection module is used for carrying out capacitance detection on each touch area in the touch panel of the wireless earphone so as to determine the touch state of each touch area; the touch panel comprises a plurality of touch areas in at least two extending directions, and each extending direction at least comprises two touch areas;
and the determining module is used for determining the sliding direction based on the touch states of all the touch areas and executing corresponding operations according to the sliding direction.
8. The touch detection device of claim 7, wherein the detection module comprises:
an acquisition unit, configured to determine an initial capacitance value of each touch area in a touch pad of a wireless headset, and acquire a current capacitance value of each touch area;
a first determining unit, configured to determine a touch state of a touch area where a difference value between the current capacitance value and the initial capacitance value is greater than or equal to a preset value as a touch;
and a second determining unit, configured to determine that the touch state of the touch area where the difference value between the current capacitance value and the initial capacitance value is smaller than the preset value is not touched.
9. A wireless headset, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the touch detection method according to any one of claims 1 to 6 when executing the computer program.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the touch detection method according to any of claims 1 to 6.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911379350.2A CN111190509B (en) | 2019-12-27 | 2019-12-27 | Touch detection method and device, wireless earphone and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911379350.2A CN111190509B (en) | 2019-12-27 | 2019-12-27 | Touch detection method and device, wireless earphone and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111190509A CN111190509A (en) | 2020-05-22 |
| CN111190509B true CN111190509B (en) | 2023-06-27 |
Family
ID=70707687
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201911379350.2A Active CN111190509B (en) | 2019-12-27 | 2019-12-27 | Touch detection method and device, wireless earphone and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111190509B (en) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111757203B (en) * | 2020-06-29 | 2022-07-01 | 深圳市科奈信科技有限公司 | Wireless earphone control method and device, wireless earphone and storage medium |
| CN112114716A (en) * | 2020-08-24 | 2020-12-22 | 宁波聚核科技发展有限公司 | A Human Touch and Slide Induction Capacitive Sensor |
| CN115550778A (en) * | 2021-06-30 | 2022-12-30 | 上海艾为电子技术股份有限公司 | A wireless earphone and its control method |
| CN115904104B (en) * | 2021-08-10 | 2025-09-09 | 荣耀终端股份有限公司 | Method and device for preventing false touch |
| CN113703659B (en) * | 2021-09-01 | 2024-06-11 | 恒玄科技(上海)股份有限公司 | State detection method and device, wearable device, and readable storage medium |
| CN216670695U (en) * | 2021-11-17 | 2022-06-03 | 深圳麦克韦尔科技有限公司 | Touch sensing assembly and electronic equipment |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110162230A (en) * | 2019-05-24 | 2019-08-23 | 京东方科技集团股份有限公司 | Recognition methods, device and the storage medium of touch location |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5790203B2 (en) * | 2011-06-29 | 2015-10-07 | ソニー株式会社 | Information processing apparatus, information processing method, program, and remote operation system |
| WO2014081104A1 (en) * | 2012-11-21 | 2014-05-30 | Lg Electronics Inc. | Multimedia device for having touch sensor and method for controlling the same |
| CN108693986A (en) * | 2018-07-11 | 2018-10-23 | 歌尔科技有限公司 | A kind of touch plate response method, system and a kind of touch tablet and storage medium |
| CN110007811A (en) * | 2019-03-29 | 2019-07-12 | 京东方科技集团股份有限公司 | A method, device, computer storage medium and terminal for processing touch information |
-
2019
- 2019-12-27 CN CN201911379350.2A patent/CN111190509B/en active Active
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110162230A (en) * | 2019-05-24 | 2019-08-23 | 京东方科技集团股份有限公司 | Recognition methods, device and the storage medium of touch location |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111190509A (en) | 2020-05-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111190509B (en) | Touch detection method and device, wireless earphone and storage medium | |
| JP6790259B2 (en) | Methods and terminals to prevent accidental touches | |
| JP6557213B2 (en) | Page back | |
| US20110291930A1 (en) | Electronic device with touch input function and touch input method thereof | |
| CN106101848A (en) | A kind of barrage display packing and electronic equipment | |
| KR20190100339A (en) | Application switching method, device and graphical user interface | |
| CN105912188A (en) | Page display method and portable electronic device | |
| EP2869174A1 (en) | Method and device for text input and display of intelligent terminal | |
| JP2017507394A (en) | Side menu display method, apparatus and terminal | |
| US20130038552A1 (en) | Method and system for enhancing use of touch screen enabled devices | |
| CN107239166A (en) | It is a kind of to adjust method and the mobile terminal that interface of mobile terminal is shown | |
| CN104516673A (en) | Icon display method, equipment and mobile terminal | |
| CN106502470A (en) | Method, device and terminal for preventing false triggering of touch buttons | |
| WO2022052470A1 (en) | Method for operating widget, terminal and storage medium | |
| CN110244849B (en) | Proximity recognition method and device, mobile terminal and storage medium | |
| TWI556152B (en) | An input method control method and a handheld device | |
| CN111338495A (en) | Method and apparatus for determining touch point | |
| CN106445299A (en) | Control method and mobile terminal | |
| CN106066694A (en) | The control method of a kind of touch screen operation response and terminal | |
| KR102396736B1 (en) | Binding of an apparatus to a computing device | |
| KR102130037B1 (en) | Method and device for handling input event using a stylus pen | |
| CN106375591A (en) | Method for detecting audio input device, and mobile terminal | |
| WO2020147105A1 (en) | Touch control screen temperature state detection method and apparatus, touch control chip and electronic device | |
| CN107728898A (en) | A kind of information processing method and mobile terminal | |
| CN111625140A (en) | Touch test method and touch device |
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 |