CN108134969A - The detection method and device of earphone wearing state - Google Patents
The detection method and device of earphone wearing state Download PDFInfo
- Publication number
- CN108134969A CN108134969A CN201711244427.6A CN201711244427A CN108134969A CN 108134969 A CN108134969 A CN 108134969A CN 201711244427 A CN201711244427 A CN 201711244427A CN 108134969 A CN108134969 A CN 108134969A
- Authority
- CN
- China
- Prior art keywords
- impedance
- earphone
- curve
- frequency
- swept
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1041—Mechanical or electronic switches, or control elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2201/00—Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
- H04R2201/10—Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups
Abstract
This disclosure relates to which a kind of detection method and device of earphone wearing state, are related to field of terminal technology, this method is applied to terminal, reference impedance is provided in terminal, and when the earphone interface of earphone insertion terminal, reference impedance is connected with earphone load, including:When detecting that earphone is inserted into earphone interface, the series circuit formed to earphone load and reference impedance loads preset swept-frequency signal, by the first voltage signal curve that reference impedance when acquisition is loading swept-frequency signal is measured at the both ends of reference impedance, according to swept-frequency signal, the impedance value of reference impedance and first voltage signal curve, the current AC impedance curve of earphone load is obtained, the wearing state of earphone is determined according to current AC impedance curve and pre-stored reference curve.Enable the terminals to detect the wearing state of earphone.
Description
Technical field
This disclosure relates to field of terminal technology, and in particular, to a kind of detection method and device of earphone wearing state.
Background technology
With the continuous development of terminal technology, people more easily can be listened to and be watched using various intelligent terminals
Audiovisual materials, therefore, terminal should restore audio-frequency information as far as possible, ensure the listening experience of user.When earphone and terminal connect
After connecing, if earphone is worn not tight enough, i.e. earphone goes out in the case that acoustic aperture do not blocked completely, low frequency signal can be caused to let out
Dew, can cause accordingly user listen to less than or the seldom portion in a low voice of uppick audio-frequency information.In addition, ear is not worn in user
In the case of machine, earphone, which works on, will also result in unnecessary energy consumption.Therefore, how accurately to identify that the wearing state of earphone is
At present the problem of urgent need to resolve.
Invention content
To overcome the problems in correlation technique, the purpose of the disclosure is to provide a kind of detection side of earphone wearing state
Method and device.
To achieve these goals, the disclosure provides a kind of detection method of earphone wearing state, described applied to terminal
Reference impedance is provided in terminal, the reference impedance and earphone load string when the earphone interface of the earphone insertion terminal
Connection, the method includes:
When detecting that the earphone is inserted into the earphone interface, the earphone load and the reference impedance are formed
Series circuit loads preset swept-frequency signal;
By measured at the both ends of the reference impedance obtain loading the swept-frequency signal when reference impedance the
One voltage signal curve;
According to the swept-frequency signal, the impedance value of the reference impedance and the first voltage signal curve obtain institute
State the current AC impedance curve of earphone load;
The wearing state of the earphone is determined according to the current AC impedance curve and pre-stored reference curve.
Optionally, the swept-frequency signal is the signal that frequency changes in the range of predeterminated frequency, described by the ginseng
The both ends for examining impedance measure the first voltage signal curve for obtaining the reference impedance when loading the swept-frequency signal, including:
By measured at the both ends of the reference impedance obtain loading the swept-frequency signal when reference impedance the
One voltage signal curve, the first voltage signal curve are that the frequency of the swept-frequency signal becomes in the range of the predeterminated frequency
During change, curve that the voltage value at the both ends of the reference impedance changes with the frequency of the swept-frequency signal.
Optionally, it is described according to the swept-frequency signal, the impedance value of the reference impedance and the first voltage signal
Curve obtains the current AC impedance curve of the earphone load, including:
According to the swept-frequency signal, the impedance value of the reference impedance and the first voltage signal curve utilize resistance
Anti- calculation formula obtains impedance curve corresponding with the first voltage signal curve, bent as the current AC impedance
Line;
The impedance computation formula includes:
RX=(VS-VL)/(VL/Rref)
Wherein, VLRepresent the voltage value of any point in the first voltage signal curve, VSRepresent the swept-frequency signal, Rref
Represent the impedance value of the reference impedance, RXRepresent the impedance value of any point in the current AC impedance curve.
Optionally, it is described that the earphone is determined according to the current AC impedance curve and pre-stored reference curve
Wearing state, including:
The low-frequency resonant frequency of the current AC impedance curve and the reference curve is determined respectively, it is described with reference to bent
Line is the AC impedance curve that measurement obtains when user does not wear the earphone;
By by the low-frequency resonant frequency of the low-frequency resonant frequency of the current AC impedance curve and the reference curve
Rate is compared, and determines the offset of the low-frequency resonant frequency of the current AC impedance curve;
The wearing state of the earphone is determined according to the offset.
Optionally, the wearing state that the earphone is determined according to the offset, including:
When the offset is zero, determine that the earphone is not worn;
When the offset is more than zero and is less than first threshold, determine that the earphone is worn, and wearing state is pine;
When the offset is greater than or equal to the first threshold, determine that the earphone is worn, and wearing state is
Tightly.
Optionally, the method further includes:
When the earphone is not worn, the output volume of the earphone is reduced;
When the wearing state of the earphone is pine, low-frequency compensation is carried out to the output audio of the earphone.
According to the second aspect of the embodiment of the present disclosure, a kind of detection device of earphone wearing state is provided, applied to terminal,
Reference impedance is provided in the terminal, the reference impedance and earphone load when the earphone interface of the earphone insertion terminal
Series connection, described device include:
Scan module, for when detecting that the earphone is inserted into the earphone interface, to the earphone load and described
The series circuit that reference impedance is formed loads preset swept-frequency signal;
Voltage acquisition module, for being obtained by being measured at the both ends of the reference impedance when loading the swept-frequency signal
The first voltage signal curve of the reference impedance;
AC impedance acquisition module, for according to the swept-frequency signal, the impedance value of the reference impedance and described
One voltage signal curve obtains the current AC impedance curve of the earphone load;
Detection module, for determining the ear according to the current AC impedance curve and pre-stored reference curve
The wearing state of machine.
Optionally, the signal that the swept-frequency signal changes for frequency in the range of predeterminated frequency, the voltage acquisition module
For:
By measured at the both ends of the reference impedance obtain loading the swept-frequency signal when reference impedance the
One voltage signal curve, the first voltage signal curve are that the frequency of the swept-frequency signal becomes in the range of the predeterminated frequency
During change, curve that the voltage value at the both ends of the reference impedance changes with the frequency of the swept-frequency signal.
Optionally, the AC impedance acquisition module is used for:
According to the swept-frequency signal, the impedance value of the reference impedance and the first voltage signal curve utilize resistance
Anti- calculation formula obtains impedance curve corresponding with the first voltage signal curve, bent as the current AC impedance
Line;
The impedance computation formula includes:
Rx=(VS-VL)/(VL/Rref)
Wherein, VLRepresent the voltage value of any point in the first voltage signal curve, VSRepresent the swept-frequency signal, Rref
Represent the impedance value of the reference impedance, RXRepresent the impedance value of any point in the current AC impedance curve.
Optionally, the detection module includes:
Frequency acquisition submodule, for determining the low frequency of the current AC impedance curve and the reference curve respectively
Resonant frequency, the reference curve are the AC impedance curves that measurement obtains when user does not wear the earphone;
Submodule is compared, for by the way that the low-frequency resonant frequency of the current AC impedance curve and the reference is bent
The low-frequency resonant frequency of line is compared, and determines the offset of the low-frequency resonant frequency of the current AC impedance curve;
Detection sub-module, for determining the wearing state of the earphone according to the offset.
Optionally, the detection sub-module is used for:
When the offset is zero, determine that the earphone is not worn;
When the offset is more than zero and is less than first threshold, determine that the earphone is worn, and wearing state is pine;
When the offset is greater than or equal to the first threshold, determine that the earphone is worn, and wearing state is
Tightly.
Optionally, described device further includes:
Audio Control Module, for when the earphone is not worn, reducing the output volume of the earphone;
Compensating module, for when the wearing state of the earphone is pine, low frequency to be carried out to the output audio of the earphone
Compensation.
Through the above technical solutions, the disclosure is provided with reference impedance in the terminal so that reference impedance is inserted into earphone
Series circuit can be formed with earphone load during earphone interface, when detecting that earphone is inserted into earphone interface, the two of series circuit
End loads preset swept-frequency signal, the first voltage signal curve at reference impedance both ends is measured later, further, according to frequency sweep
Signal, the impedance value of reference impedance and first voltage signal curve calculate the current AC impedance curve of earphone load, finally
Current AC impedance curve and pre-stored reference curve are compared, so that it is determined that the wearing state of earphone, can make
Terminal accurately detects the wearing state of earphone.
Other feature and advantage of the disclosure will be described in detail in subsequent specific embodiment part.
Description of the drawings
Attached drawing is for providing further understanding of the disclosure, and a part for constitution instruction, with following tool
Body embodiment is used to explain the disclosure, but do not form the limitation to the disclosure together.In the accompanying drawings:
Fig. 1 is the flow chart according to a kind of detection method of earphone wearing state shown in an exemplary embodiment;
Fig. 2 is the circuit diagram according to a kind of detection method of earphone wearing state shown in an exemplary embodiment;
Fig. 3 is the flow chart according to the detection method of another earphone wearing state shown in an exemplary embodiment;
Fig. 4 is according to the AC impedance curve graph shown in an exemplary embodiment;
Fig. 5 is the flow chart according to the detection method of another earphone wearing state shown in an exemplary embodiment;
Fig. 6 is the block diagram according to a kind of detection device of earphone wearing state shown in an exemplary embodiment;
Fig. 7 is the block diagram according to the detection device of another earphone wearing state shown in an exemplary embodiment;
Fig. 8 is the block diagram according to the detection device of another earphone wearing state shown in an exemplary embodiment.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, example is illustrated in the accompanying drawings.Following description is related to
During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
It is each to the disclosure first before a kind of detection method of earphone wearing state of disclosure offer and device are provided
Application scenarios involved by a embodiment are introduced.The application scenarios include a terminal, and the terminal can be carried
Smart mobile phone, tablet computer, smart television, smartwatch, PDA (the Personal Digital of multi-media player function
Assistant, personal digital assistant), the fixed terminals such as mobile terminals or desktop computer such as pocket computer, should
Terminal is provided with audio output, which can be provided with earphone interface, and the plug for passing through earphone is connect with earphone,
One reference impedance can be set in the output terminal, reference impedance and earphone load string when the earphone interface of earphone insertion terminal
Connection.
Fig. 1 is according to a kind of flow chart of the detection method of earphone wearing state shown in an exemplary embodiment, such as Fig. 1
Shown, this method is applied to above-mentioned terminal, and this method includes:
Step 101, when detecting that earphone is inserted into earphone interface, to the series circuit of earphone load and reference impedance composition
Load preset swept-frequency signal.
For example, reference impedance is provided in terminal, the impedance value of the reference impedance is known, which can be with
It is to design and develop the stage in terminal, is chosen according to a large amount of experimental data.Circuit diagram as shown in Figure 2, wherein, RXIt represents
Earphone load, VSRepresent swept-frequency signal, RrefRepresent reference impedance, VLRepresent reference impedance RrefThe voltage at both ends.Reference impedance
RrefIt can be with earphone load R when earphone is inserted into earphone interfaceXSeries circuit is formed, when terminal detects that earphone is already inserted into
During earphone interface, preset swept-frequency signal V is loaded at the both ends of the series circuitS.Wherein, swept-frequency signal VSCan be that frequency exists
The signal changed in the range of predeterminated frequency.
Step 102, it is electric by measuring first of reference impedance when acquisition is loading swept-frequency signal at the both ends of reference impedance
Press signal curve.
When the first voltage signal curve is that the frequency of swept-frequency signal changes in the range of predeterminated frequency, the two of reference impedance
The curve that the voltage value at end changes with the frequency of swept-frequency signal.It is exemplary, it can be by reference impedance RrefBoth ends setting survey
Point is measured, to reference impedance RrefThe voltage V of both ends loadingLIt measures, as swept-frequency signal VSWhen changing in the range of predeterminated frequency,
Reference impedance RrefThe voltage V of both ends loadingLAlso change therewith, so as to obtain reference impedance RrefFirst voltage signal curve.
Step 103, it according to swept-frequency signal, the impedance value of reference impedance and first voltage signal curve, obtains earphone and bears
Carry current AC impedance curve.
It is exemplary, due to reference impedance RrefWith earphone load RXSeries connection, therefore by reference to impedance and the electricity of earphone load
Flow identical, and reference impedance RrefWith earphone load RXThe voltage at both ends is allocated according to respective impedance value, since frequency sweep is believed
Number VSVoltage and reference impedance RrefImpedance value terminal it is known that and in a step 102 measure obtained reference impedance Rref
The first voltage signal curve at both ends, therefore the electric current by earphone load and the voltage value at earphone load both ends can be obtained,
So as to obtain the current AC impedance curve of earphone load.
Step 104, the wearing state of earphone is determined according to current AC impedance curve and pre-stored reference curve.
For example, after earphone is connect with terminal, the wearing state of earphone (can include:Do not wear, be loose and tight), meeting
The corresponding AC impedance curve of earphone load is influenced, therefore current AC impedance curve and pre-stored reference curve are done
Comparison, so that it is determined that the wearing state that earphone is current.Wherein, reference curve can be stored in advance in the storage medium of terminal,
It can also prestore on the server, be read from server by terminal, it should be noted that reference curve can be one
Item or a plurality of for example, designing and developing the stage in terminal, in a state that earphone is in and does not wear, measures earphone and works as
Preceding AC impedance curve further can also measure earphone as a reference curve when the wearing state of earphone is tight
Current AC impedance curve is as another reference curve.
In conclusion the disclosure is provided with reference impedance in the terminal so that reference impedance is inserted into earphone interface in earphone
When can form series circuit with earphone load, when detecting that earphone is inserted into earphone interface, at the both ends of series circuit, loading is pre-
If swept-frequency signal, the first voltage signal curve at reference impedance both ends is measured later, further, according to swept-frequency signal, ginseng
Impedance value and the first voltage signal curve of impedance are examined to calculate the current AC impedance curve of earphone load, it finally will be current
AC impedance curve and pre-stored reference curve compare, so that it is determined that the wearing state of earphone, can make terminal accurate
Ground detects the wearing state of earphone.
Optionally, step 103 includes:
According to swept-frequency signal, the impedance value of reference impedance and first voltage signal curve are obtained using impedance computation formula
Impedance curve corresponding with first voltage signal curve is taken, as current AC impedance curve.
Wherein, which can include:
RX=(VS-VL)/(VL/Rref)
Wherein, VLRepresent the voltage value of any point in first voltage signal curve, VSRepresent swept-frequency signal, RrefRepresent reference
The impedance value of impedance, RXRepresent the impedance value of any point in current AC impedance curve.It is exemplary, (VS-VL) represent that earphone is born
Carry the voltage value of both ends distribution, (VL/Rref) represent to pass through RrefCurrent value, due to RrefIt connects with earphone load, (VL/Rref)
As by the current value of earphone load, R further can be obtained according to impedance computation formulaX, due to according to first voltage
The voltage value each put in signal curve can calculate a RX, therefore according to obtained multiple RXThe exchange can be obtained
Impedance curve.
Fig. 3 is according to the flow chart of the detection method of another earphone wearing state shown in an exemplary embodiment, such as
Shown in Fig. 3, step 104 includes:
Step 1041, the low-frequency resonant frequency of current AC impedance curve and reference curve, reference curve are determined respectively
It is the AC impedance curve that measurement obtains when user does not wear earphone.
Step 1042, by by the low-frequency resonant of the low-frequency resonant frequency of current AC impedance curve and reference curve frequency
Rate is compared, and determines the offset of the low-frequency resonant frequency of current AC impedance curve.
Step 1043, the wearing state of earphone is determined according to offset.
For example, after earphone is connect with terminal, the wearing state of earphone (can include:Do not wear, be loose and tight), meeting
Influence the low-frequency resonant frequency f0 of earphone.Therefore, can first determine low-frequency resonant frequency f0 in the AC impedance curve and
The low-frequency resonant frequency f0 of reference curve, by comparing the low of current AC impedance curve f0 and pre-stored reference curve
Frequency resonant frequency f0, to determine the current wearing state of earphone.
Exemplary, by taking AC impedance curve graph shown in Fig. 4 as an example, wherein AC impedance curve R1 is that earphone is not worn
In the state of the AC impedance curve that measures, AC impedance curve R2 represents to measure in a state that the wearing state of earphone is loose
AC impedance curve, AC impedance curve R3 represent the wearing state of earphone be it is tight in the state of the AC impedance curve that measures,
According to curve R1-R3 shown in Fig. 4 it is found that the value of low-frequency resonant frequency f0 is also different during different wearing state.Therefore, in one kind
In realization method, the low-frequency resonant frequency f0 of current AC impedance curve and the low-frequency resonant frequency of reference curve can be obtained
The difference of f0, the offset as f0.When offset is zero, i.e., low-frequency resonant frequency and the reference of current AC impedance curve
The low-frequency resonant frequency of curve is consistent, represents that earphone is not worn.When earphone is worn, current AC impedance curve it is low
Frequency resonant frequency can drift about to high frequency direction, and the degree drifted about can reflect the elastic state that earphone is worn.Therefore, root
The wearing state of earphone can be further determined according to the size of offset according to above-mentioned principle, including:
The first situation when offset is zero, determines that earphone is not worn.
The second situation when offset is more than zero and is less than first threshold, determines that earphone is worn, and wearing state is
Pine.
The third situation when offset is greater than or equal to first threshold, determines that earphone is worn, and wearing state is
Tightly.
For example, when offset is more than zero and is less than first threshold, determine that earphone is worn, and wearing state is pine, when
When offset is greater than or equal to first threshold, determine that earphone is worn, and wearing state is tight, wherein first threshold can be root
It obtains, can also be adjusted according to practical use demand according to lot of experimental data measurement.
It, can also be by judging the low-frequency resonant frequency f0 institutes of AC impedance curve alternatively, in another implementation
Range, to determine the wearing state of earphone, as shown in figure 4, f01Represent the low-frequency resonant frequency of R1 curves, f02Represent R2
The low-frequency resonant frequency of curve, f03Represent the low-frequency resonant frequency of R3 curves.It can be obtained according to lot of experimental data measurement,
Earphone is not worn corresponding low-frequency resonant frequency f01For 5460Hz, corresponding low-frequency resonant frequency when earphone wearing state is pine
Rate f02Range be 4300Hz between 5460Hz, corresponding low-frequency resonant frequency f0 when earphone wearing state is tight3For
4300Hz.Therefore according to the range where the low-frequency resonant frequency f0 for currently measuring obtained AC impedance curve, you can determine
The wearing state of earphone.
Fig. 5 is according to the flow chart of the detection method of another earphone wearing state shown in an exemplary embodiment, such as
Shown in Fig. 5, after the wearing state of earphone is determined, this method further includes:
Step 105, when earphone is not worn, the output volume of earphone is reduced.
Step 106, when the wearing state of earphone is pine, low-frequency compensation is carried out to the output audio of earphone.
For example, when earphone is not worn, possible user has taken earphone, does not need to the audio letter in earphone radio
Breath at this time in order to reduce the power consumption of mobile phone, can reduce the output volume of earphone or can close sound output, correspondingly,
It can restore output normal quantity when detecting that earphone is worn.When earphone is worn, but wears not tight enough, i.e. ear
Going out in the case that acoustic aperture is not plugged for machine, can cause low frequency signal to be revealed, user can be caused to listen to less than or listen to accordingly
To the audio-frequency information in seldom portion in a low voice, therefore low-frequency compensation can be carried out to the output audio of earphone.Further, work as terminal
Detect earphone do not worn or wearing state for pine when, can on the display interface of terminal display reminding information, for carrying
Show the current wearing state of user's earphone.
In conclusion the disclosure is provided with reference impedance in the terminal so that reference impedance is inserted into earphone interface in earphone
When can form series circuit with earphone load, when detecting that earphone is inserted into earphone interface, at the both ends of series circuit, loading is pre-
If swept-frequency signal, the first voltage signal curve at reference impedance both ends is measured later, further, according to swept-frequency signal, ginseng
Impedance value and the first voltage signal curve of impedance are examined to calculate the current AC impedance curve of earphone load, it finally will be current
AC impedance curve and pre-stored reference curve compare, so that it is determined that the wearing state of earphone, can make terminal accurate
Ground detects the wearing state of earphone.
It should be noted that the present embodiment is not limited the sequence of step 105 and step 106.In addition, step 105
An execution can also be selected with step 106, i.e., according to the wearing state of identified earphone, performs corresponding operation.
Fig. 6 is according to a kind of block diagram of the detection device of earphone wearing state shown in an exemplary embodiment, such as Fig. 6 institutes
Show, which is applied to terminal, and reference impedance is provided in terminal, and resistance is referred to when earphone is inserted into the earphone interface of terminal
Anti- to connect with earphone load, which includes:
Scan module 201, for when detecting that earphone is inserted into earphone interface, being formed to earphone load and reference impedance
Series circuit loads preset swept-frequency signal.
Voltage acquisition module 202, for by being referred to when the both ends of reference impedance measure and obtain and loading swept-frequency signal
The first voltage signal curve of impedance.
AC impedance acquisition module 203, for according to swept-frequency signal, the impedance value of reference impedance and first voltage signal
Curve obtains the current AC impedance curve of earphone load.
Detection module 204, for determining earphone according to current AC impedance curve and pre-stored reference curve
Wearing state.
Optionally, swept-frequency signal is the signal that frequency changes in the range of predeterminated frequency, and voltage acquisition module 202 is used for:
By the first voltage signature tune that reference impedance when acquisition is loading swept-frequency signal is measured at the both ends of reference impedance
Line, when first voltage signal curve is that the frequency of swept-frequency signal changes in the range of predeterminated frequency, the electricity at the both ends of reference impedance
The curve that pressure value changes with the frequency of swept-frequency signal.
Optionally, AC impedance acquisition module 203 is used for:
According to swept-frequency signal, the impedance value of reference impedance and first voltage signal curve are obtained using impedance computation formula
Impedance curve corresponding with first voltage signal curve is taken, as current AC impedance curve.
Wherein, which can include:
RX=(VS-VL)/(VL/Rref)
Wherein, VLRepresent the voltage value of any point in first voltage signal curve, VSRepresent swept-frequency signal, RrefRepresent reference
The impedance value of impedance, RXRepresent the impedance value of any point in current AC impedance curve.
Fig. 7 is according to the block diagram of the detection device of another earphone wearing state shown in an exemplary embodiment, such as Fig. 7
Shown, detection module 204 includes:
Frequency acquisition submodule 2041, for determining the low-frequency resonant of current AC impedance curve and reference curve respectively
Frequency, reference curve are the AC impedance curves that measurement obtains when user does not wear earphone.
Submodule 2042 is compared, for by by the low-frequency resonant frequency of current AC impedance curve and reference curve
Low-frequency resonant frequency is compared, and determines the offset of the low-frequency resonant frequency of current AC impedance curve.
Detection sub-module 2044, for determining the wearing state of earphone according to offset.
Optionally, detection sub-module 2044 is used for:
When offset is zero, determine that earphone is not worn;
When offset is more than zero and is less than first threshold, determine that earphone is worn, and wearing state is pine;
When offset is greater than or equal to first threshold, determine that earphone is worn, and wearing state is tight.
Fig. 8 is according to the block diagram of the detection device of another earphone wearing state shown in an exemplary embodiment, such as Fig. 8
Shown, which further includes:
Audio Control Module 205, for when earphone is not worn, reducing the output volume of earphone.
Compensating module 206, for when the wearing state of earphone is pine, low-frequency compensation to be carried out to the output audio of earphone.
About the device in above-described embodiment, wherein modules perform the concrete mode of operation in related this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
In conclusion the disclosure is provided with reference impedance in the terminal so that reference impedance is inserted into earphone interface in earphone
When can form series circuit with earphone load, when detecting that earphone is inserted into earphone interface, at the both ends of series circuit, loading is pre-
If swept-frequency signal, the first voltage signal curve at reference impedance both ends is measured later, further, according to swept-frequency signal, ginseng
Impedance value and the first voltage signal curve of impedance are examined to calculate the current AC impedance curve of earphone load, it finally will be current
AC impedance curve and pre-stored reference curve compare, so that it is determined that the wearing state of earphone, can make terminal accurate
Ground detects the wearing state of earphone.
The preferred embodiment of the disclosure is described in detail above in association with attached drawing, still, the disclosure is not limited to above-mentioned reality
The detail in mode is applied, in the range of the technology design of the disclosure, those skilled in the art are considering specification and practice
After the disclosure, it is readily apparent that other embodiments of the disclosure, belongs to the protection domain of the disclosure.
It is further to note that specific technical features described in the above specific embodiments, in not lance
In the case of shield, it can be combined by any suitable means.Simultaneously between a variety of different embodiments of the disclosure
Arbitrary combination can also be carried out, as long as its thought without prejudice to the disclosure, should equally be considered as disclosure disclosure of that.
The disclosure is not limited to the precision architecture being described above out, and the scope of the present disclosure is only limited by appended claim
System.
Claims (12)
1. a kind of detection method of earphone wearing state, which is characterized in that applied to terminal, be provided in the terminal with reference to resistance
Anti-, when the earphone interface of the earphone insertion terminal, the reference impedance is connected with earphone load, the method includes:
When detecting that the earphone is inserted into the earphone interface, the series connection to the earphone load and reference impedance composition
Circuit loads preset swept-frequency signal;
By the first electricity that reference impedance when acquisition is loading the swept-frequency signal is measured at the both ends of the reference impedance
Press signal curve;
According to the swept-frequency signal, the impedance value of the reference impedance and the first voltage signal curve obtain the ear
Machine loads current AC impedance curve;
The wearing state of the earphone is determined according to the current AC impedance curve and pre-stored reference curve.
2. according to the method described in claim 1, it is characterized in that, the swept-frequency signal becomes for frequency in the range of predeterminated frequency
The signal of change, it is described by measuring reference impedance when acquisition is loading the swept-frequency signal at the both ends of the reference impedance
First voltage signal curve, including:
By the first electricity that reference impedance when acquisition is loading the swept-frequency signal is measured at the both ends of the reference impedance
Signal curve is pressed, the first voltage signal curve is that the frequency of the swept-frequency signal changes in the range of the predeterminated frequency
When, curve that the voltage value at the both ends of the reference impedance changes with the frequency of the swept-frequency signal.
3. according to the method described in claim 1, it is characterized in that, described according to the swept-frequency signal, the reference impedance
Impedance value and the first voltage signal curve obtain the current AC impedance curve of the earphone load, including:
According to the swept-frequency signal, the impedance value of the reference impedance and the first voltage signal curve utilize impedometer
It calculates formula and obtains impedance curve corresponding with the first voltage signal curve, as the current AC impedance curve;
The impedance computation formula includes:
RX=(VS-VL)/(VL/Rref)
Wherein, VLRepresent the voltage value of any point in the first voltage signal curve, VSRepresent the swept-frequency signal, RrefIt represents
The impedance value of the reference impedance, RXRepresent the impedance value of any point in the current AC impedance curve.
4. according to the method any in claim 1-3, which is characterized in that described bent according to the current AC impedance
Line and pre-stored reference curve determine the wearing state of the earphone, including:
The low-frequency resonant frequency of the current AC impedance curve and the reference curve is determined respectively, and the reference curve is
The AC impedance curve that measurement obtains when user does not wear the earphone;
By by the low-frequency resonant frequency of the low-frequency resonant frequency of the current AC impedance curve and the reference curve into
Row comparison determines the offset of the low-frequency resonant frequency of the current AC impedance curve;
The wearing state of the earphone is determined according to the offset.
5. the according to the method described in claim 4, it is characterized in that, wearing that the earphone is determined according to the offset
State, including:
When the offset is zero, determine that the earphone is not worn;
When the offset is more than zero and is less than first threshold, determine that the earphone is worn, and wearing state is pine;
When the offset is greater than or equal to the first threshold, determine that the earphone is worn, and wearing state is tight.
6. according to the method described in claim 5, it is characterized in that, the method further includes:
When the earphone is not worn, the output volume of the earphone is reduced;
When the wearing state of the earphone is pine, low-frequency compensation is carried out to the output audio of the earphone.
7. a kind of detection device of earphone wearing state, which is characterized in that applied to terminal, be provided in the terminal with reference to resistance
Anti-, when the earphone interface of the earphone insertion terminal, the reference impedance is connected with earphone load, and described device includes:
Scan module, for when detecting that the earphone is inserted into the earphone interface, to the earphone load and the reference
The series circuit that impedance is formed loads preset swept-frequency signal;
Voltage acquisition module, for by the both ends of the reference impedance measure obtain loading the swept-frequency signal when described in
The first voltage signal curve of reference impedance;
AC impedance acquisition module, for according to the swept-frequency signal, the impedance value of the reference impedance and first electricity
Signal curve is pressed, obtains the current AC impedance curve of the earphone load;
Detection module, for determining the earphone according to the current AC impedance curve and pre-stored reference curve
Wearing state.
8. device according to claim 7, which is characterized in that the swept-frequency signal becomes for frequency in the range of predeterminated frequency
The signal of change, the voltage acquisition module are used for:
By the first electricity that reference impedance when acquisition is loading the swept-frequency signal is measured at the both ends of the reference impedance
Signal curve is pressed, the first voltage signal curve is that the frequency of the swept-frequency signal changes in the range of the predeterminated frequency
When, curve that the voltage value at the both ends of the reference impedance changes with the frequency of the swept-frequency signal.
9. device according to claim 7, which is characterized in that the AC impedance acquisition module is used for:
According to the swept-frequency signal, the impedance value of the reference impedance and the first voltage signal curve utilize impedometer
It calculates formula and obtains impedance curve corresponding with the first voltage signal curve, as the current AC impedance curve;
The impedance computation formula includes:
RX=(VS-VL)/(VL/Rref)
Wherein, VLRepresent the voltage value of any point in the first voltage signal curve, VSRepresent the swept-frequency signal, RrefIt represents
The impedance value of the reference impedance, RXRepresent the impedance value of any point in the current AC impedance curve.
10. according to the device any in claim 7-9, which is characterized in that the detection module includes:
Frequency acquisition submodule, for determining the low-frequency resonant of the current AC impedance curve and the reference curve respectively
Frequency, the reference curve are the AC impedance curves that measurement obtains when user does not wear the earphone;
Submodule is compared, for by by the low-frequency resonant frequency of the current AC impedance curve and the reference curve
Low-frequency resonant frequency is compared, and determines the offset of the low-frequency resonant frequency of the current AC impedance curve;
Detection sub-module, for determining the wearing state of the earphone according to the offset.
11. device according to claim 10, which is characterized in that the detection sub-module is used for:
When the offset is zero, determine that the earphone is not worn;
When the offset is more than zero and is less than first threshold, determine that the earphone is worn, and wearing state is pine;
When the offset is greater than or equal to the first threshold, determine that the earphone is worn, and wearing state is tight.
12. according to the devices described in claim 11, which is characterized in that described device further includes:
Audio Control Module, for when the earphone is not worn, reducing the output volume of the earphone;
Compensating module, for when the wearing state of the earphone is pine, low-frequency compensation to be carried out to the output audio of the earphone.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711244427.6A CN108134969B (en) | 2017-11-30 | 2017-11-30 | The detection method and device of earphone wearing state |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711244427.6A CN108134969B (en) | 2017-11-30 | 2017-11-30 | The detection method and device of earphone wearing state |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108134969A true CN108134969A (en) | 2018-06-08 |
CN108134969B CN108134969B (en) | 2019-10-22 |
Family
ID=62389909
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711244427.6A Active CN108134969B (en) | 2017-11-30 | 2017-11-30 | The detection method and device of earphone wearing state |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108134969B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108882092A (en) * | 2018-07-03 | 2018-11-23 | 歌尔智能科技有限公司 | A kind of earphone noise-reduction method and feedback noise reduction system |
CN109246513A (en) * | 2018-09-30 | 2019-01-18 | 歌尔科技有限公司 | A kind of active noise reduction earphone and its noise-reduction method, device |
CN109240642A (en) * | 2018-09-26 | 2019-01-18 | 深圳市中科明望通信软件有限公司 | A kind of method for regulation of sound volume of terminal device, device and terminal device |
CN109327757A (en) * | 2018-09-30 | 2019-02-12 | 歌尔科技有限公司 | A kind of dual microphone noise cancelling headphone and its sound processing method, device |
CN109324779A (en) * | 2018-09-05 | 2019-02-12 | 联想(北京)有限公司 | A kind of volume adjusting method, electronic equipment and computer readable storage medium |
CN109413555A (en) * | 2018-09-30 | 2019-03-01 | Oppo广东移动通信有限公司 | Audio-frequency inputting method, device, earphone and electronic equipment |
CN110784797A (en) * | 2019-10-31 | 2020-02-11 | 歌尔科技有限公司 | Wireless earphone control method and device, wireless earphone and storage medium |
CN110891223A (en) * | 2019-12-30 | 2020-03-17 | 歌尔股份有限公司 | TWS earphone volume automatic adjusting method, equipment, storage medium and device |
CN112804607A (en) * | 2020-12-24 | 2021-05-14 | 歌尔光学科技有限公司 | Tone quality adjusting method and device and tone quality adjustable earphone |
CN114081231A (en) * | 2021-11-04 | 2022-02-25 | 北京柏驿科技有限公司 | Helmet wearing detection method and device, electronic equipment and helmet |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105491483A (en) * | 2015-11-30 | 2016-04-13 | 歌尔声学股份有限公司 | Wearing state detection method and system for earphone and earphone |
US20160212522A1 (en) * | 2015-01-21 | 2016-07-21 | Lg Electronics Inc. | Ear set device |
CN105916074A (en) * | 2016-06-21 | 2016-08-31 | 维沃移动通信有限公司 | Play control method for multimedia and terminal |
CN107046670A (en) * | 2017-05-15 | 2017-08-15 | 刘圣银 | A kind of headset detection system and control method |
CN107113489A (en) * | 2014-11-24 | 2017-08-29 | 美商楼氏电子有限公司 | The apparatus and method for removing and inserting for test earphone |
-
2017
- 2017-11-30 CN CN201711244427.6A patent/CN108134969B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107113489A (en) * | 2014-11-24 | 2017-08-29 | 美商楼氏电子有限公司 | The apparatus and method for removing and inserting for test earphone |
US20160212522A1 (en) * | 2015-01-21 | 2016-07-21 | Lg Electronics Inc. | Ear set device |
CN105491483A (en) * | 2015-11-30 | 2016-04-13 | 歌尔声学股份有限公司 | Wearing state detection method and system for earphone and earphone |
CN105916074A (en) * | 2016-06-21 | 2016-08-31 | 维沃移动通信有限公司 | Play control method for multimedia and terminal |
CN107046670A (en) * | 2017-05-15 | 2017-08-15 | 刘圣银 | A kind of headset detection system and control method |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108882092A (en) * | 2018-07-03 | 2018-11-23 | 歌尔智能科技有限公司 | A kind of earphone noise-reduction method and feedback noise reduction system |
CN109324779A (en) * | 2018-09-05 | 2019-02-12 | 联想(北京)有限公司 | A kind of volume adjusting method, electronic equipment and computer readable storage medium |
CN109240642A (en) * | 2018-09-26 | 2019-01-18 | 深圳市中科明望通信软件有限公司 | A kind of method for regulation of sound volume of terminal device, device and terminal device |
CN109240642B (en) * | 2018-09-26 | 2021-09-03 | 深圳市中科明望通信软件有限公司 | Volume adjusting method and device of terminal equipment and terminal equipment |
CN109246513A (en) * | 2018-09-30 | 2019-01-18 | 歌尔科技有限公司 | A kind of active noise reduction earphone and its noise-reduction method, device |
CN109327757A (en) * | 2018-09-30 | 2019-02-12 | 歌尔科技有限公司 | A kind of dual microphone noise cancelling headphone and its sound processing method, device |
CN109413555A (en) * | 2018-09-30 | 2019-03-01 | Oppo广东移动通信有限公司 | Audio-frequency inputting method, device, earphone and electronic equipment |
CN110784797A (en) * | 2019-10-31 | 2020-02-11 | 歌尔科技有限公司 | Wireless earphone control method and device, wireless earphone and storage medium |
CN110891223A (en) * | 2019-12-30 | 2020-03-17 | 歌尔股份有限公司 | TWS earphone volume automatic adjusting method, equipment, storage medium and device |
CN112804607A (en) * | 2020-12-24 | 2021-05-14 | 歌尔光学科技有限公司 | Tone quality adjusting method and device and tone quality adjustable earphone |
CN114081231A (en) * | 2021-11-04 | 2022-02-25 | 北京柏驿科技有限公司 | Helmet wearing detection method and device, electronic equipment and helmet |
Also Published As
Publication number | Publication date |
---|---|
CN108134969B (en) | 2019-10-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108134969B (en) | The detection method and device of earphone wearing state | |
US9084035B2 (en) | System and method of detecting a plug-in type based on impedance comparison | |
US7450726B2 (en) | Headset detector in a device generating audio signals | |
US8193834B2 (en) | Multiple detection circuit for accessory jacks | |
US20130158919A1 (en) | Plug type detection | |
CN106416058A (en) | Systems and methods for detection of load impedance of a transducer device coupled to an audio device | |
KR102655071B1 (en) | Load detection system and corresponding load detection method | |
US20140039830A1 (en) | Test device to measure coating thickness and test system | |
CN103918282A (en) | Method and apparatus for processing audio signal | |
US8958573B2 (en) | Apparatus, systems and methods for controlling an electronic device using an accessory | |
EP2571288B1 (en) | Mobile device for multi-channel sound collection and output using common connector, and driving method thereof | |
CN108476355A (en) | Protective device | |
US9143863B2 (en) | Apparatus, systems and methods for inaudibly identifying an audio accessory using spectral shaping | |
CN107580155A (en) | Networking telephone quality determination method, device, computer equipment and storage medium | |
CN110599989A (en) | Audio processing method, device and storage medium | |
CN107948790A (en) | Earphone recognition methods and device | |
CN109842836A (en) | A kind of method, circuit and equipment eliminated audio signal and play crosstalk between access | |
EP2763433B1 (en) | Apparatus, systems and methods for inaudibly identifying an audio accessory using spectral shaping | |
CN113543006B (en) | Earphone testing method and device, electronic equipment and medium | |
CN114222234A (en) | Microphone array consistency detection method, electronic device and storage medium | |
US9462368B2 (en) | Data input on audio device analog output port | |
JP2005127917A (en) | Method and apparatus for detecting voltage and electronic apparatus | |
CN114047384A (en) | Low-impedance device testing module, system and method based on crosstalk principle | |
CN106201420A (en) | Audio-frequency processing method and device | |
CN111031464A (en) | Microphone testing method, system, electronic device and 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: 100085 unit C, building C, lin66, Zhufang Road, Qinghe, Haidian District, Beijing Patentee after: Beijing Xiaomi pinecone Electronic Co., Ltd Address before: 100085 Beijing city Haidian District Qinghe Shun Yip things Park Building 3 unit A Patentee before: BEIJING PINECONE ELECTRONICS Co.,Ltd. |
|
CP03 | Change of name, title or address |