CN108134969B - The detection method and device of earphone wearing state - Google Patents
The detection method and device of earphone wearing state Download PDFInfo
- Publication number
- CN108134969B CN108134969B CN201711244427.6A CN201711244427A CN108134969B CN 108134969 B CN108134969 B CN 108134969B CN 201711244427 A CN201711244427 A CN 201711244427A CN 108134969 B CN108134969 B CN 108134969B
- 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.)
- Active
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
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)
Abstract
This disclosure relates to a kind of detection method and device of earphone wearing state, it is related to field of terminal technology, this method is applied to terminal, reference impedance is provided in terminal, when the earphone interface of earphone insertion terminal, reference impedance is connected with earphone load, it include: when detecting that earphone is inserted into earphone interface, the series circuit constituted to earphone load and reference impedance loads preset swept-frequency signal, by the first voltage signal curve for obtaining the reference impedance when loading swept-frequency signal in the measurement of the both ends of reference impedance, according to swept-frequency signal, the impedance value and first voltage signal curve of reference impedance, obtain the current AC impedance curve of earphone load, 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 technique
With the continuous development of terminal technology, people more easily can listen to and watch using various intelligent terminals
Audiovisual materials, therefore, terminal should restore audio-frequency information as far as possible, guarantee 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, will lead to low frequency signal and lets out
Dew, will lead to accordingly user listen to less than or the seldom portion in a low voice of uppick audio-frequency information.In addition, not wearing ear 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.
Summary of the invention
To overcome the problems in correlation technique, purpose of this disclosure is to provide a kind of detection sides of earphone wearing state
Method and device.
To achieve the goals above, the disclosure provides a kind of detection method of earphone wearing state, is applied to terminal, described
Reference impedance is provided in terminal, the reference impedance and earphone load string when earphone is inserted into the earphone interface of the terminal
Connection, which comprises
When detecting that the earphone is inserted into the earphone interface, the earphone load and the reference impedance are constituted
Series circuit loads preset swept-frequency signal;
The of the reference impedance when loading the swept-frequency signal is obtained by the measurement at the both ends of the reference impedance
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 within the preset frequency range, described by the ginseng
The both ends measurement for examining impedance obtains the first voltage signal curve of the reference impedance when loading the swept-frequency signal, comprising:
The of the reference impedance when loading the swept-frequency signal is obtained by the measurement at the both ends of the reference impedance
One voltage signal curve, the first voltage signal curve are that the frequency of the swept-frequency signal becomes within the preset frequency range
When change, curve that the voltage value at the both ends of the reference impedance changes with the frequency of the swept-frequency signal.
Optionally, 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, comprising:
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, VLIndicate the voltage value of any point in the first voltage signal curve, VSIndicate the swept-frequency signal, Rref
Indicate the impedance value of the reference impedance, RXIndicate the impedance value of any point in the current AC impedance curve.
Optionally, described that the earphone is determined according to the current AC impedance curve and pre-stored reference curve
Wearing state, comprising:
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 compares, 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, comprising:
When the offset is zero, determine that the earphone is not worn;
When the offset is greater 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 also 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 an embodiment of the present disclosure, a kind of detection device of earphone wearing state is provided, terminal is applied to,
It is provided with reference impedance in the terminal, the reference impedance and earphone load when earphone is inserted into the earphone interface of the 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 constituted loads preset swept-frequency signal;
Voltage obtains module, for being obtained by the measurement 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 obtains module, for according to the swept-frequency signal, the impedance value of the reference impedance and described the
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 swept-frequency signal is the signal that frequency changes within the preset frequency range, and the voltage obtains module
For:
The of the reference impedance when loading the swept-frequency signal is obtained by the measurement at the both ends of the reference impedance
One voltage signal curve, the first voltage signal curve are that the frequency of the swept-frequency signal becomes within the preset frequency range
When 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 obtains module and 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, VLIndicate the voltage value of any point in the first voltage signal curve, VSIndicate the swept-frequency signal, Rref
Indicate the impedance value of the reference impedance, RXIndicate 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
Resonance 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 compares, 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 greater 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 include:
Audio Control Module, for reducing the output volume of the earphone when the earphone is not worn;
Compensating module, for carrying out low frequency to the output audio of the earphone when the wearing state of the earphone is pine
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 when 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 the following detailed description will be given in the detailed implementation section.
Detailed description of the invention
Attached drawing is and to constitute part of specification for providing further understanding of the disclosure, with following tool
Body embodiment is used to explain the disclosure together, but does not constitute the limitation to the disclosure.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the detection method of earphone wearing state shown according to an exemplary embodiment;
Fig. 2 is a kind of circuit diagram of the detection method of earphone wearing state shown according to an exemplary embodiment;
Fig. 3 is the flow chart of the detection method of another earphone wearing state shown according to an exemplary embodiment;
Fig. 4 is AC impedance curve graph shown according to an exemplary embodiment;
Fig. 5 is the flow chart of the detection method of another earphone wearing state shown according to an exemplary embodiment;
Fig. 6 is a kind of block diagram of the detection device of earphone wearing state shown according to an exemplary embodiment;
Fig. 7 is the block diagram of the detection device of another earphone wearing state shown according to an exemplary embodiment;
Fig. 8 is the block diagram of the detection device of another earphone wearing state shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this 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, which for example can be, to be had
Smart phone, tablet computer, smart television, smartwatch, PDA (the Personal Digital of multi-media player function
Assistant, personal digital assistant), the mobile terminals such as portable computer, be also possible to the fixed terminals such as desktop computer, should
Terminal is provided with audio output, which can be set earphone interface, for being connect by the plug of earphone with earphone,
A reference impedance can be set in the output end, reference impedance and earphone load string when the earphone interface of earphone insertion terminal
Connection.
Fig. 1 is a kind of flow chart of the detection method of earphone wearing state shown according to an exemplary embodiment, such as Fig. 1
Shown, this method is applied to above-mentioned terminal, this method comprises:
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, be provided with reference impedance in terminal, the impedance value of the reference impedance be it 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 indicates
Earphone load, VSIndicate swept-frequency signal, RrefIndicate reference impedance, VLIndicate 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
When earphone interface, preset swept-frequency signal V is loaded at the both ends of the series circuitS.Wherein, swept-frequency signal VSIt can be frequency to exist
The signal changed within the scope of predeterminated frequency.
Step 102, pass through the first electricity in the both ends of reference impedance measurement acquisition reference impedance when loading swept-frequency signal
Press signal curve.
When the first voltage signal curve is that the frequency of swept-frequency signal changes within the preset frequency range, 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 be arranged survey
Point is measured, to reference impedance RrefThe voltage V of both ends loadLIt measures, as swept-frequency signal VSWhen changing within the preset frequency range,
Reference impedance RrefThe voltage V of both ends loadLAlso change therewith, to obtain reference impedance RrefFirst voltage signal curve.
Step 103, according to swept-frequency signal, it is negative to obtain earphone for the impedance value and first voltage signal curve of reference impedance
Carry current AC impedance curve.
It is exemplary, due to reference impedance RrefWith earphone load RXSeries connection, therefore by reference to the electricity of impedance and 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 measurement 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,
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 (may include: not wear, is loose and tight) of earphone, 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 be stored in advance on the server, be read from server by terminal, it should be noted that reference curve can be one
Item, is also possible to a plurality of, for example, design and develop the stage in terminal, in the state that earphone is in and does not wear, measurement earphone is worked as
Preceding AC impedance curve further can also measure earphone when the wearing state of earphone is tight as a reference curve
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, load is pre-
If swept-frequency signal, later measure reference impedance both ends first voltage signal curve, 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 and first voltage signal curve of reference impedance are obtained using impedance computation formula
Impedance curve corresponding with first voltage signal curve is taken, as current AC impedance curve.
Wherein, which may include:
RX=(VS-VL)/(VL/Rref)
Wherein, VLIndicate the voltage value of any point in first voltage signal curve, VSIndicate swept-frequency signal, RrefIndicate reference
The impedance value of impedance, RXIndicate the impedance value of any point in current AC impedance curve.It is exemplary, (VS-VL) indicate that earphone is negative
Carry the voltage value of both ends distribution, (VL/Rref) indicate 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 of each point in signal curve can calculate a RX, therefore according to obtained multiple RXThe exchange can be obtained
Impedance curve.
Fig. 3 is the flow chart of the detection method of another earphone wearing state shown according to 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 compares, 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 (may include: not wear, is loose and tight) of earphone, meeting
Influence the low-frequency resonant frequency f0 of earphone.Therefore, the low-frequency resonant frequency f0 in the AC impedance curve can be first determined, 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 resonance 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 indicates to measure in the state that the wearing state of earphone is loose
AC impedance curve, AC impedance curve R3 indicate the wearing state of earphone be it is tight in the state of the AC impedance curve that measures,
Curve R1-R3 according to Fig.4, is it is found that the value of low-frequency resonant frequency f0 is also different when different wearing states.Therefore, in one kind
In implementation, the low-frequency resonant frequency f0 of available current AC impedance curve and the low-frequency resonant frequency of reference curve
The difference of f0, the offset as f0.When offset is zero, i.e., the low-frequency resonant frequency and reference of current AC impedance curve
The low-frequency resonant frequency of curve is consistent, indicates that earphone is not worn.When earphone is worn, current AC impedance curve it is low
Frequency resonance frequency can drift about to high frequency direction, and the degree drifted about is able to reflect out 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, comprising:
The first situation determines that earphone is not worn when offset is zero.
Second situation determines that earphone is worn, and wearing state is when offset is greater than zero and is less than first threshold
Pine.
The third situation determines that earphone is worn, and wearing state is when offset is greater than or equal to first threshold
Tightly.
For example, determine that earphone is worn when offset is greater than zero and is less than first threshold, and wearing state is pine, when
Offset be greater than or equal to first threshold when, determine that earphone is worn, and wearing state be it is tight, wherein first threshold can be root
It obtains, can also be adjusted according to actual use demand according to lot of experimental data measurement.
It, can also be by judging the low-frequency resonant frequency f0 institute of AC impedance curve alternatively, in another implementation
Range, to determine the wearing state of earphone, as shown in figure 4, f01Indicate the low-frequency resonant frequency of R1 curve, f02Indicate R2
The low-frequency resonant frequency of curve, f03Indicate the low-frequency resonant frequency of R3 curve.It can be obtained according to lot of experimental data measurement,
Earphone is not worn corresponding low-frequency resonant frequency f01For 5460Hz, earphone wearing state corresponding low-frequency resonant frequency when being pine
Rate f02Range be 4300Hz between 5460Hz, earphone wearing state corresponding low-frequency resonant frequency f0 when being tight3For
4300Hz.Therefore it according to the range currently measured where the low-frequency resonant frequency f0 of obtained AC impedance curve, that is, can determine
The wearing state of earphone.
Fig. 5 is the flow chart of the detection method of another earphone wearing state shown according to an exemplary embodiment, such as
Shown in Fig. 5, after determining the wearing state of earphone, this method further include:
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 the audio letter in earphone radio
Breath, at this time in order to reduce the power consumption of mobile phone, the output volume of earphone can be reduced or sound output can be closed, 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, will lead to low frequency signal leakage, will lead to user accordingly and listen to less than or listen to
To the audio-frequency information in seldom portion in a low voice, thus can output audio to earphone carry out low-frequency compensation.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 mentioning
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, load is pre-
If swept-frequency signal, later measure reference impedance both ends first voltage signal curve, 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, executes corresponding operation.
Fig. 6 is a kind of block diagram of the detection device of earphone wearing state shown according to an exemplary embodiment, such as Fig. 6 institute
Show, which is applied to terminal, reference impedance is provided in terminal, when the earphone interface of earphone insertion terminal with reference to resistance
Anti- to connect with earphone load, which includes:
Scan module 201, for being constituted to earphone load and reference impedance when detecting that earphone is inserted into earphone interface
Series circuit loads preset swept-frequency signal.
Voltage obtains module 202, for being referred to by obtaining in the measurement of the both ends of reference impedance when loading swept-frequency signal
The first voltage signal curve of impedance.
AC impedance obtains module 203, for according to swept-frequency signal, the impedance value and first voltage signal of reference impedance
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 within the preset frequency range, and voltage obtains module 202 and is used for:
By the first voltage signature tune for obtaining the reference impedance when loading swept-frequency signal in the measurement of the both ends of reference impedance
Line, when first voltage signal curve is that the frequency of swept-frequency signal changes within the preset frequency range, 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 obtains module 203 and is used for:
According to swept-frequency signal, the impedance value and first voltage signal curve of reference impedance are obtained using impedance computation formula
Impedance curve corresponding with first voltage signal curve is taken, as current AC impedance curve.
Wherein, which may include:
RX=(VS-VL)/(VL/Rref)
Wherein, VLIndicate the voltage value of any point in first voltage signal curve, VSIndicate swept-frequency signal, RrefIndicate reference
The impedance value of impedance, RXIndicate the impedance value of any point in current AC impedance curve.
Fig. 7 is the block diagram of the detection device of another earphone wearing state shown according to 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 compares, 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 greater 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 the block diagram of the detection device of another earphone wearing state shown according to an exemplary embodiment, such as Fig. 8
It is shown, the device 200 further include:
Audio Control Module 205, for reducing the output volume of earphone when earphone is not worn.
Compensating module 206, for carrying out low-frequency compensation to the output audio of earphone when the wearing state of earphone is pine.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
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, load is pre-
If swept-frequency signal, later measure reference impedance both ends first voltage signal curve, 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 in conjunction with attached drawing above, 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 scope of the disclosure.
It is further to note that specific technical features described in the above specific embodiments, in not lance
In the case where shield, it can be combined in any appropriate way.Simultaneously between a variety of different embodiments of the disclosure
Any combination can also be carried out, as long as it, without prejudice to the thought of the disclosure, equally should 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 the attached claims
System.
Claims (10)
1. a kind of detection method of earphone wearing state, which is characterized in that be applied to terminal, be provided in the terminal with reference to resistance
Anti-, when earphone is inserted into the earphone interface of the terminal, the reference impedance is connected with earphone load, which comprises
Series connection when detecting that the earphone is inserted into the earphone interface, to the earphone load and reference impedance composition
Circuit loads preset swept-frequency signal;
By the first electricity for obtaining the reference impedance when loading the swept-frequency signal in the measurement of 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;
The swept-frequency signal is the signal that frequency changes within the preset frequency range, described by the both ends of the reference impedance
Measurement obtains the first voltage signal curve of the reference impedance when loading the swept-frequency signal, comprising:
By the first electricity for obtaining the reference impedance when loading the swept-frequency signal in the measurement of 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 within the preset frequency range
When, curve that the voltage value at the both ends of the reference impedance changes with the frequency of the swept-frequency signal.
2. the method according to claim 1, wherein 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, comprising:
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, VLIndicate the voltage value of any point in the first voltage signal curve, VSIndicate the swept-frequency signal, RrefIt indicates
The impedance value of the reference impedance, RXIndicate the impedance value of any point in the current AC impedance curve.
3. method according to claim 1 or 2, which is characterized in that it is described according to the current AC impedance curve and
Pre-stored reference curve determines the wearing state of the earphone, comprising:
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.
4. according to the method described in claim 3, it is characterized in that, the wearing for determining the earphone according to the offset
State, comprising:
When the offset is zero, determine that the earphone is not worn;
When the offset is greater 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.
5. according to the method described in claim 4, it is characterized in that, the method also 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.
6. a kind of detection device of earphone wearing state, which is characterized in that be applied to terminal, be provided in the terminal with reference to resistance
Anti-, when earphone is inserted into the earphone interface of the 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 constituted loads preset swept-frequency signal;
Voltage obtain module, for by the both ends of the reference impedance measurement obtain when loading the swept-frequency signal described in
The first voltage signal curve of reference impedance;
AC impedance obtains module, for according to the swept-frequency signal, the impedance value of the reference impedance and first electricity
Signal curve is pressed, the current AC impedance curve of the earphone load is obtained;
Detection module, for determining the earphone according to the current AC impedance curve and pre-stored reference curve
Wearing state;
The swept-frequency signal is the signal that frequency changes within the preset frequency range, and the voltage obtains module and is used for:
By the first electricity for obtaining the reference impedance when loading the swept-frequency signal in the measurement of 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 within the preset frequency range
When, curve that the voltage value at the both ends of the reference impedance changes with the frequency of the swept-frequency signal.
7. device according to claim 6, which is characterized in that the AC impedance obtains module and 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, VLIndicate the voltage value of any point in the first voltage signal curve, VSIndicate the swept-frequency signal, RrefIt indicates
The impedance value of the reference impedance, RXIndicate the impedance value of any point in the current AC impedance curve.
8. device according to claim 6 or 7, 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 compares, 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.
9. device according to claim 8, 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 greater 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.
10. device according to claim 9, which is characterized in that described device further include:
Audio Control Module, for reducing the output volume of the earphone when the earphone is not worn;
Compensating module, for carrying out low-frequency compensation to the output audio of the earphone when the wearing state of the earphone is pine.
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 CN108134969A (en) | 2018-06-08 |
CN108134969B true 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) |
Families Citing this family (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 |
CN109324779A (en) * | 2018-09-05 | 2019-02-12 | 联想(北京)有限公司 | A kind of volume adjusting method, electronic equipment and computer readable storage medium |
CN109240642B (en) * | 2018-09-26 | 2021-09-03 | 深圳市中科明望通信软件有限公司 | Volume adjusting method and device of terminal equipment and terminal equipment |
CN109327757B (en) * | 2018-09-30 | 2020-10-02 | 歌尔科技有限公司 | Dual-microphone noise reduction earphone and sound processing method and device thereof |
CN109246513A (en) * | 2018-09-30 | 2019-01-18 | 歌尔科技有限公司 | A kind of active noise reduction earphone and its noise-reduction method, device |
CN109413555B (en) * | 2018-09-30 | 2021-02-02 | Oppo广东移动通信有限公司 | Audio output method and 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 |
CN112804607B (en) * | 2020-12-24 | 2023-02-07 | 歌尔科技有限公司 | Tone quality adjusting method and device and tone quality adjustable earphone |
CN114081231B (en) * | 2021-11-04 | 2024-09-13 | 润希智能(深圳)有限公司 | Helmet wearing detection method and device, electronic equipment and helmet |
Citations (1)
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 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3048805B1 (en) * | 2015-01-21 | 2020-09-16 | LG Electronics Inc. | Ear set device |
CN105491483B (en) * | 2015-11-30 | 2018-11-02 | 歌尔股份有限公司 | Wearing state detection method, system and earphone for 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 |
-
2017
- 2017-11-30 CN CN201711244427.6A patent/CN108134969B/en active Active
Patent Citations (1)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN108134969A (en) | 2018-06-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108134969B (en) | The detection method and device of earphone wearing state | |
US7317996B2 (en) | Method for determining battery capacity | |
CA2766337C (en) | System and method for battery capacity reporting | |
CN100514082C (en) | Battery remaining power calculating method, battery remaining power calculating device, and battery remaining power calculating program | |
US7450726B2 (en) | Headset detector in a device generating audio signals | |
ES2753802T3 (en) | Charging procedure, charging device and terminal | |
US20080164855A1 (en) | Systems and methods for selectively changing current limit of a battery controller | |
US20160254688A1 (en) | Electronic Device and Method For Controlling Charging of the Same | |
CN101806867A (en) | Method and device for measuring electric quantity of mobile phone battery | |
CN111562505B (en) | Battery identification method, electronic equipment and storage medium | |
CN109828173B (en) | Load detection system and load detection method thereof | |
CN109598414A (en) | Risk evaluation model training, methods of risk assessment, device and electronic equipment | |
CA2525008C (en) | Method and system for accurately reporting battery capacity | |
CN108924908B (en) | WiFi scanning method and device and electronic device | |
CN110687458A (en) | Terminal battery electric quantity determination method and device | |
JP4405232B2 (en) | Voltage detection method and apparatus, and electronic apparatus | |
CN115483721A (en) | Battery equalization control method, battery equalization control device, and storage medium | |
CN107948790A (en) | Earphone recognition methods and device | |
CN105048583A (en) | Battery charging method and circuit | |
CN110738396B (en) | Feature extraction method, device and equipment for equipment | |
CN114885404A (en) | Method and equipment for reducing call power consumption of smart watch | |
CN107846697B (en) | SRS scheduling method and system | |
CN116430255B (en) | Battery electric quantity self-adaptive display method, device, storage medium and system | |
WO2022170907A1 (en) | Corrosion identification method and apparatus for connectors, and earbuds, charging box, and storage medium | |
CN109149676A (en) | A kind of method and device controlling charging current |
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 | ||
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. |