CN104754461A - Matched headset recognizing method and device and electronic device - Google Patents

Matched headset recognizing method and device and electronic device Download PDF

Info

Publication number
CN104754461A
CN104754461A CN201310744972.7A CN201310744972A CN104754461A CN 104754461 A CN104754461 A CN 104754461A CN 201310744972 A CN201310744972 A CN 201310744972A CN 104754461 A CN104754461 A CN 104754461A
Authority
CN
China
Prior art keywords
section type
type headset
electronic equipment
headset
earphone
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
Application number
CN201310744972.7A
Other languages
Chinese (zh)
Other versions
CN104754461B (en
Inventor
林翔
胡建锋
肖荣彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310744972.7A priority Critical patent/CN104754461B/en
Publication of CN104754461A publication Critical patent/CN104754461A/en
Application granted granted Critical
Publication of CN104754461B publication Critical patent/CN104754461B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a matched headset recognizing method and device and an electronic method. The method comprises the steps of inputting zero level to a left sound channel pin and a right channel pin of a four-band type headset when that the four-band type headset is inserted into the electronic device is detected; driving an electric parameter detecting circuit to detect electric parameter values on an MIC pin; determining that the four-band type headset is the matched headset when the electric parameters meet the preset condition, and otherwise, determining that the four-band type headset is not the matched headset. With the adoption of the method, whether the four-band type headset is the matched headset can be automatically recognized.

Description

The recognition methods of a kind of coupling earphone, device and electronic equipment
Technical field
The application relates to equipment control technology field, particularly one coupling earphone recognition methods, device and electronic equipment.
Background technology
The distribution schematic diagram of 4 pins of the four-section type headset that electronic equipment uses refers to shown in Fig. 1, and 4 pins have two kinds of sortords, as shown in table 1.For the four-section type headset of different sortord, there is the earphone jack of various criterion.When earphone jack being inserted unmatched four-section type headset, the multimedia messages quality that electronic equipment is play can be affected, and automatically hang up the telephone when sending a telegram here.Wherein do not mate and refer to that earphone jack and four-section type headset are various criterion.
The pin sortord of table 1 four-section type headset
Pin American Standard earphone GB earphone
A L L
B R R
C GND MIC
D MIC GND
Whether the four-section type headset that current electronic equipment identification is inserted is the mode of mating earphone: at MIC (Microphone, microphone) connecting analog switch in passage and GND passage, that first detects the MIC pin on MIC passage just connects impedance, re-use analog switch two passages are carried out switching to make two passage reversal connections, using GND passage as MIC passage, and detect reversal connection impedance, then respectively by judging whether resistance value belongs in MIC impedance ranges whether the four-section type headset determining to insert is coupling earphone.
But in actual testing process, just connecing impedance and reversal connection impedance all belongs in MIC impedance ranges, therefore cannot determine whether the four-section type headset inserted is coupling earphone by impedance detection method.And when on passage during connecting analog switch, analog switch can impact signal, thus affects audio quality.
Summary of the invention
Technical problems to be solved in this application are to provide the recognition methods of a kind of coupling earphone, cannot determine whether the four-section type headset inserted is the problem of mating earphone in order to solve prior art by impedance detection method.
The application also provides a kind of coupling earphone recognition apparatus and electronic equipment, in order to ensure said method implementation and application in practice.Technical scheme is as follows:
The application provides the recognition methods of a kind of coupling earphone, be applied to an electronic equipment, described electronic equipment comprises electrical parameters detection circuit, and when four-section type headset is inserted in described electronic equipment, the input of described electrical parameters detection circuit is connected with the MIC pin of the MIC passage of described four-section type headset, and described method comprises:
When detect described electronic equipment is inserted with described four-section type headset time, input zero potential is to the left channel pin of described four-section type headset and R channel pin;
Drive the electrical parameter values on MIC pin described in described electrical parameters detection electric circuit inspection;
When described electrical parameter values meets pre-conditioned, judge that described four-section type headset is as coupling earphone, otherwise judge that described four-section type headset is as not mating earphone.
Preferably, described electrical parameter values is magnitude of voltage, and described electrical parameters detection circuit is analog to digital converter;
The electrical parameter values on MIC pin described in described electrical parameters detection electric circuit inspection is driven to comprise: to drive described analog to digital converter that the analog voltage on described MIC pin is converted to digital voltage value.
Preferably, described electrical parameter values is current value, and described electrical parameters detection circuit comprises analog to digital converter and current calculation module;
The electrical parameter values on MIC pin described in described electrical parameters detection electric circuit inspection is driven to comprise:
Drive described analog to digital converter that the analog voltage on described MIC pin is converted to digital voltage value;
Obtain the resistance value on described MIC passage, and be sent to described current calculation module, to be drawn the current value on described MIC pin by described current calculation module according to described digital voltage value and resistance value.
Preferably, detect and whether described electronic equipment is inserted with described four-section type headset comprises:
When the level of the headset detection pin described electronic equipment being detected is low level, judge described electronic equipment is inserted with described four-section type headset;
When the level of the headset detection pin described electronic equipment being detected is high level, judge described electronic equipment is not inserted with described four-section type headset.
Preferably, also comprise before inputting zero potential to the left channel pin and R channel pin of described four-section type headset:
When described four-section type headset is in running order, close L channel passage and the R channel passage of described four-section type headset.
Preferably, judge that state four-section type headset also comprises after not mating earphone:
Display reminding information on described electronic equipment, to point out the four-section type headset of the current use of user for not mate earphone.
Preferably, judge that described four-section type headset also comprises after not mating earphone: close the signal transfer passage on described electronic equipment, described signal transfer passage connects L channel passage and the R channel passage of described four-section type headset.
Preferably, when described electrical parameter values is magnitude of voltage, when described electrical parameter values meets pre-conditioned, judge that described four-section type headset is as coupling earphone, otherwise judge that described four-section type headset is not as mating earphone, comprising:
When described magnitude of voltage is greater than zero, and when being less than or equal to 50mv, judge that described four-section type headset is as not mating earphone;
When described magnitude of voltage is greater than 50mv, judge that described four-section type headset is as coupling earphone;
Or
When described electrical parameter values is current value, when described electrical parameter values meets pre-conditioned, judge that described four-section type headset is as coupling earphone, otherwise described four-section type headset is coupling earphone, comprising:
When described current value is greater than zero, and when being less than or equal to 50mv/R, judge that described four-section type headset is not as mating earphone, wherein R is the resistance value on described MIC passage;
When described current value is greater than 50mv/R, judge that described four-section type headset is as coupling earphone.
The application also provides a kind of coupling earphone recognition apparatus, be applied to an electronic equipment, described electronic equipment comprises electrical parameters detection circuit, and when four-section type headset is inserted in described electronic equipment, the input of described electrical parameters detection circuit is connected with the MIC pin of the MIC passage of described four-section type headset, and described device comprises:
Input unit, for when detect described electronic equipment is inserted with described four-section type headset time, input zero potential is to the left channel pin of described four-section type headset and R channel pin;
Driver element, for driving the electrical parameter values on MIC pin described in described electrical parameters detection electric circuit inspection;
Identifying unit, for when described electrical parameter values meets pre-conditioned, judges that described four-section type headset is as coupling earphone, otherwise judges that described four-section type headset is as not mating earphone.
Preferably, described electrical parameter values is magnitude of voltage, and described electrical parameters detection circuit is analog to digital converter;
The electrical parameter values on MIC pin described in described electrical parameters detection electric circuit inspection is driven to comprise: to drive described analog to digital converter that the analog voltage on described MIC pin is converted to digital voltage value.
Preferably, described electrical parameter values is current value, and described electrical parameters detection circuit comprises analog to digital converter and current calculation module;
The electrical parameter values on MIC pin described in described electrical parameters detection electric circuit inspection is driven to comprise:
Drive described analog to digital converter that the analog voltage on described MIC pin is converted to digital voltage value;
Obtain the resistance value on described MIC passage, and be sent to described current calculation module, to be drawn the current value on described MIC pin by described current calculation module according to described digital voltage value and resistance value.
Preferably, described device also comprises: detecting unit, for when the level of the headset detection pin described electronic equipment being detected is low level, judges described electronic equipment is inserted with described four-section type headset; And for when the level of the headset detection pin described electronic equipment being detected is high level, judge described electronic equipment is not inserted with described four-section type headset.
Preferably, described device also comprises: the first control unit, for when described four-section type headset is in running order, closes L channel passage and the R channel passage of described four-section type headset.
Preferably, described device also comprises: display unit, for display reminding information on described electronic equipment, to point out the four-section type headset of the current use of user for not mate earphone.
Preferably, described device also comprises: the second control unit, and for closing the signal transfer passage on described electronic equipment, described signal transfer passage connects L channel passage and the R channel passage of described four-section type headset.
Preferably, described identifying unit, specifically for when described electrical parameter values is magnitude of voltage, when described magnitude of voltage is greater than zero, and when being less than or equal to 50mv, judges that described four-section type headset is as not mating earphone; When described magnitude of voltage is greater than 50mv, judge that described four-section type headset is as coupling earphone;
Or
Described identifying unit is further used for when described electrical parameter values is current value, and when described current value is greater than zero, and when being less than or equal to 50mv/R, judge that described four-section type headset is not as mating earphone, wherein R is the resistance value on described MIC passage; When described current value is greater than 50mv/R, judge that described four-section type headset is as coupling earphone.
The application also provides a kind of electronic equipment, comprise electrical parameters detection circuit and above-mentioned coupling earphone recognition apparatus, the input of described electrical parameters detection circuit is connected with the MIC pin of MIC passage of the described four-section type headset being inserted into described electronic equipment, for detecting the electrical parameter values of MIC pin, and the electrical parameter values detected is sent to described coupling earphone recognition apparatus.
In the embodiment of the present application, when detect electronic equipment is inserted with four-section type headset time, input zero potential to the left channel pin of four-section type headset and R channel pin, and drives the electrical parameter values of electrical parameters detection electric circuit inspection MIC pin.When electrical parameter values meets pre-conditioned, show the GND expanding channels of the receiver J-Horner on the MIC passage of four-section type headset that inserts and electronic equipment.And in actual use, the MIC passage of four-section type headset should with the MIC expanding channels of the receiver J-Horner on electronic equipment, so when electrical parameter values meets pre-conditioned, show that four-section type headset is not mated with receiver J-Horner, and then determine that four-section type headset does not mate earphone, achieve the automatic identification whether four-section type headset mates.
Further, the input of electrical parameters detection circuit connects the MIC pin of the MIC passage of four-section type headset, therefore when passage there being audio signal transmission, electrical parameters detection circuit can not affect the audio signal that passage transmits, thus can ensure the quality of audio signal.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present application, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the application, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
A kind of flow chart mating earphone recognition methods that Fig. 1 provides for the application;
The cut-away view of the electronic equipment of the coupling earphone recognition methods that Fig. 2 provides for application the application;
Fig. 3 is the equivalent circuit diagram of coupling earphone;
Fig. 4 is the equivalent circuit diagram not mating earphone;
A kind of a kind of structural representation mating earphone recognition apparatus that Fig. 5 provides for the application;
A kind of another kind of structural representation mating earphone recognition apparatus that Fig. 6 provides for the application;
A kind of another structural representation mating earphone recognition apparatus that Fig. 7 provides for the application.
Embodiment
First the coupling earphone recognition methods that the embodiment of the present application provides simply is introduced, this coupling earphone recognition methods is applied to an electronic equipment, wherein, electronic equipment comprises electrical parameters detection circuit, and when four-section type headset is inserted in electronic equipment, the input of electrical parameters detection circuit is connected with the MIC pin of the MIC passage of four-section type headset.
The recognition methods of coupling earphone comprises:
When detect electronic equipment is inserted with four-section type headset time, input zero potential is to the left channel pin of four-section type headset and R channel pin;
Drive the electrical parameter values on electrical parameters detection electric circuit inspection MIC pin;
When electrical parameter values meets pre-conditioned, judge that four-section type headset is as coupling earphone, otherwise judge that four-section type headset is as not mating earphone.
In the coupling earphone recognition methods that the embodiment of the present application provides, when electrical parameter values meets pre-conditioned, show the GND expanding channels of the receiver J-Horner on the MIC passage of four-section type headset that inserts and electronic equipment.And in actual use, the MIC passage of four-section type headset should with the MIC expanding channels of the receiver J-Horner on electronic equipment, so when electrical parameter values meets pre-conditioned, show that four-section type headset is not mated with receiver J-Horner, and then determine that four-section type headset does not mate earphone, achieve the automatic identification whether four-section type headset mates.
Further, the input of electrical parameters detection circuit connects the MIC pin of the MIC passage of four-section type headset, therefore when passage there being audio signal transmission, electrical parameters detection circuit can not affect the audio signal that passage transmits, thus can ensure the quality of audio signal.
Below in conjunction with the accompanying drawing in the embodiment of the present application, be clearly and completely described the technical scheme in the embodiment of the present application, obviously, described embodiment is only some embodiments of the present application, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all belong to the scope of the application's protection.
Refer to Fig. 1, it illustrates a kind of flow chart mating earphone recognition methods that the embodiment of the present application provides, this coupling earphone recognition methods is applied to an electronic equipment, it is characterized in that, electronic equipment comprises electrical parameters detection circuit, and when four-section type headset is inserted in electronic equipment, the input of electrical parameters detection circuit is connected with the MIC pin of the MIC passage of four-section type headset.
Wherein mate earphone recognition methods can comprise the following steps:
Step 101: when detect electronic equipment is inserted with four-section type headset time, input zero potential is to the left channel pin of four-section type headset and R channel pin.
After electronic equipment inserts four-section type headset, need whether the four-section type headset judging to insert is coupling earphone.And in actual decision process, electronic equipment needs the electrical parameter values obtained by electrical parameters detection circuit on MIC pin, so in order to ensure that electrical parameter values is not subject to the interference of other signals, before execution step 101, if when four-section type headset is in running order, close L channel passage and the R channel passage of four-section type headset, to avoid other signals being sent to L channel passage and R channel passage, affect the accuracy of the electrical parameter values on the MIC pin of electrical parameters detection circuit acquisition.
Such as when four-section type headset plays music, the self-contained electrical quantity of music signal can affect the accuracy of the electrical parameter values on MIC pin that electrical parameters detection circuit obtains, so need first to close left and right acoustic channels passage in identifying the process whether earphone mates, the signal disturbing in filtering left and right acoustic channels passage.
When detect electronic equipment is inserted with four-section type headset time, input zero potential, to the left channel pin of four-section type headset and R channel pin, prevents the electrical quantity on two pins from affect the accuracy of the electrical parameter values on the MIC pin of electrical parameters detection circuit acquisition further.
At present, electronic equipment has a headset detection pin EINTS_HP, as shown in Figure 2, this headset detection pin is used for whether having earphone to insert in detected electrons equipment, and a kind of feasible pattern therefore whether the embodiment of the present application detected electrons equipment being inserted with four-section type headset is: determined whether that four-section type headset is inserted by the level of the headset detection pin of detected electrons equipment.
Can be specifically: when the level of headset detection pin electronic equipment being detected is low level judge electronic equipment is inserted with four-section type headset; When the level of headset detection pin electronic equipment being detected is high level, judge electronic equipment is not inserted with four-section type headset.
AUDJACK_MIC represents the MIC pin in electronic equipment in fig. 2, it is connected with the MIC pin of four-section type headset, AUDJACK_L represents the L pin in electronic equipment, it is connected with the L pin of four-section type headset, AUDJACK_R represents the R pin in electronic equipment, it is connected with the R pin of four-section type headset, and AUDJACK_GND represents the GND pin in electronic equipment, and it is connected with the GND pin of four-section type headset.
Step 102: drive the electrical parameter values on electrical parameters detection electric circuit inspection MIC pin.
Be understandable that: under different application scene, electrical parameters detection circuit can detect different electrical parameter values.When the electrical parameter values detected is different, the structure of electrical parameters detection circuit is also different.Specific as follows:
In a kind of feasible pattern of the embodiment of the present application: electrical parameter values is magnitude of voltage, electrical parameters detection circuit is analog to digital converter; After input zero potential to the left channel pin and R channel pin of four-section type headset, electronic equipment drives analog to digital converter work, the analog voltage on MIC pin is converted to digital voltage value, using this digital voltage value as electrical parameter values.
In the another kind of feasible pattern of the embodiment of the present application: electrical parameter values is current value, electrical parameters detection circuit comprises analog to digital converter and current calculation module; After input zero potential to the left channel pin and R channel pin of four-section type headset, electronic equipment drives analog to digital converter and current calculation module work, and the resistance value obtained on MIC passage is sent to current calculation module.Analog voltage on MIC pin is converted to digital voltage value by analog to digital converter, then draws the current value on MIC pin by current calculation module foundation digital voltage value and resistance value.
If the electrical parameter values detected is current value, need to obtain the resistance value on MIC passage.A kind of feasible pattern of the resistance value wherein obtained on MIC passage is: at the electronic device design initial stage, the resistance value on MIC passage be written in memory.When detecting electrical parameter values, from memory, obtain this resistance value.
Further due to when detect current value, still need first to obtain digital voltage value, therefore the embodiment of the present application preferably using magnitude of voltage as electrical parameter values.
Step 103: judge whether electrical parameter values meets pre-conditioned, if so, performs step 104; Perform step 105 if not.
The above-mentioned electrical parameter values that lists can be magnitude of voltage or current value, when the type of electrical parameter values is different, and the pre-conditioned also difference of its correspondence.In the embodiment of the present application, pre-conditioned can be the span of electrical parameter values, and the span of this electrical parameter values draws by summing up the test of many times of coupling earphone and non-matching earphone.Certainly pre-conditioned can also be other conditions, is not enumerating this embodiment of the present application.
Step 104: when electrical parameter values meets pre-conditioned, judges that four-section type headset is as coupling earphone.
Step 105: when electrical parameter values does not meet pre-conditioned, judges that four-section type headset is as not mating earphone.
When electrical parameter values is magnitude of voltage, the implementation of above-mentioned steps 104 and step 105 can be: when magnitude of voltage is greater than zero, and when being less than or equal to 50mv, judges that four-section type headset is as not mating earphone; When magnitude of voltage is greater than 50mv, judge that four-section type headset is as coupling earphone.
Or
When electrical parameter values is current value, the implementation of above-mentioned steps 104 and step 105 can be: when current value is greater than zero, and when being less than or equal to 50mv/R, and judge that four-section type headset is not as mating earphone, wherein R is the resistance value on MIC passage; When current value is greater than 50mv/R, judge that four-section type headset is as coupling earphone.
Below in conjunction with the equivalent electric circuit that electronic equipment is inserting four-section type headset, the coupling earphone recognition methods that the embodiment of the present application provides is described.Wherein accompanying drawing 3 is equivalent circuit diagrams of coupling earphone, accompanying drawing 4 is the equivalent circuit diagrams not mating earphone, L channel in accompanying drawing 3 and accompanying drawing 4 represents left channel pin, R channel represents R channel pin, mic represents MIC pin, micbias is the bias voltage of MIC pin, and headset detect represents the test point that MIC pin connects, and this test point is connected with electrical parameters detection circuit.
The four-section type headset that electronic equipment inserts is when being the four-section type headset of mating with electronic equipment, the tie point ground connection of resistance R3 and resistance R4, now electrical parameters detection electric circuit inspection to magnitude of voltage equal micbias.
When the four-section type headset inserted is four-section type headset unmatched with electronic equipment, MIC pin one end connects earth terminal, and the other end is connected on the tie point of left and right acoustic channels two pins.When identifying whether as coupling earphone, two pin input zero potentials of left and right acoustic channels, now MIC pin is shorted.Because wire self exists certain resistance, so the magnitude of voltage that electrical parameters detection electric circuit inspection arrives is close to zero.
Through test of many times, technical staff draws when the four-section type headset inserted is four-section type headset unmatched with electronic equipment, electrical parameters detection electric circuit inspection to magnitude of voltage maximum be 50mv, be less than bias voltage micbias, therefore when magnitude of voltage is greater than zero, and when being less than or equal to 50mv, judge that four-section type headset is as not mating earphone; When magnitude of voltage is greater than 50mv, judge that four-section type headset is as coupling earphone.
Application technique scheme, when detect electronic equipment is inserted with four-section type headset time, input zero potential to the left channel pin of four-section type headset and R channel pin, and drives the electrical parameter values of electrical parameters detection electric circuit inspection MIC pin.When electrical parameter values meets pre-conditioned, show the GND expanding channels of the receiver J-Horner on the MIC passage of four-section type headset that inserts and electronic equipment.And in actual use, the MIC passage of four-section type headset should with the MIC expanding channels of the receiver J-Horner on electronic equipment, so when electrical parameter values meets pre-conditioned, show that four-section type headset is not mated with receiver J-Horner, and then determine that four-section type headset does not mate earphone, achieve the automatic identification whether four-section type headset mates.
Further, the input of electrical parameters detection circuit connects the MIC pin of the MIC passage of four-section type headset, therefore when passage there being audio signal transmission, electrical parameters detection circuit can not affect the audio signal that passage transmits, thus can ensure the quality of audio signal.
In addition, if it is determined that four-section type headset is not for mate earphone, the coupling earphone recognition methods that the embodiment of the present application provides can also display reminding information on an electronic device further, to point out the four-section type headset of the current use of user for not mate earphone.After user sees this information, the earphone of current use can be changed.
Further, if it is determined that four-section type headset is not for mate earphone, the coupling earphone recognition methods that the embodiment of the present application provides is all right: close the signal transfer passage on electronic equipment, and signal transfer passage connects L channel passage and the R channel passage of four-section type headset.After signal transfer passage is closed, all signals that electronic equipment is sent in four-section type headset cannot be sent in four-section type headset.When the four-section type headset reinserted is for coupling earphone, restart the signal transfer passage on electronic equipment, signal can resend in four-section type headset and play.
Corresponding with said method embodiment, the embodiment of the present application also provides a kind of coupling earphone recognition apparatus, be applied to an electronic equipment, electronic equipment comprises electrical parameters detection circuit, and when four-section type headset is inserted in electronic equipment, the input of electrical parameters detection circuit is connected with the MIC pin of the MIC passage of four-section type headset.
The structural representation of the coupling earphone recognition apparatus that the embodiment of the present application provides refers to shown in Fig. 5, can comprise: input unit 11, driver element 12 and identifying unit 13.Wherein
Input unit 11, for when detect electronic equipment is inserted with four-section type headset time, input zero potential is to the left channel pin of four-section type headset and R channel pin.
When detect electronic equipment is inserted with four-section type headset time, input unit 11 inputs zero potential to the left channel pin of four-section type headset and R channel pin, the accuracy of the electrical parameter values on can prevent the electrical quantity on two pins from affecting MIC pin that electrical parameters detection circuit obtains.
Driver element 12, for driving the electrical parameter values on electrical parameters detection electric circuit inspection MIC pin.
Be understandable that: under different application scene, electrical parameters detection circuit can detect different electrical parameter values.When the electrical parameter values detected is different, the structure of electrical parameters detection circuit is also different.Specific as follows:
In a kind of feasible pattern of the embodiment of the present application: electrical parameter values is magnitude of voltage, electrical parameters detection circuit is analog to digital converter; After input zero potential to the left channel pin and R channel pin of four-section type headset, electronic equipment drives analog to digital converter work, the analog voltage on MIC pin is converted to digital voltage value, using this digital voltage value as electrical parameter values.
In the another kind of feasible pattern of the embodiment of the present application: electrical parameter values is current value, electrical parameters detection circuit comprises analog to digital converter and current calculation module; After input zero potential to the left channel pin and R channel pin of four-section type headset, electronic equipment drives analog to digital converter and current calculation module work, and the resistance value obtained on MIC passage is sent to current calculation module.Analog voltage on MIC pin is converted to digital voltage value by analog to digital converter, then draws the current value on MIC pin by current calculation module foundation digital voltage value and resistance value.
Identifying unit 13, for when electrical parameter values meets pre-conditioned, judges that four-section type headset is as coupling earphone, otherwise judges that four-section type headset is as not mating earphone.
In the embodiment of the present application, identifying unit 13 is further used for when electrical parameter values is magnitude of voltage, when magnitude of voltage is greater than zero, and when being less than or equal to 50mv, judges that four-section type headset is as not mating earphone; When magnitude of voltage is greater than 50mv, judge that four-section type headset is as coupling earphone.
Whether identifying unit 13 is when being coupling earphone according to magnitude of voltage identification four-section type headset, and the equivalent circuit diagram of its foundation as shown in Figure 3 and Figure 4, is no longer set forth this present embodiment.
Certainly, identifying unit 13 specifically may be used for when electrical parameter values is current value, and when current value is greater than zero, and when being less than or equal to 50mv/R, judge that four-section type headset is not as mating earphone, wherein R is the resistance value on MIC passage; When current value is greater than 50mv/R, judge that four-section type headset is as coupling earphone.
Refer to Fig. 6, it illustrates a kind of another kind of structural representation mating earphone recognition methods that the embodiment of the present application provides, on Fig. 5 basis, can also comprise: detecting unit 14, whether four-section type headset is inserted with on detected electrons equipment, specifically for when the level of headset detection pin electronic equipment being detected is low level, judge electronic equipment is inserted with four-section type headset; And for when the level of headset detection pin electronic equipment being detected is high level, judge electronic equipment is not inserted with four-section type headset.
In addition, on the coupling earphone recognition apparatus basis shown in Fig. 5 and Fig. 6, the coupling earphone recognition apparatus that the embodiment of the present application provides can further include: the first control unit, for when four-section type headset is in running order, close L channel passage and the R channel passage of four-section type headset, to avoid other signals being sent to L channel passage and R channel passage, affect the accuracy of the electrical parameter values on the MIC pin of electrical parameters detection circuit acquisition.
Refer to Fig. 7, it illustrates another structural representation of the coupling earphone recognition apparatus that the embodiment of the present application provides, on Fig. 5 basis, can further include: display unit 15 and the second control unit 16, for display reminding information on an electronic device, to point out the four-section type headset of the current use of user for not mate earphone.
Second control unit 16, for closing the signal transfer passage on electronic equipment, signal transfer passage connects L channel passage and the R channel passage of four-section type headset.When the four-section type headset reinserted is for coupling earphone, the second control unit 16 can also restart the signal transfer passage on electronic equipment further, and signal can resend in four-section type headset and play.
Certainly, coupling earphone recognition apparatus shown in Fig. 7 also can comprise aforesaid detecting unit 14 and the first control unit, wherein the function of detecting unit 14 and the first control unit refers to the related description in device embodiment, is no longer described this embodiment of the present application.
Above-mentioned coupling earphone recognition apparatus can comprise in the electronic device, this electronic equipment also comprises electrical parameters detection circuit, the input of electrical parameters detection circuit is connected with the MIC pin of MIC passage of the four-section type headset being inserted into electronic equipment, for detecting the electrical parameter values of MIC pin, and the electrical parameter values detected is sent to coupling earphone recognition apparatus.
It should be noted that, each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.For device class embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
For convenience of description, various unit is divided into describe respectively with function when describing above device.Certainly, the function of each unit can be realized in same or multiple software and/or hardware when implementing the application.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the mode that the application can add required general hardware platform by software and realizes.Based on such understanding, the technical scheme of the application can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the application or embodiment.
The one provided the application is above mated earphone recognition methods, device and electronic equipment and is described in detail, apply specific case herein to set forth the principle of the application and execution mode, the explanation of above embodiment is just for helping method and the core concept thereof of understanding the application; Meanwhile, for one of ordinary skill in the art, according to the thought of the application, all will change in specific embodiments and applications, in sum, this description should not be construed as the restriction to the application.

Claims (17)

1. coupling earphone recognition methods, be applied to an electronic equipment, it is characterized in that, described electronic equipment comprises electrical parameters detection circuit, and when four-section type headset is inserted in described electronic equipment, the input of described electrical parameters detection circuit is connected with the MIC pin of the MIC passage of described four-section type headset, and described method comprises:
When detect described electronic equipment is inserted with described four-section type headset time, input zero potential is to the left channel pin of described four-section type headset and R channel pin;
Drive the electrical parameter values on MIC pin described in described electrical parameters detection electric circuit inspection;
When described electrical parameter values meets pre-conditioned, judge that described four-section type headset is as coupling earphone, otherwise judge that described four-section type headset is as not mating earphone.
2. method according to claim 1, is characterized in that, described electrical parameter values is magnitude of voltage, and described electrical parameters detection circuit is analog to digital converter;
The electrical parameter values on MIC pin described in described electrical parameters detection electric circuit inspection is driven to comprise: to drive described analog to digital converter that the analog voltage on described MIC pin is converted to digital voltage value.
3. method according to claim 1, is characterized in that, described electrical parameter values is current value, and described electrical parameters detection circuit comprises analog to digital converter and current calculation module;
The electrical parameter values on MIC pin described in described electrical parameters detection electric circuit inspection is driven to comprise:
Drive described analog to digital converter that the analog voltage on described MIC pin is converted to digital voltage value;
Obtain the resistance value on described MIC passage, and be sent to described current calculation module, to be drawn the current value on described MIC pin by described current calculation module according to described digital voltage value and resistance value.
4. method according to claim 1, is characterized in that, detects whether described electronic equipment is inserted with described four-section type headset comprises:
When the level of the headset detection pin described electronic equipment being detected is low level, judge described electronic equipment is inserted with described four-section type headset;
When the level of the headset detection pin described electronic equipment being detected is high level, judge described electronic equipment is not inserted with described four-section type headset.
5. the method according to Claims 1-4 any one, is characterized in that, also comprises before input zero potential to the left channel pin and R channel pin of described four-section type headset:
When described four-section type headset is in running order, close L channel passage and the R channel passage of described four-section type headset.
6. the method according to Claims 1-4 any one, is characterized in that, judges that state four-section type headset also comprises after not mating earphone:
Display reminding information on described electronic equipment, to point out the four-section type headset of the current use of user for not mate earphone.
7. method according to claim 6, it is characterized in that, judge that described four-section type headset also comprises after not mating earphone: close the signal transfer passage on described electronic equipment, described signal transfer passage connects L channel passage and the R channel passage of described four-section type headset.
8. the method according to Claims 1-4 any one, is characterized in that, when described electrical parameter values is magnitude of voltage, when described electrical parameter values meets pre-conditioned, judge that described four-section type headset is as coupling earphone, otherwise judge that described four-section type headset is not as mating earphone, comprising:
When described magnitude of voltage is greater than zero, and when being less than or equal to 50mv, judge that described four-section type headset is as not mating earphone;
When described magnitude of voltage is greater than 50mv, judge that described four-section type headset is as coupling earphone;
Or
When described electrical parameter values is current value, when described electrical parameter values meets pre-conditioned, judge that described four-section type headset is as coupling earphone, otherwise described four-section type headset is coupling earphone, comprising:
When described current value is greater than zero, and when being less than or equal to 50mv/R, judge that described four-section type headset is not as mating earphone, wherein R is the resistance value on described MIC passage;
When described current value is greater than 50mv/R, judge that described four-section type headset is as coupling earphone.
9. a coupling earphone recognition apparatus, be applied to an electronic equipment, it is characterized in that, described electronic equipment comprises electrical parameters detection circuit, and when four-section type headset is inserted in described electronic equipment, the input of described electrical parameters detection circuit is connected with the MIC pin of the MIC passage of described four-section type headset, and described device comprises:
Input unit, for when detect described electronic equipment is inserted with described four-section type headset time, input zero potential is to the left channel pin of described four-section type headset and R channel pin;
Driver element, for driving the electrical parameter values on MIC pin described in described electrical parameters detection electric circuit inspection;
Identifying unit, for when described electrical parameter values meets pre-conditioned, judges that described four-section type headset is as coupling earphone, otherwise judges that described four-section type headset is as not mating earphone.
10. device according to claim 9, is characterized in that, described electrical parameter values is magnitude of voltage, and described electrical parameters detection circuit is analog to digital converter;
The electrical parameter values on MIC pin described in described electrical parameters detection electric circuit inspection is driven to comprise: to drive described analog to digital converter that the analog voltage on described MIC pin is converted to digital voltage value.
11. devices according to claim 9, is characterized in that, described electrical parameter values is current value, and described electrical parameters detection circuit comprises analog to digital converter and current calculation module;
The electrical parameter values on MIC pin described in described electrical parameters detection electric circuit inspection is driven to comprise:
Drive described analog to digital converter that the analog voltage on described MIC pin is converted to digital voltage value;
Obtain the resistance value on described MIC passage, and be sent to described current calculation module, to be drawn the current value on described MIC pin by described current calculation module according to described digital voltage value and resistance value.
12. devices according to claim 9, is characterized in that, described device also comprises: detecting unit, for when the level of the headset detection pin described electronic equipment being detected is low level, judge described electronic equipment is inserted with described four-section type headset; And for when the level of the headset detection pin described electronic equipment being detected is high level, judge described electronic equipment is not inserted with described four-section type headset.
13. devices according to claim 9 to 12 any one, it is characterized in that, described device also comprises: the first control unit, for when described four-section type headset is in running order, closes L channel passage and the R channel passage of described four-section type headset.
14. devices according to claim 9 to 12 any one, it is characterized in that, described device also comprises: display unit, for display reminding information on described electronic equipment, to point out the four-section type headset of the current use of user for not mate earphone.
15. devices according to claim 14, it is characterized in that, described device also comprises: the second control unit, and for closing the signal transfer passage on described electronic equipment, described signal transfer passage connects L channel passage and the R channel passage of described four-section type headset.
16. devices according to claim 9 to 12 any one, it is characterized in that, described identifying unit specifically for when described electrical parameter values is magnitude of voltage, when described magnitude of voltage is greater than zero, and when being less than or equal to 50mv, judge that described four-section type headset is as not mating earphone; When described magnitude of voltage is greater than 50mv, judge that described four-section type headset is as coupling earphone;
Or
Described identifying unit is further used for when described electrical parameter values is current value, and when described current value is greater than zero, and when being less than or equal to 50mv/R, judge that described four-section type headset is not as mating earphone, wherein R is the resistance value on described MIC passage; When described current value is greater than 50mv/R, judge that described four-section type headset is as coupling earphone.
17. 1 kinds of electronic equipments, it is characterized in that, comprise electrical parameters detection circuit and the coupling earphone recognition apparatus as described in claim 9 to 16 any one, the input of described electrical parameters detection circuit is connected with the MIC pin of MIC passage of the described four-section type headset being inserted into described electronic equipment, for detecting the electrical parameter values of MIC pin, and the electrical parameter values detected is sent to described coupling earphone recognition apparatus.
CN201310744972.7A 2013-12-30 2013-12-30 A kind of matching earphone recognition methods, device and electronic equipment Active CN104754461B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310744972.7A CN104754461B (en) 2013-12-30 2013-12-30 A kind of matching earphone recognition methods, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310744972.7A CN104754461B (en) 2013-12-30 2013-12-30 A kind of matching earphone recognition methods, device and electronic equipment

Publications (2)

Publication Number Publication Date
CN104754461A true CN104754461A (en) 2015-07-01
CN104754461B CN104754461B (en) 2019-03-08

Family

ID=53593453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310744972.7A Active CN104754461B (en) 2013-12-30 2013-12-30 A kind of matching earphone recognition methods, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN104754461B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105611448A (en) * 2016-01-29 2016-05-25 广东欧珀移动通信有限公司 Self-stick, self-stick identification method and apparatus, and mobile terminal
CN107341122A (en) * 2017-07-25 2017-11-10 广东欧珀移动通信有限公司 Equipment access processing method, equipment access processing unit and mobile terminal
CN107678991A (en) * 2017-09-30 2018-02-09 努比亚技术有限公司 A kind of data processing method and terminal, computer-readable recording medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101431708A (en) * 2008-12-10 2009-05-13 深圳华为通信技术有限公司 Terminal and method for recognizing headphone type
CN102413239A (en) * 2011-11-15 2012-04-11 惠州Tcl移动通信有限公司 Mobile phone and method for detecting earphone mode of mobile phone
CN102780950A (en) * 2012-07-10 2012-11-14 环汇系统有限公司 Electronic equipment audio control system and electronic equipment audio control method
US20130044231A1 (en) * 2011-08-16 2013-02-21 Hon Hai Precision Industry Co., Ltd. Electronic device for activating and controlling user-controllable functions thereof according to an earphone connected thereto, and associated method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101431708A (en) * 2008-12-10 2009-05-13 深圳华为通信技术有限公司 Terminal and method for recognizing headphone type
US20130044231A1 (en) * 2011-08-16 2013-02-21 Hon Hai Precision Industry Co., Ltd. Electronic device for activating and controlling user-controllable functions thereof according to an earphone connected thereto, and associated method
CN102413239A (en) * 2011-11-15 2012-04-11 惠州Tcl移动通信有限公司 Mobile phone and method for detecting earphone mode of mobile phone
CN102780950A (en) * 2012-07-10 2012-11-14 环汇系统有限公司 Electronic equipment audio control system and electronic equipment audio control method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105611448A (en) * 2016-01-29 2016-05-25 广东欧珀移动通信有限公司 Self-stick, self-stick identification method and apparatus, and mobile terminal
CN107341122A (en) * 2017-07-25 2017-11-10 广东欧珀移动通信有限公司 Equipment access processing method, equipment access processing unit and mobile terminal
CN107341122B (en) * 2017-07-25 2019-08-27 Oppo广东移动通信有限公司 Equipment access processing method, equipment access processing unit and mobile terminal
CN107678991A (en) * 2017-09-30 2018-02-09 努比亚技术有限公司 A kind of data processing method and terminal, computer-readable recording medium

Also Published As

Publication number Publication date
CN104754461B (en) 2019-03-08

Similar Documents

Publication Publication Date Title
CN101431708A (en) Terminal and method for recognizing headphone type
CN104584584A (en) Headset type detection and configuration techniques
KR20140103158A (en) Plug type detection
CN107315665A (en) The detection method and its device of a kind of multimedia board
CN205071294U (en) Headphone structure circuit, earphone, audio output device and display device
CN103220614A (en) Audio interface type detection device
CN103905955A (en) Method and apparatus for detecting insertion of earphones, and interface circuit
CN104754461A (en) Matched headset recognizing method and device and electronic device
CN105933823A (en) Backward compatible system and method for using 4P audio jack to provide power and signal to headset with active noise cancellation
CN203933930U (en) Earphone interface circuit and portable electron device
CN105741862A (en) Method and device for recording audios through mobile terminal and mobile terminal
CN102751602A (en) E1 cable connector, cable type detection circuit board and method
CN101990144A (en) Double earphone adapter, main board and method for detecting double earphones
CN107885480A (en) Interface detects circuit and audio frequency apparatus
CN102739183B (en) Audio interface matching identification method and device for mobile terminal, and electronic signature tool
CN105100991A (en) Compatible method and device of earphone
CN106226647A (en) The earphone socket of a kind of electronic equipment and electronic equipment
KR101507296B1 (en) Transfer device, electronic signature tool, detection device and interface detection system
CN104093104A (en) Circuit and method for eliminating POP sound of earphone
CN102448006B (en) Detection circuit of audio equipment
CN103874006A (en) Fault detection method and electronic device
CN106708741A (en) Voice application test method and system
CN104701933B (en) OTG selective charging circuit and portable loudspeaker box
CN106338937A (en) Device and method for generating output signal based on detected load resistance value
CN108322882A (en) Earphone plug detection circuit, headset detection device and audio frequency apparatus

Legal Events

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