CN105142072B - A kind of audio devices and audio frequency playing method of external player - Google Patents
A kind of audio devices and audio frequency playing method of external player Download PDFInfo
- Publication number
- CN105142072B CN105142072B CN201510635799.6A CN201510635799A CN105142072B CN 105142072 B CN105142072 B CN 105142072B CN 201510635799 A CN201510635799 A CN 201510635799A CN 105142072 B CN105142072 B CN 105142072B
- Authority
- CN
- China
- Prior art keywords
- audio
- earphone
- module
- interface module
- player
- 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
- 238000000034 method Methods 0.000 title claims abstract description 16
- 230000003321 amplification Effects 0.000 claims abstract description 33
- 238000003199 nucleic acid amplification method Methods 0.000 claims abstract description 33
- 230000002093 peripheral effect Effects 0.000 claims abstract description 32
- 230000005236 sound signal Effects 0.000 claims abstract description 23
- 238000003780 insertion Methods 0.000 claims abstract description 22
- 230000037431 insertion Effects 0.000 claims abstract description 22
- 238000001514 detection method Methods 0.000 claims abstract description 21
- 238000010586 diagram Methods 0.000 description 4
- 206010034133 Pathogen resistance Diseases 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Landscapes
- Stereophonic Arrangements (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
The invention discloses the audio devices and audio frequency playing method of a kind of external player, audio devices include loudspeaker, interface module, audio-frequency module and amplification module;The peripheral hardware of the interface module detection insertion is earphone or player, detection is outer to be set as exporting earphone interrupt signal when earphone to audio-frequency module, and the audio-frequency module closes amplification module and output audio signal to interface module to drive earphone according to earphone interrupt signal;When detecting peripheral hardware is player, interface module disconnects the connection with loudspeaker, and audio-frequency module output audio signal is exported after amplification module amplifies by interface module, to drive player sounding;Without separately set external detection module can automatic distinguishing insertion be earphone or small speaker, can also directly drive external small speaker and play, circuit structure is simple, easy to implement and cost is relatively low.
Description
Technical field
The present invention relates to technical field of mobile terminals more particularly to a kind of audio devices and audio of external player
Playback method.
Background technique
Existing mobile terminal, frequently with three kinds of schemes when carrying out audio external play such as mobile phone: first is that pass through insertion earphone, by
Earphone plays audio;But only the user with earphone can be with acoustic.Second is that by built-in sound horn, but its volume
Limited size.By combining above-mentioned two situations, present more and more users use external player, play such as small speaker
Audio.In this way everybody can acoustic and volume be adjustable to it is bigger.
But when the external player of existing mobile terminal, since player and earphone are moved using plug insertion
The mode of terminal, need to be arranged external detection module to identify insertion is earphone or player, to increase external inspection
Survey the circuit structure and cost of module.
Thus the prior art could be improved and improve.
Summary of the invention
Place in view of above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide a kind of audio of external player dresses
It sets and audio frequency playing method, leads to increased costs to solve the problems, such as that existing mobile terminal needs to be arranged external detection module.
The technical proposal for solving the technical problem of the invention is as follows:
A kind of audio devices of external player, including loudspeaker further include interface module, audio-frequency module and amplification mould
Block;
The plug state of the interface module detection peripheral hardware, and the peripheral hardware of insertion is earphone or player, detection is outer
It is set as exporting earphone interrupt signal when earphone to audio-frequency module, the audio-frequency module closes amplification mould according to earphone interrupt signal
Block, simultaneously output audio signal are to interface module to drive earphone;
When detecting peripheral hardware is player, interface module disconnects the connection with loudspeaker, audio-frequency module output audio signal
It is exported after amplification module amplifies by interface module, to drive player sounding.
In the audio devices of the external player, output Mike is interrupted when the interface module detection is not inserted into peripheral hardware
Signal is to audio-frequency module, audio-frequency module output audio signal drive the speaker sounding after amplification module amplifies.
In the audio devices of the external player, the audio-frequency module includes BB chip, in BB chip in setting one
Pull-up resistor is connect with interface module;Amplification module includes AB class audio amplifier.
In the audio devices of the external player, the interface module includes earphone base, resistance and diode;It is described
The earpiece audio output end of the 1st foot connection the AB class audio amplifier and BB chip of earphone base, the 2nd foot of earphone base connect loudspeaking
One end of device, the cathode of the 3rd foot connection diode of earphone base, the anode of the diode connect pull-up resistor in BB chip
The other end of one end, pull-up resistor connects power end;The earphone Mike input terminal of the 4th foot connection BB chip of earphone base also leads to
Cross resistance eutral grounding, the 5th foot ground connection of earphone base;The 6th foot connection other end of loudspeaker of earphone base, AB class audio amplifier and
The earpiece audio output end of BB chip, the audio output of the AB class audio amplifier connection BB chip.
In the audio devices of the external player, the ratio of the resistance value of the resistance value and pull-up resistor of the resistance is 1/
100。
A kind of audio frequency playing method of the audio devices using the external player comprising:
A, the plug state of interface module detection peripheral hardware, and the peripheral hardware of insertion is earphone or player, be earphone then
Step B is executed, is that player thens follow the steps C;
B, interface module exports earphone interrupt signal to audio-frequency module, and audio-frequency module is closed according to earphone interrupt signal to be amplified
Module, simultaneously output audio signal are to interface module to drive earphone;
C, interface module disconnects the connection with loudspeaker, and audio-frequency module output audio signal passes through after amplification module amplifies
Interface module output, to drive player sounding.
In the audio frequency playing method, in the step A, when interface module detection is not inserted into peripheral hardware in output Mike
Break signal is to audio-frequency module, audio-frequency module output audio signal drive the speaker sounding after amplification module amplifies.
Compared to the prior art, the audio devices and audio frequency playing method of external player provided by the invention, by connecing
Mouth mold block detects the plug state of peripheral hardware, and the peripheral hardware of insertion is earphone or player, and detection is outer to be set as output when earphone
To audio-frequency module, the audio-frequency module closes amplification module according to earphone interrupt signal and exports audio to be believed earphone interrupt signal
Number to interface module to drive earphone;When detecting peripheral hardware is player, interface module disconnects the connection with loudspeaker, audio mould
Block output audio signal is exported after amplification module amplifies by interface module, to drive player sounding;Without separately setting outside
Detection module energy automatic distinguishing insertion is earphone or small speaker, can also directly drive external small speaker and play, electricity
Line structure is simple, easy to implement and cost is relatively low.
Detailed description of the invention
Fig. 1 is the structural block diagram of the audio devices of external player provided by the invention.
Fig. 2 is the schematic diagram of the audio devices Application Example of external player provided by the invention.
Fig. 3 is the schematic diagram of existing headset plug.
Fig. 4 is the plug schematic diagram of existing small speaker.
Fig. 5 is the audio frequency playing method flow chart of the audio devices of external player provided by the invention.
Specific embodiment
The present invention provides the audio devices and audio frequency playing method of a kind of external player, is primarily adapted for use in mobile terminal,
Be also applied for other can external player (such as small speaker) equipment;Without separately setting external detection module, (such as external subwoofer is detected
Module) can automatic distinguishing insertion be earphone or small speaker, can also enable the power amplifier in mobile terminal directly drive external
Small speaker plays, and circuit structure is simple, easy to implement and cost is relatively low.To make the objectives, technical solutions, and advantages of the present invention
Clearer, clear, the present invention is described in more detail as follows in conjunction with drawings and embodiments.It should be appreciated that this place is retouched
It states that specific examples are only used to explain the present invention, is not intended to limit the present invention.
Please refer to Fig. 1 and Fig. 2, the audio devices of external player provided by the invention are arranged in the terminal,
It includes interface module 10, audio-frequency module 20, amplification module 30 and loudspeaker 40.The interface module 10 detects the plug of peripheral hardware
State, and the peripheral hardware of insertion is earphone or player.
When the detection of interface module 10 is not inserted into peripheral hardware, Mike's interrupt signal is exported to audio-frequency module, audio-frequency module 20 is defeated
Audio signal 40 sounding of drive the speaker after the amplification of amplification module 30 out.
Earphone interrupt signal is exported to audio-frequency module 20, the audio-frequency module when interface module 10, which detects, is set as earphone outside
20 close amplification module 30 and output audio signal to interface module 10 to drive earphone according to the earphone interrupt signal.By
It is turned off in amplification module 30 at this time, loudspeaker 40 is without driving not sounding, thus only earphone sounding when realizing earphone insertion
Function.
When it is player that interface module 10, which detects peripheral hardware, the connection with loudspeaker 40 is disconnected, audio-frequency module 20 exports sound
Frequency signal is exported after the amplification of amplification module 30 by interface module 10, to drive player sounding.Broadcasting in the present embodiment
Device is small speaker.
In the present embodiment, the audio-frequency module 20 uses BB chip U1, such as BB four high guaily unit audio chip.The amplification module
30 use AB class audio amplifier.The interface module 10 includes earphone base T1, resistance R1 and diode D1;The earphone base T1
The 1st foot connection AB class audio amplifier and BB chip earpiece audio output end, the 2nd foot of earphone base T1 connects loudspeaker 40
One end, earphone base T1 the 3rd foot connection diode D1 cathode, the diode D1 anode connection BB chip;Earphone base
The earphone Mike input terminal of the 4th foot connection BB chip of T1 is also grounded by resistance R1, and the 5th foot of earphone base T1 is grounded;Earphone
The 6th foot of seat T1 connects the earpiece audio output end of the other end of loudspeaker 40, AB class audio amplifier and BB chip, the AB
The audio output of class audio amplifier connection BB chip.It is to be appreciated that BB built-in chip type has a pull-up resistor, shown two
The anode of pole pipe D1 connects one end of the pull-up resistor, and the other end of pull-up resistor connects power end.Wherein, the resistance value of resistance R
Ratio with the resistance value of pull-up resistor is 1/100.For example, the resistance value of the pull-up resistor is 100K when the resistance value of resistance R is 1K.
Setting in this way is to judge whether there is peripheral hardware access.Specifically:
When being not inserted into peripheral hardware (such as earphone or small speaker), the 1st foot of earphone base T1 and the 2nd foot pass through contact flat spring the (the 2nd
Triangle on foot) it connects, the 3rd foot is similarly connect with the 4th foot.Pull-up resistor and resistance R1 are divided at this time, due to resistance R1's
Resistance value ratio pull-up resistor is much smaller, is equivalent on resistance R1 after partial pressure as low level, i.e. the 4th foot output low level to BB chip
Earphone Mike's input terminal.BB chip test earphone Mike's input terminal is low level, shows no peripheral hardware insertion, audio output
The audio signal of output by AB class audio amplifier amplification after 40 sounding of drive the speaker, i.e., sound by mobile terminal loudspeaking
Device 40 plays.
When being inserted into peripheral hardware, since earphone is different with the plug of small speaker, headset plug 100 as shown in Figure 3 is four sections
Formula, be from left to right followed successively by (GND), L channel (Left), right channel (Right), Mike (Mic).Small speaker shown in Fig. 4
Plug 200 be three-stage, be from left to right followed successively by (GND), L channel (Left), right channel (Right).Small speaker is inserted
First 200 is shorter than headset plug 100.
If headset plug 100 is inserted into earphone base T1, right channel (Right) section of headset plug 100 can make in earphone base T1
The 1st foot and the 2nd foot between connection disconnect, Mike (Mic) section makes the 3rd foot in earphone base T1 and the connection between the 4th foot
It disconnects, it is high level that the anode of diode D1 is drawn by the pull-up resistor of BB chip interior, is equivalent to the anode output of diode D1
High level effective earphone interrupt signal HEADSET_INT give BB chip.BB chip receives the earphone interrupt signal
HEADSET_INT is the output for closing AB class audio amplifier, while from earpiece audio output end output audio signal, with driving
Earphone.
As the earphone base T1 of small speaker insertion mobile terminal, right channel (Right) section of the plug 200 of small speaker makes ear
Connection in base T1 between the 1st foot and the 2nd foot disconnects, and disconnects the loudspeaker access in mobile terminal (even if loudspeaker 40
One end it is hanging).Since small speaker is one section shorter than common headset plug using the plug of three-stage.3rd foot in earphone base T1
It keeps connecting with the 4th foot, so the mistake that will not generate earphone insertion when being inserted into small speaker is interrupted.The audio of BB chip output at this time
Signal exports after class ab ammplifier amplifies, through the 1st foot of interface module 10 and the 6th foot, directly drives small speaker sounding.
Based on the audio devices of above-mentioned external player, the present invention also provides a kind of audio devices of external player
Audio frequency playing method, please refer to fig. 5, the audio frequency playing method includes:
The plug state of S100, interface module detection peripheral hardware, and the peripheral hardware of insertion is earphone or player, is earphone
S200 is thened follow the steps, is that player thens follow the steps S300;
S200, interface module export earphone interrupt signal to audio-frequency module, and audio-frequency module is closed according to earphone interrupt signal
Amplification module, simultaneously output audio signal are to interface module to drive earphone;
S300, interface module disconnect the connection with loudspeaker, and audio-frequency module output audio signal is after amplification module amplifies
It is exported by interface module, to drive player sounding.
In the step S100, interface module detection exports Mike's interrupt signal when being not inserted into peripheral hardware to audio-frequency module,
Audio-frequency module output audio signal drive the speaker sounding after amplification module amplifies.Specifically refer to above-described embodiment.
In conclusion the audio devices and audio frequency playing method of external player of the invention, directly pass through interface module
Come detect the plug state of peripheral hardware and identify insertion peripheral hardware type, the on-off of corresponding control loudspeaker access, and control
Loudspeaker broadcasting can be realized in the audio output of BB chip, and earphone plays and small speaker playing function;Without separately setting external detection
Module energy automatic distinguishing insertion is earphone or small speaker, can also directly drive external small speaker and play, circuit knot
Structure is simple, easy to implement and cost is relatively low.
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can
With improvement or transformation based on the above description, all these modifications and variations all should belong to the guarantor of appended claims of the present invention
Protect range.
Claims (5)
1. a kind of audio devices of external player, including loudspeaker, which is characterized in that further include interface module, audio-frequency module
And amplification module;
The plug state of interface module detection peripheral hardware, and the peripheral hardware of insertion is earphone or player,
When detection is outer is set as earphone, earphone interrupt signal is exported to audio-frequency module, and the audio-frequency module is interrupted according to earphone to be believed
Number close amplification module, and output audio signal to interface module to drive earphone;
When detecting peripheral hardware is player, interface module disconnects the connection with loudspeaker, and audio-frequency module output audio signal is through putting
It is exported after big module amplification by interface module, to drive player sounding;
The audio-frequency module includes BB chip, and one pull-up resistor of setting is connect with interface module in BB chip;Amplification module includes
AB class audio amplifier;
The interface module includes earphone base, resistance and diode;The earphone base the 1st foot connection AB class audio amplifier and
The earpiece audio output end of BB chip, one end of the 2nd foot connection loudspeaker of earphone base, the 3rd foot of earphone base connect diode
Cathode, one end of pull-up resistor, the other end of pull-up resistor connect power end in the anode connection BB chip of the diode;
The earphone Mike input terminal of the 4th foot connection BB chip of earphone base also passes through resistance eutral grounding, the 5th foot ground connection of earphone base;Earphone
6th foot of seat connects the earpiece audio output end of the other end of loudspeaker, AB class audio amplifier and BB chip, the AB assonance
The audio output of audio amplifier connection BB chip;
When the insertion of small speaker, the right channel section of the plug of small speaker keeps the connection in earphone base between the 1st foot and the 2nd foot disconnected
It opens, disconnects the loudspeaker access in mobile terminal;The 3rd foot and the 4th foot keep connecting in earphone base, will not when being inserted into small speaker
The mistake for generating earphone insertion is interrupted;BB chip output audio signal through AB class audio amplifier amplification after, pass through interface module
The 1st foot and the 6th foot output, drive small speaker sounding.
2. the audio devices of external player according to claim 1, which is characterized in that the interface module detection is not inserted
Mike's interrupt signal is exported when entering peripheral hardware to audio-frequency module, audio-frequency module output audio signal drives after amplification module amplifies and raises
Sound device sounding.
3. the audio devices of external player according to claim 1, which is characterized in that the resistance value and pull-up of the resistance
The ratio of the resistance value of resistance is 1/100.
4. a kind of audio frequency playing method of the audio devices using external player described in claim 1, which is characterized in that packet
It includes:
A, the plug state of interface module detection peripheral hardware, and the peripheral hardware of insertion is earphone or player, is that earphone then executes
Step B is that player thens follow the steps C;
B, interface module exports earphone interrupt signal to audio-frequency module, and audio-frequency module closes amplification mould according to earphone interrupt signal
Block, simultaneously output audio signal are to interface module to drive earphone;
C, interface module disconnects the connection with loudspeaker, and audio-frequency module output audio signal passes through interface after amplification module amplifies
Module output, to drive player sounding.
5. audio frequency playing method according to claim 4, which is characterized in that in the step A, interface module is detected not
Mike's interrupt signal is exported to audio-frequency module when being inserted into peripheral hardware, and audio-frequency module output audio signal drives after amplification module amplifies
Loudspeaker sounding.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510635799.6A CN105142072B (en) | 2015-09-30 | 2015-09-30 | A kind of audio devices and audio frequency playing method of external player |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510635799.6A CN105142072B (en) | 2015-09-30 | 2015-09-30 | A kind of audio devices and audio frequency playing method of external player |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105142072A CN105142072A (en) | 2015-12-09 |
CN105142072B true CN105142072B (en) | 2018-12-07 |
Family
ID=54727255
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510635799.6A Active CN105142072B (en) | 2015-09-30 | 2015-09-30 | A kind of audio devices and audio frequency playing method of external player |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105142072B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106778361A (en) * | 2016-11-28 | 2017-05-31 | 陈丹丹 | A kind of information safety computer control structure, a kind of computer, a kind of secure network |
CN107786741B (en) * | 2017-10-20 | 2021-01-08 | 惠州Tcl移动通信有限公司 | HAC system based on mobile terminal and implementation method thereof |
CN113316064B (en) * | 2021-04-28 | 2023-01-24 | 杭州小派智能科技有限公司 | Method, system, head-mounted display device and storage medium for earphone and loudspeaker recognition |
CN113448531A (en) * | 2021-06-10 | 2021-09-28 | 杭州小派智能科技有限公司 | Loudspeaker and earphone interface self-adaption method and system and virtual reality equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6748085B1 (en) * | 1998-05-06 | 2004-06-08 | Samsung Electronics Co., Ltd. | Computer system with a common audio input for its audio circuitry |
CN201898602U (en) * | 2010-12-27 | 2011-07-13 | 浙江安迪信信息技术有限公司 | Passive sound box interface of mobile phone |
CN102355518A (en) * | 2011-09-28 | 2012-02-15 | 惠州Tcl移动通信有限公司 | Mobile phone and audio processing method thereof |
CN204090123U (en) * | 2014-06-13 | 2015-01-07 | 深圳Tcl新技术有限公司 | Audio output control circuit and audio-frequence player device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9338570B2 (en) * | 2013-10-07 | 2016-05-10 | Nuvoton Technology Corporation | Method and apparatus for an integrated headset switch with reduced crosstalk noise |
-
2015
- 2015-09-30 CN CN201510635799.6A patent/CN105142072B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6748085B1 (en) * | 1998-05-06 | 2004-06-08 | Samsung Electronics Co., Ltd. | Computer system with a common audio input for its audio circuitry |
CN201898602U (en) * | 2010-12-27 | 2011-07-13 | 浙江安迪信信息技术有限公司 | Passive sound box interface of mobile phone |
CN102355518A (en) * | 2011-09-28 | 2012-02-15 | 惠州Tcl移动通信有限公司 | Mobile phone and audio processing method thereof |
CN204090123U (en) * | 2014-06-13 | 2015-01-07 | 深圳Tcl新技术有限公司 | Audio output control circuit and audio-frequence player device |
Also Published As
Publication number | Publication date |
---|---|
CN105142072A (en) | 2015-12-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102404665B (en) | Earphone interface self-adaptation circuit | |
KR101567362B1 (en) | Apparatus and method for outputting audio signals in portable terminals | |
CN105554606B (en) | Digital Headphones and Electronic Equipment | |
TWI539830B (en) | Electronic device and audio output control method | |
CN205071294U (en) | Headphone structure circuit, earphone, audio output device and display device | |
CN201142743Y (en) | Headphone interface circuit and mobile phone with the same | |
CN105142072B (en) | A kind of audio devices and audio frequency playing method of external player | |
CN207783087U (en) | Wireless earphone circuit with wired function and wireless headset | |
CN105338447A (en) | Earphone control circuit and method, earphone, and audio frequency output apparatus and method | |
CN103237281B (en) | The earphone line control circuit of a kind of mobile terminal and line control method | |
CN102325216A (en) | Mobile communication equipment and volume control method thereof | |
CN103078997A (en) | Mobile terminal volume setting method, system and mobile terminal | |
CN105100330A (en) | Method and mobile terminal for optimizing equipment sound effect | |
CN105120390B (en) | Headphone socket, headphone plug and electronic device | |
CN102355518A (en) | Mobile phone and audio processing method thereof | |
CN204968070U (en) | Earphone socket, Headphone plug and electronic equipment | |
CN201898602U (en) | Passive sound box interface of mobile phone | |
CN107864422A (en) | Playback equipment and the player method based on playback equipment | |
CN104254027A (en) | A method and system for using earphones compatible with round hole interface and USB interface | |
CN202750221U (en) | An external audio playback device | |
CN202713580U (en) | Earphone compatible interface circuit for terminal device | |
CN208158855U (en) | A kind of volume amplification accessory and terminal | |
CN107800853A (en) | Memory, mobile phone and its voicefrequency circuit and the outer of audio file put method | |
CN103825995A (en) | Mobile electronic equipment and volume control method thereof | |
CN106412760B (en) | Earphone compatible device |
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 |