CN114466300A - Earphone state detection method and device, earphone and computer storage medium - Google Patents

Earphone state detection method and device, earphone and computer storage medium Download PDF

Info

Publication number
CN114466300A
CN114466300A CN202210188378.3A CN202210188378A CN114466300A CN 114466300 A CN114466300 A CN 114466300A CN 202210188378 A CN202210188378 A CN 202210188378A CN 114466300 A CN114466300 A CN 114466300A
Authority
CN
China
Prior art keywords
self
sensor
capacitance value
earphone
variation
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.)
Pending
Application number
CN202210188378.3A
Other languages
Chinese (zh)
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.)
Shenzhen Xihua Technology Co Ltd
Original Assignee
Shenzhen Xihua Technology 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 Shenzhen Xihua Technology Co Ltd filed Critical Shenzhen Xihua Technology Co Ltd
Priority to CN202210188378.3A priority Critical patent/CN114466300A/en
Publication of CN114466300A publication Critical patent/CN114466300A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • 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

Abstract

The embodiment of the application discloses a method and a device for detecting the state of an earphone, the earphone and a computer storage medium, which are used for reducing the occurrence of misjudging that the state of the earphone is a wearing state. The method of the embodiment of the application is applied to the earphone, the earphone comprises a first sensor, a second sensor and a data processing unit, the data processing unit is used for detecting a mutual capacitance value between the first sensor and the second sensor and detecting a self-capacitance value of the first sensor or a self-capacitance value of the second sensor, and the method of the embodiment of the application comprises the following steps: acquiring a first mutual capacitance variation through a data processing unit; judging whether a proximity event of the earphone is triggered or not according to the first mutual capacitance variation; if so, acquiring a first self-capacitance variation and/or a second self-capacitance variation through the data processing unit, wherein the first self-capacitance variation is a variation of a self-capacitance value of the first sensor; and determining the wearing state of the earphone according to the first self-capacitance variation and/or the second self-capacitance variation.

Description

Earphone state detection method and device, earphone and computer storage medium
Technical Field
The embodiment of the application relates to the technical field of proximity detection, in particular to a method and a device for detecting earphone states, an earphone and a computer storage medium.
Background
With the continuous development of modern science and technology, the diversification and the intelligence of electronic products are greatly improved, and particularly, the proximity detection technology is gradually mature and is gradually applied to various electronic devices, such as wireless earphones.
In the prior art, mutual capacitance detection technology is applied to earphones to determine whether the earphones are worn on the ears of a person. Mutual capacitance detection uses two sensors, one for sending detection signals and one for receiving signals. The amplitude of the received signal will vary as the magnitude of the mutual capacitance varies. When the human body is close to, the human body can influence the electric field between two mutual capacitance sensors, reduces the mutual capacitance value, can judge whether the earphone is worn in the ear through the variable quantity that detects the mutual capacitance value. When the earphone enters a wearing state, the functions of Bluetooth connection, music playing, noise reduction and the like are started; otherwise, if the wearing state is not entered, the functions are closed, thereby achieving the purpose of reducing power consumption. However, in order to facilitate charging of the earphone, it is common to expose the ground of the internal circuit of the earphone, and when a person takes the earphone, the hand may contact the ground of the internal circuit exposed from the earphone, so that the ground of the internal circuit is communicated with the person. When a person takes the earphone and touches the ground of the internal circuit of the earphone, the reading of the mutual capacitance detection circuit can be greatly changed, so that the detection value characteristics of the mutual capacitance detection circuit are similar to those of the earphone worn by the person, misjudgment is easily caused, and the state of the earphone is judged to be a wearing state.
Disclosure of Invention
The embodiment of the application provides a method and a device for detecting the state of an earphone, the earphone and a computer storage medium, which can reduce the occurrence of misjudging that the state of the earphone is a wearing state.
A first aspect of an embodiment of the present application provides an earphone state detection method, which is applied to an earphone, where the earphone includes a first sensor, a second sensor, and a data processing unit, where the data processing unit is configured to detect a mutual capacitance value between the first sensor and the second sensor, and detect a self-capacitance value of the first sensor or a self-capacitance value of the second sensor, and the earphone state detection method includes:
acquiring a first mutual capacitance variation through the data processing unit, wherein the first mutual capacitance variation is a variation of a mutual capacitance value between the first sensor and the second sensor;
judging whether a proximity event of the earphone is triggered or not according to the first mutual capacitance variation;
if so, acquiring a first self-capacitance variation and/or a second self-capacitance variation through the data processing unit, wherein the first self-capacitance variation is a variation of a self-capacitance value of the first sensor, and the second self-capacitance variation is a variation of a self-capacitance value of the first sensor;
and determining the wearing state of the earphone according to the first self-capacitance variation and/or the second self-capacitance variation.
Optionally, the obtaining, by the data processing unit, a first mutual capacitance variation includes:
acquiring a first mutual capacitance value, wherein the first mutual capacitance value is a basic mutual capacitance value between the first sensor and the second sensor;
acquiring a second mutual capacitance value between the first sensor and the second sensor in real time through the data processing unit;
and calculating a first mutual capacitance variation according to the second mutual capacitance value and the first mutual capacitance value.
Optionally, the obtaining the first mutual capacitance value includes:
when no object is close to the earphone, acquiring a mutual capacitance value between the first sensor and the second sensor as a first mutual capacitance value through the data processing unit;
or
And acquiring a mutual capacitance value preset by the earphone as a first mutual capacitance value.
Optionally, the obtaining, by the data processing unit, the first self-capacitance variation and/or the second self-capacitance variation includes:
acquiring a first self-capacitance value and/or a second self-capacitance value, wherein the first self-capacitance value is a basic self-capacitance value of the first sensor, and the second self-capacitance value is a basic self-capacitance value of the second sensor;
acquiring a third self-capacitance value of the first sensor and/or a fourth self-capacitance value of the second sensor in real time through the data processing unit;
and calculating a first self-capacitance variation according to the third self-capacitance value and the first self-capacitance value and/or calculating a second self-capacitance variation according to the fourth self-capacitance value and the second self-capacitance value.
Optionally, the obtaining the first self-capacitance value and/or the second self-capacitance value includes:
when no object is close to the earphone, the self-capacitance value of the first sensor is acquired as a first basic self-capacitance value and/or the self-capacitance value of the second sensor is acquired as a first basic self-capacitance value through the data processing unit;
or
And acquiring a self-capacitance value of the first sensor preset by the earphone as a first self-capacitance value, and/or acquiring a self-capacitance value of the second sensor preset by the earphone as a second self-capacitance value.
Optionally, the determining whether to trigger the proximity event of the headset according to the first mutual capacitance variation includes:
judging whether the first mutual capacitance variation is larger than or equal to a third threshold value;
if so, determining to trigger a proximity event of the headset.
Optionally, the determining the wearing state of the earphone according to the first self-capacitance variation and/or the second self-capacitance variation includes:
judging whether the first self-capacitance variation is larger than or equal to a first threshold value and/or whether the second self-capacitance variation is larger than or equal to a second threshold value;
and if so, determining that the earphone is in a wearing state.
Optionally, the earphone further includes a pressure sensor, and after determining that the earphone is in the wearing state, the earphone state detection method further includes:
judging whether hand pressing exists or not through the pressure sensor;
if so, acquiring a third mutual capacitance value between the first sensor and the second sensor in real time;
calculating a second mutual capacitance variation according to the third mutual capacitance value and the second mutual capacitance value;
judging whether the second mutual capacitance variation is larger than or equal to a fourth threshold value;
if yes, determining that the earphone is in a non-wearing state; if not, judging whether hand pressing exists again through the pressure sensor.
A second aspect of the embodiments of the present application provides an earphone state detection apparatus, which is applied to an earphone, where the earphone includes a first sensor, a second sensor, and a data processing unit, the data processing unit is configured to detect a mutual capacitance value between the first sensor and the second sensor, a self-capacitance value of the first sensor, or a self-capacitance value of the second sensor, and the earphone state detection apparatus includes:
a first obtaining unit, configured to obtain, by the data processing unit, a first mutual capacitance variation, where the first mutual capacitance variation is a variation of a mutual capacitance value between the first sensor and the second sensor;
the first judgment unit is used for judging whether to trigger a proximity event of the earphone or not according to the first mutual capacitance variation;
the second obtaining unit is used for obtaining a first self-capacitance variation and/or a second self-capacitance variation through the data processing unit when the first judging unit determines that the proximity event of the earphone is triggered, wherein the first self-capacitance variation is a variation of a self-capacitance value of the first sensor, and the second self-capacitance variation is a variation of a self-capacitance value of the first sensor;
a first determining unit, configured to determine a wearing state of the earphone according to the first self-capacitance variation and/or the second self-capacitance variation.
Optionally, the first obtaining unit includes:
a first obtaining module, configured to obtain a first mutual capacitance value, where the first mutual capacitance value is a basic mutual capacitance value between the first sensor and the second sensor;
the second acquisition module is used for acquiring a second mutual capacitance value between the first sensor and the second sensor in real time through the data processing unit;
and the first calculating module is used for calculating a first mutual capacitance variation according to the second mutual capacitance value and the first mutual capacitance value.
Optionally, the first obtaining module is specifically configured to:
when no object is close to the earphone, acquiring a mutual capacitance value between the first sensor and the second sensor as a first mutual capacitance value through the data processing unit;
or
And acquiring a mutual capacitance value preset by the earphone as a first mutual capacitance value.
Optionally, the second obtaining unit includes:
a third obtaining module, configured to obtain a first self-capacitance value and/or a second self-capacitance value, where the first self-capacitance value is a basic self-capacitance value of the first sensor, and the second self-capacitance value is a basic self-capacitance value of the second sensor;
the fourth acquisition module is used for acquiring a third self-capacitance value of the first sensor and/or a fourth self-capacitance value of the second sensor in real time through the data processing unit;
and a second calculating module, configured to calculate a first self-capacitance variation according to the third self-capacitance value and the first self-capacitance value and/or calculate a second self-capacitance variation according to the fourth self-capacitance value and the second self-capacitance value.
Optionally, the third obtaining module is specifically configured to:
when no object is close to the earphone, the self-capacitance value of the first sensor is acquired as a first basic self-capacitance value and/or the self-capacitance value of the second sensor is acquired as a first basic self-capacitance value through the data processing unit;
or
And acquiring a self-capacitance value of the first sensor preset by the earphone as a first self-capacitance value, and/or acquiring a self-capacitance value of the second sensor preset by the earphone as a second self-capacitance value.
Optionally, the first determining unit includes:
the first judging module is used for judging whether the first mutual capacitance variation is larger than or equal to a third threshold value;
a first determining module, configured to determine that a proximity event of the headset is triggered when the first determining module determines that the first mutual capacitance variation is greater than or equal to the third threshold.
Optionally, the first determining unit includes:
the second judging module is used for judging whether the first self-capacitance variation is larger than or equal to a first threshold value and/or whether the second self-capacitance variation is larger than or equal to a second threshold value;
a second determining module, configured to determine that the earphone is in a wearing state when the second determining module determines that the first self-capacitance variation is greater than or equal to a first threshold and/or the second self-capacitance variation is greater than or equal to a second threshold.
Optionally, the earphone further includes a pressure sensor, and the earphone state detection apparatus further includes:
the second judgment unit is used for judging whether hand pressing exists or not through the pressure sensor;
a third obtaining unit, configured to obtain, in real time, a third mutual capacitance value between the first sensor and the second sensor when the second determining unit determines that the hand pressure exists;
a calculating unit, configured to calculate a second mutual capacitance variation according to the third mutual capacitance value and the second mutual capacitance value;
a third determining unit configured to determine whether the second mutual capacitance variation is greater than or equal to a fourth threshold;
a second determining unit, configured to determine that the earphone is in a non-wearing state when the third determining unit determines that the second mutual capacitance variation is greater than or equal to the fourth threshold;
and the fourth judging unit is used for judging whether hand pressing exists again through the pressure sensor if the third judging unit determines that the second mutual capacitance variation is smaller than the fourth threshold value.
A third aspect of the embodiments of the present application provides an earphone, including a first sensor, a second sensor, and a data processing unit, where the data processing unit is electrically connected to the first sensor and the second sensor respectively;
the data processing unit is used for detecting a mutual capacitance value between the first sensor and the second sensor, and detecting a self-capacitance value of the first sensor or a self-capacitance value of the second sensor.
Optionally, the earphone further comprises a pressure sensor;
the pressure sensor is electrically connected with the data processing unit and used for detecting hand pressure.
A fourth aspect of the embodiments of the present application provides an earphone state detection apparatus, which is applied to the earphone according to the third aspect, and the earphone state detection apparatus includes:
the device comprises a processor, a memory, an input and output unit and a bus;
the processor is connected with the memory, the input and output unit and the bus;
the memory stores a program, and the processor calls the program to execute the method for detecting the state of the headset according to the first aspect and any one of the possible embodiments of the first aspect.
A fifth aspect of the embodiments of the present application provides a computer-readable storage medium, where a program is stored on the computer-readable storage medium, and when the program is executed on a computer, the computer is caused to execute the method for detecting a state of an earphone according to the first aspect and any one of the possible implementation manners of the first aspect.
According to the technical scheme, the embodiment of the application has the following advantages:
the earphone state detection method provided by the embodiment of the application firstly obtains a first mutual capacitance variation through a data processing unit, wherein the first mutual capacitance variation is a variation of a mutual capacitance value between a first sensor and a second sensor, then judges whether to trigger a proximity event of the earphone according to the first mutual capacitance variation, when the proximity event of the earphone is determined to be triggered, obtains a first self-capacitance variation and/or a second self-capacitance variation through the data processing unit, wherein the first self-capacitance variation is a variation of a self-capacitance value of the first sensor, the second self-capacitance variation is a variation of a self-capacitance value of the first sensor, and finally determines the wearing state of the earphone according to the first self-capacitance variation and/or the second self-capacitance variation. Whether the proximity event of the earphone is triggered is judged through the first mutual capacitance variation, if the proximity event of the earphone is triggered, the wearing state of the earphone is determined through the first self-capacitance variation and/or the second self-capacitance variation, the condition that the hand of a user is in contact with the ground of an internal circuit of the earphone but does not wear the earphone is compared with the condition that the user correctly wears the earphone to the ear, the caused first self-capacitance variation and/or second self-capacitance variation have obvious difference, and therefore the condition that the state of the earphone is misjudged to be the wearing state can be reduced.
Drawings
Fig. 1 is a schematic structural diagram of an embodiment of an earphone according to the present application;
fig. 2 is a schematic structural diagram of another embodiment of the headset in the embodiment of the present application;
fig. 3 is a schematic flowchart of an embodiment of a method for detecting a state of an earphone according to the present application;
fig. 4 is a schematic flowchart of another embodiment of a method for detecting a state of an earphone according to an embodiment of the present application;
fig. 5 is a schematic flowchart of another embodiment of a method for detecting a state of an earphone according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an embodiment of an earphone status detection apparatus in an embodiment of the present application;
fig. 7 is a schematic structural diagram of another embodiment of an earphone state detection apparatus in the embodiment of the present application;
fig. 8 is a schematic structural diagram of another embodiment of the earphone state detection apparatus in the embodiment of the present application.
Detailed Description
The embodiment of the application provides a method and a device for detecting the state of an earphone, the earphone and a computer storage medium, which are used for reducing the occurrence of misjudging that the state of the earphone is a wearing state.
Embodiments in the present application will be described below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an earphone according to an embodiment of the present application, where an embodiment of the earphone includes:
the sensor comprises a first sensor 101, a second sensor 102 and a data processing unit 103, wherein the data processing unit 103 is respectively electrically connected with the first sensor 101 and the second sensor 102;
the data processing unit 103 is configured to detect a mutual capacitance value between the first sensor 101 and the second sensor 102, a self-capacitance value of the first sensor 101, or a self-capacitance value of the second sensor 102.
Referring to fig. 2, fig. 2 is another schematic structural diagram of an earphone in the embodiment of the present application, where another embodiment of the earphone in the embodiment of the present application includes:
the sensor comprises a first sensor 201, a second sensor 202 and a data processing unit 203, wherein the data processing unit 203 is respectively electrically connected with the first sensor 201 and the second sensor 202;
the data processing unit 203 is configured to detect a mutual capacitance value between the first sensor 201 and the second sensor 202, and detect a self-capacitance value of the first sensor 201 or a self-capacitance value of the second sensor 202.
In this embodiment, the earphone may further include a pressure sensor 204;
the pressure sensor 204 is electrically connected to the data processing unit 204, and the pressure sensor 204 is used for detecting hand pressure.
It should be noted that, in this embodiment, the pressure sensor 204 may be a self-capacitance type, may also be a piezoresistor bridge type, and may also be a mutual capacitance type, which is not limited herein.
An execution main body of the earphone state detection method in the embodiment of the present application may be a server, a terminal, or other devices with logic processing capability, which is not limited in the embodiment of the present application. For convenience of description, the following description will be given taking the execution body as an example.
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating an embodiment of a method for detecting a state of an earphone according to an embodiment of the present application, where the method is applied to the earphone shown in fig. 1, and an embodiment of the method for detecting a state of an earphone according to the embodiment of the present application includes:
301. the terminal acquires a first mutual capacitance variable quantity through a data processing unit;
the mutual capacitance is the capacitance between one sensing block and another sensing block, when an excitation signal is applied to one sensing block, the excitation signal can be sensed and received on the other sensing block due to the existence of the mutual capacitance, and the magnitude and the phase shift of the received signal are related to the frequency of the excitation signal and the magnitude of the mutual capacitance. Two sensors are needed for mutual capacitance detection, one for sending detection signals and one for receiving signals. The amplitude of the received signal will vary as the magnitude of the mutual capacitance varies. When a human body approaches, the human body can influence an electric field between the two mutual capacitance sensors, and the mutual capacitance value is reduced.
When a user approaches the earphone, no matter the user wears the earphone on the ear or the user touches the ground of the exposed internal circuit of the earphone with a hand, the change of the mutual capacitance value between the first sensor and the second sensor is caused, at the moment, the terminal can acquire the first mutual capacitance change amount through the data processing unit of the earphone, and the first mutual capacitance change amount is the change amount of the mutual capacitance value between the first sensor and the second sensor.
302. The terminal judges whether to trigger a proximity event of the earphone according to the first mutual capacitance variation, if so, the step 303 is executed;
after the terminal acquires the first mutual capacitance variation through the data processing unit of the earphone, it may be determined whether to trigger a proximity event of the earphone according to the first mutual capacitance variation, where the proximity event is an event that a person approaches the earphone, and if the terminal determines that the proximity event occurs, step 303 may be executed. If the approach event of the earphone is not triggered, on the premise that the equipment works normally, the condition that the earphone is touched to the ground of an internal circuit by a user does not exist naturally, so when the terminal determines that the approach event is not triggered, the step of acquiring the first self-capacitance variation and/or the second self-capacitance variation through the data processing unit is not necessarily executed, and only when the approach event is determined to be triggered, the step of acquiring the first self-capacitance variation and/or the second self-capacitance variation through the data processing unit is executed.
303. The terminal acquires a first self-capacitance variation and/or a second self-capacitance variation through the data processing unit;
when a proximity event triggering the headset is determined, this time including a number of situations, such as when the user is correctly wearing the headset to his ear, when the user's hand touches the ground of the internal circuit exposed by the headset, and so on. The terminal needs to acquire more information to determine the specific state of the headset after determining the proximity event triggering the headset, and therefore the terminal acquires the first self-capacitance variation and/or the second self-capacitance variation through the data processing unit. The first self-capacitance variation is a variation of the self-capacitance of the first sensor, and the second self-capacitance variation is a variation of the self-capacitance of the second sensor.
304. And the terminal determines the wearing state of the earphone according to the first self-capacitance variation and/or the second self-capacitance variation.
After the terminal acquires the first self-capacitance variation and/or the second self-capacitance variation, because the condition that the user touches the ground of the internal circuit of the earphone but does not wear the earphone is compared with the condition that the user correctly wears the earphone to the ear, the caused first self-capacitance variation and/or second self-capacitance variation has obvious difference, so the terminal can determine the wearing state of the earphone according to the first self-capacitance variation and/or second self-capacitance variation. Wherein, the wearing state of the earphone comprises an unworn state and a worn state.
In this implementation, the terminal first obtains a first mutual capacitance variation through the data processing unit, where the first mutual capacitance variation is a variation of a mutual capacitance value between the first sensor and the second sensor, and then determines whether to trigger a proximity event of the earphone according to the first mutual capacitance variation, and when determining to trigger the proximity event of the earphone, obtains a first self-capacitance variation and/or a second self-capacitance variation through the data processing unit, where the first self-capacitance variation is a variation of a self-capacitance value of the first sensor, and the second self-capacitance variation is a variation of a self-capacitance value of the first sensor, and finally determines a wearing state of the earphone according to the first self-capacitance variation and/or the second self-capacitance variation. Whether the proximity event of the earphone is triggered or not is judged through the first mutual capacitance variation, if the proximity event of the earphone is triggered, the wearing state of the earphone is determined through the first self-capacitance variation and/or the second self-capacitance variation, the condition that the user does not wear the earphone when the user's hand contacts the ground of an internal circuit of the earphone is compared with the condition that the user correctly wears the earphone to the ear, and the caused first self-capacitance variation and/or second self-capacitance variation have obvious difference, so that the condition that the earphone is misjudged to be the wearing state can be reduced.
Referring to fig. 4, fig. 4 is a schematic flowchart of another embodiment of a method for detecting a state of an earphone according to an embodiment of the present application, applied to the earphone shown in fig. 1, where the another embodiment of the method for detecting a state of an earphone according to the embodiment of the present application includes:
401. the terminal acquires a first mutual capacitance value;
the mutual capacitance is the capacitance between one sensing block and another sensing block, when an excitation signal is applied to one sensing block, the excitation signal can be sensed and received on the other sensing block due to the existence of the mutual capacitance, and the magnitude and the phase shift of the received signal are related to the frequency of the excitation signal and the magnitude of the mutual capacitance. Two sensors are needed for mutual capacitance detection, one for sending detection signals and one for receiving signals. The amplitude of the received signal will vary as the magnitude of the mutual capacitance varies. When a human body approaches, the human body can influence an electric field between the two mutual capacitance sensors, and the mutual capacitance value is reduced.
When a user approaches the earphone, no matter the user wears the earphone on the ear or the user touches the ground of the exposed internal circuit of the earphone with a hand, the change of the mutual capacitance value between the first sensor and the second sensor is caused, and at the moment, the terminal can acquire the change of the mutual capacitance value between the first sensor and the second sensor through the data processing unit of the earphone.
And the terminal will acquire the variable quantity of the mutual capacitance value between the first sensor and the second sensor, and then need acquire the basic mutual capacitance value between the first sensor and the second sensor earlier to just can acquire the variable quantity of the mutual capacitance value according to the basic mutual capacitance value. Therefore, the terminal first obtains a first mutual capacitance value, which is a basic mutual capacitance value between the first sensor and the second sensor. It should be noted that the manner of acquiring the first mutual capacitance value by the terminal may include multiple manners, including directly acquiring a preset mutual capacitance value burned on the earphone as the first mutual capacitance value; when the proximity event of the headset is not triggered, acquiring, by a data processing unit of the headset, a mutual capacitance value between the first sensor and the second sensor as a first mutual capacitance value, which is not limited herein.
In the embodiment, the preset mutual capacitance value burnt on the earphone is directly obtained to be used as the first mutual capacitance value, so that the method is convenient and quick and has high efficiency; when the approach event of the earphone is not triggered, the accuracy of the mutual capacitance value between the first sensor and the second sensor is high by acquiring the mutual capacitance value as the first mutual capacitance value through the data processing unit of the earphone.
402. The terminal acquires a second mutual capacitance value between the first sensor and the second sensor in real time through the data processing unit;
in order to obtain the variation of the mutual capacitance value between the first sensor and the second sensor, the terminal needs to obtain the mutual capacitance value between the first sensor and the second sensor in real time as the second mutual capacitance value in addition to the first mutual capacitance value, and only after the first mutual capacitance value and the second mutual capacitance value are obtained, the terminal can further obtain the first mutual capacitance variation. Therefore, the terminal needs to obtain the second mutual capacitance value through the data processing unit in real time at this time.
403. The terminal calculates a first mutual capacitance variation according to the second mutual capacitance value and the first mutual capacitance value;
after the terminal acquires the first mutual capacitance value and the second mutual capacitance value at the same time, the first mutual capacitance variation can be calculated according to the second mutual capacitance value and the first mutual capacitance value. The specific calculation method may be to subtract the first mutual capacitance value from the second mutual capacitance value to obtain a difference, where the difference is the first mutual capacitance value variation.
404. The terminal judges whether the first mutual capacitance variation is larger than or equal to a third threshold, if so, step 405 is executed;
after obtaining the first mutual capacitance variation, the terminal may compare the first mutual capacitance variation with a third threshold, and if the first mutual capacitance variation is greater than or equal to the third threshold, step 405 may be executed. When the user is close to the earphone, for example, the hand of the user is close to the earphone, for example, only a few centimeters away from the earphone, or the user holds the earphone and touches the ground of the internal circuit of the earphone, the variation of the mutual capacitance value generated in the case that the user holds the earphone and touches the ground of the internal circuit of the earphone, or the variation of the mutual capacitance value generated in the case that the user holds the earphone and touches the ground of the internal circuit of the earphone and the user holds the earphone and wears the earphone on the ear, respectively, is very small, but the variation of the mutual capacitance value generated in other cases, for example, the case that the hand of the user is close to the earphone, for example, only a few centimeters away from the earphone, and the two cases, respectively, is obviously different. Therefore, a value can be preset as a third threshold value to distinguish between the case where the user correctly wears the earphone on the ear and the case where the user holds the earphone and touches the ground of the internal circuit of the earphone, which are different from the other cases in the amount of change in the mutual capacitance value.
In this embodiment, a preset value is used as the third threshold, so that the difference between the variation of the mutual capacitance value caused by the fact that the user correctly wears the earphone on the ear and the fact that the user grips the earphone and touches the ground of the internal circuit of the earphone with the hand can be effectively distinguished, and the possibility of misjudging that the wearing state of the earphone is the worn state is greatly reduced.
405. The terminal determines a proximity event triggering the earphone;
after determining that the first mutual capacitance variation is greater than or equal to the third threshold, the terminal may determine that a proximity event of the headset is triggered.
406. The terminal acquires a first self-capacitance value and/or a second self-capacitance value;
when a proximity event triggering the headset is determined, this time including a number of situations, such as when the user is correctly wearing the headset to his ear, when the user's hand touches the ground of the internal circuit exposed by the headset, and so on. Therefore, after determining that the proximity event of the headset is triggered, the terminal needs to acquire more information to determine the specific state of the headset, and therefore, the terminal acquires the change amount of the self-capacitance value of the first sensor and/or the change amount of the self-capacitance value of the second sensor through the data processing unit.
And the terminal needs to acquire the variation of the self-capacitance value of the first sensor, and then the basic self-capacitance value of the first sensor needs to be acquired first, so that the variation of the self-capacitance value can be acquired according to the basic self-capacitance value. Therefore, the terminal needs to first obtain a first self-capacitance value, which is the basic self-capacitance value of the first sensor. It should be noted that all the cases where the terminal acquires the first self-capacitance value may include multiple cases, including directly acquiring a self-capacitance value of a preset first sensor burned on the earphone as the first self-capacitance value; the method also includes acquiring, by a data processing unit of the headset, a self-capacitance value of the first sensor as a first self-capacitance value when the headset is not physically close to the headset, which is not limited herein.
Similarly, the terminal needs to acquire the variation of the self-capacitance value of the second sensor, and then needs to acquire the basic self-capacitance value of the second sensor first, so that the variation of the self-capacitance value can be acquired according to the basic self-capacitance value. Therefore, the terminal needs to first obtain a second self-capacitance value, which is the basic self-capacitance value of the second sensor. It should be noted that the terminal may obtain a plurality of second self-capacitance values, including directly obtaining a self-capacitance value of a preset second sensor burned on the earphone as the second self-capacitance value; the method also includes acquiring, by the data processing unit of the headset, the self-capacitance value of the second sensor as a second self-capacitance value when the headset is not physically close to the headset, which is not limited herein.
In this embodiment, directly acquire the self-capacitance value of burning record preset first sensor on the earphone as first self-capacitance value, convenient quick, efficient is favorable to reducing the time of judging the wearing mode of earphone for wearing the state to be favorable to improving with user experience. When no physics is close to the earphone, the data processing unit of earphone obtains the self-capacitance value of first sensor as first self-capacitance value, and the accuracy is high, can adapt to multiple external environment.
In this embodiment, directly acquire the self-capacitance value of burning record preset second sensor on the earphone as the second from the capacitance value, convenient quick, efficient is favorable to reducing the time of judging the wearing mode of earphone for wearing the state to be favorable to improving with user experience. When no physics is close to the earphone, the data processing unit of earphone obtains the self-capacitance value of second sensor as second self-capacitance value, and the accuracy is high, can adapt to multiple external environment.
407. The terminal acquires a third self-capacitance value of the first sensor and/or a fourth self-capacitance value of the second sensor in real time through the data processing unit;
in order to obtain the variation of the self-capacitance value of the first sensor, the terminal needs to obtain the self-capacitance value of the first sensor in real time as a third self-capacitance value in addition to the first self-capacitance value, and the terminal can further obtain the first self-capacitance variation only after the first self-capacitance value and the third self-capacitance value are obtained at the same time. Therefore, the terminal needs to obtain the third self-capacitance value through the data processing unit in real time at this time.
Similarly, in order to obtain the variation of the self-capacitance value of the second sensor, the terminal needs to obtain the self-capacitance value of the second sensor in real time as the fourth self-capacitance value in addition to the second self-capacitance value, and the terminal can further obtain the second self-capacitance variation only after the second self-capacitance value and the fourth self-capacitance value are obtained. Therefore, the terminal needs to obtain the fourth self-capacitance value through the data processing unit in real time at this time.
408. The terminal calculates a first self-capacitance variation according to the third self-capacitance value and the first self-capacitance value and/or calculates a second self-capacitance variation according to the fourth self-capacitance value and the second self-capacitance value;
after the terminal acquires the first self-capacitance value and the third self-capacitance value at the same time, the first self-capacitance variation can be calculated according to the third self-capacitance value and the first self-capacitance value. The specific calculation method may be to subtract the first self-capacitance value from the third self-capacitance value to obtain a difference, where the difference is the first self-capacitance value variation.
Similarly, after the terminal acquires the second self-capacitance value and the fourth self-capacitance value at the same time, the second self-capacitance variation can be calculated according to the fourth self-capacitance value and the second self-capacitance value. The specific calculation method may be to subtract the second self-capacitance value from the fourth self-capacitance value to obtain a difference, where the difference is the second self-capacitance value variation.
409. And the terminal determines the wearing state of the earphone according to the first self-capacitance variation and/or the second self-capacitance variation.
After the terminal acquires the first self-capacitance variation and/or the second self-capacitance variation, because the condition that the hand of the user is in contact with the ground of the internal circuit of the earphone but the earphone is not worn is compared with the condition that the user correctly wears the earphone to the ear, the caused first self-capacitance variation and/or second self-capacitance variation has obvious difference, so the terminal can determine the wearing state of the earphone according to the first self-capacitance variation and/or second self-capacitance variation. Wherein, the wearing state of the earphone comprises an unworn state and a worn state.
Referring to fig. 5, fig. 5 is a schematic flowchart illustrating a flow of another embodiment of the method for detecting a state of an earphone according to the present application, applied to the earphone shown in fig. 2, where the another embodiment of the method for detecting a state of an earphone according to the present application includes:
501. the terminal acquires a first mutual capacitance variable quantity through a data processing unit;
the mutual capacitance is the capacitance between one sensing block and another sensing block, when an excitation signal is applied to one sensing block, the excitation signal can be sensed and received on the other sensing block due to the existence of the mutual capacitance, and the magnitude and the phase shift of the received signal are related to the frequency of the excitation signal and the magnitude of the mutual capacitance. Two sensors are needed for mutual capacitance detection, one for sending detection signals and one for receiving signals. The amplitude of the received signal will vary as the magnitude of the mutual capacitance varies. When a human body approaches, the human body can influence an electric field between the two mutual capacitance sensors, and the mutual capacitance value is reduced.
When a user approaches the earphone, no matter the user wears the earphone on the ear or the user touches the ground of the exposed internal circuit of the earphone with a hand, the change of the mutual capacitance value between the first sensor and the second sensor is caused, at the moment, the terminal can acquire the first mutual capacitance change amount through the data processing unit of the earphone, and the first mutual capacitance change amount is the change amount of the mutual capacitance value between the first sensor and the second sensor.
502. The terminal judges whether to trigger a proximity event of the earphone according to the first mutual capacitance variation, if so, step 503 is executed;
after the terminal obtains the first mutual capacitance variation through the data processing unit of the earphone, it may be determined whether to trigger a proximity event of the earphone according to the first mutual capacitance variation, where the proximity event is an event that a person approaches the earphone, and if the terminal determines that the proximity event occurs, step 503 may be executed. If the approach event of the earphone is not triggered, on the premise that the equipment works normally, the condition that the earphone is touched to the ground of an internal circuit by a user does not exist naturally, so when the terminal determines that the approach event is not triggered, the step of acquiring the first self-capacitance variation and/or the second self-capacitance variation through the data processing unit is not necessarily executed, and only when the approach event is determined to be triggered, the step of acquiring the first self-capacitance variation and/or the second self-capacitance variation through the data processing unit is executed.
503. The terminal acquires a first self-capacitance variation and/or a second self-capacitance variation through the data processing unit;
when a proximity event triggering the headset is determined, this time including a number of situations, such as when the user is correctly wearing the headset to his ear, when the user's hand touches the ground of the internal circuit exposed by the headset, and so on. The terminal needs to acquire more information to determine the specific state of the headset after determining the proximity event triggering the headset, and therefore the terminal acquires the first self-capacitance variation and/or the second self-capacitance variation through the data processing unit. The first self-capacitance variation is a variation of the self-capacitance of the first sensor, and the second self-capacitance variation is a variation of the self-capacitance of the second sensor.
504. The terminal determines whether the first self-capacitance variation is greater than or equal to a first threshold and/or whether the second self-capacitance variation is greater than or equal to a second threshold, if yes, step 505 is executed;
after obtaining the first self-capacitance variation and/or the second self-capacitance variation, the terminal may compare the first self-capacitance variation with a first threshold and compare the second self-capacitance variation with a second threshold, respectively, and may perform step 505 according to the following three cases:
1. the first self-capacitance variation is greater than or equal to a first threshold;
2. the second self-capacitance variation is greater than or equal to a second threshold;
3. the first self-capacitance variation is larger than or equal to a first threshold, and the second self-capacitance variation is larger than or equal to a second threshold.
In practical application, the terminal distinguishes two cases, namely the case that the user correctly wears the earphone on the ear and the case that the user grips the earphone and the hand touches the ground of the internal circuit of the earphone, from the variation of the mutual capacitance value caused by other cases through the first mutual capacitance variation, but cannot distinguish the two cases through the first mutual capacitance variation, and at the moment, the terminal can distinguish the two cases through the first self-capacitance variation and/or the second self-capacitance variation. When the user wears the earphone on the ear correctly, the distance between the human body and the first sensor or the second sensor is reduced, the human body is equivalent to the ground, and the distance between the human body and the ground is reduced from infinity to close proximity, so that the self-capacitance value of the first sensor or the second sensor is obviously increased. And for the condition that the user holds the earphone and touches the ground of the internal circuit of the earphone with the hand, the ground of the internal circuit is communicated with the human body, which is equivalent to communicating the ground of the internal circuit with the ground, but the first sensor or the second sensor is far away from the ground of the internal circuit, even if the ground of the internal circuit is communicated with the ground, the increment of the self-capacitance value of the first sensor or the second sensor caused by the communication is not large, and is even difficult to detect. Therefore, a value can be preset as the first threshold value to distinguish between a case where the user wears the headphone correctly on the ear and a case where the user grips the headphone and touches the ground of the internal circuit of the headphone with the hand, and the amount of change in the self-capacitance value of the first sensor is different from that caused by the other cases. Similarly, a value may be preset as the second threshold value to distinguish between a case where the user wears the headphone correctly on the ear and a case where the user grips the headphone and touches the ground of the internal circuit of the headphone with the hand, and the amount of change in the self-capacitance value of the second sensor is different from that caused by the other cases.
In practical applications, the terminal may detect the first self-capacitance variation alone, may detect the second self-capacitance variation alone, and may detect the first self-capacitance variation and the second self-capacitance variation simultaneously, which is not limited herein.
505. The terminal determines that the earphone is in a wearing state;
the terminal may determine that the headset is in a worn state after determining that the first self-capacitance variation is greater than or equal to a first threshold and/or the second self-capacitance variation is greater than or equal to a second threshold.
506. The terminal judges whether hand pressing exists or not through the pressure sensor, if yes, step 507 is executed;
after determining that the headset is in the worn state, the terminal may detect whether the user takes the headset off so that the headset is in a non-worn state. To detect whether the headset is switched from the worn state to the unworn state, the terminal first needs to determine whether there is hand pressure through the pressure sensor, and if it is determined that there is hand pressure, step 507 may be performed.
Further, in order to achieve the purpose of saving power, when the headset is in a worn state and hand pressure detection is performed, if hand pressure is not detected, low-frequency detection can be performed, the detection frequency is low, and once hand pressure is detected, high-frequency detection is switched to.
507. The terminal acquires a third mutual capacitance value between the first sensor and the second sensor in real time;
after the terminal determines that the hand pressure exists, a third mutual capacitance value between the first sensor and the second sensor can be acquired in real time.
508. The terminal calculates a second mutual capacitance variation according to the third mutual capacitance value and the second mutual capacitance value;
after the third mutual capacitance value is obtained, the terminal may calculate a second mutual capacitance variation according to the third mutual capacitance value and the second mutual capacitance value, specifically, may subtract the second mutual capacitance value from the third mutual capacitance value to obtain a difference, and use the difference as the second mutual capacitance variation.
509. The terminal determines whether the second mutual capacitance variation is greater than or equal to a fourth threshold, if so, step 510 is executed, and if not, step 506 is executed again;
after the terminal obtains the second mutual capacitance variation, it may be determined whether the second mutual capacitance variation is greater than or equal to a fourth threshold, and if it is determined that the second mutual capacitance is greater than or equal to the fourth threshold, step 510 may be executed; if it is determined that the second mutual capacitance value is less than the fourth threshold value, step 506 may be performed again.
510. And the terminal determines that the earphone is in a non-wearing state.
If the second mutual capacitance variation is greater than or equal to the fourth threshold, the terminal may determine that the headset is switched from the worn state to the unworn state, and the headset is currently in the unworn state.
In this embodiment, when it is determined that hand pressing exists, the terminal acquires a third mutual capacitance value between the first sensor and the second sensor, calculates a second mutual capacitance variation by combining the second mutual capacitance value, and after it is determined that the second mutual capacitance variation is greater than or equal to a fourth threshold, may determine that the earphone is in a non-wearing state, otherwise, continues to perform the determination of whether hand pressing exists and the subsequent steps. In practical application, in the process that a user grips an earphone worn on an ear with a hand, the terminal can detect hand pressing, the terminal can acquire a third mutual capacitance value and calculate a second mutual capacitance variation, but the hand of the user is close to the earphone, the hand of the user can cut off electric field lines between the first sensor and the second sensor, the second mutual capacitance variation is very small or even 0, the fourth threshold cannot be larger than or equal to, and the terminal cannot judge that the earphone is converted into a non-wearing state. Once the user releases the headset, for example, when the user puts the headset on a desktop and the hand pressure disappears, the second mutual capacitance variation also increases and is greater than or equal to the fourth threshold, and at this time, the terminal may determine that the headset is switched from the worn state to the unworn state.
In this embodiment, except that the wearing state that can detect the earphone is changed from the non-wearing state to the wearing state, can also further detect the earphone and change into the non-wearing state at the wearing state, after the user takes off the earphone, can in time close the music broadcast or the bluetooth connection etc. of earphone, be favorable to for the earphone power saving. Meanwhile, the user does not need to manually disconnect the earphone from other equipment, convenience is provided for the user, and user experience is improved.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an embodiment of an earphone state detection apparatus according to the present embodiment, applied to an earphone in the embodiment shown in fig. 1, where the embodiment of the earphone state detection apparatus according to the present embodiment includes:
a first obtaining unit 601, configured to obtain, by the data processing unit, a first mutual capacitance variation, where the first mutual capacitance variation is a variation of a mutual capacitance value between the first sensor and the second sensor;
a first determining unit 602, configured to determine whether to trigger a proximity event of the headset according to the first mutual capacitance variation;
a second obtaining unit 603, configured to obtain, by the data processing unit, a first self-capacitance variation and/or a second self-capacitance variation when the first determining unit 602 determines that the proximity event of the headset is triggered, where the first self-capacitance variation is a variation of a self-capacitance of the first sensor, and the second self-capacitance variation is a variation of a self-capacitance of the first sensor;
a first determining unit 604, configured to determine a wearing state of the earphone according to the first self-capacitance variation and/or the second self-capacitance variation.
In this embodiment, the first obtaining unit 601 first obtains the first mutual capacitance variation through the data processing unit, wherein the first mutual capacitance variation is a variation of a mutual capacitance value between the first sensor and the second sensor, then the first judging unit 602 judges whether to trigger a proximity event of the earphone according to the first mutual capacitance variation, when the first judging unit 602 determines to trigger the proximity event of the earphone, the second acquiring unit 603 acquires the first self-capacitance variation amount and/or the second self-capacitance variation amount through the data processing unit, the first self-capacitance variation is a variation of the self-capacitance of the first sensor, the second self-capacitance variation is a variation of the self-capacitance of the first sensor, and finally the first determining unit 604 determines the wearing state of the earphone according to the first self-capacitance variation and/or the second self-capacitance variation. Whether the proximity event of the earphone is triggered is judged through the first mutual capacitance variation, if the proximity event of the earphone is triggered, the wearing state of the earphone is determined through the first self-capacitance variation and/or the second self-capacitance variation, the condition that the hand of a user is in contact with the ground of an internal circuit of the earphone but does not wear the earphone is compared with the condition that the user correctly wears the earphone to the ear, the caused first self-capacitance variation and/or second self-capacitance variation have obvious difference, and therefore the condition that the state of the earphone is misjudged to be the wearing state can be reduced.
Referring to fig. 7, fig. 7 is a schematic structural diagram of another embodiment of an earphone state detection device according to an embodiment of the present application, applied to an earphone in the embodiment shown in fig. 2, where the another embodiment of the earphone state detection device in the embodiment of the present application includes:
a first obtaining unit 701, configured to obtain, by the data processing unit, a first mutual capacitance variation, where the first mutual capacitance variation is a variation of a mutual capacitance value between the first sensor and the second sensor;
a first determining unit 702, configured to determine whether to trigger a proximity event of the headset according to the first mutual capacitance variation;
a second obtaining unit 703, configured to obtain, by the data processing unit, a first self-capacitance variation and/or a second self-capacitance variation when the first determining unit 702 determines that the proximity event of the headset is triggered, where the first self-capacitance variation is a variation of a self-capacitance of the first sensor, and the second self-capacitance variation is a variation of a self-capacitance of the first sensor;
a first determining unit 704, configured to determine a wearing state of the earphone according to the first self-capacitance variation and/or the second self-capacitance variation.
In this embodiment, the first obtaining unit 701 includes:
a first obtaining module 7011, configured to obtain a first mutual capacitance value, where the first mutual capacitance value is a basic mutual capacitance value between the first sensor and the second sensor;
a second obtaining module 7012, configured to obtain, in real time, a second mutual capacitance value between the first sensor and the second sensor through the data processing unit;
a first calculating module 7013, configured to calculate a first mutual capacitance variation according to the second mutual capacitance value and the first mutual capacitance value.
In this embodiment, the first obtaining module 7011 may be specifically configured to:
when no object is close to the earphone, acquiring a mutual capacitance value between the first sensor and the second sensor as a first mutual capacitance value through the data processing unit;
or
And acquiring a mutual capacitance value preset by the earphone as a first mutual capacitance value.
In this embodiment, the second obtaining unit 703 includes:
a third obtaining module 7031, configured to obtain a first self-capacitance value and/or a second self-capacitance value, where the first self-capacitance value is a base self-capacitance value of the first sensor, and the second self-capacitance value is a base self-capacitance value of the second sensor;
a fourth obtaining module 7032, configured to obtain, in real time, a third self-capacitance value of the first sensor and/or a fourth self-capacitance value of the second sensor through the data processing unit;
a second calculating module 7033, configured to calculate a first self-capacitance variation according to the third self-capacitance value and the first self-capacitance value and/or calculate a second self-capacitance variation according to the fourth self-capacitance value and the second self-capacitance value.
In this embodiment, the third obtaining module 7033 may be specifically configured to:
when no object is close to the earphone, the self-capacitance value of the first sensor is acquired as a first basic self-capacitance value and/or the self-capacitance value of the second sensor is acquired as a first basic self-capacitance value through the data processing unit;
or
And acquiring a self-capacitance value of the first sensor preset by the earphone as a first self-capacitance value, and/or acquiring a self-capacitance value of the second sensor preset by the earphone as a second self-capacitance value.
In this embodiment, the first determining unit 702 includes:
a first determining module 7021, configured to determine whether the first mutual capacitance variation is greater than or equal to a third threshold;
a first determining module 7022, configured to determine a proximity event triggering the earphone when the first determining module 7021 determines that the first mutual capacitance variation is greater than or equal to the third threshold.
Optionally, the first determining unit 704 includes:
a second determining module 7041, configured to determine whether the first self-capacitance variation is greater than or equal to a first threshold and/or whether the second self-capacitance variation is greater than or equal to a second threshold;
a second determining module 7042, configured to determine that the earphone is in a wearing state when the second determining module 7041 determines that the first self-capacitance variation is greater than or equal to a first threshold and/or the second self-capacitance variation is greater than or equal to a second threshold.
In this embodiment, the earphone state detection apparatus further includes:
a second determination unit 705, configured to determine whether there is hand pressure through the pressure sensor;
a third obtaining unit 706, configured to obtain, in real time, a third mutual capacitance value between the first sensor and the second sensor when the second determining unit determines that the hand pressure exists;
a calculating unit 707, configured to calculate a second mutual capacitance variation according to the third mutual capacitance value and the second mutual capacitance value;
a third determining unit 708, configured to determine whether the second mutual capacitance variation is greater than or equal to a fourth threshold;
a second determining unit 709, configured to determine that the earphone is in a non-wearing state when the third determining unit determines that the second mutual capacitance variation is greater than or equal to the fourth threshold;
a fourth determining unit 710, configured to determine whether there is hand pressure again through the pressure sensor if the third determining unit 709 determines that the second mutual capacitance variation is smaller than the fourth threshold value, otherwise.
Referring to fig. 8, fig. 8 is a schematic structural diagram of another embodiment of the earphone state detection device according to the embodiment, which is applied to the earphone in the embodiment shown in fig. 1 or 2, and the another embodiment of the earphone state detection device according to the embodiment of the present application includes:
a processor 801, a memory 802, an input-output unit 803, and a bus 804;
the processor 801 is connected to the memory 802, the input/output unit 803 and the bus 804;
the memory 802 stores a program, and the processor 801 calls the program to execute the headphone state detection method according to any one of the possible embodiments shown in fig. 3 to 5.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.

Claims (11)

1. An earphone state detection method is applied to an earphone and is characterized in that the earphone comprises a first sensor, a second sensor and a data processing unit, the data processing unit is used for detecting a mutual capacitance value between the first sensor and the second sensor and detecting a self-capacitance value of the first sensor or a self-capacitance value of the second sensor, and the earphone state detection method comprises the following steps:
acquiring a first mutual capacitance variation through the data processing unit, wherein the first mutual capacitance variation is a variation of a mutual capacitance value between the first sensor and the second sensor;
judging whether a proximity event of the earphone is triggered or not according to the first mutual capacitance variation;
if so, acquiring a first self-capacitance variation and/or a second self-capacitance variation through the data processing unit, wherein the first self-capacitance variation is a variation of a self-capacitance value of the first sensor, and the second self-capacitance variation is a variation of a self-capacitance value of the first sensor;
and determining the wearing state of the earphone according to the first self-capacitance variation and/or the second self-capacitance variation.
2. The method for detecting the earphone status according to claim 1, wherein the obtaining, by the data processing unit, the first mutual capacitance variation amount comprises:
acquiring a first mutual capacitance value, wherein the first mutual capacitance value is a basic mutual capacitance value between the first sensor and the second sensor;
acquiring a second mutual capacitance value between the first sensor and the second sensor in real time through the data processing unit;
and calculating a first mutual capacitance variation according to the second mutual capacitance value and the first mutual capacitance value.
3. The headphone state detection method according to claim 2, wherein the obtaining the first mutual capacitance value comprises:
when no object is close to the earphone, acquiring a mutual capacitance value between the first sensor and the second sensor as a first mutual capacitance value through the data processing unit;
or
And acquiring a mutual capacitance value preset by the earphone as a first mutual capacitance value.
4. The method for detecting the state of an earphone according to claim 1, wherein the obtaining, by the data processing unit, the first self-capacitance variation and/or the second self-capacitance variation comprises:
acquiring a first self-capacitance value and/or a second self-capacitance value, wherein the first self-capacitance value is a basic self-capacitance value of the first sensor, and the second self-capacitance value is a basic self-capacitance value of the second sensor;
acquiring a third self-capacitance value of the first sensor and/or a fourth self-capacitance value of the second sensor in real time through the data processing unit;
and calculating a first self-capacitance variation according to the third self-capacitance value and the first self-capacitance value and/or calculating a second self-capacitance variation according to the fourth self-capacitance value and the second self-capacitance value.
5. The headphone state detection method according to claim 4, wherein the obtaining the first self-capacitance value and/or the second self-capacitance value comprises:
when no object is close to the earphone, the self-capacitance value of the first sensor is acquired as a first basic self-capacitance value and/or the self-capacitance value of the second sensor is acquired as a first basic self-capacitance value through the data processing unit;
or
And acquiring a self-capacitance value of the first sensor preset by the earphone as a first self-capacitance value, and/or acquiring a self-capacitance value of the second sensor preset by the earphone as a second self-capacitance value.
6. The earphone status detection method according to any one of claims 1 to 5, wherein the determining whether to trigger the proximity event of the earphone according to the first mutual capacitance variation comprises:
judging whether the first mutual capacitance variation is larger than or equal to a third threshold value;
if so, determining to trigger a proximity event of the headset.
7. A headset state detecting method according to any of claims 1 to 5, wherein the determining of the wearing state of the headset according to the first and/or second self-capacitance variation includes:
judging whether the first self-capacitance variation is larger than or equal to a first threshold value and/or whether the second self-capacitance variation is larger than or equal to a second threshold value;
and if so, determining that the earphone is in a wearing state.
8. The headphone state detection method according to claim 7, wherein the headphone further comprises a pressure sensor, and after the determination that the headphone is in the wearing state, the headphone state detection method further comprises:
judging whether hand pressing exists or not through the pressure sensor;
if so, acquiring a third mutual capacitance value between the first sensor and the second sensor in real time;
calculating a second mutual capacitance variation according to the third mutual capacitance value and the second mutual capacitance value;
judging whether the second mutual capacitance variation is larger than or equal to a fourth threshold value;
if yes, determining that the earphone is in a non-wearing state; if not, judging whether hand pressing exists or not through the pressure sensor again.
9. An earphone state detection device applied to an earphone, wherein the earphone comprises a first sensor, a second sensor and a data processing unit, the data processing unit is used for detecting a mutual capacitance value between the first sensor and the second sensor, and detecting a self-capacitance value of the first sensor or a self-capacitance value of the second sensor, and the earphone state detection device comprises:
a first obtaining unit, configured to obtain, by the data processing unit, a first mutual capacitance variation, where the first mutual capacitance variation is a variation of a mutual capacitance value between the first sensor and the second sensor;
the first judging unit is used for judging whether a proximity event of the earphone is triggered or not according to the first mutual capacitance variation;
the second obtaining unit is used for obtaining a first self-capacitance variation and/or a second self-capacitance variation through the data processing unit when the first judging unit determines that the proximity event of the earphone is triggered, wherein the first self-capacitance variation is a variation of a self-capacitance value of the first sensor, and the second self-capacitance variation is a variation of a self-capacitance value of the first sensor;
a first determining unit, configured to determine a wearing state of the earphone according to the first self-capacitance variation and/or the second self-capacitance variation.
10. The earphone is characterized by comprising a first sensor, a second sensor and a data processing unit, wherein the data processing unit is electrically connected with the first sensor and the second sensor respectively;
the data processing unit is used for detecting a mutual capacitance value between the first sensor and the second sensor, and detecting a self-capacitance value of the first sensor or a self-capacitance value of the second sensor.
11. A computer-readable storage medium having a program stored thereon, which when executed on a computer, causes the computer to execute the headphone state detection method according to any one of claims 1 to 8.
CN202210188378.3A 2022-02-28 2022-02-28 Earphone state detection method and device, earphone and computer storage medium Pending CN114466300A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210188378.3A CN114466300A (en) 2022-02-28 2022-02-28 Earphone state detection method and device, earphone and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210188378.3A CN114466300A (en) 2022-02-28 2022-02-28 Earphone state detection method and device, earphone and computer storage medium

Publications (1)

Publication Number Publication Date
CN114466300A true CN114466300A (en) 2022-05-10

Family

ID=81415909

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210188378.3A Pending CN114466300A (en) 2022-02-28 2022-02-28 Earphone state detection method and device, earphone and computer storage medium

Country Status (1)

Country Link
CN (1) CN114466300A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110944258A (en) * 2018-09-21 2020-03-31 苹果公司 Force activated earphone
US20200103446A1 (en) * 2018-09-30 2020-04-02 Shenzhen GOODIX Technology Co., Ltd. Capacitance detection module, method and electronic device
CN111770407A (en) * 2020-06-30 2020-10-13 歌尔科技有限公司 Earphone state detection method and device, earphone and readable storage medium
CN212031757U (en) * 2020-09-07 2020-11-27 深圳市汇顶科技股份有限公司 Proximity detection device and electronic apparatus
CN112305320A (en) * 2020-12-30 2021-02-02 深圳市汇顶科技股份有限公司 Proximity detection circuit, wearable device and proximity detection method
US20210342032A1 (en) * 2019-02-01 2021-11-04 Shenzhen GOODIX Technology Co., Ltd. Wearing detection apparatus and method, and earphone
CN113784268A (en) * 2021-08-09 2021-12-10 深圳曦华科技有限公司 In-ear detection method and related device
CN114003149A (en) * 2021-09-30 2022-02-01 深圳曦华科技有限公司 Electronic equipment control method and device, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110944258A (en) * 2018-09-21 2020-03-31 苹果公司 Force activated earphone
US20200103446A1 (en) * 2018-09-30 2020-04-02 Shenzhen GOODIX Technology Co., Ltd. Capacitance detection module, method and electronic device
US20210342032A1 (en) * 2019-02-01 2021-11-04 Shenzhen GOODIX Technology Co., Ltd. Wearing detection apparatus and method, and earphone
CN111770407A (en) * 2020-06-30 2020-10-13 歌尔科技有限公司 Earphone state detection method and device, earphone and readable storage medium
CN212031757U (en) * 2020-09-07 2020-11-27 深圳市汇顶科技股份有限公司 Proximity detection device and electronic apparatus
CN112305320A (en) * 2020-12-30 2021-02-02 深圳市汇顶科技股份有限公司 Proximity detection circuit, wearable device and proximity detection method
CN113784268A (en) * 2021-08-09 2021-12-10 深圳曦华科技有限公司 In-ear detection method and related device
CN114003149A (en) * 2021-09-30 2022-02-01 深圳曦华科技有限公司 Electronic equipment control method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108702567B (en) Earphone, method for detecting wearing state of earphone and electronic equipment
KR100917607B1 (en) Body communication apparatus
CN110603815A (en) Earphone and method for realizing wearing detection and touch operation
WO2018107903A1 (en) Control method and device for touch screen of mobile terminal, mobile terminal, and storage medium
US10126845B2 (en) Wireless input device, charging pad and charging method thereof
TWI682681B (en) Adjust transmit power based on touch detection
CN100538615C (en) A kind of method that prevents the capacitance key false triggering
WO2022161305A1 (en) Earphone state detection method and apparatus
CN111106821B (en) Touch control method and wearable device
US20210341351A1 (en) Water Ingress Detection Method and Circuit, and Electric Device
CN107205187A (en) A kind of method, device and terminal device based on earphone control music
CN113473292B (en) State detection method, earphone and computer readable storage medium
CN110888620A (en) Head-mounted equipment, wearing detection method and device thereof, and medium
CN111083271A (en) Wearing detection method, system, equipment and computer readable storage medium
CN114079840A (en) Earphone wearing induction circuit, headset and electronic equipment
CN112492439B (en) Earphone falling reminding method and device, electronic equipment and storage medium
KR20210021858A (en) Electronic device for managing power and operating method thereof
CN114466300A (en) Earphone state detection method and device, earphone and computer storage medium
CN106713572B (en) Data reporting control method, device and terminal
CN108632713B (en) Volume control method and device, storage medium and terminal equipment
CN110958345B (en) Method and device for detecting rear cover of mobile terminal and computer readable storage medium
CN109361981B (en) Bluetooth headset and connection state control method thereof
CN105184198B (en) Detect guard method and mobile terminal
CN113613157B (en) Earphone and wearing state detection method and device thereof and storage medium
CN115243145A (en) Earphone control method, earphone control device, earphone and computer readable storage medium

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