CN102892065A - Media stream plug detecting and shifting device and method thereof - Google Patents

Media stream plug detecting and shifting device and method thereof Download PDF

Info

Publication number
CN102892065A
CN102892065A CN2011102075526A CN201110207552A CN102892065A CN 102892065 A CN102892065 A CN 102892065A CN 2011102075526 A CN2011102075526 A CN 2011102075526A CN 201110207552 A CN201110207552 A CN 201110207552A CN 102892065 A CN102892065 A CN 102892065A
Authority
CN
China
Prior art keywords
signal
pin
media stream
transmission ends
signal transmission
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
CN2011102075526A
Other languages
Chinese (zh)
Other versions
CN102892065B (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.)
Fairchild Semiconductor Corp
Original Assignee
Fairchild Semiconductor Corp
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 Fairchild Semiconductor Corp filed Critical Fairchild Semiconductor Corp
Priority to CN201110207552.6A priority Critical patent/CN102892065B/en
Publication of CN102892065A publication Critical patent/CN102892065A/en
Application granted granted Critical
Publication of CN102892065B publication Critical patent/CN102892065B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Details Of Connecting Devices For Male And Female Coupling (AREA)

Abstract

The invention provides a media stream plug detecting and shifting device and a method thereof, wherein the media stream plug detecting and shifting device comprises a detecting unit and a switching unit, the detecting unit is used for detecting the signal switching-in state of a plurality of pins of a connected audio plug, and outputting control signals according to the detected result; and the switching unit is used for respectively switching the plurality of pins of the audio plug to a signal transmission end corresponding to the signal switching-in state. The technical scheme provided by the invention achieves the effect that in the audio system with different standards, two kinds of audio plugs with different standards can be used universally.

Description

The Media Stream plug detects switching device shifter and method thereof
Technical field
The present invention relates to a kind of Media Stream plug and detect switching device shifter and method thereof.
Background technology
Existing two kinds of audio jack standards are respectively OMTP (Open Mobile Terminal Platform, open mobile terminal platform) standard and Unite States Standards.The audio jack of OMTP standard and Unite States Standard as shown in Figure 1, wherein the left side be the OMPT standard plug, it comprises LSPKR, RSPKR, MIC, GND totally 4 utmost points (pole, pin).The right side is the audio jack of Unite States Standard, and it comprises L SPKR, RSPKR, GND, MIC totally 4 utmost points.Because the existence of these two kinds of various criterions, cause adopting a kind of audio system of standard can only use audio jack with the corresponding standard of this standard, this causes the limitation used.For example, the audio system of making for some country adopts Unite States Standard, and be that the audio system that make the other country adopts the OMTP standard, this can increase manufacturing cost for the producer, for the terminal use, also very inconvenient, for example, may need to adopt 0 Ohmic resistance to reshuffle audio jack, otherwise can only be that specific earphone is equipped with specific audio jack.
For this reason, need to provide a kind of and can be implemented in two kinds of method or devices that different standard rooms is general.
Summary of the invention
One of purpose of the present invention is to provide a kind of Media Stream plug to detect switching device shifter, and it can switch according to the connection status of Media Stream plug, and Media Stream plug and connected media streaming system can be complementary.
Another object of the present invention is to provide a kind of Media Stream plug to detect changing method, and it can switch according to the connection status of Media Stream plug, and Media Stream plug and connected media streaming system can be complementary.
According to an aspect of the present invention, provide a kind of Media Stream plug to detect switching device shifter, it is characterized in that, having comprised: detecting unit, for detection of the signal access state of a plurality of pins of the Media Stream plug that connects, according to testing result output control signal; Switch unit according to this control signal, switches to respectively the signal transmission ends corresponding with its signal access state with described a plurality of pins of described Media Stream plug.
According to another aspect of the present invention, provide a kind of Media Stream plug to detect changing method, it is characterized in that, having comprised: detected the signal access state of a plurality of pins of the Media Stream plug that connects, according to testing result output control signal; According to this control signal, described a plurality of pins of described Media Stream plug are switched to respectively the signal transmission ends corresponding with its signal access state.
Overcome the defective of prior art by technical scheme of the present invention, realized in the media streaming system of various criterion can general two kinds of various criterions the Media Stream plug.
Description of drawings
Accompanying drawing described herein is used to provide a further understanding of the present invention, consists of the application's a part, and illustrative examples of the present invention and explanation thereof are used for explaining the present invention, do not consist of improper restriction of the present invention.In the accompanying drawings:
Fig. 1 is respectively according to the schematic diagram of the audio jack of OMTP standard and Unite States Standard;
Fig. 2 according to an embodiment of the invention audio jack detects the switching device module schematic diagram;
Fig. 3 according to an embodiment of the invention audio jack detects the schematic diagram of switching device shifter and the audio system that detects thereof, audio jack;
Fig. 4 is that audio jack detects the changing method schematic flow sheet according to an embodiment of the invention;
Fig. 5 is that audio jack detects the part flow chart of changing method according to an embodiment of the invention; And
Fig. 6 is the audio jack testing circuit schematic diagram according to prior art.
Embodiment
Below with reference to accompanying drawing, describe the specific embodiment of the present invention in detail.In following embodiment, mainly describe as an example of audio jack and audio system example.
Fig. 2 is that audio jack detects the switching device module schematic diagram according to an embodiment of the invention.
As shown in Figure 2, this audio jack detects switching device shifter, comprising: detecting unit, for detection of the signal access state of a plurality of pins of the audio jack that connects, according to testing result output control signal; Switch unit according to this control signal, switches to respectively the signal transmission ends corresponding with its signal access state with described a plurality of pins of described audio jack.
Wherein, described a plurality of pins comprise the first pin and the second pin, and described signal transmission ends comprises for the first signal transmission ends that is connected with the first signal treatment circuit and the secondary signal transmission ends that is connected being connected with the secondary signal treatment circuit;
Described detecting unit is when detecting described the first pin and be in access first signal and described the second pin and be in the first access state of access secondary signal, according to testing result output control signal, described switch unit is according to described control signal, described the first pin is connected to described first signal transmission ends, described the second pin is connected to described secondary signal transmission ends;
Described detecting unit is when detecting described the first pin and be in access secondary signal and described the second pin and be in the second access state of access first signal, according to testing result output control signal, described switch unit is according to described control signal, described the first pin is connected to described secondary signal transmission ends, described the second pin is connected to described first signal transmission ends.
Wherein, described switch unit comprises (concrete structure this not shown): the first diverter switch comprises the first switch terminal and the second switch terminal; The second diverter switch, comprise the 3rd switch terminal and the 4th switch terminal that are electrically connected with the first switch terminal and the second switch terminal respectively, when described the first access state, described the first diverter switch is connected to described first signal transmission ends with described the first pin through described the first switch terminal, and described the second diverter switch is connected to described secondary signal transmission ends with described the second pin through described the 4th switch terminal; When described the second access state, described the first diverter switch is connected to described first signal transmission ends with described the second pin through described the second switch terminal, and described the second diverter switch is connected to described secondary signal transmission ends with described the first pin through described the 3rd switch terminal.
Wherein, described the first diverter switch comprises the first stiff end, and it is connected to the described first signal transmission ends of this detection switching device shifter; Described the second diverter switch comprises the second stiff end, and it is connected to the described secondary signal transmission ends of this detection switching device shifter.
Wherein, under described the first access state, described plug-shaped becomes the audio jack that meets the OMTP standard, and under described the second access state, described plug-shaped becomes the audio jack that meets Unite States Standard.
Wherein, described detection switching device shifter also comprises: the oscillator logic unit is used for according to described control signal outputting oscillation signal; Switching enables regularly (sequential) unit, is used for according to described outputting oscillation signal output switching signal.Wherein, described first signal treatment circuit is the circuit that uses described audio jack being used for of detecting that switching device shifter connects the audio system of this audio jack with being connected the secondary signal treatment circuit.
Wherein, described the second stiff end is earth terminal, and the resistance value of described the first diverter switch is less than 5 ohm, and the resistance value of described the second diverter switch is less than 200 milliohms.
Fig. 3 according to an embodiment of the invention audio jack detects the schematic diagram of switching device shifter and the audio system that detects thereof, audio jack.
As shown in Figure 3, audio jack detection switching device shifter comprises according to an embodiment of the invention: oscillator logic unit, detecting unit, switching enable timing unit and switch unit, and concrete structure is as follows.
As shown in Figure 3, EN is enable pin, and it links to each other with the GPIO pin of the baseband processor in left side, according to the enable signal that the GPIO pin of baseband processor is exported, makes this audio jack detect switching device shifter and begins to detect.The CEXT pin is connected to the GND pin by capacitor.GND on the chip and GNDA pin are earth terminal.The GND/MIC1 on right side and GND/MIC2 are two input pins of this device, are used for connecting the pin of audio jack to be detected.
The right side shows an audio jack that connects among Fig. 3, and it comprises LSPKR, RSPKR, MIC, GND totally 4 pins, and 302 these pins of expression can be connected to audio frequency connector testing circuit (not shown) among the figure.
Wherein, two pins of detecting unit are connected to respectively described two and detect input, be used for 3 utmost points of the audio jack shown in the figure right side with are connected the utmost point and are connected, (access state according to the embodiment of the invention can comprise: floating state (OPEN) can to detect thus the signal access state of 3 utmost points and 4 utmost points; Not with MIC (Mike's) state, be called short circuit (short), please note to be different from usually said short circuit herein, just be used for representing a kind of connection status of pin; And the state that connects MIC and ground connection), control the change action of switch unit according to the difference of signal access state.This detecting unit is connected with the oscillator logic unit, and the oscillator logic unit enables timing unit with switching again and is connected.Detecting unit is according to the state of 3 utmost points that detect and 4 utmost points, send corresponding control signal to the oscillator logic unit, this oscillator logic unit is exported corresponding oscillator signal and is enabled regularly (timing) unit to switching, switch and enable timing unit output switching signal, make the switch unit action, thereby 3 utmost points, 4 utmost points are linked to each other with MIC, the GNDA pin of this chip respectively.
Scheming left side-lower is an audio subsystem, and it is exactly the system that will use this audio jack.It comprises MIC bias pin and MIC pin, and wherein the MIC bias pin connects an external resistor, and the MIC pin connects an external capacitor, and the node of this capacitor and this resistor is connected to the MIC pin that this audio jack detects switching device shifter.
The below further describes the detection principle:
After receiving the enable signal of baseband processor, this detection switching device shifter begins to detect.At first detect GND/MIC1 and be connected whether connected audio jack with GND/MIC2, wherein, the state that does not connect audio jack is called float (float, or open), in the situation that has connected audio jack, can further determine its pin state.For example, this can realize by the voltage that detects between 3 utmost points and 4 utmost points.For example, can between GND/MIC1 and VDD, connect an inside or non-essential resistance, for example be about 40k, can record a magnitude of voltage between GND/MIC1 and the GND/MIC2 this moment, judge according to the large I of this magnitude of voltage whether the signal condition between 3 utmost points and 4 utmost points floats for opening (open), perhaps being called.That in addition, can judge that pin 3 or pin 4 connect according to the voltage between 3 utmost points and 4 utmost points is MIC.For example, can be to approach or equal VDD according to measured power supply, still be approximately 0.7 (being generally about 0.4~1v) and judge.If record a certain pin for not with the audio jack of MIC, then this moment, state was short circuit (short).
Certainly be not limited to adopt the mode of above-mentioned measuring voltage to record the signal access state of 3 utmost points and 4 utmost points, can also record its state according to its impedance, no longer describe in detail herein.In addition, the input pin that this device illustrates herein is two, and a plurality of pins of varying number obviously also can be set according to no situation.
According to the pin state that detects, detecting unit is exported corresponding control signal, by the oscillator logic unit, switch and to enable timing unit and drive switch unit and switch.In this embodiment, switch unit is that two groups of diverter switch s1 and s2 (for example, can be cross point switches (crosspoint switch).Wherein, first group of diverter switch comprises: a stiff end, this stiff end are connected to the signal transmission ends that this video detects switching device shifter; The first and second switch terminal are connected to respectively GND/MIC1 and GND/MIC2.Second group of diverter switch comprises: a stiff end, this stiff end are connected to another signal output part that this video detects switching device shifter; The third and fourth switch terminal is connected to respectively GND/MIC1 and GND/MIC2, and wherein, this third and fourth switch terminal is electrically connected with the first switch terminal and the second switch terminal respectively.
For example, detecting under the first access state, to be connected to first signal transmission ends (being the MIC end) through the first switch terminal from the first access signal of GND/MIC1, will be connected to secondary signal transmission ends (being the GNDA end) through the 4th switch terminal from the second access signal of GND/MIC2.Otherwise, detecting under the second access state, to be connected to secondary signal transmission ends (being the GNDA end) through the 3rd switch terminal from the first access signal of GND/MIC1, and will be connected to first signal transmission ends (being the MIC end) through the second switch terminal from the second access signal of GND/MIC2.Realize in this way the switching to unlike signal.
As seen, for an audio system, the audio jack that no matter accesses belongs to Unite States Standard or OMTP standard, can use.
Audio jack shown in this embodiment detects switching device shifter and comprises that oscillator logic unit, measurement unit and switching enable timing unit, but the present invention is not limited to this execution mode, for example, also can only control the action of switch unit by the direct output switching control signal of detecting unit, and need not the oscillator logic unit and switching enables timing unit.
4 testing processes that further describe one embodiment of the invention with reference to the accompanying drawings.
Fig. 4 is the audio jack detection changing method schematic flow sheet according to an embodiment of invention.
As shown in Figure 4, this audio jack detects changing method, comprising: detect the signal access state of a plurality of pins of the audio jack that connects, according to testing result output control signal; According to this control signal, described a plurality of pins of described audio jack are switched to respectively the signal transmission ends corresponding with its signal access state.
Wherein, described a plurality of pins comprise the first pin and the second pin, and described signal transmission ends comprises for the first signal transmission ends that is connected with the first signal treatment circuit and the secondary signal transmission ends that is connected being connected with the secondary signal treatment circuit; When detecting described the first pin and be in access first signal and described the second pin and be in the first access state of access secondary signal, according to described control signal, described the first pin is connected to described first signal transmission ends, described the second pin is connected to described secondary signal transmission ends; When detecting described the first pin and be in access secondary signal and described the second pin and be in the second access state of access first signal, according to described control signal, described the first pin is connected to described secondary signal transmission ends, described the second pin is connected to described first signal transmission ends.
Wherein, when described the first access state, described the first pin is connected to described first signal transmission ends, described the second pin is connected to described secondary signal transmission ends; When described the second access state, described the second pin is connected to described first signal transmission ends, described the first pin is connected to described secondary signal transmission ends.
Wherein, under described the first access state, described audio jack forms the audio jack that meets the OMTP standard, and under described the second access state, described audio jack forms the audio jack that meets Unite States Standard.
Wherein, described control signal is controlled first an oscillator logic unit, outputting oscillation signal; Then the control switching enables timing unit output switching signal.
Wherein, whether the signal access state of a plurality of pins of the audio jack that connects of described detection: detecting described a plurality of pin is floating state if comprising; If described a plurality of pin is floating state, then checkout gear enters low-power consumption mode.
Wherein, whether the described a plurality of pins of described detection are that floating state may further comprise the steps: postponed for first scheduled time, the signal access state of described a plurality of pins is repeatedly sampled; If sampled result is floating state, then checkout gear enters low power consumpting state; If comprise non-floating state in the sampled result, judge then whether the sampling time finish, if the sampling time does not finish, then continue sampling to detect floating state; If the non-floating state duration reaches the scheduled time in the sampled result, then checkout gear enters follow-up non-low-power consumption sample phase.
Wherein, in the described follow-up non-low-power consumption sample phase, according to sampled result, the output corresponding control signal makes described a plurality of pins of described audio jack switch to respectively the signal transmission ends corresponding with its signal access state.
Wherein, described follow-up non-low-power consumption sample phase comprises: what detect that described a plurality of pin connects is audio jack with MIC; And the quantity of the low-frequency noise of the initial parameter value of detect setting and described a plurality of pins, if the initial parameter value of setting in the given time quantity unchanged or low-frequency noise be in preset range, then checkout gear returns to low-power consumption mode; Be in outside the preset range if detect the quantity of low-frequency noise signal, then judge the signal access state of described a plurality of pins, described a plurality of pins are switched to respectively the signal transmission ends corresponding with its signal access state.
Wherein, if described initial value changes, then detect high-frequency signal, determine whether to exist noise according to high-frequency noise quantity, if exist noise then to be written into new value, and low frequency signal is counted, if low frequency signal quantity is in preset range, then checkout gear returns to low-power consumption mode; If low frequency value is not to be in a certain preset range, then judge the signal access state of described a plurality of pins, analog value is loaded in the comparison circuit, according to this loaded value, the output control signal.
Fig. 5 is the part flow chart that detects changing method according to the audio jack of an embodiment of invention.
After this checkout gear receives enable signal, begin audio jack is detected automatically.Based on the access signal that detects, export corresponding control signal, the action of control switch unit is connected to audio system with the corresponding utmost point.
For example, for the cellphone subscriber, wish that mobile phone carries out work with lower power consumption, and can make mobile phone (MP3, MP4 etc.) with alap power consumption work according to detection method of the present invention.
The below specifically describes according to an embodiment of the invention testing process.
At first, open detection circuit;
Detecting floating state, is floating state if detect end to be detected, and then this device enters low-power consumption mode, and its time is tPOLE;
Switch A condition in detecting unit is for to open in the situation of (OPEN), and debounce is moved 1ms (that is, this 1ms time is the stand-by period);
Sample three moment (tSAMPLE represents constantly to be respectively 0.5,0.75,1.0);
If three sample states, then enter low power consumpting state (under this state, can closed portion components and parts) all for floating; Otherwise, check and whether should finish detection time, if the time does not arrive, then continue to detect floating state.TDET/2 shown in the figure is 25ms, obviously also can adopt other numerical value, and this depends on the needs of design.Wherein, tDET is total detection time, can be divided into the first detection-phase and the second detection-phase this detection time, for example, for the situation that tDET is 50ms is set, can carry out a plurality of circulations, and wherein be 1ms each circulation timei.
The below is described further above-mentioned testing process: whether in above-mentioned testing process, at first detecting described a plurality of pin is floating state;
If described a plurality of pin is floating state, then checkout gear enters low-power consumption mode.
Wherein, whether the described a plurality of pins of described detection are that floating state may further comprise the steps:
Postponed for first scheduled time, the signal access state of described a plurality of pins is repeatedly sampled;
If sampled result is floating state, then checkout gear enters low power consumpting state;
If comprise non-floating state in the sampled result, judge then whether the sampling time finish, if the sampling time does not finish, then continue the sample detecting floating state;
If non-floating state reaches the scheduled time in the sampled result, then checkout gear enters the subsequent sampling stage.
Described subsequent sampling is in the stage, and according to sampled result, the output corresponding control signal makes described a plurality of pins of described audio jack switch to respectively the signal transmission ends corresponding with its signal access state.
Subsequent detection step such as accompanying drawing 5 left side tDET/2=25ms frames are shown below:
Comprising:
Detect the 4th utmost point (short, earphone are not with MIC), internal switch A closes, and debounce is moved 1ms, beginning timing (maximum is MAX);
The comparator of inner comparison circuit arranges initial value (A=COM1, B=COM2), processes according to the situation of change of value: if value does not change, then withdraw from detection; If value changes, then high frequency is detected and counts (count value increases progressively), if there is noise, the tDET/2 that then resets is written into new value among A and the B.Record low frequency signal value (count value increases progressively).Within maximum detection time, if detection is not complete, then proceed to detect; If maximum time arrives, detect and finish, judge whether the low frequency count value is in a certain preset range (as greater than 34, less than 54) (can judge this moment is because the mistake that the GSM noise causes), and then checkout gear returns to low-power consumption mode this moment; If low frequency value is not to be in (can judge this moment is because the mistake that audio frequency causes) in the above-mentioned a certain preset range, then judge the 4th MIC+ very, MIC+ value is loaded among A, the B removing GSM count value.Withdraw from detection, according to this loaded value, the output control signal.
Attention:
1) in detecting the testing process of the 4th utmost point, in each clock recycle ratio than A, B;
2) based on the typ oscillator, if code is written into, so that three samplings, the time is 25 times, then Ok.Please do not close detection between three sampling times, this will cause pop-n-click.If tDET changes, then it will OK, to have the sampling time (take ms as unit).
3) when withdrawing from detection, save value COM2 (A, B), forbidding detects, and with check circuit and MIC and GND switch isolation.
Detection method according to the above embodiment of the present invention has following advantage:
When detecting when floating, equipment will enter low-power mode (duration tPOLE); After tPOLE, equipment can detect again; Float if again detect, then continue the low-power mode circulation; If this detection is to reach the non-of 25ms to float, then equipment moves to the stage 2 of detection; Float if constantly identify, then the equipment acquiescence is returned low power state; Circuit is merged together sample states and detected state, thereby simplifies Digital Design and for not impact of board design; This circuit can detect floating and accelerate to 2ms from 15ms, and reduces (floating) electric current of always floating.
Fig. 6 is the MIC/GND cross point switches schematic diagram according to prior art.
The main distinction of this device and device of the present invention is that it does not detect or automatic switching function.
More than take the audio jack detection as example, described audio jack and detected switching device shifter and method.Obviously, technical scheme of the present invention is not limited to this.Audio jack of the present invention detects switching device shifter and method can also be applicable to video plug, and this is readily appreciated that to those skilled in the art.
Technical scheme of the present invention realized in the audio system of various criterion can general two kinds of various criterions audio jack, and can reduce the power consumption of device, reduce simultaneously System Programming, strengthen Systems balanth.
Be embodiments of the invention only below, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within the claim scope of the present invention.

Claims (17)

1. a Media Stream plug detects switching device shifter, it is characterized in that, comprising:
Detecting unit is for detection of the signal access state of a plurality of pins of the Media Stream plug that connects, according to testing result output control signal;
Switch unit according to this control signal, switches to respectively the signal transmission ends corresponding with its signal access state with described a plurality of pins of described Media Stream plug.
2. Media Stream plug according to claim 1 detects switching device shifter, it is characterized in that:
Described a plurality of pin comprises the first pin and the second pin, and described signal transmission ends comprises for the first signal transmission ends that is connected with the first signal treatment circuit and the secondary signal transmission ends that is connected being connected with the secondary signal treatment circuit;
Described detecting unit is when detecting described the first pin and be in access first signal and described the second pin and be in the first access state of access secondary signal, described switch unit is according to described control signal, described the first pin is connected to described first signal transmission ends, described the second pin is connected to described secondary signal transmission ends;
Described detecting unit is when detecting described the first pin and be in access secondary signal and described the second pin and be in the second access state of access first signal, described switch unit is according to described control signal, described the first pin is connected to described secondary signal transmission ends, described the second pin is connected to described first signal transmission ends.
3. Media Stream plug according to claim 1 detects switching device shifter, it is characterized in that described switch unit comprises:
The first diverter switch comprises the first switch terminal and the second switch terminal;
The second diverter switch comprises the 3rd switch terminal and the 4th switch terminal that are electrically connected with the first switch terminal and the second switch terminal respectively,
When described the first access state, described the first diverter switch is connected to described first signal transmission ends with described the first pin through described the first switch terminal, and described the second diverter switch is connected to described secondary signal transmission ends with described the second pin through described the 4th switch terminal;
When described the second access state, described the first diverter switch is connected to described first signal transmission ends with described the second pin through described the second switch terminal, and described the second diverter switch is connected to described secondary signal transmission ends with described the first pin through described the 3rd switch terminal.
4. Media Stream plug according to claim 3 detects switching device shifter, it is characterized in that:
Described the first diverter switch comprises the first stiff end, and it is connected to the described first signal transmission ends of this detection switching device shifter;
Described the second diverter switch comprises the second stiff end, and it is connected to the described secondary signal transmission ends of this detection switching device shifter.
5. Media Stream plug according to claim 4 detects switching device shifter, it is characterized in that:
Described the second stiff end is earth terminal,
The resistance value of described the first diverter switch is less than 5 ohm, and the resistance value of described the second diverter switch is less than 200 milliohms.
6. Media Stream plug according to claim 3 detects switching device shifter, it is characterized in that:
Described Media Stream plug is audio jack, and under described the first access state, described audio jack forms the audio jack that meets the OMTP standard, and under described the second access state, described audio jack forms the audio jack that meets Unite States Standard.
7. Media Stream plug according to claim 1 detects switching device shifter, it is characterized in that:
Described detection switch unit also comprises:
The oscillator logic unit is used for according to described control signal outputting oscillation signal;
Switching enables timing unit, is used for the oscillator signal output switching signal according to described output.
8. Media Stream plug according to claim 2 detects switching device shifter, it is characterized in that:
Described first signal treatment circuit is the circuit that uses described Media Stream plug being used for of detecting that switching device shifter connects the audio system of this Media Stream plug with being connected the secondary signal treatment circuit.
9. a Media Stream plug detects changing method, it is characterized in that, comprising:
Detect the signal access state of a plurality of pins of the Media Stream plug that connects, according to testing result output control signal;
According to this control signal, described a plurality of pins of described Media Stream plug are switched to respectively the signal transmission ends corresponding with its signal access state.
10. Media Stream plug according to claim 9 detects changing method, it is characterized in that:
Described a plurality of pin comprises the first pin and the second pin, and described signal transmission ends comprises for the first signal transmission ends that is connected with the first signal treatment circuit and the secondary signal transmission ends that is connected being connected with the secondary signal treatment circuit;
When detecting described the first pin and be in access first signal and described the second pin and be in the first access state of access secondary signal, according to described control signal, described the first pin is connected to described first signal transmission ends, described the second pin is connected to described secondary signal transmission ends;
When detecting described the first pin and be in access secondary signal and described the second pin and be in the second access state of access first signal, according to described control signal, described the first pin is connected to described secondary signal transmission ends, described the second pin is connected to described first signal transmission ends.
11. Media Stream plug according to claim 10 detects changing method, it is characterized in that:
Under described the first access state, described audio jack forms the audio jack that meets the OMTP standard, and under described the second access state, described audio jack forms the audio jack that meets Unite States Standard.
12. Media Stream plug according to claim 9 detects changing method, it is characterized in that:
Described control signal is controlled first an oscillator logic unit, outputting oscillation signal; Then the control switching enables timing unit output switching signal.
13. Media Stream plug according to claim 9 detects changing method, it is characterized in that the signal access state of a plurality of pins of the Media Stream plug that described detection connects comprises:
Whether detect described a plurality of pin is floating state;
If described a plurality of pin is floating state, then checkout gear enters low-power consumption mode.
14. Media Stream plug according to claim 13 detects changing method, it is characterized in that whether the described a plurality of pins of described detection are that floating state may further comprise the steps:
Postponed for first scheduled time, the signal access state of described a plurality of pins is repeatedly sampled;
If sampled result is floating state, then checkout gear enters low power consumpting state;
If comprise non-floating state in the sampled result, judge then whether the sampling time finish, if the sampling time does not finish, then continue sampling to detect floating state;
If the non-floating state duration reaches the scheduled time in the sampled result, then checkout gear enters follow-up non-low-power consumption sample phase.
15. Media Stream plug according to claim 14 detects changing method, it is characterized in that,
In the described follow-up non-low-power consumption sample phase, according to sampled result, the output corresponding control signal makes described a plurality of pins of described Media Stream plug switch to respectively the signal transmission ends corresponding with its signal access state.
16. Media Stream plug according to claim 14 detects changing method, it is characterized in that described follow-up non-low-power consumption sample phase comprises:
Detect described Media Stream plug and be the Media Stream plug with MIC; And
The quantity of the initial parameter value of detect setting and the low-frequency noise of described a plurality of pins, if the initial parameter value of setting in the given time quantity unchanged or low-frequency noise be in preset range, then checkout gear returns to low-power consumption mode; Be in outside the preset range if detect the quantity of low-frequency noise signal, then judge the signal access state of described a plurality of pins, described a plurality of pins are switched to respectively the signal transmission ends corresponding with its signal access state.
17. Media Stream plug according to claim 16 detects changing method, it is characterized in that:
If described initial parameter value changes, then detect high-frequency signal, determine whether to exist noise according to high-frequency noise quantity, if exist noise then to be written into new value, and low frequency signal counted, if low frequency signal quantity is in preset range, then checkout gear returns to low-power consumption mode; If low frequency value is not to be in a certain preset range, then judge the signal access state of described a plurality of pins, analog value is loaded in the comparison circuit, according to this loaded value, the output control signal.
CN201110207552.6A 2011-07-22 2011-07-22 Media stream plug detects switching device and its method Active CN102892065B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110207552.6A CN102892065B (en) 2011-07-22 2011-07-22 Media stream plug detects switching device and its method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110207552.6A CN102892065B (en) 2011-07-22 2011-07-22 Media stream plug detects switching device and its method

Publications (2)

Publication Number Publication Date
CN102892065A true CN102892065A (en) 2013-01-23
CN102892065B CN102892065B (en) 2018-01-19

Family

ID=47535396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110207552.6A Active CN102892065B (en) 2011-07-22 2011-07-22 Media stream plug detects switching device and its method

Country Status (1)

Country Link
CN (1) CN102892065B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103414981A (en) * 2013-07-17 2013-11-27 天地融科技股份有限公司 Device, method and terminal for recognizing audio interface pins
CN106648521A (en) * 2016-09-27 2017-05-10 北京小米移动软件有限公司 Terminal device operation method and apparatus
CN109273944A (en) * 2018-09-13 2019-01-25 Oppo(重庆)智能科技有限公司 Electronic equipment
CN109756732A (en) * 2018-12-28 2019-05-14 南通同洲电子有限责任公司 A kind of test device and test method automatically switching left and right acoustic channels output

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040264703A1 (en) * 2003-06-30 2004-12-30 Kabushiki Kaisha Toshiba Audio signal recording apparatus
US20070098184A1 (en) * 2005-10-26 2007-05-03 Nec Infronita Corporation Audio input/output device and method for switching input/output functions
CN201403185Y (en) * 2009-04-03 2010-02-10 工业和信息化部电信传输研究所 Earphone socket
CN201536413U (en) * 2009-10-19 2010-07-28 青岛海信移动通信技术股份有限公司 Headphone
CN201758417U (en) * 2010-08-25 2011-03-09 华为终端有限公司 Earphone compatible device and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040264703A1 (en) * 2003-06-30 2004-12-30 Kabushiki Kaisha Toshiba Audio signal recording apparatus
US20070098184A1 (en) * 2005-10-26 2007-05-03 Nec Infronita Corporation Audio input/output device and method for switching input/output functions
CN201403185Y (en) * 2009-04-03 2010-02-10 工业和信息化部电信传输研究所 Earphone socket
CN201536413U (en) * 2009-10-19 2010-07-28 青岛海信移动通信技术股份有限公司 Headphone
CN201758417U (en) * 2010-08-25 2011-03-09 华为终端有限公司 Earphone compatible device and mobile terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103414981A (en) * 2013-07-17 2013-11-27 天地融科技股份有限公司 Device, method and terminal for recognizing audio interface pins
WO2015007170A1 (en) * 2013-07-17 2015-01-22 天地融科技股份有限公司 Apparatus and method for identifying audio interface pin, and terminal
CN106648521A (en) * 2016-09-27 2017-05-10 北京小米移动软件有限公司 Terminal device operation method and apparatus
CN109273944A (en) * 2018-09-13 2019-01-25 Oppo(重庆)智能科技有限公司 Electronic equipment
CN109756732A (en) * 2018-12-28 2019-05-14 南通同洲电子有限责任公司 A kind of test device and test method automatically switching left and right acoustic channels output

Also Published As

Publication number Publication date
CN102892065B (en) 2018-01-19

Similar Documents

Publication Publication Date Title
CN102413239B (en) Mobile phone and method for detecting earphone mode of mobile phone
CN102892059B (en) GSM noise detecting circuit and method
CN102404666B (en) Audio connector detection device and method
US9103866B2 (en) Device plug detection apparatus and method
CN101102119B (en) A charging detection circuit of appliance device and charging detection method
CN107508586B (en) Ultra-low power consumption touch key circuit and use method thereof
CN104683916B (en) Circuit and method for detecting pins of microphone
CN208675514U (en) A kind of frequency switch circuit and electronic equipment
CN101841586A (en) Method for expanding earphone interface of mobile phone into serial communication interface
US20120019273A1 (en) No pin test mode
CN102892065A (en) Media stream plug detecting and shifting device and method thereof
CN103365389A (en) Method for performing power consumption control, and associated apparatus
CN104267781B (en) The reusable mobile terminal of docking station and its method of docking station multiplexing
CN103118191A (en) Using control method and mobile terminal for iPhone wire control earphone
CN201075704Y (en) Detection circuit of electrical equipment and mobile phone having the circuit
CN112261534A (en) Control circuit, method and electronic equipment
US9414176B2 (en) Accessory plug detection
CN102624957B (en) Detection system for earphone drive-by-wire button of mobile phone
CN201307924Y (en) Earphone detecting circuit and terminal device using earphone detecting device
CN208001364U (en) A kind of two-way microphone automatic switch-over circuit
CN204350278U (en) Communication device
CN104599672A (en) Audio encoder/decoder with audio insertion-connection detection capacity and audio insertion-connection detecting method
CN107800853B (en) Memory, mobile phone, audio circuit thereof and method for externally playing audio file
CN110165743A (en) Automatic load detection circuit and automatic load detection method
CN109769174A (en) Decision circuitry, method and the electronic equipment of earphone MIC positive and negative terminal

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
CP02 Change in the address of a patent holder

Address after: Arizona, USA

Patentee after: Ficho Semiconductor Co.

Address before: Maine

Patentee before: Ficho Semiconductor Co.

CP02 Change in the address of a patent holder