CN102892065B - Media stream plug detects switching device and its method - Google Patents
Media stream plug detects switching device and its method Download PDFInfo
- Publication number
- CN102892065B CN102892065B CN201110207552.6A CN201110207552A CN102892065B CN 102892065 B CN102892065 B CN 102892065B CN 201110207552 A CN201110207552 A CN 201110207552A CN 102892065 B CN102892065 B CN 102892065B
- Authority
- CN
- China
- Prior art keywords
- signal
- pin
- media stream
- switching
- transmission end
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Details Of Connecting Devices For Male And Female Coupling (AREA)
Abstract
A kind of media stream plug detection switching device and its method are provided, wherein, media stream plug detection switching device includes:Detection unit, the signal access state of multiple pins for detecting connected audio jack, according to testing result output control signal;Switch unit, according to the control signal, the multiple pin of the audio jack is switched to the signal transmission end corresponding with its signal access state respectively.The audio jack for being capable of general two kinds of various criterions in the audio system of various criterion is realized by technical scheme.
Description
Technical field
The present invention relates to a kind of media stream plug detection switching device and its method.
Background technology
Existing two kinds of audio jack standards be respectively OMTP (Open Mobile Terminal Platform, it is open
Mobile-terminal platform) standard and Unite States Standard.The audio jack of OMTP standards and Unite States Standard is as shown in figure 1, on the left of wherein
For OMPT standard plugs, it includes LSPKR, RSPKR, MIC, GND totally 4 poles (pole, pin).Right side is the sound of Unite States Standard
Frequency plug, it includes L SPKR, RSPKR, GND, MIC totally 4 pole.Due to the presence of both various criterions, cause to use one
The audio system of kind standard can only use the audio jack of standard corresponding with the standard, and this causes the limitation of application.For example, it is
The audio system of some country manufactures uses Unite States Standard, and is the audio system of other country manufacture
Using OMTP standards, this can increase manufacturing cost for producer, also very inconvenient for terminal user, for example,
It may need to reconfigure audio jack using 0 Ohmic resistance, otherwise can only be that specific earphone is equipped with specific audio jack.
For this reason, it may be necessary to provide a kind of can realize in the general method or apparatus in two kinds of different standard rooms.
The content of the invention
An object of the present invention is that providing a kind of media stream plug detects switching device, and it can be inserted according to Media Stream
The connection status of head switches over, and media stream plug and connected media streaming system is matched.
It is another object of the present invention to provide a kind of media stream plug to detect switching method, and it can be according to Media Stream
The connection status of plug switches over, and media stream plug is matched with connected media streaming system.
A kind of according to an aspect of the invention, there is provided media stream plug detection switching device, it is characterised in that bag
Include:Detection unit, the signal access state of multiple pins for detecting connected media stream plug are defeated according to testing result
Go out control signal;Switch unit, according to the control signal, by the multiple pin of the media stream plug switch to respectively with
The corresponding signal transmission end of its signal access state.
According to another aspect of the present invention, there is provided a kind of media stream plug detects switching method, it is characterised in that bag
Include:The signal access state of multiple pins of the connected media stream plug of detection, according to testing result output control signal;Root
According to the control signal, the multiple pin of the media stream plug is switched to respectively corresponding with its signal access state
Signal transmission end.
The defects of prior art is overcome by technical scheme, realize the media streaming system in various criterion
In be capable of the media stream plugs of general two kinds of various criterions.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is respectively according to the schematic diagram of OMTP standards and the audio jack of Unite States Standard;
Fig. 2 audio jack detection switching device module schematic diagrames according to an embodiment of the invention;
Fig. 3 audio jack detection switching devices according to an embodiment of the invention and its audio system detected, sound
The schematic diagram of frequency plug;
Fig. 4 is audio jack detection switching method schematic flow sheet according to an embodiment of the invention;
Fig. 5 is the partial process view of audio jack detection switching method according to an embodiment of the invention;And
Fig. 6 is to detect circuit diagram according to an audio jack of prior art.
Embodiment
Below with reference to the accompanying drawings, the embodiment of the present invention is described in detail.Below in an example mainly with audio
Illustrated exemplified by plug and audio system.
Fig. 2 is audio jack detection switching device module schematic diagram according to an embodiment of the invention.
As shown in Fig. 2 the audio jack detects switching device, including:Detection unit, the audio for detecting connected are inserted
The signal access state of multiple pins of head, according to testing result output control signal;Switch unit, according to the control signal,
The multiple pin of the audio jack is switched to the signal transmission end corresponding with its signal access state respectively.
Wherein, the multiple pin includes the first pin and second pin, and the signal transmission end includes being used for and first
The the first signal transmission end and the secondary signal transmission end for being connected with secondary signal process circuit of signal processing circuit connection;
The detection unit is detecting that first pin is in the first signal of access and the second pin is in and connect
When entering the first access state of secondary signal, according to testing result output control signal, the switch unit is according to the control
Signal, first pin is connected to the first signal transmission end, the second pin is connected to the secondary signal
Transmission end;
The detection unit is detecting that first pin is in access secondary signal and the second pin is in and connect
When entering the second access state of the first signal, according to testing result output control signal, the switch unit is according to the control
Signal, the secondary signal transmission end is connected to by first pin, and the second pin is connected into first signal
Transmission end.
Wherein, the switch unit is included (not shown in the concrete structure figure):First switching switch, including the first switching
End and the second switch terminal;Second switching switch, including the 3rd switching electrically connected respectively with the first switch terminal and the second switch terminal
End and the 4th switch terminal, in first access state, the first switching switch is by first pin through described first
Switch terminal is connected to the first signal transmission end, and the second switching switch is by the second pin through the 4th switch terminal
It is connected to the secondary signal transmission end;In second access state, first switching is switched the second pin
The first signal transmission end is connected to through second switch terminal, the second switching switch is by described in first pin warp
3rd switch terminal is connected to the secondary signal transmission end.
Wherein, the first switching switch, including the first fixing end, it is connected to described the first of the detection switching device
Signal transmission end;The second switching switch, including the second fixing end, it is connected to second letter of the detection switching device
Number transmission end.
Wherein, under first access state, the plug is formed as the audio jack for meeting OMTP standards, described
Under second access state, the plug is formed as the audio jack for meeting Unite States Standard.
Wherein, the detection switching device also includes:Oscillator logic unit, for being shaken according to control signal output
Swing signal;Enabled timing (sequential) unit of switching, for according to the outputting oscillation signal output switching signal.Wherein, it is described
First signal processing circuit and the secondary signal process circuit are being used for of being connected of audio jack detection switching device
Use the circuit in the audio system of the audio jack.
Wherein, second fixing end is earth terminal, and the impedance value of the first switching switch is less than 5 ohm, described the
The impedance value of two switching switches is less than 200 milliohms.
Fig. 3 audio jack detection switching devices according to an embodiment of the invention and its audio system detected, sound
The schematic diagram of frequency plug.
As shown in figure 3, audio jack detection switching device according to an embodiment of the invention includes:Oscillator logic list
Member, detection unit, the enabled timing unit of switching and switch unit, concrete structure are as follows.
As shown in figure 3, EN is enabled pin, it is connected with the GPIO pin of the BBP in left side, at base band
The enable signal that the GPIO pin of reason device is exported, audio jack detection switching device is set to proceed by detection.CEXT pins
GND pin is connected to by capacitor.GND and GNDA pins on chip are earth terminal.The GND/MIC1 and GND/ on right side
MIC2 is two input pins of the device, for connecting the pin of audio jack to be detected.
Right side shows a connected audio jack in Fig. 3, and it includes LSPKR, RSPKR, MIC, GND totally 4 pins,
302 represent the pin connectable to audio connector detection circuit (not shown) in figure.
Wherein, two pins of detection unit are respectively connecting to described two detection inputs, for in figure right side institute
3 poles and 4 poles for the audio jack shown are attached, it is possible thereby to detect the signal access state of 3 poles and 4 poles (according to the present invention
The access state of embodiment may include:Floating state (OPEN);Without the state of MIC (Mike), it is referred to as short-circuit (short), please
Pay attention to being different from usually said short circuit herein, be used only to represent a kind of connection status of pin;And connection MIC and ground connection
State), the switching action of switch unit is controlled according to the difference of signal access state.The detection unit and oscillator logic
Unit is connected, and oscillator logic unit is connected with switching enabled timing unit again.Detection unit is according to 3 poles and 4 poles detected
State, send corresponding control signal and give oscillator logic unit, the oscillator logic unit exports corresponding oscillator signal extremely
Enabled timing (timing) unit of switching, switches enabled timing unit output switching signal, acts switch unit, so as to by 3
Pole, 4 poles are connected with MIC, GNDA pin of the chip respectively.
Left side lower section is an audio subsystem in figure, and it seeks to the system using the audio jack.It includes MIC biasings
Pin and MIC pins, wherein MIC bias pins connect an external resistor, and MIC pins connect an external capacitor, the electric capacity
The Node connectedness of device and the resistor detects the MIC pins of switching device to the audio jack.
Cleaning Principle is described further below:
After the enable signal of BBP is received, the detection switching device proceeds by detection.Detect first
Whether GND/MIC1 and GND/MIC2 ends are connected to audio jack, wherein, the state for not connecting audio jack is referred to as floating
(float, or open), in the case where being connected to audio jack, it may further determine that its pin state.For example, this can be with
Realized by detecting the voltage between 3 poles and 4 poles.For example, it can be connected between GND/MIC1 and VDD electric inside or outside one
Resistance, for example, 40k or so, can now measure a magnitude of voltage between GND/MIC1 and GND/MIC2, according to the big I of the magnitude of voltage
Judge whether the signal condition between 3 poles and 4 poles is out (open), or it is referred to as floating.In addition, can be according between 3 poles and 4 poles
Voltage judge pin 3 or that pin 4 is connect is MIC.For example, can be to be close or equal to VDD according to measured power supply,
0.7 (generally 0.4~1v or so) is also about to judge.If it is the audio jack without MIC to measure a certain pin, this
When state be short-circuit (short).
It is certainly not limited to measure the signal access state of 3 poles and 4 poles by the way of above-mentioned measurement voltage, can be with root
Its state is measured according to its impedance, is no longer described in detail herein.In addition, device input pin shown herein is two, it is clear that also may be used
To set multiple pins of varying number according to no situation.
According to the pin state detected, detection unit exports corresponding control signal, by oscillator logic unit, cuts
Enabled timing unit is changed to drive switch unit to switch over.In this embodiment, switch unit be two groups of switchings switch s1 and
S2 is (for example, can be cross point switches (crosspoint switch).Wherein, first group of switching switch includes:One fixing end,
The fixing end is connected to a signal transmission end of the video detection switching device;First and second switch terminals, are respectively connecting to
GND/MIC1 and GND/MIC2.Second group of switching switch includes:One fixing end, the fixing end are connected to video detection switching dress
Another signal output part put;Third and fourth switch terminal, is respectively connecting to GND/MIC1 and GND/MIC2, wherein, the 3rd
Electrically connected respectively with the first switch terminal and the second switch terminal with the 4th switch terminal.
For example, in the case where detecting the first access state, by the first access signal from GND/MIC1 through the first switch terminal
The first signal transmission end (i.e. MIC ends) is connected to, the second access signal from GND/MIC2 is connected to through the 4th switch terminal
Secondary signal transmission end (i.e. GNDA ends).Conversely, in the case where detecting the second access state, by the first access from GND/MIC1
Signal is connected to secondary signal transmission end (i.e. GNDA ends) through the 3rd switch terminal, and second from GND/MIC2 is accessed into signal
The first signal transmission end (i.e. MIC ends) is connected to through the second switch terminal.The switching to unlike signal is realized in this way.
It can be seen that for an audio system, the audio jack no matter accessed belongs to Unite States Standard or OMTP standards, all
It can use.
The audio jack detection switching device shown in the embodiment, which includes oscillator logic unit, survey unit and switching, to be made
Energy timing unit, but the present invention is not limited to this embodiment, for example, it is also possible to only by the direct outputting cutting of detection unit
Control signal is changed to control the action of switch unit, without oscillator logic unit and the enabled timing unit of switching.
4 testing process for further describing one embodiment of the invention with reference to the accompanying drawings.
Fig. 4 is to detect switching method schematic flow sheet according to the audio jack of invention one embodiment.
As shown in figure 4, the audio jack detects switching method, including:Multiple pins of the connected audio jack of detection
Signal access state, according to testing result output control signal;According to the control signal, by the described more of the audio jack
Individual pin switches to the signal transmission end corresponding with its signal access state respectively.
Wherein, the multiple pin includes the first pin and second pin, and the signal transmission end includes being used for and first
The the first signal transmission end and the secondary signal transmission end for being connected with secondary signal process circuit of signal processing circuit connection;
In the first access for detecting that first pin is in the first signal of access and the second pin is in access secondary signal
During state, according to the control signal, first pin is connected to the first signal transmission end, by the second pin
It is connected to the secondary signal transmission end;Accessed detecting that first pin is at secondary signal and the second pin
When the second access state of the first signal is accessed, according to the control signal, first pin is connected to described second
Signal transmission end, the second pin is connected to the first signal transmission end.
Wherein, in first access state, first pin is connected to the first signal transmission end, by institute
State second pin and be connected to the secondary signal transmission end;In second access state, the second pin is connected to
The first signal transmission end, first pin is connected to the secondary signal transmission end.
Wherein, under first access state, the audio jack is formed as the audio jack for meeting OMTP standards,
Under second access state, the audio jack is formed as the audio jack for meeting Unite States Standard.
Wherein, the control signal first controls an oscillator logic unit, outputting oscillation signal;Then control switching is enabled
Timing unit output switching signal.
Wherein, the signal access state of multiple pins of the connected audio jack of the detection includes:Detect described more
Whether individual pin is floating state;If the multiple pin is floating state, detection means enters low-power consumption mode.
Wherein, whether the multiple pin of detection is that floating state comprises the following steps:Postponed for first scheduled time,
Multiple repairing weld is carried out to the signal access state of the multiple pin;If sampled result is floating state, detection means is entered
Enter low power consumpting state;If including non-floating state in sampled result, judge whether the sampling time terminates, if the sampling time does not tie
Beam, then continue sampling to detect floating state;If the non-floating state duration reaches the scheduled time in sampled result, detect
Device enters follow-up non-low-power consumption sample phase.
Wherein, in the follow-up non-low-power consumption sample phase, according to sampled result, corresponding control signal is exported, is made described
The multiple pin of audio jack switches to the signal transmission end corresponding with its signal access state respectively.
Wherein, the follow-up non-low-power consumption sample phase includes:Detect the multiple pin connection is the sound with MIC
Frequency plug;And the quantity of the initial parameter value of setting and the low-frequency noise of the multiple pin is detected, if the initial ginseng of setting
Unchanged or low-frequency noise quantity is in preset range to numerical value in the given time, then detection means returns to low-power consumption mould
Formula;If detecting, the quantity of low-frequency noise signal is in outside preset range, judges the signal access of the multiple pin
State, the multiple pin is switched to the signal transmission end corresponding with its signal access state respectively.
Wherein, if the initial value changes, high-frequency signal is detected, is determined whether there is and made an uproar according to high-frequency noise quantity
Sound, the loading of new values if it noise be present, and low frequency signal is counted, if low frequency signal quantity is in preset range, examine
Survey device and return to low-power consumption mode;If low frequency value is not in a certain preset range, the multiple pin is judged
Signal access state, analog value is loaded into comparison circuit, according to the loaded value, output control signal.
Fig. 5 is the partial process view that switching method is detected according to the audio jack of invention one embodiment.
After the detection means receives enable signal, start to carry out automatic detection to audio jack.Based on what is detected
Signal is accessed, corresponding control signal is exported, controls the action of switch unit, corresponding pole is connected to audio system.
For example, for cellphone subscriber, it is desirable to mobile phone is operated with relatively low power consumption, and according to the detection method of the present invention
Mobile phone (MP3, MP4 etc.) can be made to be worked with alap power consumption.
Testing process according to an embodiment of the invention is detailed below.
First, open detection circuit;
Floating state is detected, end to be detected is floating state if detecting, the device enters low-power consumption mode, its time
For tPOLE;
A switch A condition in detection unit is that (that is, the 1ms times are Key dithering 1ms in the case of opening (OPEN)
Stand-by period);
Sampled three moment (tSAMPLE expression moment, respectively 0.5,0.75,1.0);
If three sample states are all floating, (the first device in part in this condition, can be closed into low power consumpting state
Part);Otherwise, check whether that the detection time is over, if having not timed out, continue to detect floating state.Shown in figure
TDET/2 is 25ms, it is clear that can also use other numerical value, this depends on the needs of design.Wherein, tDET is total detection time,
The detection time can be divided into the first detection-phase and the second detection-phase, for example, in the case of it is 50ms to set tDET, can be with
Multiple circulations are carried out, wherein each circulation time is 1ms.
Above-mentioned detection process is described further below:In above-mentioned detection process, detect first the multiple
Whether pin is floating state;
If the multiple pin is floating state, detection means enters low-power consumption mode.
Wherein, whether the multiple pin of detection is that floating state comprises the following steps:
Postponed for first scheduled time, multiple repairing weld is carried out to the signal access state of the multiple pin;
If sampled result is floating state, detection means enters low power consumpting state;
If including non-floating state in sampled result, judge whether the sampling time terminates, if the sampling time does not terminate,
Continue sample detecting floating state;
If non-floating state reaches the scheduled time in sampled result, detection means enters the subsequent sampling stage.
In the subsequent sampling stage, according to sampled result, corresponding control signal is exported, makes the described of the audio jack
Multiple pins switch to the signal transmission end corresponding with its signal access state respectively.
The following detection step such as left side tDET/2=25ms frames of accompanying drawing 5 are as shown below:
Including:
The 4th pole (short, earphone is without MIC) is detected, internal switch A is closed, and Key dithering 1ms, starts timing (maximum
For MAX);
The comparator of internal comparison circuit sets initial value (A=COM1, B=COM2), is carried out according to the situation of change of value
Processing:If value does not change, detection is exited;If value changes, (count) is detected and counted to high frequency, if
Noise be present, then reset loading of new values in tDET/2, A and B.Record low frequency signal value (count).When maximum detects
In, if detection is not complete, continue to detect;If maximum time arrives, detection terminates, and now judges whether low frequency count value is located
In a certain preset range, (such as larger than 34, less than 54) (now can determine whether out to be due to mistake caused by GSM noises), then detection fills
Put and return to low-power consumption mode;If low frequency value is not in above-mentioned a certain preset range
It is wrong caused by audio), then judge the 4th extremely MIC+, MIC+ values are loaded into A, B, remove GSM count values.Exit inspection
Survey, according to the loaded value, output control signal.
Pay attention to:
1) in the detection process for detecting the 4th pole, A, B are compared in each dock cycles;
2) typ oscillators are based on, if code is written into, to sample three times, the time is 25 times, then Ok.Please should not be
Detection is closed between the sampling time three times, this will cause pop-n-click.If tDET changes, its will OK, with adopting
The sample time (in units of ms).
3) when exiting detection, save value COM2 (A, B), disabling detection, and will check circuit and MIC and GND switch every
From.
Detection method according to the above embodiment of the present invention, has the advantage that:
When detecting floating, equipment will enter low-power mode (duration tPOLE);After tPOLE, equipment meeting
Detected again;If floating, continuation low-power mode circulation is detected again;If the detection is up to the non-of 25ms
Floating, then equipment moves to the stage 2 of detection;If constantly identify floating, equipment acquiescence return low power state;Circuit
By sample states with detecting status merging together with, do not influenceed for board design so as to simplify Digital Design;The circuit
Floating detection can be accelerated to 2ms from 15ms, and reduce total floating (floating) electric current.
Fig. 6 is the MIC/GND cross point switches schematic diagrames according to prior art.
The main distinction of the device and the device of the present invention is its not detection or automatic switching function.
Above so that audio jack detects as an example, audio jack detection switching device and method are described.Obviously, it is of the invention
Technical scheme is not limited to this.The audio jack detection switching device and method of the present invention can be applicable to video plug, this
It is readily appreciated that to those skilled in the art.
Technical scheme realizes the sound for being capable of general two kinds of various criterions in the audio system of various criterion
Frequency plug, and the power consumption of device can be reduced, while reduce System Programming, the stability of strengthening system.
Embodiments of the invention are these are only, are not intended to limit the invention, are come for those skilled in the art
Say, the present invention there can be various modifications and variations.Within the spirit and principles of the invention, it is any modification for being made, equivalent
Replace, improve etc., it should be included within scope of the presently claimed invention.
Claims (15)
1. a kind of media stream plug detects switching device, it is characterised in that including:
Detection unit, the signal access state of multiple pins for detecting connected media stream plug, according to testing result
Output control signal;
Oscillator logic unit, for according to the control signal outputting oscillation signal;
The enabled timing unit of switching, for the oscillator signal output switching signal according to the output;And
Switch unit, according to the switching signal, the multiple pin of the media stream plug is switched to respectively and believed with it
Number corresponding signal transmission end of access state.
2. media stream plug according to claim 1 detects switching device, it is characterised in that:
The multiple pin includes the first pin and second pin, and the signal transmission end includes being used for and the first signal transacting electricity
The the first signal transmission end and the secondary signal transmission end for being connected with secondary signal process circuit of road connection;
The detection unit is detecting that first pin is in the first signal of access and the second pin is in access the
During the first access state of binary signal, first pin is connected to described by the switch unit according to the switching signal
First signal transmission end, the second pin is connected to the secondary signal transmission end;
The detection unit is detecting that first pin is in access secondary signal and the second pin is in access the
During the second access state of one signal, first pin is connected to described by the switch unit according to the switching signal
Secondary signal transmission end, the second pin is connected to the first signal transmission end.
3. media stream plug according to claim 2 detects switching device, it is characterised in that the switch unit includes:
First switching switch, including the first switch terminal and the second switch terminal;
Second switching switch, including the 3rd switch terminal electrically connected respectively with the first switch terminal and the second switch terminal and the 4th switching
End,
In first access state, first pin is connected to by the first switching switch through first switch terminal
The second pin is connected to described the by the first signal transmission end, the second switching switch through the 4th switch terminal
Binary signal transmission end;
In second access state, the second pin is connected to by the first switching switch through second switch terminal
First pin is connected to described the by the first signal transmission end, the second switching switch through the 3rd switch terminal
Binary signal transmission end.
4. media stream plug according to claim 3 detects switching device, it is characterised in that:
The first switching switch, including the first fixing end, it is connected to first signal transmission of the detection switching device
End;
The second switching switch, including the second fixing end, it is connected to the secondary signal transmission of the detection switching device
End.
5. media stream plug according to claim 4 detects switching device, it is characterised in that:
Second fixing end is earth terminal,
The impedance value of the first switching switch is less than 5 ohm, and the impedance value of the second switching switch is less than 200 milliohms.
6. media stream plug according to claim 3 detects switching device, it is characterised in that:
The media stream plug is audio jack, and under first access state, the audio jack is formed as meeting OMTP
The audio jack of standard, under second access state, the audio jack is formed as the audio jack for meeting Unite States Standard.
7. media stream plug according to claim 2 detects switching device, it is characterised in that:
First signal processing circuit and the secondary signal process circuit are the media stream plug detection switching device institutes
The circuit being used in the audio system using the media stream plug of connection.
8. a kind of media stream plug detects switching method, it is characterised in that including:
The signal access state of multiple pins of the connected media stream plug of detection, according to testing result output control signal;
The control signal first controls an oscillator logic unit, outputting oscillation signal;Then the enabled timing unit of control switching
According to the oscillator signal output switching signal;And
According to the switching signal, the multiple pin of the media stream plug is switched to and its signal access state respectively
Corresponding signal transmission end.
9. media stream plug according to claim 8 detects switching method, it is characterised in that:
The multiple pin includes the first pin and second pin, and the signal transmission end includes being used for and the first signal transacting electricity
The the first signal transmission end and the secondary signal transmission end for being connected with secondary signal process circuit of road connection;
Detecting that first pin is in the first signal of access and the second pin is in and accesses the first of secondary signal
During access state, according to the switching signal, first pin is connected to the first signal transmission end, by described second
Pin is connected to the secondary signal transmission end;
Detecting that first pin is in access secondary signal and the second pin is in and accesses the second of the first signal
During access state, according to the switching signal, first pin is connected to the secondary signal transmission end, by described second
Pin is connected to the first signal transmission end.
10. media stream plug according to claim 9 detects switching method, it is characterised in that:
Under first access state, the media stream plug is formed as the audio jack for meeting OMTP standards, described
Under two access states, the media stream plug is formed as the audio jack for meeting Unite States Standard.
11. media stream plug according to claim 8 detects switching method, it is characterised in that described to detect what is connected
The signal access state of multiple pins of media stream plug includes:
Detect whether the multiple pin is floating state;
If the multiple pin is floating state, detection means enters low-power consumption mode.
12. media stream plug according to claim 11 detects switching method, it is characterised in that the detection is the multiple
Whether pin is that floating state comprises the following steps:
Postponed for first scheduled time, multiple repairing weld is carried out to the signal access state of the multiple pin;
If sampled result is floating state, detection means enters low power consumpting state;
If including non-floating state in sampled result, judge whether the sampling time terminates, if the sampling time does not terminate, continue
Sample to detect floating state;
If the non-floating state duration reaches the scheduled time in sampled result, detection means enters follow-up non-low-power consumption sampling
Stage.
13. media stream plug according to claim 12 detects switching method, it is characterised in that
In the follow-up non-low-power consumption sample phase, according to sampled result, corresponding control signal is exported, and pass through the oscillator
Logic unit and the enabled timing unit of switching come drive the multiple pin of the media stream plug switch to respectively with
The corresponding signal transmission end of its signal access state.
14. media stream plug according to claim 12 detects switching method, it is characterised in that the follow-up non-low-power consumption
Sample phase includes:
It is the media stream plug with MIC to detect the media stream plug;And
The quantity of the initial parameter value of setting and the low-frequency noise of the multiple pin is detected, if the initial parameter value of setting is pre-
Interior unchanged or low-frequency noise quantity of fixing time is in preset range, then detection means returns to low-power consumption mode;If inspection
The quantity for measuring low-frequency noise signal is in outside preset range, then judges the signal access state of the multiple pin, will
The multiple pin switches to the signal transmission end corresponding with its signal access state respectively.
15. media stream plug according to claim 14 detects switching method, it is characterised in that:
If the initial parameter value changes, high-frequency signal is detected, noise is determined whether there is according to high-frequency noise quantity, if
Noise then loading of new values be present, and low frequency signal is counted, if low frequency signal quantity is in preset range, detection means
Return to low-power consumption mode;If low frequency value is not in a certain preset range, the signal of the multiple pin is judged
Access state, analog value is loaded into comparison circuit, according to the loaded value, output control signal.
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 CN102892065A (en) | 2013-01-23 |
CN102892065B true 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) |
Families Citing this family (4)
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 |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005026868A (en) * | 2003-06-30 | 2005-01-27 | Toshiba Corp | Sound signal recorder |
JP4143635B2 (en) * | 2005-10-26 | 2008-09-03 | Necインフロンティア株式会社 | Audio input / output device and input / output function switching method |
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 |
-
2011
- 2011-07-22 CN CN201110207552.6A patent/CN102892065B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN102892065A (en) | 2013-01-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102892061B (en) | Circuit and method for the filtering of MIC audio-frequency noise | |
CN102892065B (en) | Media stream plug detects switching device and its method | |
JP5020546B2 (en) | Charge / discharge protection circuit, battery pack incorporating the charge / discharge protection circuit, electronic device using the battery pack, portable game machine | |
US9103866B2 (en) | Device plug detection apparatus and method | |
CN102413239A (en) | Mobile phone and method for detecting earphone mode of mobile phone | |
KR101848695B1 (en) | No pin test mode | |
CN104584584A (en) | Headset type detection and configuration techniques | |
GB2544830A (en) | Accessory detection | |
CN201075704Y (en) | Detection circuit of electrical equipment and mobile phone having the circuit | |
US9414176B2 (en) | Accessory plug detection | |
US11729566B2 (en) | Judging circuit for positive and negative terminals of mic of earphone and method thereof, and eletronic device | |
CN113156244B (en) | Method and device for testing charging device, electronic device and storage medium | |
CN107181645A (en) | A kind of intelligent household control terminal WiFi communication test system | |
CN105896662A (en) | Single-port mobile power control circuit and control method thereof | |
CN216057495U (en) | Bluetooth headset test control circuit and device | |
CN107948386A (en) | Speech quality detecting system and method | |
CN114598965B (en) | Audio power amplifier circuit and earphone | |
CN206517395U (en) | A kind of wireless speakerses and radio broadcast unit | |
US20040076286A1 (en) | Telephone circuit with a small, low-power ring trip monitor |
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 | ||
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. |