CN110099325B - Wireless earphone box-entering detection method and device, wireless earphone and earphone product - Google Patents

Wireless earphone box-entering detection method and device, wireless earphone and earphone product Download PDF

Info

Publication number
CN110099325B
CN110099325B CN201910440136.7A CN201910440136A CN110099325B CN 110099325 B CN110099325 B CN 110099325B CN 201910440136 A CN201910440136 A CN 201910440136A CN 110099325 B CN110099325 B CN 110099325B
Authority
CN
China
Prior art keywords
box
wireless earphone
touch key
capacitance value
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910440136.7A
Other languages
Chinese (zh)
Other versions
CN110099325A (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 CN201910440136.7A priority Critical patent/CN110099325B/en
Publication of CN110099325A publication Critical patent/CN110099325A/en
Application granted granted Critical
Publication of CN110099325B publication Critical patent/CN110099325B/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
    • 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 wireless earphone in-box detection method, which is applied to a wireless earphone and comprises the following steps: detecting a capacitance value of a first touch key arranged on the surface of the wireless earphone; when the capacitance value is larger than a preset in-box induction threshold value, determining that the wireless earphone is in a box; the preset box-entering induction threshold value is set according to a second touch key which is arranged in the charging box and is grounded, and after the wireless earphone is placed in the box, the capacitance value generated when the second touch key contacts the first touch key is larger than the capacitance value generated when the human hand touches the first touch key. Therefore, the wireless earphone can determine the box entering information of the wireless earphone only by additionally arranging the second touch key inside the charging box, so that the box entering detection cost is reduced; and the wireless earphone can immediately detect the change of the capacitance value of the first touch key after being placed in the charging box, so that the box-entering detection time is shortened. The invention also provides a wireless earphone in-box detection device, a wireless earphone and an earphone product, and the wireless earphone in-box detection device, the wireless earphone and the earphone product have the same beneficial effects as the method.

Description

Wireless earphone box-entering detection method and device, wireless earphone and earphone product
Technical Field
The invention relates to the technical field of portable listening equipment, in particular to a wireless earphone in-box detection method and device, a wireless earphone and an earphone product.
Background
With the development of wireless communication technology, wireless earphones are more and more widely used. Currently, a TWS (true wireless Stereo) headset is a relatively intelligent product in a wireless headset, and is generally equipped with a charging box having a function of receiving and charging. The TWS headset needs to enter a charging state in time after being boxed in order for the charging box to charge it.
In the prior art, the TWS headset determines that it is in the box by: the charging box detects whether the TWS earphone is placed into the box or not by adopting a polling communication attempt mode, and transmits box information to the TWS earphone after detecting that the TWS earphone is placed into the box, so that the TWS earphone can determine that the TWS earphone is placed into the box after receiving the box information. However, in this communication method, a set of signal transmission device needs to be respectively arranged in the charging box and the TWS headset, which is high in cost and has a certain time delay.
Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a wireless earphone box-entering detection method and device, a wireless earphone and an earphone product, wherein the wireless earphone can determine the box-entering information of the wireless earphone by only adding a second touch key inside a charging box, so that the earphone box-entering detection cost is reduced; and the change of the capacitance value of the first touch key can be immediately detected after the wireless earphone is placed into the charging box, so that the detection time of the earphone in the charging box is shortened.
In order to solve the above technical problem, the present invention provides a wireless earphone in-box detection method, which is applied to a wireless earphone, and comprises:
detecting a capacitance value of a first touch key arranged on the surface of the wireless earphone;
when the capacitance value is larger than a preset in-box induction threshold value, determining that the wireless earphone is in a box; the preset box-entering induction threshold value is set according to a second touch key which is arranged in the charging box and is grounded, and after the wireless earphone is placed in the box, the capacitance value generated when the second touch key contacts the first touch key is larger than the capacitance value generated when a human hand touches the first touch key.
Preferably, the process of detecting the capacitance value of the first touch key arranged on the surface of the wireless headset includes:
acquiring a driving voltage signal transmitted by a first touch key arranged on the surface of the wireless earphone;
determining a capacitance value of the first touch key corresponding to the driving voltage signal according to a preset voltage-capacitance corresponding relation; the preset voltage-capacitance corresponding relation is a corresponding relation between a driving voltage signal transmitted by the first touch key and a capacitance value of the first touch key.
Preferably, the method further comprises the following steps:
and when the wireless earphone is determined to be in the box, controlling the Bluetooth of the wireless earphone to be closed, and controlling the wireless earphone to enter a dormant state.
Preferably, the method further comprises the following steps:
and when the capacitance value is not greater than the preset in-box induction threshold value, determining that the wireless earphone is out of the box.
Preferably, when the capacitance value is greater than a preset in-box sensing threshold value, the process of determining that the wireless headset is in the box includes:
judging whether the capacitance value is larger than a preset in-box induction threshold value or not every preset first time, and determining that the wireless earphone is in the box until the capacitance value is judged to be larger than the preset in-box induction threshold value for N times continuously; wherein N is an integer greater than 1.
Preferably, the method further comprises the following steps:
when the capacitance value is not larger than the preset box-entering induction threshold value and the capacitance value is larger than a preset hand touch threshold value, determining that the wireless earphone is in a hand touch state; and the preset hand touch threshold value is less than the preset box-entering induction threshold value.
Preferably, when the capacitance value is not greater than the preset in-box sensing threshold value and the capacitance value is greater than a preset hand touch threshold value, the process of determining that the wireless headset is in a hand touch state includes:
when the capacitance value is not larger than the preset box-entering induction threshold value, judging whether the capacitance value is larger than a preset hand touch threshold value every other preset second time, and determining that the wireless earphone is in a hand touch state until M times of continuous judgment that the capacitance value is larger than the preset hand touch threshold value are carried out; wherein M is an integer greater than 1.
In order to solve the above technical problem, the present invention further provides a wireless headset in-box detection apparatus, including:
the capacitance detection module is used for detecting the capacitance value of a first touch key arranged on the surface of the wireless earphone;
the in-box determining module is used for determining that the wireless earphone is in a box when the capacitance value is larger than a preset in-box induction threshold value; the preset box-entering induction threshold value is set according to a second touch key which is arranged in the charging box and is grounded, and after the wireless earphone is placed in the box, the capacitance value generated when the second touch key contacts the first touch key is larger than the capacitance value generated when a human hand touches the first touch key.
In order to solve the technical problem, the invention also provides a wireless earphone, which comprises a memory, a processor and a first touch key arranged on the surface of the wireless earphone; wherein:
the memory for storing a computer program;
the processor is configured to implement the steps of any one of the above wireless headset in-box detection methods when executing the computer program.
In order to solve the technical problem, the invention further provides an earphone product, which comprises the wireless earphone and a charging box, wherein the charging box is internally provided with a grounded second touch key.
The invention provides a wireless earphone in-box detection method, which is applied to a wireless earphone and comprises the following steps: detecting a capacitance value of a first touch key arranged on the surface of the wireless earphone; when the capacitance value is larger than a preset in-box induction threshold value, determining that the wireless earphone is in a box; the preset box-entering induction threshold value is set according to a second touch key which is arranged in the charging box and is grounded, and after the wireless earphone is placed in the box, the capacitance value generated when the second touch key contacts the first touch key is larger than the capacitance value generated when a human hand touches the first touch key.
This application sets up the second touch button of ground connection inside the charging box, when wireless earphone goes into the box, the second touch button can with set up in the first touch button contact on wireless earphone surface, the capacitance value that the second touch button provided can superpose on first touch button promptly, thereby increase the capacitance value of first touch button (after wireless earphone goes into the box, the capacitance value that produces when the first touch button of second touch button contact > the capacitance value that produces when touching first touch button, in order to distinguish wireless earphone and go into the box and the two kinds of circumstances of staff touch). Based on the principle, the wireless earphone box entering method and device are characterized in that the box entering induction threshold value is set in advance, and the wireless earphone box entering is determined when the capacitance value of the first touch key is larger than the set box entering induction threshold value. Therefore, the wireless earphone can determine the information of the wireless earphone entering the box only by additionally arranging the second touch key inside the charging box, so that the detection cost of the wireless earphone entering the box is reduced; and the change of the capacitance value of the first touch key can be immediately detected after the wireless earphone is placed into the charging box, so that the detection time of the earphone in the charging box is shortened.
The invention also provides a wireless earphone in-box detection device, a wireless earphone and an earphone product, and the wireless earphone in-box detection device, the wireless earphone and the earphone product have the same beneficial effects as the wireless earphone in-box detection method.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed in the prior art and the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart of a wireless headset in-box detection method according to an embodiment of the present invention;
fig. 2 is a specific flowchart of a wireless headset in-box detection method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a wireless headset in-box detection apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a wireless headset according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an earphone product according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an earphone product according to an embodiment of the present invention.
Detailed Description
The core of the invention is to provide a wireless earphone box-entering detection method, a wireless earphone box-entering detection device, a wireless earphone and an earphone product, wherein the wireless earphone can determine the box-entering information of the wireless earphone box-entering detection device only by additionally arranging a second touch key inside a charging box, so that the earphone box-entering detection cost is reduced; and the change of the capacitance value of the first touch key can be immediately detected after the wireless earphone is placed into the charging box, so that the detection time of the earphone in the charging box is shortened.
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 wireless headset in-box detection method according to an embodiment of the present invention.
The wireless earphone in-box detection method is applied to a wireless earphone and comprises the following steps:
step S1: and detecting the capacitance value of a first touch key arranged on the surface of the wireless earphone.
Step S2: and when the capacitance value is larger than a preset in-box induction threshold value, determining that the wireless earphone is in the box.
The preset box-entering induction threshold value is set according to a second touch key which is arranged in the charging box and is grounded, and after the wireless earphone is placed in the box, the capacitance value generated when the second touch key contacts the first touch key is larger than the capacitance value generated when a human hand touches the first touch key.
It should be noted that the preset of the present application is set in advance, and only needs to be set once, and the reset is not needed unless the modification is needed according to the actual situation.
Specifically, considering that the surface of the wireless headset is provided with the first touch key (capacitive touch screen), when a human hand touches the first touch key, a capacitance value generated by the human hand is superposed on the first touch key, so that the capacitance value fed back to the wireless headset by the first touch key is increased, and the wireless headset can determine whether the first touch key is being touched by a user based on the capacitance value change of the first touch key.
Based on the principle, the second touch key (capacitive touch screen) is arranged inside the charging box, and the second touch key is grounded. When the wireless earphone is plugged into the box, the second touch key is in contact with the first touch key, the capacitance value generated by the second touch key is superposed on the first touch key, so that the capacitance value fed back to the wireless earphone by the first touch key is increased, and the wireless earphone can judge whether the wireless earphone is plugged into the box or not based on the capacitance value change of the first touch key. Therefore, the wireless earphone can determine the information of the wireless earphone entering the box only by additionally arranging the second touch key inside the charging box, so that the detection cost of the wireless earphone entering the box is reduced; and the change of the capacitance value of the first touch key can be immediately detected after the wireless earphone is placed into the charging box, so that the detection time of the earphone in the charging box is shortened.
Considering that the first touch button of staff touch and wireless earphone go into the box two kinds of circumstances and all can make the capacitance value that first touch button fed back to wireless earphone increase to some extent, considering simultaneously that the area size of second touch button influences self and stacks the capacitance value on first touch button, so this application makes it satisfy when setting up the second touch button in order to distinguish the first touch button of staff touch and wireless earphone and go into the box two kinds of circumstances: after the wireless headset is plugged into the box, the capacitance value generated when the second touch key contacts the first touch key is greater than the capacitance value generated when the human hand touches the first touch key (preferably, the two capacitance values have a significant difference, for example, the capacitance value generated when the human hand touches the first touch key is usually about 50pF, and the capacitance value generated when the second touch key contacts the first touch key can be set to 100 pF).
Based on this, this application sets up one in advance and goes into box response threshold value, and its theory of setting is: the capacitance value of the first touch key when the wireless earphone is put into the box is known to be larger than the capacitance value of the first touch key when a human hand touches the first touch key, so that a box-putting induction threshold value can be set between the two capacitance values, namely the capacitance value of the first touch key when the wireless earphone is put into the box is larger than the capacitance value of the first touch key when the human hand touches the first touch key, and whether the wireless earphone is put into the box is judged based on the setting principle. Specifically, the wireless earphone of the application firstly detects the capacitance value of the first touch key, then judges whether the capacitance value of the first touch key is larger than the set box induction threshold value, and determines that the wireless earphone enters the box when the capacitance value of the first touch key is larger than the set box induction threshold value, so that the wireless earphone can enter a charging state after determining that the wireless earphone enters the box, and the charging box can charge the wireless earphone conveniently.
The invention provides a wireless earphone in-box detection method, which is applied to a wireless earphone and comprises the following steps: detecting a capacitance value of a first touch key arranged on the surface of the wireless earphone; when the capacitance value is larger than a preset in-box induction threshold value, determining that the wireless earphone is in a box; the preset box-entering induction threshold value is set according to a second touch key which is arranged in the charging box and is grounded, and after the wireless earphone is placed in the box, the capacitance value generated when the second touch key contacts the first touch key is larger than the capacitance value generated when a human hand touches the first touch key.
This application sets up the second touch button of ground connection inside the charging box, when wireless earphone goes into the box, the second touch button can with set up in the first touch button contact on wireless earphone surface, the capacitance value that the second touch button provided can superpose on first touch button promptly, thereby increase the capacitance value of first touch button (after wireless earphone goes into the box, the capacitance value that produces when the first touch button of second touch button contact > the capacitance value that produces when touching first touch button, in order to distinguish wireless earphone and go into the box and the two kinds of circumstances of staff touch). Based on the principle, the wireless earphone box entering method and device are characterized in that the box entering induction threshold value is set in advance, and the wireless earphone box entering is determined when the capacitance value of the first touch key is larger than the set box entering induction threshold value. Therefore, the wireless earphone can determine the information of the wireless earphone entering the box only by additionally arranging the second touch key inside the charging box, so that the detection cost of the wireless earphone entering the box is reduced; and the change of the capacitance value of the first touch key can be immediately detected after the wireless earphone is placed into the charging box, so that the detection time of the earphone in the charging box is shortened.
On the basis of the above-described embodiment:
as an alternative embodiment, the process of detecting a capacitance value of a first touch key disposed on a surface of a wireless headset includes:
acquiring a driving voltage signal transmitted by a first touch key arranged on the surface of the wireless earphone;
determining a capacitance value of a first touch key corresponding to the driving voltage signal according to a preset voltage-capacitance corresponding relation; the preset voltage-capacitance corresponding relation is a corresponding relation between a driving voltage signal transmitted by the first touch key and a capacitance value of the first touch key.
Specifically, the touch principle of the first touch key of the wireless headset is as follows: the wireless earphone transmits a driving voltage signal (consisting of continuous pulse signals) to the first touch key, and when a human hand touches the first touch key, the capacitance value fed back to the wireless earphone by the first touch key is increased to some extent, so that the driving voltage signal transmitted between the wireless earphone and the first touch key is reduced by a certain value. Similarly, after the wireless earphone is placed in the box, when the second touch key contacts the first touch key, the capacitance value fed back to the wireless earphone by the first touch key is increased, so that the driving voltage signal transmitted between the wireless earphone and the first touch key is reduced by a certain value.
Based on this, the corresponding relationship between the driving voltage signal transmitted by the first touch key and the capacitance value of the first touch key (that is, the voltage-capacitance corresponding relationship, which may be specifically represented in a table form) may be set in advance, so that after the wireless headset of the present application acquires the driving voltage signal transmitted by the first touch key, the capacitance value of the first touch key corresponding to the acquired driving voltage signal is determined according to the voltage-capacitance corresponding relationship.
As an optional embodiment, the wireless headset in-box detection method further comprises:
when the wireless earphone is determined to be in the box, the Bluetooth of the wireless earphone is controlled to be closed, and the wireless earphone is controlled to enter a dormant state.
Further, consider that wireless earphone goes into the box and charges the back, wireless earphone is in idle state, namely the user does not use wireless earphone this moment, so the wireless earphone of this application is confirming self after going into the box, steerable bluetooth is closed to enter dormant state, thereby reduced wireless earphone's consumption, and then practiced thrift the energy.
As an optional embodiment, the wireless headset in-box detection method further comprises:
and when the capacitance value is not greater than the preset in-box induction threshold value, determining that the wireless earphone is out of the box.
Furthermore, after the wireless headset goes out of the box, the first touch key feeds back the capacitance value of the wireless headset to restore to the state before the wireless headset goes into the box (namely, the capacitance value of the first touch key is not greater than the preset box-entering induction threshold value), so the wireless headset of the application can determine that the wireless headset goes out of the box when the capacitance value of the first touch key is not greater than the preset box-entering induction threshold value.
Preferably, the process of determining that the wireless headset goes out of the box by itself may specifically be: the wireless earphone is not greater than a preset box-entering induction threshold value at the capacitance value of the first touch key, and the wireless earphone determines that the wireless earphone goes out of the box when the capacitance value of the first touch key detected last time is greater than the preset box-entering induction threshold value, so that the earphone box-exiting detection accuracy is improved.
In addition, the wireless headset of this application can be in the automatic bluetooth of opening of confirming oneself after going out the box to the user uses.
As an alternative embodiment, when the capacitance value is greater than the preset in-box sensing threshold value, the process of determining that the wireless headset is in the box includes:
judging whether the capacitance value is larger than a preset in-box induction threshold value or not every preset first time, and determining that the wireless earphone is in the box until the capacitance value is judged to be larger than the preset in-box induction threshold value for N times continuously; wherein N is an integer greater than 1.
Specifically, considering that when the wireless headset is not plugged into the box, the capacitance value fed back to the wireless headset by the first touch key may be increased due to a certain special factor, and even the capacitance value of the first touch key is greater than the preset box-entering induction threshold value, if the wireless headset of the present application determines that the wireless headset enters the box when the capacitance value of the first touch key is determined to be greater than the preset box-entering induction threshold value at a single time, the wireless headset may enter the box by mistake.
Based on this, the wireless earphone of this application all judges whether the capacitance value of first touch button is greater than the box response threshold value of predetermineeing into at every predetermined first time to add up the number of times of judging the capacitance value of first touch button in succession and being greater than the box response threshold value of predetermineeing into, when the number of times that adds up reaches preset number of times N (N > 1), just confirms that self has gone into the box, thereby has avoided the wireless earphone single to judge the condition that the box misjudgement appears going into, and then has improved the earphone and has gone into the accuracy that the box detected.
As an optional embodiment, the wireless headset in-box detection method further comprises:
when the capacitance value is not greater than the preset box-entering induction threshold value and the capacitance value is greater than the preset hand touch threshold value, determining that the wireless earphone is in a hand touch state; wherein the preset hand touch threshold is less than the preset box-entering induction threshold.
Further, the capacitance value of the first touch key when a human hand touches the first touch key is known, so that the human hand touch threshold value smaller than the capacitance value can be set in advance, namely the in-box sensing threshold value is larger than the capacitance value of the first touch key when the human hand touches the first touch key is larger than the set human hand touch threshold value, and whether the first touch key of the wireless earphone is touched by a user is judged based on the setting principle.
Specifically, the wireless earphone of the application continuously judges whether the capacitance value of the first touch key is larger than the preset entering box induction threshold value or not under the condition that the capacitance value of the first touch key is judged to be not larger than the preset entering box induction threshold value, and when the capacitance value of the first touch key is larger than the preset entering box induction threshold value, the first touch key is determined to be being touched by a user, namely, the wireless earphone is in a hand touch state, so that the wireless earphone can execute corresponding actions of hand touch after the wireless earphone is determined to be in the hand touch state.
As an optional embodiment, when the capacitance value is not greater than the preset boxing induction threshold value and the capacitance value is greater than the preset hand touch threshold value, the process of determining that the wireless headset is in the hand touch state includes:
when the capacitance value is not larger than the preset box-entering induction threshold value, judging whether the capacitance value is larger than the preset hand touch threshold value every other preset second time, and determining that the wireless earphone is in a hand touch state until the capacitance value is judged to be larger than the preset hand touch threshold value for M times continuously; wherein M is an integer greater than 1.
Similarly, when the wireless headset is not in a box and is not in a hand touch state, the capacitance value fed back to the wireless headset by the first touch key may be increased due to a certain special factor, and even the capacitance value of the first touch key is greater than the preset hand touch threshold value, so that if the wireless headset of the application determines that the capacitance value of the first touch key is not greater than the preset box-entering induction threshold value, the wireless headset determines that the wireless headset is in the hand touch state when the capacitance value of the first touch key is determined to be greater than the preset hand touch threshold value at a single time, and the misjudgment of the touch of the wireless headset may be caused.
Based on this, the wireless earphone of the application judges whether the capacitance value of the first touch key is larger than the preset hand touch threshold value at every preset second time under the condition that the capacitance value of the first touch key is judged to be not larger than the preset box-entering induction threshold value, accumulates the times of continuously judging whether the capacitance value of the first touch key is larger than the preset hand touch threshold value, determines that the wireless earphone is in a hand touch state when the accumulated times reach the preset times M (M is larger than 1), and executes corresponding actions of hand touch, thereby avoiding the condition that touch misjudgment occurs in single judgment of the wireless earphone, and further improving the accuracy of earphone touch detection.
Further, the first time of the present application may be set to 1000ms, the first time may be set to 20ms, and the times N and M may be set to 10 times, as shown in fig. 2:
step S110: detecting a capacitance value of a first touch key arranged on the surface of the wireless earphone;
step S120: judging whether the capacitance value is larger than a preset box-entering induction threshold value, if so, executing a step S130; if not, clearing the first count value, and executing the step S140;
step S130: after waiting for 1000ms, adding 1 to the first count value, and determining whether the first count value is equal to 10, if yes, executing step S150; if not, returning to execute the step S110;
step S140: judging whether the capacitance value is larger than a preset hand touch threshold value, if so, executing a step S160; if not, clearing the second count value, and returning to execute the step S110;
step S150: determining that the wireless earphone is placed in the box, and executing actions after the wireless earphone is placed in the box;
step S160: after waiting for 20ms, adding 1 to the second count value, and determining whether the second count value is equal to 10, if yes, executing step S170; if not, returning to execute the step S140;
step S170: and determining that the wireless earphone is in a hand touch state, and executing the action after the hand touches.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a wireless headset in-box detection device according to an embodiment of the present invention.
This wireless earphone goes into box detection device includes:
the capacitance detection module 11 is configured to detect a capacitance value of a first touch key arranged on the surface of the wireless headset;
the in-box determining module 12 is configured to determine that the wireless headset is in a box when the capacitance value is greater than a preset in-box sensing threshold value; the preset box-entering induction threshold value is set according to a second touch key which is arranged in the charging box and is grounded, and after the wireless earphone is placed in the box, the capacitance value generated when the second touch key contacts the first touch key is larger than the capacitance value generated when a human hand touches the first touch key.
On the basis of the above-described embodiment:
as an alternative embodiment, the capacitance detection module 11 includes:
the signal acquisition submodule is used for acquiring a driving voltage signal transmitted by a first touch key arranged on the surface of the wireless earphone;
the capacitance determining submodule is used for determining the capacitance value of the first touch key corresponding to the driving voltage signal according to the preset voltage-capacitance corresponding relation; the preset voltage-capacitance corresponding relation is a corresponding relation between a driving voltage signal transmitted by the first touch key and a capacitance value of the first touch key.
As an optional embodiment, the wireless headset in-box detection apparatus further comprises:
and the earphone control module is used for controlling the Bluetooth of the wireless earphone to be closed and controlling the wireless earphone to enter a dormant state when the wireless earphone is determined to be put into the box.
As an optional embodiment, the wireless headset in-box detection apparatus further comprises:
and the box outlet determining module is used for determining that the wireless earphone is out of the box when the capacitance value is not greater than the preset box inlet induction threshold value.
As an optional embodiment, the in-box determining module 12 is specifically configured to determine whether the capacitance value is greater than a preset in-box sensing threshold every preset first time, and determine that the wireless headset is in the box until the capacitance value is determined to be greater than the preset in-box sensing threshold for N consecutive times; wherein N is an integer greater than 1.
As an optional embodiment, the wireless headset in-box detection apparatus further comprises:
the touch determining module is used for determining that the wireless earphone is in a hand touch state when the capacitance value is not greater than a preset in-box sensing threshold value and is greater than a preset hand touch threshold value; wherein the preset hand touch threshold is less than the preset box-entering induction threshold.
As an optional embodiment, the touch determining module is specifically configured to, when the capacitance value is not greater than the preset in-box sensing threshold value, determine whether the capacitance value is greater than the preset hand touch threshold value every second preset time, and determine that the wireless headset is in the hand touch state only when it is determined that the capacitance value is greater than the preset hand touch threshold value M times; wherein M is an integer greater than 1.
It should be noted that, for a specific introduction of the wireless headset in-box detection apparatus provided in the present application, reference is made to the above-mentioned embodiment of the wireless headset in-box detection method, and details of the wireless headset in-box detection method are not described herein again.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a wireless headset according to an embodiment of the present invention.
The wireless headset includes: the wireless earphone comprises a memory 21, a processor 22 and a first touch key 23 arranged on the surface of the wireless earphone; wherein:
a memory 21 for storing a computer program;
a processor 22 for implementing the steps of any of the above-described wireless headset in-box detection methods when executing a computer program.
For example, the processor 22 is configured to detect a capacitance value of a first touch key 23 disposed on a surface of the wireless headset, and determine that the wireless headset is plugged in when the capacitance value is greater than a preset plugging induction threshold; the preset box-entering induction threshold value is set according to a second touch key which is arranged in the charging box and is grounded, and after the wireless earphone is placed in the box, the capacitance value generated when the second touch key contacts the first touch key 23 is larger than the capacitance value generated when a human hand touches the first touch key 23.
On the basis of the foregoing embodiments, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of any one of the above-mentioned wireless headset in-box detection methods. Specifically, the computer readable storage medium may include various media that can store program codes, such as a removable hard disk, a usb disk, a random access memory, and a read only memory.
It should be noted that, for a specific description of the processor and a specific description of the computer-readable storage medium involved in the wireless headset provided in the present application, please refer to the above-mentioned embodiment of the wireless headset in-box detection method, which is not described herein again.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an earphone product according to an embodiment of the present invention.
The headphone product includes: the wireless headset and the charging box provided with the second touch key 31 connected to the ground inside.
Specifically, the wireless headset in the headset product of the present application may employ a wireless headset as shown in fig. 4. More specifically, referring to fig. 6, fig. 6 is a schematic structural diagram of an earphone product according to an embodiment of the present invention. In fig. 6, the wireless headset includes a memory 21, a processor 22, a first touch key 23, a main processor, a headset charger, and a headset battery; the charging box comprises a second touch key 31, a main charger, a charging box battery, a microprocessor (such as an MCU (Micro Control Unit)), an indicator Light (such as an LED (Light Emitting Diode) Light), and a storage module (such as an EEPROM (Electrically Erasable and Programmable read only memory)); the working principle is as follows:
when the charging box is not used, the electric quantity of the battery of the charging box in the charging box (the external power supply charges the battery of the charging box through the main charger) is preferably ensured to be sufficient so as to prepare for the subsequent charging of the wireless earphone. After the wireless earphone is plugged into the box, a power supply pin on the main charger is connected with a charging pin of the earphone charger (a charging path is formed, namely a charging box battery → the main charger → the earphone charger → an earphone battery), so that the charging of the earphone battery is realized; meanwhile, the first touch key 23 and the second touch key 31 are contacted, the wireless headset can immediately detect the self box entering information, and then the Bluetooth is turned off, and the wireless headset enters a dormant state.
In the charging process of the wireless earphone, the microprocessor can communicate with the main charger, so that the charging state of the wireless earphone is detected (the charging state of the battery of the charging box can also be detected in the charging process of the battery of the charging box), and the detected charging state can be stored in the storage module. In addition, the microprocessor can also indicate that the charging box is in the charging box battery charging state, the wireless earphone charging state and the like through controlling the light state of the indicator lamp.
After the wireless earphone is taken out of the box, the wireless earphone can automatically start the Bluetooth, when a user touches the first touch key 23 on the surface of the wireless earphone, the processor 22 can send a user touch signal to the main processor, then the main processor identifies the earphone function corresponding to the user touch signal, and executes the function operation corresponding to the earphone function.
In addition, please refer to the above embodiments of the wireless headset for other descriptions of the wireless headset related to the headset product provided by the present application, which are not described herein again.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It is further noted that, in the present 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. Also, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A wireless earphone in-box detection method is characterized by being applied to a wireless earphone and comprising the following steps:
detecting a capacitance value of a first touch key arranged on the surface of the wireless earphone;
when the capacitance value is larger than a preset in-box induction threshold value, determining that the wireless earphone is in a box; the preset box-entering induction threshold value is set according to a second touch key which is arranged in the charging box and is grounded, and after the wireless earphone is placed in the box, the capacitance value generated when the second touch key contacts the first touch key is larger than the capacitance value generated when a human hand touches the first touch key.
2. The wireless headset in-box detection method of claim 1, wherein the process of detecting the capacitance of the first touch key disposed on the surface of the wireless headset comprises:
acquiring a driving voltage signal transmitted by a first touch key arranged on the surface of the wireless earphone;
determining a capacitance value of the first touch key corresponding to the driving voltage signal according to a preset voltage-capacitance corresponding relation; the preset voltage-capacitance corresponding relation is a corresponding relation between a driving voltage signal transmitted by the first touch key and a capacitance value of the first touch key.
3. The wireless headset in-box detection method of claim 1, further comprising:
and when the wireless earphone is determined to be in the box, controlling the Bluetooth of the wireless earphone to be closed, and controlling the wireless earphone to enter a dormant state.
4. The wireless headset in-box detection method of claim 1, further comprising:
and when the current capacitance value of the first touch key is not greater than the preset in-box induction threshold value, determining that the wireless earphone is out of the box.
5. The wireless headset in-box detection method of any one of claims 1-4, wherein the determining that the wireless headset is in-box when the capacitance value is greater than a preset in-box sensing threshold comprises:
judging whether the current capacitance value of the first touch key is larger than a preset in-box induction threshold value or not every preset first time, and determining that the wireless earphone is in a box until the current capacitance value is judged to be larger than the preset in-box induction threshold value for N times continuously; wherein N is an integer greater than 1.
6. The wireless headset in-box detection method of claim 5, further comprising:
when the current capacitance value is not larger than the preset box-entering induction threshold value and the current capacitance value is larger than a preset hand touch threshold value, determining that the wireless earphone is in a hand touch state; and the preset hand touch threshold value is less than the preset box-entering induction threshold value.
7. The wireless headset in-box detection method of claim 6, wherein the process of determining that the wireless headset is in a human hand touch state when the current capacitance value is not greater than the preset in-box sensing threshold and the current capacitance value is greater than a preset human hand touch threshold comprises:
when the current capacitance value is not larger than the preset box-entering induction threshold value, judging whether the current capacitance value is larger than a preset hand touch threshold value every other preset second time, and determining that the wireless earphone is in a hand touch state until M times of continuous judgment that the current capacitance value is larger than the preset hand touch threshold value are carried out; wherein M is an integer greater than 1.
8. A wireless headset goes into box detection device which characterized in that includes:
the capacitance detection module is used for detecting the capacitance value of a first touch key arranged on the surface of the wireless earphone;
the in-box determining module is used for determining that the wireless earphone is in a box when the capacitance value is larger than a preset in-box induction threshold value; the preset box-entering induction threshold value is set according to a second touch key which is arranged in the charging box and is grounded, and after the wireless earphone is placed in the box, the capacitance value generated when the second touch key contacts the first touch key is larger than the capacitance value generated when a human hand touches the first touch key.
9. A wireless earphone is characterized by comprising a memory, a processor and a first touch key arranged on the surface of the wireless earphone; wherein:
the memory for storing a computer program;
the processor, when executing the computer program, is configured to implement the steps of the wireless headset in-box detection method according to any of claims 1-7.
10. An earphone product comprising the wireless earphone of claim 9, further comprising a charging box having a second touch key, which is grounded, disposed therein.
CN201910440136.7A 2019-05-24 2019-05-24 Wireless earphone box-entering detection method and device, wireless earphone and earphone product Active CN110099325B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910440136.7A CN110099325B (en) 2019-05-24 2019-05-24 Wireless earphone box-entering detection method and device, wireless earphone and earphone product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910440136.7A CN110099325B (en) 2019-05-24 2019-05-24 Wireless earphone box-entering detection method and device, wireless earphone and earphone product

Publications (2)

Publication Number Publication Date
CN110099325A CN110099325A (en) 2019-08-06
CN110099325B true CN110099325B (en) 2020-06-05

Family

ID=67449155

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910440136.7A Active CN110099325B (en) 2019-05-24 2019-05-24 Wireless earphone box-entering detection method and device, wireless earphone and earphone product

Country Status (1)

Country Link
CN (1) CN110099325B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112399298B (en) * 2019-08-19 2023-05-09 Oppo广东移动通信有限公司 Wireless earphone, wireless earphone box and wireless earphone state detection method
CN110602581A (en) * 2019-08-27 2019-12-20 华为技术有限公司 Box-in detection method and earphone box
CN112533097B (en) * 2019-09-19 2023-06-23 Oppo广东移动通信有限公司 Earphone box detection method, earphone box and storage medium
CN112653955B (en) * 2019-10-11 2023-07-21 Oppo广东移动通信有限公司 Earphone box, earphone device and electronic equipment
CN112653957A (en) * 2019-10-11 2021-04-13 Oppo广东移动通信有限公司 Earphone box, earphone device, mobile terminal and charging method of wireless earphone
CN110602599B (en) * 2019-10-31 2021-02-19 歌尔科技有限公司 Wireless earphone and charging box thereof
CN110958524B (en) * 2019-11-28 2021-07-13 歌尔股份有限公司 Earphone in-out box detection method, electronic equipment and earphone assembly
CN110927492B (en) * 2019-11-28 2022-04-22 歌尔股份有限公司 Wireless earphone state detection method and wireless earphone
CN111970603A (en) * 2020-08-28 2020-11-20 歌尔科技有限公司 Detection method, audio component and readable storage medium
CN114430517A (en) * 2020-10-29 2022-05-03 华为技术有限公司 Earphone assembly
CN112332499A (en) * 2020-11-24 2021-02-05 深圳市卓翼科技股份有限公司 Charging control method, system, charging box and storage medium
CN112684333B (en) * 2020-12-18 2023-05-12 歌尔科技有限公司 Detection equipment for TWS earphone charging box
EP4072157B1 (en) * 2021-02-10 2024-04-03 Shenzhen Goodix Technology Co., Ltd. Method for determining capacitance reference, apparatus for determining capacitance reference, and device
CN112533102B (en) * 2021-02-10 2021-06-18 深圳市汇顶科技股份有限公司 Method for determining capacitance reference, and device and equipment for determining capacitance reference

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108683968A (en) * 2018-04-23 2018-10-19 Oppo广东移动通信有限公司 Display control method and related product
CN109327756A (en) * 2018-09-13 2019-02-12 歌尔科技有限公司 The charging box and its control method and device of a kind of wireless headset
CN109512115A (en) * 2015-09-30 2019-03-26 苹果公司 Earplug box with charging system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108710615B (en) * 2018-05-03 2020-03-03 Oppo广东移动通信有限公司 Translation method and related equipment
CN108848429A (en) * 2018-06-15 2018-11-20 Oppo广东移动通信有限公司 The pairing connection method of wireless transmitting-receiving equipments and wireless transmitting-receiving equipments
CN109511035A (en) * 2018-12-14 2019-03-22 歌尔股份有限公司 A kind of Earphone box, wireless headset and its awakening method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109512115A (en) * 2015-09-30 2019-03-26 苹果公司 Earplug box with charging system
CN108683968A (en) * 2018-04-23 2018-10-19 Oppo广东移动通信有限公司 Display control method and related product
CN109327756A (en) * 2018-09-13 2019-02-12 歌尔科技有限公司 The charging box and its control method and device of a kind of wireless headset

Also Published As

Publication number Publication date
CN110099325A (en) 2019-08-06

Similar Documents

Publication Publication Date Title
CN110099325B (en) Wireless earphone box-entering detection method and device, wireless earphone and earphone product
CN108132401A (en) Charge abnormal detection method, device, storage medium and mobile terminal
CN102067205A (en) Touch screen remote control device for use with a toy
US10198110B2 (en) Touch sensor that utilizes a touch area with a single conductive path
CN103049159A (en) Method for preventing water drop false triggering of capacitive touch screen
US20150380978A1 (en) Wireless charger
CN107223232A (en) Electronic equipment and detection method
CN102306132A (en) Mobile terminal and method for waking up mobile terminal
CN103389847B (en) Touch control terminal and anti-interference method and system thereof
CN103576836A (en) Touch mobile terminal and power saving control method thereof
CN103761010B (en) Touch identification method and device and touch operation structure
JP2016515421A5 (en)
CN105320436A (en) Method for triggering screen capturing by tapping screen with finger joint
US9459710B1 (en) Method and device for charging stylus
CN105721694A (en) Control method, control device, wearable intelligent device and terminal
CN108399042B (en) Touch identification method, device and system
CN104751586A (en) Terminal, information processing method and information processing device
EP3333669B1 (en) Method and apparatus for controlling fingerprint sensor serial peripheral interface, and mobile terminal
CN108155693B (en) Charging control method and device of mobile terminal, storage medium and mobile terminal
CN212183717U (en) Earphone box and earphone set
CN103546638B (en) A kind of flash memory cards fall card restoration methods and mobile terminal thereof
CN103546138B (en) Touch key-press control circuit
KR102477853B1 (en) Electronic device and method displaying affordance for providing charge of battery of external device through display
CN104184449A (en) Capacitive touch control apparatus, method, and system
CN105959467A (en) Method and device for avoiding mistakenly touching mobile terminal

Legal Events

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