CN109104658B - Touch identification method and device of wireless earphone and wireless earphone - Google Patents

Touch identification method and device of wireless earphone and wireless earphone Download PDF

Info

Publication number
CN109104658B
CN109104658B CN201810836357.1A CN201810836357A CN109104658B CN 109104658 B CN109104658 B CN 109104658B CN 201810836357 A CN201810836357 A CN 201810836357A CN 109104658 B CN109104658 B CN 109104658B
Authority
CN
China
Prior art keywords
current
array
touch
identifier
binarization
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
CN201810836357.1A
Other languages
Chinese (zh)
Other versions
CN109104658A (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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN201810836357.1A priority Critical patent/CN109104658B/en
Publication of CN109104658A publication Critical patent/CN109104658A/en
Application granted granted Critical
Publication of CN109104658B publication Critical patent/CN109104658B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/94Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
    • H03K17/96Touch switches
    • H03K17/962Capacitive touch switches
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K2217/00Indexing scheme related to electronic switching or gating, i.e. not by contact-making or -breaking covered by H03K17/00
    • H03K2217/94Indexing scheme related to electronic switching or gating, i.e. not by contact-making or -breaking covered by H03K17/00 characterised by the way in which the control signal is generated
    • H03K2217/96Touch switches
    • H03K2217/9607Capacitive touch switches
    • H03K2217/960735Capacitive touch switches characterised by circuit details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups

Abstract

The invention discloses a touch identification method and device of a wireless earphone, the wireless earphone and a computer readable storage medium, relates to the technical field of portable listening equipment, and is used for solving the problems that the existing touch identification has too many judgment conditions, low response speed and is not beneficial to user experience. The method comprises the following steps: acquiring respective touch states of touch keys arranged according to a preset sequence in the wireless headset; carrying out binarization on respective touch states of the touch keys to obtain a binarization array corresponding to the position sequence; and identifying the touch operation of the user according to the difference between the numerical value of each position in the binary array and the numerical value of the corresponding position in the two adjacent binary arrays. According to the invention, the respective touch states of the touch keys are binarized to obtain the binarized arrays corresponding to the position sequences, and the traditional difference processing is abandoned by adopting the binarized data design, so that the number of judgment conditions is greatly reduced, the response time is shortened, and the user experience is improved.

Description

Touch identification method and device of wireless earphone and wireless earphone
Technical Field
The present invention relates to the field of portable listening devices, and in particular, to a touch recognition method and apparatus for a wireless headset, and a computer-readable storage medium.
Background
The earphone is a pair of conversion units for receiving the electric signal sent by the media player or receiver and converting the electric signal into audible sound waves by using a loudspeaker close to the ear.
The existing earphones can be divided into wired earphones and wireless earphones, wherein the wired earphones need a left earphone and a right earphone to form a left sound channel and a right sound channel in a wired connection mode, a stereo effect is generated, and the wearing is very inconvenient. The wireless headset communicates with the terminal through a wireless communication protocol (such as bluetooth), and compared with a wired headset, the wireless headset has the characteristics of no need of data line collection and convenience in use. Among them, the real wireless interconnection stereo bluetooth headset (TWS headset) that appears at present is a typical one of wireless headsets, and the TWS headset is more and more popular because of being convenient to wear and being capable of being used alone, and its development is very vigorous in recent years.
In the prior art, the touch recognition of the wireless headset is often poor, and the recognition of the touch operation of the user can be realized only by judging a large number of conditions, so that the processor can respond after a certain time delay after the touch operation of the user (such as clicking, sliding and the like), thereby greatly reducing the experience of the user. Therefore, how to improve the recognition speed of the touch operation of the user, shorten the response time, and improve the user experience is a problem which needs to be solved urgently nowadays.
Disclosure of Invention
The invention aims to provide a touch identification method and device of a wireless earphone, the wireless earphone and a computer readable storage medium, which improve the identification speed of touch operation of a user, shorten the response time and improve the user experience.
In order to solve the above technical problem, the present invention provides a touch recognition method for a wireless headset, including:
s101: acquiring respective touch states of touch keys arranged according to a preset sequence in the wireless headset; wherein the touch state includes: a touched state and an untouched state;
s102: binarizing the touch states of the touch keys to obtain a binarized array corresponding to the position sequence;
s103: identifying user touch operation according to the difference between the numerical value of each position in the binary array and the numerical value of the corresponding position in the two adjacent binary arrays; wherein the user touch operation comprises at least one of a click operation, a long press operation and a slide operation.
Optionally, the S102 includes:
and respectively setting the current touched state and the current untouched state of the touch keys to 1 and 0, and acquiring the current binary array with the numerical value of 1 or 0 at each position.
Optionally, when the user touch operation includes the long press operation, the S103 includes:
s201: judging whether the difference between the numerical values of the corresponding positions in the current binarization array and the previous binarization array is 0 or not, and the numerical values of all the positions in the current binarization array are not 0; if yes, entering S202;
s202: updating the long press time, and judging whether the long press time reaches a first time threshold value; if yes, entering S203; if not, the process goes to S101;
s203: identified as the long press operation.
Optionally, when the user touch operation includes the sliding operation, the S103 includes:
s301: judging whether the difference between the numerical values of the corresponding positions in the current binarization array and the previous binarization array is 0, and the numerical values of all the positions in the current binarization array are not 0; if yes, entering S302;
s302: and identifying the sliding operation according to the numerical values of the first and last positions in the difference between the numerical value of each position in the next binary array and the numerical value of the corresponding position in the current binary array and the previous binary array.
Optionally, when the sliding operation includes a left sliding operation and a right sliding operation, and the values from the first position to the last position in the current binarization array sequentially correspond to the current touched states of the touch keys from left to right, the S302 includes:
s401: respectively updating the position of 1 in the +1 record array and the position of-1 in the-1 record array according to the difference between the numerical values of the corresponding positions in the current binarization array and the previous binarization array;
s402: recording the position of 1 in the +1 recording array by using a first identifier, and recording the position of-1 in the-1 recording array by using a second identifier;
s403: judging whether the first identifier is at the first or last position of the current binarization array; if not, the step S404 is entered; if yes, entering S405;
s404, assigning the first identifier to a third identifier, and entering the step S101;
s405: judging whether the first identifier is the same as the third identifier; if not, the step S404 is entered; if yes, entering S409;
s406: judging whether the second identifier is at the first or last position of the current binarization array; if not, the step S407 is entered; if yes, entering S408;
s407, assigning the second identifier to a fourth identifier, and entering the step S101;
s408: judging whether the second identifier is the same as the fourth identifier; if yes, entering S407; if not, entering S409;
s409: judging whether the numerical value of each position in the latter binary array is 0 or not; if yes, entering S410; if not, the step S101 is executed;
s410: when the first identifier is at the first position of the current binarization array or the second identifier is at the last position of the current binarization array, identifying the left sliding operation; and when the second identifier is at the first position of the current binarization array or the first identifier is at the last position of the current binarization array, identifying the right sliding operation.
Optionally, when the user touch operation further includes the click operation, before S401, the method further includes:
s501: judging whether the numerical value of each position in the next binary array is 0 or not, and 1 or-1 in the difference between the numerical values of the corresponding positions in the current binary array and the previous binary array is not at the first position and the last position of the current binary array; if yes, entering S502; if not, the step S401 is entered;
s502: determining a single click operation;
s503: and identifying the clicking operation according to the number of times of the clicking operation within a second time threshold.
Optionally, when the click operation includes the single click operation and the double click operation, the S503 includes:
s601: judging whether the clicking operation is performed twice within the second time threshold value; if yes, entering S602; if not, the step S603 is entered;
s602: identifying the double-click operation;
s603: identified as the single click operation.
Optionally, the S101 includes:
s701: acquiring respective current capacitance values of the touch keys;
s702: and acquiring the touch state of each touch key according to the current capacitance value of each touch key, the sum of the current untouched mean value corresponding to each touch key and the current threshold value.
Optionally, the S702 includes:
s801: judging whether the current capacitance value of the current touch key is larger than the sum of the corresponding current untouched mean value and the current threshold value; if yes, go to S802; if not, the step S804 is entered; the current touch key is any one of the touch keys;
s802: determining that the current touch key is in the touched state, and updating a corresponding current touched mean value by using the current capacitance value;
s803: dividing the difference between the updated current touched mean value and the current untouched mean value by a preset parameter to update the current threshold value; wherein the preset parameter is greater than 1;
s804: and determining that the current touch key is in the untouched state, and updating the current untouched mean value by using the current capacitance value.
The present invention also provides a touch recognition device for a wireless headset, comprising:
the acquisition module is used for acquiring the respective touch states of touch keys arranged according to a preset sequence in the wireless headset; wherein the touch state includes: a touched state and an untouched state;
the binarization module is used for binarizing the touch states of the touch keys to obtain a binarization array corresponding to the position sequence;
the identification module is used for identifying user touch operation according to the difference between the numerical value of each position in the binary array and the numerical value of the corresponding position in the two adjacent binary arrays; wherein the user touch operation comprises at least one of a click operation, a long press operation and a slide operation.
The present invention also provides a wireless headset, comprising: the touch keys, the memory and the processor are arranged according to a preset sequence; wherein the memory is configured to store a computer program, and the processor is configured to implement the steps of the touch recognition method for a wireless headset according to any one of the above descriptions when the computer program is executed.
Furthermore, the present invention also provides a computer readable storage medium having stored thereon a computer program which, when being executed by a processor, implements the steps of the touch recognition method of a wireless headset according to any one of the above.
The invention provides a touch identification method of a wireless earphone, which comprises the following steps: acquiring respective touch states of touch keys arranged according to a preset sequence in the wireless headset; wherein the touch state includes: a touched state and an untouched state; carrying out binarization on respective touch states of the touch keys to obtain a binarization array corresponding to the position sequence; identifying user touch operation according to the difference between the numerical value of each position in the binary array and the numerical value of the corresponding position in the two adjacent binary arrays; the user touch operation comprises at least one of click operation, long press operation and sliding operation;
therefore, the invention obtains the binary array corresponding to the position sequence by carrying out binarization on the respective touch states of the touch keys, adopts the binary data design, abandons the traditional difference processing and greatly reduces the number of judgment conditions; the user touch operation is identified according to the difference between the numerical value of each position in the binary array and the numerical value of the corresponding position in the two adjacent binary arrays, so that the identification of the user touch operation is realized, the response time is shortened, and the user experience is improved. In addition, the invention also provides a touch recognition device of the wireless earphone, the wireless earphone and a computer readable storage medium, and the touch recognition device, the wireless earphone and the computer readable storage medium also have the beneficial effects.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a touch recognition method for a wireless headset according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a configuration of a touch key of another touch recognition method for a wireless headset according to an embodiment of the present invention;
fig. 3 is a diagram illustrating a binary array of another touch recognition method for a wireless headset according to an embodiment of the present invention;
fig. 4 is a schematic touch diagram of a touch key of another touch identification method for a wireless headset according to an embodiment of the present invention;
fig. 5 is a diagram illustrating another binary array of another touch recognition method for a wireless headset according to an embodiment of the present invention;
FIG. 6 is a diagram showing a +1 record array and a-1 record array of another touch recognition method for a wireless headset according to an embodiment of the present invention;
fig. 7 is a flowchart illustrating another touch recognition method for a wireless headset according to an embodiment of the present invention;
fig. 8 is a diagram illustrating a long press operation of another touch recognition method for a wireless headset according to an embodiment of the present invention;
fig. 9 is a flowchart illustrating another touch recognition method for a wireless headset according to an embodiment of the present invention;
fig. 10 is a flowchart illustrating another touch recognition method for a wireless headset according to an embodiment of the present invention;
fig. 11 is a flowchart illustrating another touch recognition method for a wireless headset according to an embodiment of the present invention;
fig. 12 is a flowchart illustrating another touch recognition method for a wireless headset according to an embodiment of the present invention;
fig. 13 is a structural diagram of a touch recognition device of a wireless headset according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a touch recognition method of a wireless headset according to an embodiment of the present invention. The method can comprise the following steps:
s101: acquiring respective touch states of touch keys arranged according to a preset sequence in the wireless headset; wherein the touch state includes: a touched state and an untouched state.
It can be understood that the touch recognition method of the wireless headset provided in this embodiment may be a method for detecting and recognizing a touch operation of a user for the wireless headset itself, that is, the method provided in this embodiment may be implemented when a processor, such as a single chip microcomputer, in the wireless headset executes a corresponding computer program, that is, an execution subject of the method provided in this embodiment may be the processor, such as the single chip microcomputer, in the wireless headset; the method provided by the present embodiment may also be implemented when a terminal, such as a mobile phone, detects and identifies a user touch operation on a wireless headset paired with the terminal, that is, when a processor in the terminal paired with the wireless headset executes a corresponding computer program, that is, an execution subject of the method provided by the present embodiment may be the processor in the terminal paired with the wireless headset.
Specifically, the specific manner in which the processor acquires the respective touch states of the touch keys arranged in the wireless headset according to the preset sequence in this step may be set by a designer according to a use scene and a user requirement, and may be the same as or similar to the manner in the prior art, for example, when the touch keys are capacitive touch keys, the respective touch state of each touch key may be determined by comparing the acquired current capacitance value of each touch key with a threshold parameter written in advance during a factory-side test; in order to further improve the accuracy of determining the respective touch state of each touch key, a fixed threshold parameter may be set as a dynamically adjustable threshold parameter, for example, the threshold parameter may be composed of a dynamically adjustable current untouched mean value and a current threshold, that is, when the touch key is a capacitive touch key, the respective touch state of each touch key may be determined by obtaining a comparison between a current capacitance value of each touch key and a respective corresponding current untouched mean value and current threshold. As long as the respective touch states of the touch keys arranged in the preset sequence in the wireless headset can be obtained, the embodiment does not limit the touch states.
Correspondingly, the specific number and arrangement of the touch keys in the wireless headset in this step, that is, the specific setting of the preset sequence, may be set by the designer according to the practical scene and the user's requirement, and as shown in fig. 2, the wireless headset may have four touch keys of reference numerals 1, 2, 3, and 4 from left to right, and may also be set from right to left or from top to bottom. The present embodiment does not set any limit to this.
It should be noted that, in this step, the respective touch states of the touch keys arranged in the preset sequence in the wireless headset at each time may be obtained at preset time intervals, or the respective touch states of the touch keys arranged in the preset sequence in the wireless headset at each time may be obtained in real time. The specific value setting of the preset time interval can be set by a designer according to a use scene and a user requirement, and this embodiment does not limit this.
S102: and carrying out binarization on the respective touch states of the touch keys to obtain a binarization array corresponding to the position sequence.
The purpose of this step may be to divide the untouched (off) state and the touched (on) state in the touch states by two different values by binarizing the respective touch states of the touch keys, so as to provide great convenience for subsequent recognition calculation.
Specifically, the specific value setting of the binarization performed in this step may be set by a designer according to a practical scenario and a user requirement, for example, the value of the untouched state may be set to 0, and the value of the touched state may be set to 1, as long as a different value may be set for the untouched state and the touched state, which is not limited in this embodiment.
It can be understood that the sequence of each position of the binarized array obtained in this step may correspond to the arrangement sequence of the touch keys, and the specific corresponding relationship between the sequence of each position of the binarized array and the arrangement sequence of the touch keys may be set by a designer according to a practical scene and a user requirement, for example, the first position to the last position in the binarized array may correspond to the touch keys from left to right in sequence, if the first position to the last position in the binarized array are arranged in sequence from left to right, the binarized array corresponding to the touch keys in the case of fig. 2 may be shown in fig. 3, and the binarized array corresponding to the touch keys in the case of fig. 4 may be shown in fig. 5. As long as the sequence of each position of the binarized array may correspond to the arrangement sequence of the touch keys, this embodiment does not limit this.
S103: identifying user touch operation according to the difference between the numerical value of each position in the binary array and the numerical value of the corresponding position in the two adjacent binary arrays; wherein the user touch operation comprises at least one of a click operation, a long press operation and a slide operation.
It can be understood that the purpose of this step may be to identify a user touch operation through the value of each position in the binarization array at each time and the difference between the binarization array at the current time and the binarization array at the previous time. As for the specific solving method of the difference between the current-time binary array and the last-time binary array in this step, the difference can be set by a designer according to a use scene and user requirements, as shown in fig. 6, the difference between the corresponding position values in the current-time binary array (the current binary array) and the last-time binary array (the previous binary array) can be calculated, and the difference between the current-time binary array and the last-time binary array, that is, the difference between the corresponding position values in the two adjacent binary arrays, is obtained; or calculating the difference between the values of the corresponding positions in the binarization array at the previous moment (previous binarization array) and the binarization array at the current moment (current binarization array), and obtaining the difference between the binarization array at the current moment and the binarization array at the previous moment, i.e. the difference between the values of the corresponding positions in two adjacent binarization arrays. The present embodiment does not set any limit to this.
It should be noted that, for the specific manner of identifying the user touch operation in this step according to the difference between the numerical value at each position in the binary array and the numerical value at the corresponding position in the two adjacent binary arrays, the designer can set the user touch operation according to the practical scene and the user requirement, if the specific content of the user touch operation that can be identified according to the requirement is set correspondingly, as long as the user touch operation can be identified by using the difference between the numerical value at each position in the binary array and the numerical value at the corresponding position in the two adjacent binary arrays, this embodiment does not limit this.
In the embodiment, the binaryzation data array corresponding to the position sequence is obtained by binarizing the respective touch states of the touch keys, and the binary data design is adopted, so that the traditional difference processing is abandoned, and the number of judgment conditions is greatly reduced; the user touch operation is identified according to the difference between the numerical value of each position in the binary array and the numerical value of the corresponding position in the two adjacent binary arrays, so that the identification of the user touch operation is realized, the response time is shortened, and the user experience is improved.
Based on the above embodiments, the present embodiment provides a method for recognizing a long press operation in a user touch operation. Referring to fig. 7, fig. 7 is a flowchart illustrating another touch recognition method for a wireless headset according to an embodiment of the present invention. The method can comprise the following steps:
s201: judging whether the difference between the numerical values of the corresponding positions in the current binary array and the previous binary array is 0 or not, and the numerical values of all the positions in the current binary array are not 0; if yes, the process proceeds to S202.
It can be understood that, in the embodiment, the example is shown in which the value of the untouched state is set to be 0 and the value of the touched state is set to be 1 in the binarization process, and the purpose of the embodiment can also be achieved by setting the values of the untouched state and the touched state to be two different values, which is not limited in this embodiment.
The purpose of this step may be to determine whether the current binarization array is the same as the previous binarization array by determining whether the difference between the values of the corresponding positions in the current binarization array and the previous binarization array is 0; and determining whether the touch key corresponding to the current binarization array is touched by a user or not by judging whether the numerical values of all the positions in the current binarization array are not 0 or not.
It should be noted that this embodiment specifically shows the identification process of the long press operation in the touch operation of the user in S103 of the previous embodiment, and for the specific acquisition process of the current binarized array and the previous binarized array in this step, the previous embodiment may be referred to for corresponding acquisition, which is not limited in this embodiment.
S202: updating the long press time, and judging whether the long press time reaches a first time threshold value; if yes, the process proceeds to S203.
The purpose of this step may be to perform cumulative update on the long press time after determining whether the current binarization array is the same as the previous binarization array and the touch key corresponding to the current binarization array is touched by the user (see fig. 8), that is, the long press time may be increased each time the step is entered until the long press time reaches the first time threshold.
Specifically, the specific manner of updating the long press time in this step may be to increase the time interval of entering this step, or to increase the number of times of entering this step, as long as the duration of the long press time can be presented, which is not limited in this embodiment.
In the present step, if the time does not reach the first time threshold, the process may return to S101 to continue waiting for the current binarization array at the next time.
S203: identified as a long press operation.
It is understood that the long press operation in this step may be an operation in which the user continuously touches the touch key of the wireless headset for the first time threshold.
The step may further include a step of initializing the data of the first time threshold and other data in this embodiment.
In this embodiment, the embodiment of the present invention determines whether the user continuously touches the same touch key by determining whether the difference between the numerical values of the corresponding positions in the current binarized array and the previous binarized array is 0 and the numerical values of the positions in the current binarized array are not 0; whether the time for touching the same touch key by the user reaches the first time threshold value is determined by judging whether the long pressing time reaches the first time threshold value, so that the long pressing operation in the touch operation of the user is identified.
Based on any one of the embodiments described above, the present embodiment provides a method for recognizing a slide operation in a user touch operation. Referring to fig. 9, fig. 9 is a schematic flowchart illustrating another touch recognition method for a wireless headset according to an embodiment of the present invention. The method can comprise the following steps:
s301: judging whether the difference between the numerical values of the corresponding positions in the current binary array and the previous binary array is 0, and the numerical values of all the positions in the current binary array are not 0; if yes, the process proceeds to S302.
It can be understood that, in the embodiment, the example is shown in which the value of the untouched state is set to be 0 and the value of the touched state is set to be 1 in the binarization process, and the purpose of the embodiment can also be achieved by setting the values of the untouched state and the touched state to be two different values, which is not limited in this embodiment.
The purpose of the step can be to determine whether the current binarization array is different from the previous binarization array or not by judging whether the difference between the numerical values of the corresponding positions in the current binarization array and the previous binarization array is not 0 or not; and determining whether the touch key corresponding to the current binarization array is touched by a user or not by judging whether the numerical values of all the positions in the current binarization array are not 0 or not.
It should be noted that this embodiment specifically shows the identification process of the long press operation in the touch operation of the user in S103 of the previous embodiment, and for the specific acquisition process of the current binarized array and the previous binarized array in this step, the previous embodiment may be referred to for corresponding acquisition, which is not limited in this embodiment.
S302: and identifying sliding operation according to the numerical values of the first and last positions in the difference between the numerical value of each position in the next binary array and the numerical value of the corresponding position in the current binary array and the previous binary array.
It can be understood that, since the last of the click operation and the slide operation in the user touch operation is the case where the numerical value of each position in the binary array is 0, the present embodiment distinguishes the click operation and the slide operation by 1 or-1 appearing in the numerical values of the first and last positions in the difference between the numerical values of the corresponding positions in the current binary array and the previous binary array; the click operation and the slide operation may also be distinguished by 1 or-1 appearing in the numerical values of the previous preset number of positions and the next preset number of positions in the difference between the numerical values of the corresponding positions in the current binarized array and the previous binarized array, that is, the slide operation may also be identified according to the numerical values of the previous preset number of positions and the next preset number of positions in the difference between the numerical values of the corresponding positions in the current binarized array and the previous binarized array, which is not limited in this embodiment.
Specifically, when the sliding operation includes a left sliding operation and a right sliding operation, and the values from the first position to the last position in the current binary array sequentially correspond to the respective current touched states of the left-to-right touch keys, as shown in fig. 10, this step may include:
s401: and respectively updating the position of 1 in the +1 record array and the position of-1 in the-1 record array according to the difference between the numerical values of the corresponding positions in the current binarization array and the previous binarization array.
As shown in fig. 6, the +1 record array and the-1 record array in this step may be two arrays separately opened for recording the motion trajectories of 1 and-1.
S402: the position of a 1 in the array is recorded with the first identification record +1 and the position of a-1 in the array is recorded with the second identification record-1.
It can be understood that the step uses the first flag1 and the second flag2 to record the positions of the 1 and-1 records in the +1 record array and the-1 record array, namely the position in the current binarization array, respectively.
S403: judging whether the first identifier is at the first or last position of the current binarization array; if not, the step S404 is entered; if yes, the process proceeds to S405.
The purpose of this step may be to determine whether the first identifier is at the first or last position of the current binarization array, where the two positions are sensitive positions, and when the two positions are reached, it is likely that the first identifier slides from other positions to the edge position.
And S404, assigning the first identifier to the third identifier.
In the step, a third identifier (flag3) is respectively adopted to record the position of the last 1 in the +1 recording array, and the first identifier is assigned to the third identifier in the step to prepare for the next judgment.
S405: judging whether the first identifier is the same as the third identifier; if not, the step S404 is entered; if yes, the process proceeds to S409.
It can be understood that, in this step, if the first identifier is different from the third identifier, it can be proved that the touch of the user on the touch key has just slid to both sides at the present time.
S406: judging whether the second identifier is at the first or last position of the current binarization array; if not, the step S407 is entered; if yes, the process proceeds to S408.
And S407, assigning the second identifier to a fourth identifier.
S408: judging whether the second identifier is the same as the fourth identifier; if yes, entering S407; if not, the process proceeds to S409.
The steps 406 to 408 are similar to the steps 403 to 405, and are not described herein again.
S409: judging whether the numerical value of each position in the next binary array is 0 or not; if yes, the process proceeds to S410.
It can be understood that, in this step, whether the sliding operation is completed is determined by judging whether the numerical value of each position in the subsequent binarization array is 0. For the case that the numerical values of the positions in the subsequent binarized array are not all 0, that is, the sliding operation is not completed, the binary data at the next time can be waited by returning to step 101.
S410: when the first identifier is at the first position of the current binarization array or the second identifier is at the last position of the current binarization array, identifying the operation as left sliding operation; and when the second identifier is at the first position of the current binarization array or the first identifier is at the last position of the current binarization array, identifying the operation as right-sliding operation.
It is understood that this step may be followed by the step of initializing the four identified data and other data such as the first time threshold in this embodiment.
Correspondingly, when the user touch operation further includes a click operation, a step of identifying the click operation may be further included before S401. If the numerical values of all the positions in the next binary array are all 0, and 1 or-1 in the difference between the numerical values of the corresponding positions in the current binary array and the previous binary array is not located at the first position and the last position of the current binary array; if yes, determining to be one-time single-click operation; and identifying the clicking operation according to the number of times of the clicking operation within the second time threshold.
Specifically, when the clicking operation only comprises the clicking operation and the double clicking operation, whether two times of clicking operations exist within a second time threshold is judged; if yes, identifying as double-click operation; and if not, identifying the operation as single-click operation.
In this embodiment, the embodiment of the present invention uses the numerical values of the first and last positions in the difference between the numerical value of each position in the next binarized array and the numerical value of the corresponding position in the current binarized array and the previous binarized array, and distinguishes the click operation and the sliding operation, thereby realizing the identification of the sliding operation in the user touch operation.
Based on any one of the above embodiments, in order to further improve the accuracy of determining the respective touch states of the touch keys in the wireless headset. Referring to fig. 11, fig. 11 is a schematic flowchart illustrating another touch recognition method for a wireless headset according to an embodiment of the present invention. The method can comprise the following steps:
s701: and acquiring respective current capacitance values of touch keys in the wireless earphone.
The touch key in the step is a capacitive touch key.
It can be understood that the current capacitance value in this step may be a capacitance value of the touch key acquired at the current time.
S702: and acquiring the respective touch states of the touch keys according to the respective current capacitance values of the touch keys and the sum of the respective corresponding current untouched mean value and the current threshold value.
In this step, the current untouched mean value corresponding to each touch key in the step may be an average value of capacitance values determined as untouched states corresponding to all the touch keys, the current threshold value corresponding to each touch key may correspond to the current untouched mean value and the current touched mean value corresponding to the touch key, and the current touched mean value corresponding to each touch key may be an average value of capacitance values determined as touched states corresponding to all the touch keys. The specific obtaining mode of the current threshold corresponding to each touch key may be set by a designer according to a use scenario and a user requirement, for example, the current threshold may be obtained by dividing a difference between a current touched mean value and a current untouched mean value by a preset parameter larger than 1, or by subtracting another preset parameter larger than 0 from a difference between a current touched mean value and a current untouched mean value, as long as the current threshold may be obtained by using the current untouched mean value and the current touched mean value, which is not limited in this embodiment.
Specifically, the step may be as shown in fig. 12, and includes:
s801: judging whether the current capacitance value of the current touch key is larger than the sum of the corresponding current untouched mean value and the current threshold value; if yes, go to S802; if not, the process proceeds to S804.
The current touch key in the step is any touch key in the wireless earphone.
S802: and determining that the current touch key is in a touched state, and updating the corresponding current touched mean value by using the current capacitance value.
It can be understood that, after determining that the current touch key is in the touched state in this step, the manner of updating the current touched mean value corresponding to the current touch key by using the current capacitance value may be as follows: if the previous current touched average value is On1 and the number of times is n1, and the current capacitance value is On2, the updated current touched average value is (On1 × n1+ On2)/(n1+1), and the updated number of times n is n1+ 1.
It should be noted that, in this embodiment, the initial value of the currently touched mean value may be the sum of the initial value of the currently untouched mean value and an initial value of a current threshold multiplied by a preset parameter. The initial value of the current threshold value can be set by a designer according to a use scene and user requirements, and can be set to 60. The present embodiment does not set any limit to this.
S803: and the current threshold value is updated by dividing the difference between the updated current touched average value and the current untouched average value by a preset parameter.
In S801, the current capacitance value is directly compared with the sum of the current untouched mean value and the current threshold value, so the preset parameter in this step needs to be greater than 1. The specific value of the preset parameter can be set by a designer or a user, for example, the specific value can be set to 2. The present embodiment does not set any limit to this.
S804: and determining that the current touch key is in an untouched state, and updating the average value of the current untouched keys by using the current capacitance value.
In this step, the method for updating the currently untouched mean value corresponding to the currently touched key by using the current capacitance value is similar to the updating method of the currently touched mean value, and is not described herein again.
It is to be understood that this step may also be followed by a current threshold updating step similar to S803, and the setting of the time point of the current threshold updating may be only after the current touched mean value is updated as shown in this embodiment, may also be only after the current untouched mean value is updated, and may also be respectively after the current touched mean value and the current untouched mean value are updated. The present embodiment does not set any limit to this.
In this embodiment, the touch states of the touch keys are obtained according to the current capacitance values of the touch keys and the sum of the corresponding current untouched mean value and the current threshold value, and the touch states of the touch keys in the wireless headset are judged by using the parameter threshold value which is formed by the current untouched mean value and the current threshold value and can be continuously learned and updated, so that the judgment accuracy and the practical use applicability are improved.
Referring to fig. 13, fig. 13 is a structural diagram of a touch recognition device of a wireless headset according to an embodiment of the present invention. The apparatus may include:
an obtaining module 100, configured to obtain respective touch states of touch keys arranged according to a preset sequence in a wireless headset; wherein the touch state includes: a touched state and an untouched state;
a binarization module 200, configured to binarize respective touch states of the touch keys to obtain a binarization array corresponding to the position sequence;
the identification module 300 is configured to identify a user touch operation according to a difference between a numerical value at each position in the binary array and a numerical value at a corresponding position in two adjacent binary arrays; wherein the user touch operation comprises at least one of a click operation, a long press operation and a slide operation.
Optionally, the binarization module 200 may include:
and the binarization submodule is used for respectively setting the current touched state and the current untouched state of each touch key to be 1 and 0 and acquiring the current binarization array of which the numerical value at each position is 1 or 0.
Optionally, when the user touch operation includes a long-press operation, the identifying module 300 may include:
the first judgment submodule is used for judging whether the difference between the numerical values of the corresponding positions in the current binary array and the previous binary array is 0 or not, and the numerical values of all the positions in the current binary array are not 0; if yes, sending a starting signal to an updating judgment sub-module;
the updating judgment submodule is used for updating the long press time and judging whether the long press time reaches a first time threshold value; if yes, sending a starting signal to the first identification submodule;
and the first identification submodule is used for identifying the long press operation.
Optionally, when the user touch operation includes a sliding operation, the identifying module 300 may include:
the second judgment submodule is used for judging whether the difference between the numerical values of the corresponding positions in the current binary array and the previous binary array is 0, and the numerical values of all the positions in the current binary array are not 0; if yes, sending a starting signal to a second identification submodule;
and the second identification submodule is used for identifying sliding operation according to the numerical values of the first position and the last position in the difference between the numerical values of each position in the next binary array and the numerical values of the corresponding positions in the current binary array and the previous binary array.
Optionally, when the sliding operation includes a left sliding operation and a right sliding operation, and the values from the first position to the last position in the current binary array sequentially correspond to the respective current touched states of the left-to-right touch keys, the second identification submodule may include:
the first updating unit is used for respectively updating the position of 1 in the +1 record array and the position of-1 in the-1 record array according to the difference between the numerical values of the corresponding positions in the current binary array and the previous binary array;
the recording unit is used for recording the position of 1 in the array by using the first identification record +1 and recording the position of-1 in the array by using the second identification record-1;
the first judgment unit is used for judging whether the first identifier is at the first or last position of the current binarization array; if not, sending a starting signal to the first assignment unit; if yes, sending a starting signal to a second judgment unit;
the first assignment unit is used for assigning the first identifier to the third identifier;
the second judging unit is used for judging whether the first identifier is the same as the third identifier or not; if not, sending a starting signal to the first assignment unit; if yes, sending a starting signal to a fifth judging unit;
the third judging unit is used for judging whether the second identifier is at the first or last position of the current binarization array; if not, sending a starting signal to the second assignment unit; if yes, sending a starting signal to a fourth judging unit;
the second assignment unit is used for assigning the second identifier to the fourth identifier;
a fourth judging unit, configured to judge whether the second identifier is the same as the fourth identifier; if yes, sending a starting signal to a second assignment unit; if not, sending a starting signal to a fifth judging unit;
a fifth judging unit, configured to judge whether the numerical value of each position in the subsequent binarization array is 0; if yes, sending a starting signal to the identification unit;
the first identification unit is used for identifying left-sliding operation when the first identifier is at the first position of the current binarization array or the second identifier is at the last position of the current binarization array; and when the second identifier is at the first position of the current binarization array or the first identifier is at the last position of the current binarization array, identifying the operation as right-sliding operation.
Optionally, when the user touch operation further includes a click operation, the identifying module 300 may further include:
the third judgment submodule is used for judging whether the numerical value of each position in the next binary array is 0 or not, and 1 or-1 in the difference between the numerical values of the corresponding positions in the current binary array and the previous binary array is not positioned at the first position and the last position of the current binary array; if yes, sending a starting signal to the determining submodule;
the determining submodule is used for determining the determined one-click operation;
and the third identification submodule is used for identifying the clicking operation according to the times of the clicking operation within the second time threshold.
Optionally, when the click operation includes a single click operation and a double click operation, the third identifying sub-module may include:
the sixth judging unit is used for judging whether two clicking operations exist within the second time threshold; if yes, sending a starting signal to a second identification unit; if not, sending a starting signal to a third identification unit;
a second recognition unit configured to recognize as a double-click operation;
and a third identification unit for identifying the single-click operation.
Optionally, the obtaining module 100 may include:
the first obtaining submodule is used for obtaining respective current capacitance values of the touch keys;
and the second obtaining submodule is used for obtaining the respective touch states of the touch keys according to the respective current capacitance values of the touch keys, the respective corresponding sum of the current untouched mean value and the current threshold value.
Optionally, the second obtaining sub-module may include:
a seventh judging unit, configured to judge whether a current capacitance value of the current touch key is greater than a sum of a corresponding current untouched mean value and a current threshold; if yes, sending a starting signal to a first determination updating unit; if not, sending a starting signal to a second determination updating unit; the current touch key is any touch key;
the first determining and updating unit is used for determining that the current touch key is in a touched state and updating the corresponding current touched mean value by using the current capacitance value;
the second updating unit is used for dividing the difference between the updated current touched average value and the current untouched average value by a preset parameter to update the current threshold value; wherein the preset parameter is more than 1;
and the second determination updating unit is used for determining that the current touch key is in an untouched state and updating the untouched mean value by using the current capacitance value.
In the embodiment of the invention, the binarization module 200 is used for binarizing the respective touch states of the touch keys to obtain the binarization arrays corresponding to the position sequences, and the binarization data design is adopted, so that the traditional poor processing is abandoned, and the number of judgment conditions is greatly reduced; the user touch operation is identified through the identification module 300 according to the difference between the numerical value of each position in the binary array and the numerical value of the corresponding position in the two adjacent binary arrays, so that the identification of the user touch operation is realized, the response time is shortened, and the user experience is improved.
An embodiment of the present invention further provides a wireless headset, including: the touch keys, the memory and the processor are arranged according to a preset sequence; the memory is used for storing a computer program, and the processor is used for implementing the steps of the touch recognition method of the wireless headset provided by any one of the above embodiments when the computer program is executed.
Furthermore, the present invention also provides a computer readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the touch recognition method for a wireless headset as provided in any of the above embodiments.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device, the wireless headset and the computer-readable storage medium disclosed by the embodiment correspond to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the description of the method part.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. 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 invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The touch recognition method and device for the wireless headset, the wireless headset and the computer readable storage medium provided by the invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (9)

1. A touch recognition method of a wireless headset, comprising:
s101: acquiring respective touch states of touch keys arranged according to a preset sequence in the wireless headset; wherein the touch state includes: a touched state and an untouched state;
s102: binarizing the touch states of the touch keys to obtain a binarized array corresponding to the position sequence;
s103: identifying user touch operation according to the difference between the numerical value of each position in the binary array and the numerical value of the corresponding position in the two adjacent binary arrays; the user touch operation comprises at least one of click operation, long-time press operation and sliding operation, and the difference of numerical values of corresponding positions in the two adjacent binarization arrays is the difference of numerical values corresponding to the same touch key in the binarization arrays at two adjacent moments;
when the S102 includes: setting the current touched state and the current untouched state of each touch key to be 1 and 0 respectively, acquiring the current binary array with the numerical value of 1 or 0 at each position, wherein when the user touch operation comprises the sliding operation, the step S103 comprises:
s301: judging whether the difference between the numerical values of the corresponding positions in the current binarization array and the previous binarization array is 0, and the numerical values of all the positions in the current binarization array are not 0; if yes, entering S302;
s302: identifying the sliding operation according to the numerical values of the first and last positions in the difference between the numerical value of each position in the next binary array and the numerical value of the corresponding position in the current binary array and the previous binary array;
wherein, when the sliding operation includes a left sliding operation and a right sliding operation, and the values from the first position to the last position in the current binarization array sequentially correspond to the respective current touched states of the touch keys from left to right, the S302 includes:
s401: respectively updating the position of 1 in the +1 record array and the position of-1 in the-1 record array according to the difference between the numerical values of the corresponding positions in the current binarization array and the previous binarization array;
s402: recording the position of 1 in the +1 recording array by using a first identifier, and recording the position of-1 in the-1 recording array by using a second identifier;
s403: judging whether the first identifier is at the first or last position of the current binarization array; if not, the step S404 is entered; if yes, entering S405;
s404, assigning the first identifier to a third identifier, and entering the step S101;
s405: judging whether the first identifier is the same as the third identifier; if not, the step S404 is entered; if yes, entering S409;
s406: judging whether the second identifier is at the first or last position of the current binarization array; if not, the step S407 is entered; if yes, entering S408;
s407, assigning the second identifier to a fourth identifier, and entering the step S101;
s408: judging whether the second identifier is the same as the fourth identifier; if yes, entering S407; if not, entering S409;
s409: judging whether the numerical value of each position in the latter binary array is 0 or not; if yes, entering S410; if not, the step S101 is executed;
s410: when the first identifier is at the first position of the current binarization array or the second identifier is at the last position of the current binarization array, identifying the left sliding operation; and when the second identifier is at the first position of the current binarization array or the first identifier is at the last position of the current binarization array, identifying the right sliding operation.
2. The method of claim 1, wherein when the user touch operation comprises the long press operation, the S103 comprises:
s201: judging whether the difference between the numerical values of the corresponding positions in the current binarization array and the previous binarization array is 0 or not, and the numerical values of all the positions in the current binarization array are not 0; if yes, entering S202;
s202: updating the long press time, and judging whether the long press time reaches a first time threshold value; if yes, entering S203; if not, the process goes to S101;
s203: identified as the long press operation.
3. The method of claim 1, wherein the user touch operation further comprises, before S401, when the click operation is performed, further comprising:
s501: judging whether the numerical value of each position in the next binary array is 0 or not, and 1 or-1 in the difference between the numerical values of the corresponding positions in the current binary array and the previous binary array is not at the first position and the last position of the current binary array; if yes, entering S502; if not, the step S401 is entered;
s502: determining a single click operation;
s503: and identifying the clicking operation according to the number of times of the clicking operation within a second time threshold.
4. The touch recognition method of the wireless headset according to claim 3, wherein when the click operation includes the single-click operation and the double-click operation, the step S503 includes:
s601: judging whether the clicking operation is performed twice within the second time threshold value; if yes, entering S602; if not, the step S603 is entered;
s602: identifying the double-click operation;
s603: identified as the single click operation.
5. The touch recognition method of the wireless headset according to any one of claims 1 to 4, wherein the S101 comprises:
s701: acquiring respective current capacitance values of the touch keys;
s702: acquiring the touch state of each touch key according to the current capacitance value of each touch key and the sum of the current untouched mean value and the current threshold value corresponding to each touch key; and the current threshold is a threshold corresponding to each touch key at the current moment.
6. The touch recognition method of the wireless headset according to claim 5, wherein the S702 comprises:
s801: judging whether the current capacitance value of the current touch key is larger than the sum of the corresponding current untouched mean value and the current threshold value; if yes, go to S802; if not, the step S804 is entered; the current touch key is any one of the touch keys;
s802: determining that the current touch key is in the touched state, and updating a corresponding current touched mean value by using the current capacitance value;
s803: dividing the difference between the updated current touched mean value and the current untouched mean value by a preset parameter to update the current threshold value; wherein the preset parameter is greater than 1;
s804: and determining that the current touch key is in the untouched state, and updating the current untouched mean value by using the current capacitance value.
7. A touch recognition device for a wireless headset, comprising:
the acquisition module is used for acquiring the respective touch states of touch keys arranged according to a preset sequence in the wireless headset; wherein the touch state includes: a touched state and an untouched state;
the binarization module is used for binarizing the touch states of the touch keys to obtain a binarization array corresponding to the position sequence;
the identification module is used for identifying user touch operation according to the difference between the numerical value of each position in the binary array and the numerical value of the corresponding position in the two adjacent binary arrays; the user touch operation comprises at least one of click operation, long-time press operation and sliding operation, and the difference of numerical values of corresponding positions in the two adjacent binarization arrays is the difference of numerical values corresponding to the same touch key in the binarization arrays at two adjacent moments;
the binarization module comprises:
the binarization submodule is used for respectively setting the current touched state and the current untouched state of each touch key to be 1 and 0 and acquiring a current binarization array of which the numerical value at each position is 1 or 0;
when the user touch operation includes the sliding operation, the identification module includes:
the second judgment submodule is used for judging whether the difference between the numerical values of the corresponding positions in the current binarization array and the previous binarization array is 0, and the numerical values of all the positions in the current binarization array are not 0; if yes, sending a starting signal to a second identification submodule;
the second identification submodule is used for identifying the sliding operation according to the numerical values of the first position and the last position in the difference between the numerical values of each position in the next binary array and the numerical values of the corresponding positions in the current binary array and the previous binary array;
when the sliding operation includes a left sliding operation and a right sliding operation, and the values from the first position to the last position in the current binarization array sequentially correspond to the respective current touched state of the touch keys from left to right, the second identification submodule includes:
the first updating unit is used for respectively updating the position of 1 in the +1 record array and the position of-1 in the-1 record array according to the difference between the numerical values of the corresponding positions in the current binarization array and the previous binarization array;
the recording unit is used for recording the position of 1 in the +1 recording array by using a first identifier and recording the position of-1 in the-1 recording array by using a second identifier;
the first judgment unit is used for judging whether the first identifier is at the first or last position of the current binarization array; if not, sending a starting signal to the first assignment unit; if yes, sending a starting signal to a second judgment unit;
the first assignment unit is used for assigning the first identifier to a third identifier;
a second judging unit, configured to judge whether the first identifier and the third identifier are the same; if not, sending a starting signal to the first assignment unit; if yes, sending a starting signal to a fifth judging unit;
a third judging unit, configured to judge whether the second identifier is located at the first or last position of the current binarization array; if not, sending a starting signal to the second assignment unit; if yes, sending a starting signal to a fourth judging unit;
the second assignment unit is used for assigning the second identifier to a fourth identifier;
a fourth judging unit, configured to judge whether the second identifier is the same as the fourth identifier; if yes, sending a starting signal to the second assignment unit; if not, sending a starting signal to a fifth judging unit;
a fifth judging unit, configured to judge whether the numerical value of each position in the subsequent binary array is 0; if yes, sending a starting signal to the first identification unit; if not, sending a starting signal to the acquisition module;
a first identification unit, configured to identify the left sliding operation when the first identifier is at a first position of the current binarization array or the second identifier is at a last position of the current binarization array; and when the second identifier is at the first position of the current binarization array or the first identifier is at the last position of the current binarization array, identifying the right sliding operation.
8. A wireless headset, comprising: the touch keys, the memory and the processor are arranged according to a preset sequence; wherein the memory is configured to store a computer program, and the processor is configured to implement the steps of the method for touch recognition of a wireless headset according to any of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method for touch recognition of a wireless headset according to any one of claims 1 to 6.
CN201810836357.1A 2018-07-26 2018-07-26 Touch identification method and device of wireless earphone and wireless earphone Active CN109104658B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810836357.1A CN109104658B (en) 2018-07-26 2018-07-26 Touch identification method and device of wireless earphone and wireless earphone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810836357.1A CN109104658B (en) 2018-07-26 2018-07-26 Touch identification method and device of wireless earphone and wireless earphone

Publications (2)

Publication Number Publication Date
CN109104658A CN109104658A (en) 2018-12-28
CN109104658B true CN109104658B (en) 2020-06-05

Family

ID=64847794

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810836357.1A Active CN109104658B (en) 2018-07-26 2018-07-26 Touch identification method and device of wireless earphone and wireless earphone

Country Status (1)

Country Link
CN (1) CN109104658B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110891235B (en) * 2019-12-26 2021-05-04 惠州市锦好医疗科技股份有限公司 Finger-knocking body detection method for behind-the-ear hearing aid
CN111984182B (en) * 2020-07-28 2022-07-12 华帝股份有限公司 Combination key identification method, device, equipment and readable access medium
CN112929778B (en) * 2021-02-10 2022-11-22 歌尔科技有限公司 Wireless earphone control method and device, electronic equipment and wireless earphone

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7973778B2 (en) * 2007-04-16 2011-07-05 Microsoft Corporation Visual simulation of touch pressure
US20110254792A1 (en) * 2008-12-30 2011-10-20 France Telecom User interface to provide enhanced control of an application program
CN101898042B (en) * 2009-05-31 2012-07-18 鸿富锦精密工业(深圳)有限公司 Game controller and control method thereof
CN101976144A (en) * 2010-09-30 2011-02-16 深圳市顶星数码网络技术有限公司 Notebook computer touch panel and notebook computer
JP6169944B2 (en) * 2013-10-22 2017-07-26 アルパイン株式会社 Touch panel device and operation detection method
JP6150712B2 (en) * 2013-10-30 2017-06-21 シャープ株式会社 Information processing apparatus and program
CN104090821B (en) * 2014-07-10 2018-04-20 东莞市乐升电子有限公司 Full touch system Activiation method and its system
CN105302406A (en) * 2014-07-31 2016-02-03 中兴通讯股份有限公司 Method and device for entering application, and unlocking method and device
CN107948434A (en) * 2017-11-30 2018-04-20 努比亚技术有限公司 Mobile terminal loudness adjusting method, mobile terminal and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN109104658A (en) 2018-12-28

Similar Documents

Publication Publication Date Title
CN109792573B (en) Wearing detection method and device, wearable device and storage medium
CN109104658B (en) Touch identification method and device of wireless earphone and wireless earphone
CN108702567B (en) Earphone, method for detecting wearing state of earphone and electronic equipment
JP6790259B2 (en) Methods and terminals to prevent accidental touches
US11249719B2 (en) Audio playback control method of mobile terminal, and wireless earphone
CN104571923A (en) Touch feedback method, device and terminal
CN110677768A (en) Wireless earphone control method and device, wireless earphone and storage medium
US11425519B2 (en) Method for detecting blocking of microphone and related products
RU2661794C2 (en) Method of processing touch signal and terminal device
US20210152914A1 (en) Method for Earbud Switching, Wearable Device, and Storage Medium
CN108391201B (en) Operation method and device of TWS earphone, TWS earphone and storage medium
CN108076300B (en) Video processing method, video processing device and mobile terminal
CN110620970A (en) Earphone touch control method and device, wireless earphone and TWS earphone
CN106096515A (en) A kind of solution lock control method and terminal unit
CN104679412A (en) Incoming call processing method and mobile terminal
CN104898889A (en) Character determining method and device
CN110244849B (en) Proximity recognition method and device, mobile terminal and storage medium
CN104169854B (en) A kind of icon arrangement method and terminal
CN109413556B (en) Equipment positioning method and device, earphone device and electronic equipment
CN109065017B (en) Voice data generation method and related device
CN107005609B (en) Method for operating mobile terminal based on blowing action and mobile terminal
CN113709617A (en) Wireless earphone control method and device, wireless earphone and storage medium
CN110188659B (en) Health detection method and related product
JP6349419B2 (en) Method, apparatus and terminal for adjusting mobile terminal interface
CN105677078A (en) Mobile terminal and shortcut key customizing method thereof

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