CN102544953A - Self-adaptive audio frequency switching device and method - Google Patents

Self-adaptive audio frequency switching device and method Download PDF

Info

Publication number
CN102544953A
CN102544953A CN2011104010831A CN201110401083A CN102544953A CN 102544953 A CN102544953 A CN 102544953A CN 2011104010831 A CN2011104010831 A CN 2011104010831A CN 201110401083 A CN201110401083 A CN 201110401083A CN 102544953 A CN102544953 A CN 102544953A
Authority
CN
China
Prior art keywords
interface
audio
audio frequency
shield
output
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
CN2011104010831A
Other languages
Chinese (zh)
Other versions
CN102544953B (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.)
Shenzhen Excelsecu Data Technology Co Ltd
Original Assignee
Shenzhen Excelsecu Data Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Excelsecu Data Technology Co Ltd filed Critical Shenzhen Excelsecu Data Technology Co Ltd
Priority to CN201110401083.1A priority Critical patent/CN102544953B/en
Publication of CN102544953A publication Critical patent/CN102544953A/en
Application granted granted Critical
Publication of CN102544953B publication Critical patent/CN102544953B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)
  • Noise Elimination (AREA)

Abstract

The invention discloses a self-adaptive audio frequency switching device and method. The self-adaptive audio frequency switching device is respectively connected with an audio frequency output interface and an audio frequency U shield, wherein the audio output interface comprises a first audio frequency input end IN1, a second audio frequency input end IN2 and a first audio frequency output end OUT1. The self-adaptive audio frequency switching device is characterized in that an audio frequency input by the audio frequency U shield is selected to be output to external equipment through the IN1 interface or the IN2 interface. The self-adaptive audio frequency switching device and method can be used for adjusting the interface for outputting the audio frequency self-adaptively aiming at audio frequency interfaces of different mobile terminals and is convenient to use by users at the same time that the cost is saved.

Description

The apparatus and method of adaptive audio switching
Technical field
The present invention relates to the numeric security field, specially refer to a kind of apparatus and method of adaptive audio switching.
Background technology
The audio playing apparatus such as the audio frequency U shield of USB interface can pass through COBBAIF and mobile communication at present, realize authentication web.The mobile phone of main flow mainly adopts the 3.5mm COBBAIF; But the mobile phone of different brands has two kinds to the definition of COBBAIF, like Fig. 1, shown in Figure 2, as can be seen from the figure; The pinout difference of two kinds of COBBAIFs is that the position of microphone pin and GND pin is intermodulation.
For the above-mentioned two kinds of different COBBAIFs of compatibility, need on adapter, necessarily handle.Normally on adapter, add MTS or use two different adapters to realize, concerning the client used, dual mode was all too loaded down with trivial details.
Summary of the invention
Main purpose of the present invention is the apparatus and method that a kind of adaptive audio switching is provided, and to the COBBAIF of different mobile terminal, can adjust the port of output audio adaptively, is user-friendly to when practicing thrift cost.
The present invention proposes a kind of device of adaptive audio switching; Connect audio output interface and audio frequency U shield respectively; Said audio output interface comprises the first audio input end IN1, the second audio input end IN2, the first audio output OUT1; The device of said adaptive audio switching is selected to export the audio frequency of said audio frequency U shield input to external device via said IN1 interface or IN2 interface according to the feedback signal of OUT1 interface.
Preferably, comprise plastic filter circuit and select circuit that wherein, said selection circuit comprises:
Receive the 3rd audio input end IO3 of said audio frequency U shield output audio;
The 3rd audio output IO0 that connects the IN1 interface;
The 4th audio output IO1 that connects the IN2 interface;
Be connected with said plastic filter circuit, receive feedback signal input IO2 through the said feedback signal of said plastic filter circuit filtering.
Preferably, when the audio frequency of said audio frequency U shield exports the IN1 interface to, said IN2 interface ground connection.
When the audio frequency of said audio frequency U shield exports the IN2 interface to, said IN1 interface ground connection.
Preferably, said audio output interface is the 3.5MM COBBAIF.
Preferably, the device of said adaptive audio switching also comprises power supply, is the device and the power supply of audio frequency U shield of said audio repeating.
Preferably, the device of said adaptive audio switching also comprises electric quantity detection apparatus, is used to detect the electric weight of the device of said adaptive audio switching.
The present invention also proposes a kind of method of adaptive audio switching, is used for the device of above-mentioned adaptive audio switching, comprises step:
A, when signal when input that receives audio frequency U shield, said IO0 interface is set to audio frequency output, said IO1 interface is set to low level;
B, export said signal to external device via said IO0 interface and IN1 interface;
C, when in first scheduled time, receiving the communication information of successful that said external device generates, keep the setting of current I O0 interface and IO1 interface, otherwise said IO0 interface is set to low level, said IO1 interface is set to audio frequency and exports.
Preferably, in steps A, C, the no signal input then gets into resting state in second scheduled time.
The apparatus and method of a kind of adaptive audio switching that the present invention proposes; Feedback signal through audio output interface; Judge the pinout of the COBBAIF of portable terminal, realize selecting automatically microphone pin and grounding pin, promptly practiced thrift cost; Need not to be provided with separately switch again or dispose different adapters, made things convenient for the user.
Description of drawings
Fig. 1 be in the prior art with the pinout sketch map of the COBBAIF of mobile communication;
Fig. 2 be in the prior art with another pinout sketch map of the COBBAIF of mobile communication;
Fig. 3 is first circuit diagram of device one embodiment of adaptive audio switching of the present invention;
Fig. 4 is the second circuit figure of device one embodiment of adaptive audio switching of the present invention;
Fig. 5 is the tertiary circuit figure of device one embodiment of adaptive audio switching of the present invention;
Fig. 6 is the schematic flow sheet of method one embodiment of adaptive audio switching of the present invention.
The realization of the object of the invention, functional characteristics and advantage will combine embodiment, further specify with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
With reference to Fig. 3, device one embodiment of adaptive audio switching of the present invention is proposed, connect audio output interface 30 and audio frequency U shield 40 respectively.
Said audio output interface 30 comprises the first audio input end IN1, the second audio input end IN2, the first audio output OUT1 and the second audio output OUT2; OUT1 interface and OUT2 interface are respectively two sound channels of audio output interface 30, and this audio output interface 30 is generally the 3.5MM COBBAIF.
The device of said adaptive audio switching comprises plastic filter circuit 20 and selects circuit 10, selects circuit 10 to comprise the 3rd audio input end IO3, the 3rd audio output IO0, the 4th audio output IO1 and feedback signal input IO2.Plastic filter circuit 20 comprises input IN3 and output OUT3.
Wherein, Select the power interface of circuit 10 to be connected with the power supply of audio frequency U shield 40, when audio frequency U shield 40 was self-powered, selection circuit 10 can be from 40 power takings of audio frequency U shield; When audio frequency U shield 40 was supplied power through external power supply, this external power supply can be supplied power to audio frequency U shield 40 and selection circuit 10 simultaneously.In addition, when not using, in a single day forget power cutoff in order to prevent power supply, power supply (using battery usually) possibly consume very soon; Therefore, can detect through the electric weight of an electric weight detecting unit to power supply, as shown in Figure 4; The electric weight detecting unit can be built in selects circuit 10; IO5 interface through selecting circuit 10 connects DC power supply 50, can the information about power of DC power supply 50 be sent to audio output interface 30 or audio frequency U shield 40, to react the electric weight situation of current power supply.
The IO3 interface of said selection circuit 10 is connected with the audio output of audio frequency U shield 40, receives the audio frequency output of audio frequency U shield 40.The IO2 interface is connected with the OUT3 interface of plastic filter circuit 20; And the IN3 interface of plastic filter circuit 20 is connected with the OUT2 interface of audio output interface 30; When the OUT2 interface had signal output, the IN3 interface received this signal and behind the AD of plastic filter circuit 20 conversion, shaping filter, exports the IO2 interface of selecting circuit to.
The IO1 interface of said selection circuit 10 and IO2 interface are connected the IN1 interface and the IN2 interface of audio output device 10 respectively, select circuit 10 to export the audio frequency of the audio frequency U shield 40 of IO3 interface reception to IN1 interface and IN2 interface respectively through IO1 interface and IO2 interface.
With reference to Fig. 5, if select circuit 10 built-in AD conversion or built-in comparators (COM), can be from input behind the OUT2 interface output feedback signal through an IO mouth such as IO4 input AD conversion or built-in comparator, through exporting from the IO2 interface behind the shaping filter of selecting circuit 10.Then in this embodiment, select circuit 10 integrated plastic filter circuit 20, need not to be provided with separately plastic filter circuit 20.
Above-mentioned selection circuit 10 can be accomplished by MCU when design, perhaps plastic filter circuit 20 is integrated among the MCU with selection circuit 10 and realizes.
With reference to Fig. 6, shown in Figure 6 is the adaptive audio conversion method of the device of above-mentioned adaptive audio switching, comprising:
Step S101, when signal when input that receives audio frequency U shield, said IO0 interface is set to audio frequency output, said IO1 interface is set to low level;
In use; After the device of external devices such as mobile phone through audio frequency U shield 40 and audio repeating is connected audio frequency U shield 40; IO3 interface with interrupt function judges at first whether audio frequency U shield 40 has data output, if having, then the IO0 interface is set to low level output earlier; The IO1 interface is set to audio frequency output simultaneously, and the IO2 interface is set to input.This moment, the IO0 interface was equivalent to ground connection.
Step S102, export said signal to external device via said IO0 interface and IN1 interface;
Audio frequency U shield 40 uses interrupt mode to send handshake data to the IO1 interface through the IO3 interface, and via the IO1 interface, handshake data is sent to the IN2 interface of the audio output device that is attached thereto, and through external devices such as IN2 interface input handsets.
Step S103, when in first scheduled time, receiving the communication information of successful that said external device generates, keep the setting of current I O0 interface and IO1 interface, otherwise said IO0 interface is set to low level, said IO1 interface is set to audio frequency and exports.
If the connected mode of the COBBAIF of mobile phone and audio output device 10 is correct; After the handshake data of sending is correctly received by mobile phone; Can generate the successful feedback signal of communication by OUT2 interface (L channel or R channel), this feedback signal feeds back to the receiving terminal RX and the IO2 interface of selecting circuit 10 of audio frequency U shield 40 through output OUT3 behind plastic filter circuit 20AD conversion, shaping filter; After selecting circuit 30 to receive feedback signal; Show that the IN1 interface definition is that microphone and IN2 interface definition are that ground connection is correct, then keeping current input and output setting is IN0 interface output low level, IO1 interface output audio.
As select the IN2 interface of circuit not receive successfully the feedback signal of communication, show that the connected mode of mobile phone and audio output device 10 is incorrect.Then select circuit IO1 interface to be set to low level output, the IO0 interface is set to audio frequency output simultaneously, and the IO2 interface is set to input, and this moment, the IO1 interface was equivalent to ground connection.Audio frequency U shield 40 uses interrupt mode to resend handshake data to the IO0 interface through the IO3 interface, and after the selection circuit received successfully the feedback signal of communication by the IO2 interface, keeping input and output setting at that time was IN1 interface output low level, IO0 interface output audio.
It should be noted that in said process, also can change into by default setting: the IO1 interface is set to low level output, and the IO0 interface is set to audio frequency output.Promptly when the IO3 interface with interrupt function judged that audio frequency U shield 40 has data output, the IO0 interface was set to low level output earlier, and the IO1 interface is set to audio frequency output simultaneously.
Be conserver power source, in step S101 and step S103, the device of importing then adaptive audio switching when no signal in the second preset scheduled time gets into resting state automatically, also can cut off the power supply of plastic filter circuit 20 simultaneously.
In the foregoing description,, judge the pinout of the COBBAIF of portable terminal through the feedback signal of audio output interface; Realize selecting automatically microphone pin and grounding pin; Promptly practice thrift cost, need not again switch to be set separately or to dispose different adapters, made things convenient for the user.
The above is merely the preferred embodiments of the present invention; Be not so limit claim of the present invention; Every equivalent structure or equivalent flow process conversion that utilizes specification of the present invention and accompanying drawing content to be done; Or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.

Claims (8)

1. the device of adaptive audio switching; Connect audio output interface and audio frequency U shield respectively; Said audio output interface comprises the first audio input end IN1, the second audio input end IN2, the first audio output OUT1; It is characterized in that the device of said adaptive audio switching is selected to export the audio frequency of said audio frequency U shield input to external device via said IN1 interface or IN2 interface according to the feedback signal of OUT1 interface.
2. device as claimed in claim 1 is characterized in that, comprises plastic filter circuit and selects circuit, and wherein, said selection circuit comprises:
Receive the 3rd audio input end IO3 of said audio frequency U shield output audio;
The 3rd audio output IO0 that connects the IN1 interface;
The 4th audio output IO1 that connects the IN2 interface;
Be connected with said plastic filter circuit, receive feedback signal input IO2 through the said feedback signal of said plastic filter circuit filtering.
3. according to claim 1 or claim 2 device is characterized in that,
When the audio frequency of said audio frequency U shield exports the IN1 interface to, said IN2 interface ground connection.
When the audio frequency of said audio frequency U shield exports the IN2 interface to, said IN1 interface ground connection.
4. according to claim 1 or claim 2 device is characterized in that said audio output interface is the 3.5MM COBBAIF.
5. according to claim 1 or claim 2 device is characterized in that, also comprises power supply, is the device and the power supply of audio frequency U shield of said audio repeating.
6. according to claim 1 or claim 2 device is characterized in that, also comprises electric quantity detection apparatus, is used to detect the electric weight of the device of said adaptive audio switching.
7. the method for an adaptive audio switching is used for the device like each described adaptive audio switching of claim 1 to 6, it is characterized in that, comprises step:
A, when signal when input that receives audio frequency U shield, said IO0 interface is set to audio frequency output, said IO1 interface is set to low level;
B, export said signal to external device via said IO0 interface and IN1 interface;
C, when in first scheduled time, receiving the communication information of successful that said external device generates, keep the setting of current I O0 interface and IO1 interface, otherwise said IO0 interface is set to low level, said IO1 interface is set to audio frequency and exports.
8. method as claimed in claim 7 is characterized in that, in steps A, C, the no signal input then gets into resting state in second scheduled time.
CN201110401083.1A 2011-12-06 2011-12-06 Self-adaptive audio frequency switching device and method Expired - Fee Related CN102544953B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110401083.1A CN102544953B (en) 2011-12-06 2011-12-06 Self-adaptive audio frequency switching device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110401083.1A CN102544953B (en) 2011-12-06 2011-12-06 Self-adaptive audio frequency switching device and method

Publications (2)

Publication Number Publication Date
CN102544953A true CN102544953A (en) 2012-07-04
CN102544953B CN102544953B (en) 2014-07-30

Family

ID=46351203

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110401083.1A Expired - Fee Related CN102544953B (en) 2011-12-06 2011-12-06 Self-adaptive audio frequency switching device and method

Country Status (1)

Country Link
CN (1) CN102544953B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102882090A (en) * 2012-10-15 2013-01-16 信雅达系统工程股份有限公司 Device compatible with earphone interfaces
CN104715184A (en) * 2015-03-04 2015-06-17 天地融科技股份有限公司 Secret key equipment, data switching device, component and system and equipment startup method
CN105408831A (en) * 2013-07-24 2016-03-16 国际商业机器公司 Automatic rotation of display contents of handheld companion device rigidly attached to handheld mobile device
CN105635925A (en) * 2015-12-24 2016-06-01 小米科技有限责任公司 Mobile terminal audio test method, system and audio test interface adapter

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101069410A (en) * 2004-10-25 2007-11-07 诺基亚公司 Detection, identification and operation of peripherals connected via an audio/video-plug to an electronic device
CN101198192A (en) * 2006-12-08 2008-06-11 启碁科技股份有限公司 Electronic device capable of automatically estimating telephone earphone species and correlation technique thereof
CN201142743Y (en) * 2007-12-08 2008-10-29 青岛海信移动通信技术股份有限公司 Headphone interface circuit and mobile phone with the same
CN201349247Y (en) * 2008-12-22 2009-11-18 宇龙计算机通信科技(深圳)有限公司 Earphone interface circuit and movable termination
CN101719610A (en) * 2009-12-30 2010-06-02 华为终端有限公司 Wired earphone compatible method and device
CN101938546A (en) * 2010-08-26 2011-01-05 惠州Tcl移动通信有限公司 Earphone microphone detection method based on mobile phone and mobile phone
CN101945172A (en) * 2010-09-17 2011-01-12 惠州Tcl移动通信有限公司 Mobile phone-based earphone recognition calling method and mobile phone
CN201781517U (en) * 2010-08-17 2011-03-30 惠州Tcl移动通信有限公司 Mobile phone device
WO2011062774A1 (en) * 2009-11-19 2011-05-26 Apple Inc. Audio plugs with optical and electrical paths
CN201910916U (en) * 2010-12-13 2011-07-27 海格国利电子(惠州)有限公司 Device for automatically detecting microphone and earphone functions
CN102143262A (en) * 2010-02-03 2011-08-03 深圳富泰宏精密工业有限公司 Electronic device and method for switching audio input channel thereof

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101069410A (en) * 2004-10-25 2007-11-07 诺基亚公司 Detection, identification and operation of peripherals connected via an audio/video-plug to an electronic device
CN101198192A (en) * 2006-12-08 2008-06-11 启碁科技股份有限公司 Electronic device capable of automatically estimating telephone earphone species and correlation technique thereof
CN201142743Y (en) * 2007-12-08 2008-10-29 青岛海信移动通信技术股份有限公司 Headphone interface circuit and mobile phone with the same
CN201349247Y (en) * 2008-12-22 2009-11-18 宇龙计算机通信科技(深圳)有限公司 Earphone interface circuit and movable termination
WO2011062774A1 (en) * 2009-11-19 2011-05-26 Apple Inc. Audio plugs with optical and electrical paths
CN101719610A (en) * 2009-12-30 2010-06-02 华为终端有限公司 Wired earphone compatible method and device
CN102143262A (en) * 2010-02-03 2011-08-03 深圳富泰宏精密工业有限公司 Electronic device and method for switching audio input channel thereof
CN201781517U (en) * 2010-08-17 2011-03-30 惠州Tcl移动通信有限公司 Mobile phone device
CN101938546A (en) * 2010-08-26 2011-01-05 惠州Tcl移动通信有限公司 Earphone microphone detection method based on mobile phone and mobile phone
CN101945172A (en) * 2010-09-17 2011-01-12 惠州Tcl移动通信有限公司 Mobile phone-based earphone recognition calling method and mobile phone
CN201910916U (en) * 2010-12-13 2011-07-27 海格国利电子(惠州)有限公司 Device for automatically detecting microphone and earphone functions

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102882090A (en) * 2012-10-15 2013-01-16 信雅达系统工程股份有限公司 Device compatible with earphone interfaces
CN102882090B (en) * 2012-10-15 2015-05-13 信雅达系统工程股份有限公司 Device compatible with earphone interfaces
CN105408831A (en) * 2013-07-24 2016-03-16 国际商业机器公司 Automatic rotation of display contents of handheld companion device rigidly attached to handheld mobile device
CN105408831B (en) * 2013-07-24 2019-04-09 国际商业机器公司 Hand-held auxiliary equipment, system, the method and computer-readable medium for showing content
CN104715184A (en) * 2015-03-04 2015-06-17 天地融科技股份有限公司 Secret key equipment, data switching device, component and system and equipment startup method
CN104715184B (en) * 2015-03-04 2018-04-27 天地融科技股份有限公司 Key devices, data switching device, component and system and equipment starting method
CN105635925A (en) * 2015-12-24 2016-06-01 小米科技有限责任公司 Mobile terminal audio test method, system and audio test interface adapter
CN105635925B (en) * 2015-12-24 2019-03-01 小米科技有限责任公司 Audio testing method, system and the audio-frequency test interface adapter of mobile terminal

Also Published As

Publication number Publication date
CN102544953B (en) 2014-07-30

Similar Documents

Publication Publication Date Title
CN101425048B (en) Electronic device utilizing impedance and/or resistance identification to identify an accessory device
US7849238B2 (en) Multiple-apparatus connection system and the method thereof
US8069356B2 (en) Accessory power management
US20130101132A1 (en) Method and Device for Earphone and USB to Share Micro-USB Interface
US20130130646A1 (en) Mobile communication terminal and method for managing sim cards
CN101690125A (en) Via intermediate equipment transmission information between main process equipment and annex
CN101841586A (en) Method for expanding earphone interface of mobile phone into serial communication interface
CN102544953B (en) Self-adaptive audio frequency switching device and method
KR20140129863A (en) Method and apparatus for controlling an input of sound
CN103873973A (en) Method of realizing shield function and earphone function and Bluetooth shield
TW201306551A (en) Communication system, additional device, and expanding method thereof
CN201178407Y (en) Portable terminal having radio function
CN101854432A (en) Mobile phone control method of popping up corresponding functional menu after earphone is plugged in
CN102508519B (en) Multifunctional extended pedestal
EP1986406B1 (en) System and method for recognizing external device by portable terminal
CN203933885U (en) A kind of Baffle Box of Bluetooth with NFC communication
KR20080086259A (en) Wireless headset and control method thereof
CN204598226U (en) A kind of voice-over-net talkback system of children-oriented
CN103297845A (en) Method and son-machine for realizing media playing
CN105006853A (en) Method of outputting charging current, and power amplifier
CN205232413U (en) Headset
CN100477412C (en) Connecting system of multiple device and method thereof
CN206686164U (en) A kind of intercommunication accessory
CN202218294U (en) Handset auxiliary terminal
CN208445635U (en) Smart phone audio signal reception device, earphone, charging shell, mobile phone shell

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140730

CF01 Termination of patent right due to non-payment of annual fee