CN103379052B - Signal processing module and signal processing method - Google Patents

Signal processing module and signal processing method Download PDF

Info

Publication number
CN103379052B
CN103379052B CN201210127502.1A CN201210127502A CN103379052B CN 103379052 B CN103379052 B CN 103379052B CN 201210127502 A CN201210127502 A CN 201210127502A CN 103379052 B CN103379052 B CN 103379052B
Authority
CN
China
Prior art keywords
pole
audio
signal
audio frequency
module
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
Application number
CN201210127502.1A
Other languages
Chinese (zh)
Other versions
CN103379052A (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.)
Nationz Technologies Inc
Original Assignee
Nationz Technologies Inc
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 Nationz Technologies Inc filed Critical Nationz Technologies Inc
Priority to CN201210127502.1A priority Critical patent/CN103379052B/en
Publication of CN103379052A publication Critical patent/CN103379052A/en
Application granted granted Critical
Publication of CN103379052B publication Critical patent/CN103379052B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Circuit For Audible Band Transducer (AREA)

Abstract

The open signal processing module of the present invention and method.Signal processing module includes audio interface microphone pole and the control module in earth polar, audio signal reception module, the first audio signal modular converter, the second audio signal modular converter and audio signal sending module, Mike pole and the earth polar of audio interface are identified by the control module in audio interface microphone pole and earth polar, being docked with Mike pole by audio signal sending module, earth potential docks with earth polar;Audio signal reception module receives external audio signal by sound channel pole;This audio signal is converted to digital signal by the first audio signal modular converter;Second audio signal modular converter, digital signal to be sent out is converted to audio signal;This audio signal being converted into is sent out by audio signal sending module by Mike pole.The present invention is by above technical scheme, and in solution prior art sound intermediate frequency interface, Mike pole and earth polar are not fixed, the problem causing cannot be carried out data communication.

Description

Signal processing module and signal processing method
Technical field
The present invention relates to electronic applications, particularly relate to signal processing module and method.
Background technology
Transmitting data between audio frequency apparatus and external equipment by the audio interface of audio frequency apparatus (such as mobile terminal) will Become mobile interchange epoch one big technological trend.The mechanical connecting structure of external equipment and audio frequency apparatus generally include plug and with The socket that plug is supporting, socket is located on audio frequency apparatus, the externally-located equipment of plug or be positioned at audio frequency apparatus and external equipment it Between intermediate structure on, such as adaptor.
As it is shown in figure 1, plug generally includes 4 ring segment, being respectively tip, medium ring 1, medium ring 2 and end, socket is provided with 4 Individual contact and 1 socket change set, the tip of contact 1 corresponding plug, the medium ring 1 of contact 2 corresponding plug, contact 3 corresponding plug Medium ring 2, the end of contact 4 corresponding plug, contact 5 is changed set for socket, when changing set and being to some material, is connect signal circuit, permissible Require and method of testing with reference to national sector standard YD-T 1885-2009 GSM CDMA wired earphone interface technology.
Do not unite in position for Mike (MIC) pole in different audio frequency apparatuses, generally its audio interface and (GND) pole, ground One, such as Samsung mobile phone and i Phone, MIC pole and the position of gnd electrode in its audio interface are contrary, when same plug is inserted After entering the audio interface of both mobile phones, the medium ring 2 of plug and end on to the signal of telecommunication do not fix, its corresponding relation such as table Shown in 1.
Table 1
Type Most advanced and sophisticated Medium ring 1 Medium ring 2 End
Stereo 1 L (L channel) R (R channel) MIC GND
Stereo 2 L (L channel) R (R channel) GND MIC
Monophonic 1 MONO MONO MIC GND
Monophonic 2 MONO MONO GND MIC
When audio frequency apparatus is with external device communication, only by the earth potential pair of the gnd electrode of audio frequency apparatus Yu external equipment Connecing, could unify ground reference, signal resolution just can be normally carried out, meanwhile, the most only by the MIC pole of audio frequency apparatus with outside The audio output docking of equipment, external equipment could obtain sendaisle.Therefore, utilize audio interface carry out data communication it Before, it is necessary to MIC pole and gnd electrode to audio interface are identified, and correctly dock with external equipment, otherwise cannot Carry out data communication.
Summary of the invention
The present invention provides signal processing module and method, and in solution prior art sound intermediate frequency interface, MIC pole and gnd electrode are solid Fixed, the problem causing cannot be carried out data communication.
For solve above-mentioned technical problem, the present invention by the following technical solutions:
A kind of signal processing module, this signal processing module is by the audio interface of audio frequency apparatus and audio frequency apparatus number According to alternately, this signal processing module include audio interface microphone pole and the control module in earth polar, audio signal reception module, first Audio signal modular converter, the second audio signal modular converter and audio signal sending module, described audio signal reception module Docking with the sound channel pole of audio interface, wherein, the control module in audio interface microphone pole and earth polar is for described audio interface Mike pole and earth polar be identified, described audio signal sending module is docked with the Mike pole identified, by earth potential with The earth polar docking identified;Audio signal reception module is for receiving from described audio frequency by the sound channel pole of described audio interface The audio signal of equipment;First audio signal modular converter is for being converted to numeral from the audio signal of described audio frequency apparatus Signal;Second audio signal modular converter is for treating that the digital signal sent to described audio frequency apparatus is converted to audio signal; Audio signal sending module will be for treating, by the Mike pole of described audio interface, the digital signal sent to described audio frequency apparatus The audio signal being converted into sends to described audio frequency apparatus.
In an embodiment of the present invention, this second audio signal modular converter is current mode D/A converter module.
In an embodiment of the present invention, this current mode D/A converter module is by extracting from the Mike pole of described audio interface The audio signal that the mode of electric current will convert into sends to described audio frequency apparatus.
In an embodiment of the present invention, this signal processing module also includes: coding module, is used for treating setting to described audio frequency The encoding digital signals that preparation is sent, is carried out the digital signal input after coding to described second audio signal modular converter Conversion;Decoder module, is decoded for the digital signal being converted into the audio signal from described audio frequency apparatus.
In an embodiment of the present invention, this signal processing module also includes: framing module, is used for treating setting to described audio frequency The digital signal that preparation is sent carries out framing, the digital signal after framing is inputted extremely described coding module and encodes;Solve frame mould Block, carries out solving frame for digital signal decoded to described decoder module.
In an embodiment of the present invention, the control module in this audio interface microphone pole and earth polar includes: acquisition module, is used for Obtain described audio frequency apparatus opening behind recording channel, the signal of telecommunication of each pole in a pair audio frequency input extremely in its audio interface;Know Other module, for according to Mike pole and earth polar described in the signal of telecommunication identification of each pole in the input extremely of the pair of audio frequency;Port switches Module, after described identification module identifies Mike pole and earth polar, by described audio signal sending module and described Mike Pole is docked, and is docked with described earth polar by earth potential.
In an embodiment of the present invention, this acquisition module is voltage domain modular converter, is used for obtaining the pair of audio frequency defeated In entering extremely, each pole is relative to described earthy voltage relative value.
In an embodiment of the present invention, this identification module includes the first identification submodule, is used for detecting the pair of audio frequency The positive negative characteristic of the voltage relative value of each pole in input extremely, according to Mike pole described in testing result identification and described earth polar.
In an embodiment of the present invention, this identification module includes: second identifies submodule, for by defeated for the pair of audio frequency In entering extremely, the voltage relative value of each pole compares with described earth potential respectively, exports a number respectively according to respective comparative result Word level signal;Logic judgment module, for identifying two digital signal level identification institutes of submodule output according to described second State Mike pole and described earth polar.
In an embodiment of the present invention, when voltage relative value is more than described earth potential, second identifies submodule output electricity Flat 1, when voltage relative value is less than described earth potential, this second identification submodule output level 0;Described logic judgment module exists Described second identifies when submodule exports a level 1 and a level 0, in being inputted extremely by the pair of audio frequency corresponding to level 1 One pole is identified as described Mike pole, and in being inputted extremely by the pair of audio frequency corresponding to level 0, a pole is identified as described earth polar.
In an embodiment of the present invention, when voltage relative value is more than described earth potential, second identifies submodule output electricity Flat 0, when voltage relative value is less than described earth potential, second identifies submodule output level 1;Described logic judgment module is Two identify that, when submodule exports a level 1 and a level 0, in being inputted extremely by the pair of audio frequency corresponding to level 0, a pole is known Not Wei described Mike pole, by corresponding to level 1 the pair of audio frequency input extremely in a pole be identified as described earth polar.
A kind of signal processing method, including: Mike pole and earth polar in audio interface are identified, audio signal is sent Module is docked with the Mike pole identified, and is docked with the earth polar identified by earth potential, by audio signal reception module and audio frequency The sound channel pole docking of interface;The audio signal from audio frequency apparatus is received by the sound channel pole of described audio interface;Will from institute The audio signal stating audio frequency apparatus is converted to digital signal;To treat that the digital signal sent to described audio frequency apparatus is converted to audio frequency Signal;To treat that the audio frequency that the digital signal sent to described audio frequency apparatus is converted into is believed by the Mike pole of described audio interface Number send to described audio frequency apparatus.
In an embodiment of the present invention, current mode D/A converter module is used will to treat the numeral sent to described audio frequency apparatus Signal is converted to audio signal.
In an embodiment of the present invention, this current mode D/A converter module is by extracting from the Mike pole of described audio interface The audio signal that the mode of electric current will convert into sends to described audio frequency apparatus.
In an embodiment of the present invention, by treat the digital signal sent to described audio frequency apparatus be converted to audio signal it Before, also include: treat the encoding digital signals sent to described audio frequency apparatus;Audio frequency from described audio frequency apparatus is believed After number being converted to digital signal, also include: the digital signal being converted into is decoded.
In an embodiment of the present invention, treated before the encoding digital signals that described audio frequency apparatus sends, also wrap Include: treat the digital signal sent to described audio frequency apparatus and carry out framing;After the digital signal being converted into is decoded, also Including: carry out decoded digital signal solving frame.
In an embodiment of the present invention, Mike pole and earth polar in audio interface are identified, audio signal is sent mould Block docks with the Mike pole identified, and the method that earth potential docks with the earth polar identified is included: obtain described audio frequency apparatus After opening recording channel, the signal of telecommunication of each pole in a pair audio frequency input extremely in its audio interface;Defeated according to the pair of audio frequency Mike pole and earth polar described in the signal of telecommunication identification of each pole in entering extremely;By the most right with described Mike for described audio signal sending module Connect, earth potential is docked with described earth polar.
In an embodiment of the present invention, the method for the signal of telecommunication of each pole in the input extremely of the pair of audio frequency that obtains is: obtain In the input extremely of the pair of audio frequency, each pole is relative to described earthy voltage relative value.
In an embodiment of the present invention, according to the pair of audio frequency input extremely in each pole signal of telecommunication identification Mike pole and ground The method of pole is: detects the positive negative characteristic of the voltage relative value of each pole in the input extremely of the pair of audio frequency, knows according to testing result The most described Mike pole and described earth polar.
In an embodiment of the present invention, according to the pair of audio frequency input extremely in each pole signal of telecommunication identification Mike pole and ground The method of pole is: the voltage relative value of each pole in the input extremely of the pair of audio frequency compared with described earth potential respectively, root A digital signal level is respectively obtained according to respective comparative result;According to Mike pole described in the two digital signal level identifications obtained With described earth polar.
In an embodiment of the present invention, when voltage relative value is more than described earth potential, level 1 is obtained, when voltage is relative When value is less than described earth potential, obtaining level 0, in being inputted extremely by the pair of audio frequency corresponding to level 1, a pole is identified as institute Stating Mike pole, in being inputted extremely by the pair of audio frequency corresponding to level 0, a pole is identified as described earth polar.
In an embodiment of the present invention, when voltage relative value is more than described earth potential, level 0 is obtained, when voltage is relative When value is less than described earth potential, obtaining level 1, in being inputted extremely by the pair of audio frequency corresponding to level 0, a pole is identified as institute Stating Mike pole, in being inputted extremely by the pair of audio frequency corresponding to level 1, a pole is identified as described earth polar.
Effective effect of the present invention is, before utilizing audio interface to carry out data communication, first to MIC pole in audio interface It is identified with gnd electrode, then the audio signal sending module in external equipment is docked with the MIC pole identified, outside is set Standby earth potential docks with the gnd electrode identified, and provides precondition for data communication based on audio interface.Further, originally Invention, during utilizing audio interface to carry out data communication, utilizes current mode D/A converter module by from audio interface The audio signal that the mode of MIC pole extraction electric current will convert into sends to described audio frequency apparatus, simulates existing ear microphone Operation principle so that signal processing module and the signal processing method of the present invention can preferably be held concurrently with existing audio interface Hold.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of existing plug and socket mechanical connecting structure;
The schematic diagram of the signal processing module that Fig. 2 provides for one embodiment of the invention;
Fig. 3 is the schematic diagram of the control module in signal processing module sound intermediate frequency interface Mike pole shown in Fig. 2 and earth polar;
Fig. 4 is another schematic diagram of the control module in signal processing module sound intermediate frequency interface Mike pole shown in Fig. 2 and earth polar;
Fig. 5 is another schematic diagram of the control module in signal processing module sound intermediate frequency interface Mike pole shown in Fig. 2 and earth polar;
Fig. 6 is the schematic diagram of the equivalent circuit structure of the control module in audio interface microphone pole and earth polar shown in Fig. 5;
Fig. 7 a is the schematic diagram of voltage domain converting unit in circuit structure shown in Fig. 6;
Fig. 7 b is another schematic diagram of voltage domain converting unit in circuit structure shown in Fig. 6;
Fig. 7 c is another schematic diagram of voltage domain converting unit in circuit structure shown in Fig. 6;
Fig. 7 d is another schematic diagram of voltage domain converting unit in circuit structure shown in Fig. 6;
Fig. 8 is the schematic diagram of the first audio signal modular converter in signal processing module shown in Fig. 2;
Fig. 9 is the schematic diagram of the second audio signal modular converter in signal processing module shown in Fig. 2;
The schematic diagram of the signal processing module that Figure 10 provides for another embodiment of the present invention;
The schematic diagram of the signal processing module that Figure 11 provides for another embodiment of the present invention;
The schematic diagram of the signal processing module that Figure 12 provides for another embodiment of the present invention;
Figure 13 is the flow chart of the signal processing method of signal processing module shown in Figure 11.
Detailed description of the invention
The signal processing module of the present invention can be the intermediate structure between audio frequency apparatus and external equipment, it is also possible to built-in In external equipment.Preferably, signal processing module audio interface with audio frequency apparatus by the way of external plug is connected.As Really signal processing module is the intermediate structure between audio frequency apparatus and external equipment, then the earth potential appeared below refers to letter The common ground of number processing module and external equipment, if signal processing module is built in external equipment, then appear below Earth potential refer to the earth potential of external equipment.The central scope of the present invention is, signal processing module utilize audio interface with Before audio frequency apparatus carries out data communication, first MIC pole and gnd electrode in audio interface are identified, then by signal processing module In audio signal sending module dock with the MIC pole identified, earth potential is docked with the gnd electrode identified.Need explanation , owing in different audio frequency apparatus sound intermediate frequency interfaces, the position of sound channel pole (including left/right/MOMO sound channel) is usually fixed , therefore, the audio signal reception module in signal processing module can be according to existing skill with docking of audio interface sound channel pole Usual manner in art completes.After completing port docking, in conjunction with digital-to-analogue/analog digital conversion at signal processing module and audio frequency apparatus Between carry out data communication.
As in figure 2 it is shown, the signal processing module provided for one embodiment of the invention.This signal processing module includes that audio frequency connects Mouth Mike pole and the control module 1 in earth polar, audio signal reception module the 2, first audio signal modular converter the 3, second audio frequency letter Number modular converter 4 and audio signal sending module 5.The control module 1 in audio interface microphone pole and earth polar is for audio interface Mike pole and earth polar be identified, after identification, earth potential is docked with the gnd electrode identified, audio signal is sent mould Block 5 docks with the MIC pole identified, and the audio signal reception module in signal processing module is right with the sound channel pole of audio interface Connect and can be automatically performed in a conventional manner, set up signal processing module and receive the reception passage of data, audio frequency from audio frequency apparatus Signal receiving module 2 is used for receiving the audio signal from audio frequency apparatus by the sound channel pole of audio interface, the audio frequency that will receive Signal transmission is to the first audio signal modular converter 3, and the first audio signal modular converter 3 is for by this sound from audio frequency apparatus Frequently signal is converted to digital signal, and the second audio signal modular converter 4 is for treating that the digital signal sent to audio frequency apparatus turns Being changed to audio signal, audio signal transmission single 5 is used for will be via the second audio signal modular converter by the MIC pole of audio interface 4 audio signals being converted into send to audio frequency apparatus.
As it is shown on figure 3, for the interface Mike pole of signal processing module sound intermediate frequency shown in Fig. 2 and the one of the control module 1 in earth polar Planting implementation, it includes acquisition module 121, identification module 122 and port handover module 123.Wherein, acquisition module 121 is used After obtaining audio frequency apparatus unlatching recording channel, in its audio interface, the signal of telecommunication of each pole in a pair audio frequency input extremely, identifies mould Block 122 for the signal of telecommunication identification MIC pole at the two poles of the earth got according to acquisition module 121 and gnd electrode, port handover module 123, After identification module 122 identifies MIC pole and gnd electrode, automatically earth potential is docked with the gnd electrode identified, by audio frequency Signal transmitting module 5 and the MIC pole identified.
As shown in Figure 4, for control module 1 another in the interface Mike pole of signal processing module sound intermediate frequency shown in Fig. 2 and earth polar A kind of implementation.Submodule 142 is identified including voltage domain modular converter 141 and first.Voltage domain modular converter 141 is by existing Have audio frequency apparatus to open behind recording channel, provide a direct current biasing to MIC pole so that MIC have higher than gnd electrode voltage this One precondition, sets up curtage passage between this pair audio frequency input pole in its audio interface, is connect by earth potential Enter in the node of this passage, obtain in this pair audio frequency input extremely each pole relative to this earthy voltage relative value.Due to sound Frequently, behind opening of device recording channel, MIC has the voltage higher than gnd electrode, and earth potential is 0 under normal circumstances, then MIC Pole relative to this earthy voltage relative value one be set on the occasion of, gnd electrode is set to relative to this earthy voltage relative value one Negative value, therefore, voltage domain modular converter 141 output is a positive voltage relative value and a negative voltage relative value.The One identifies that submodule 142 identifies MIC pole and gnd electrode, positive one extremely MIC by the positive negative characteristic of detection voltage relative value Pole, negative one extremely gnd electrode.
As it is shown in figure 5, for control module 1 another in the interface Mike pole of signal processing module sound intermediate frequency shown in Fig. 2 and earth polar A kind of implementation.This embodiment is different from the place of embodiment illustrated in fig. 4 and is, uses the second identification submodule 151 and patrols Collect judge module 152 and substitute the first identification submodule 142, i.e. this embodiment sound intermediate frequency interface Mike pole of embodiment illustrated in fig. 4 Include that voltage domain modular converter 141, second identifies submodule 151 and logic judgment module 152 with the control module 1 in earth polar.Electricity After pressure territory modular converter 141 still opens recording channel by existing audio frequency apparatus, provide a direct current biasing to MIC pole so that MIC has this precondition of voltage higher than gnd electrode, sets up between this pair audio frequency input pole in its audio interface Curtage passage, accesses earth potential in the node of this passage, obtains in this pair audio frequency input extremely each pole relative to this Earthy voltage relative value.Second identifies that submodule 151 includes that two comparison modules, the first comparison module 151a and second compare Module 151b, the first comparison module 151a enters with earth potential for the voltage relative value exported by voltage domain modular converter 141 Row compares, and exports a digital signal level according to comparative result;Second comparison module 151b is for by voltage domain modular converter 141 Another voltage relative value of output compares with earth potential, exports another digital signal level according to comparative result.Logic is sentenced Disconnected module 152 is for the digital signal level identification MIC exported according to the first comparison module 151a and the second comparison module 151b Pole and gnd electrode.The comparison rule assuming the first comparison module 151a and the second comparison module 151b is that relative value is more than when voltage During earth potential, output level 1, when voltage relative value is less than earth potential, output level 0, then as the first comparison module 151a With when being all level 0 of the second comparison module 151b output, show that audio frequency apparatus does not also open recording channel or external equipment Plug be also not inserted in audio interface, when any one export be level 1 time, show that audio frequency apparatus has turned on recording logical Road, the pole corresponding to level 1 is identified as MIC pole by logic judgment module 152, and the pole corresponding to level 0 is identified as GND Pole.On the contrary, if the comparison rule of the first comparison module 151a and the second comparison module 151b is, when voltage relative value is more than ground electricity During position, output level 0, when voltage relative value is less than earth potential, output level 1, then as the first comparison module 151a and the When being all level 1 of two comparison module 151b outputs, shows that audio frequency apparatus does not also open recording channel or external plug the most not Be inserted in audio interface, when any one export be level 0 time, show that audio frequency apparatus has turned on recording channel, logic is sentenced A pole corresponding to level 0 is identified as MIC pole by disconnected module 152, and the pole corresponding to level 1 is identified as gnd electrode.
Audio interface MIC pole shown in Fig. 5 and the identification module 1 of gnd electrode, can realize with the form of circuit.Such as Fig. 6 institute Show, for the circuit structure of its equivalence, it is assumed that signal processing module is built in external equipment, the earth potential AFG of external equipment Representing, the AFM of the outfan external equipment of the audio signal sending module in signal processing module represents.Audio interface MIC The identification module 1 of pole and gnd electrode includes that voltage domain converting unit the 191, first comparator the 192, second comparator 193, logic are sentenced Disconnected unit 194 and port switching switch 195.Wherein, voltage domain converting unit 191 uses the form of electric resistance partial pressure in audio interface Setting up current channel between interior a pair audio frequency input pole, structure as shown in Figure 7a, by the external plug of signal processing module Corresponding ring segment (such as A section and B section), accesses a pair audio frequency input pole of audio frequency apparatus, a pair audio frequency input pole in audio interface The first resistance R1 and the second resistance R2, the first resistance R1 and the second resistance R2 is concatenated between (corresponding to A section and the B section of plug) Intermediate node earthing potential AFG.After opening recording channel due to existing audio frequency apparatus, MIC has the voltage higher than gnd electrode, The voltage difference assuming MIC pole and gnd electrode is Δ V, R1=R2, AFG=0, then voltage domain converting unit 191 output relative to The two voltage relative value of earth potential AFG are respectively 1/2 Δ V ,-1/2 Δ V.One input of the first comparator 192 accesses voltage domain One voltage relative value of converting unit 191 output, another input accesses earth potential AFG, and outfan exports according to comparative result One digital signal level, if this voltage relative value is more than this earth potential AFG, then output level 1, otherwise output level 0.Second ratio One input of relatively device 193 accesses another voltage relative value of voltage domain converting unit 191 output, and another input accesses ground electricity Position AFG, outfan exports another digital signal level according to comparative result, equally, if this voltage relative value is more than earth potential AFG, then output level 1, otherwise output level 0.The output of one input termination the first comparator 192 of logic judgment unit 194 End, the outfan of another input termination the second comparator 193, when what the first comparator 192 and the second comparator 193 exported be all During level 0, show that recording channel also do not opened by audio frequency apparatus or the external plug of signal processing module is also not inserted into audio frequency In interface, when any one export be level 1 time, show that audio frequency apparatus has turned on recording channel, logic judgment unit 194 will A pole corresponding to level 1 is identified as MIC pole, and the pole corresponding to level 0 is identified as gnd electrode, is exported extremely by recognition result Port switching switch 195.Earth potential AFG is docked by port switching switch 195 automatically with the gnd electrode identified, in order to unified letter Number processing module and the earth potential of audio frequency apparatus, dock AFM with the MIC pole identified, to set up to audio frequency apparatus transmission number According to passage.
In another embodiment, the voltage domain converting unit 191 in Fig. 6 can be to use the form of capacitance partial pressure at audio frequency Set up voltage channel between a pair audio frequency input pole in interface, as shown in Figure 7b, in audio interface a pair audio frequency input pole it Between concatenate the first electric capacity C1 and the second electric capacity C2, the intermediate node of the first electric capacity C1 and the second electric capacity C2 accesses earth potential AFG, the R1, R2 effect in one electric capacity C1, second electric capacity C2 and Fig. 7 a is identical.
In another embodiment, the voltage domain converting unit 191 in Fig. 6 can be to use the form of metal-oxide-semiconductor dividing potential drop at sound Frequently current channel is set up between a pair audio frequency input pole in interface, as shown in Figure 7 c, a pair audio frequency input pole in audio interface Between concatenate the first metal-oxide-semiconductor N1 and the second metal-oxide-semiconductor N2, the intermediate node of the first metal-oxide-semiconductor N1 and the second metal-oxide-semiconductor N2 accesses earth potential AFG, also includes the current source I and the 3rd metal-oxide-semiconductor N3 providing grid current for the first metal-oxide-semiconductor N1 and the second metal-oxide-semiconductor N2.First Metal-oxide-semiconductor N1, the gate voltage of the second metal-oxide-semiconductor N2 and the 3rd metal-oxide-semiconductor N3 are connected, and constitute current mirror, and current source I flows through the 3rd metal-oxide-semiconductor N3, the first metal-oxide-semiconductor N1, the second metal-oxide-semiconductor N2 drain-source resistance RDS and Fig. 7 a in R1, R2 effect identical.
In another embodiment, it is also possible on the basis of voltage domain converting unit 191 shown in Fig. 7 c, do and change further Enter, as shown in figure 7d, be connected with between the first metal-oxide-semiconductor N1, the second metal-oxide-semiconductor N2 in audio frequency input pole respectively a protective resistance R1 ', R2 ', R1 ', R2 ' each serve as restriction electric current and the effect of electrostatic protection.
As shown in Figure 8, for a kind of embodiment of the first audio signal modular converter 3 in signal processing module shown in Fig. 2. Including DC converting module 31 and comparison module 32.Corresponding to the sound channel number in audio interface, comparison module 32 sets phase Answering the sub-comparison module of number, the son of sub-comparison module 32a and corresponding R channel that the present embodiment sets corresponding L channel compares Module 32b.Due to the usually ac voltage signal exported from the sound channel pole of audio interface, DC converting module 31 is for by sound Frequently the audio signal conversion direct current signal of the alternating voltage form that signal receiving module 2 receives from the sound channel pole of audio interface.Tool Body, can be on the ac voltage signal of sound channel pole output, the DC voltage VDC_A that superposition is positive, make that sound channel pole exports is former Beginning AC signal, becomes the signal having certain DC component, and preferred VDC_A is the half of supply voltage VDD.Sub-comparison module 32a, sub-comparison module 32b are for the signal having certain DC component DC converting module 31 being converted into and above-mentioned unidirectional current Pressure VDC_A compares, and sends comparative result, if DC converting module 31 be converted into have the signal of certain DC component big In VDC_A, then export high level, otherwise output low level.
In another embodiment, signal processing module shown in Fig. 2 also includes filtering burr module.For to the first audio signal The digital signal obtained after modular converter 3 conversion carries out filtering burr and processes, and filters the first audio signal modular converter 3 due to circuit And the signal burr that signal noise causes.
As it is shown in figure 9, for a kind of embodiment of the second audio signal modular converter 4 in signal processing module shown in Fig. 2. Second audio signal modular converter 4 uses current mode D/A converter module.The present embodiment can use current mode DAC, current mode DAC is by after the digital signal transmitted to audio frequency apparatus is converted to audio signal, and the work simulating existing ear microphone is former Reason, extracts electric current from the MIC pole of audio interface, causes the impedance variation that MIC extremely goes up, thus causes mike to extract from MIC pole Curent change, when the electric current of extraction changes, the voltage that MIC extremely goes up can be along with change, by changing the electricity that MIC extremely goes up Pressure, to audio frequency apparatus input current type audio signal.
In another embodiment, signal processing module shown in Fig. 2 also includes amplitude/centered level control module, amplitude/in The amplitude of the audio signal that heart level control block exports for control the second audio signal modular converter 4 and centered level, by Different, therefore, by width in different audio frequency apparatuses, the amplitude of the audio signal that its audio interface is mated and centered level The control of degree/centered level control module, can be the most compatible from the audio interface of different audio frequency apparatuses.
As shown in Figure 10, the signal processing module provided for another embodiment of the present invention.This embodiment is implemented with shown in Fig. 2 Example is compared, signal processing module except include the control module 1 in audio interface microphone pole and earth polar, audio signal reception module 2, Outside first audio signal modular converter the 3, second audio signal modular converter 4 and audio signal sending module 5, also include coding Module 6 and decoder module 7.Coding module 6 is for treating the encoding digital signals sent to audio frequency apparatus, after coding Digital signal input is changed to the second audio signal modular converter 4, and audio frequency apparatus receives the second audio signal modulus of conversion After voice data after block 4 conversion, be first converted to digital signal, then use identical rule to be decoded.Equally, audio frequency apparatus Before sound channel pole transmission voice data, first by encoding digital signals to be sent out, then by the numeral after coding Signal is converted to audio signal, and therefore, decoder module 7 is for the number being converted into the audio signal from described audio frequency apparatus Word signal is decoded.
As shown in figure 11, the signal processing module provided for another embodiment of the present invention.This embodiment is in order to increase further The reliability of strong data transmission, is with the difference of embodiment illustrated in fig. 9, signal processing module is except including audio interface The control module 1 in Mike pole and earth polar, audio signal reception module the 2, first audio signal modular converter the 3, second audio signal Outside modular converter 4, audio signal sending module 5, coding module 6 and decoder module 7, also include that framing module 8 conciliates frame mould Block 9, treats before the encoding digital signals that audio frequency apparatus sends at coding module 6, and this is first treated to audio frequency by framing module 8 The digital signal that equipment sends carries out framing, the digital signal input after framing is encoded to coding module 6.Equally, sound Frequently, before equipment is by sound channel pole transmission voice data, digital signal to be sent out first is carried out framing, then encodes, Again the digital signal after coding being converted to audio signal, therefore, the audio signal from audio frequency apparatus is turned by decoder module 7 After the digital signal changed into is decoded, solves frame module 9 and carry out decoded digital signal solving frame.
As shown in figure 12, the signal processing module provided for another embodiment of the present invention.With embodiment illustrated in fig. 10 not Being with part, signal processing module is except including the control module 1 in audio interface microphone pole and earth polar, audio signal reception mould Block the 2, first audio signal modular converter the 3, second audio signal modular converter 4, audio signal sending module 5, coding module 6 and Decoder module 7, framing module 8 are conciliate outside frame module 9, also include connecting inspection module 10, are used for checking signal processing module Whether complete to be connected with audio interface.Concrete, the voltage of MIC pole and gnd electrode in audio interface can be checked, when it After voltage difference exceedes the threshold value of setting, representing and complete to connect, output connects indication signal, when detecting that signal processing module pulls out After going out audio interface, notification signal processing module enters low-power consumption mode.
As shown in figure 13, for the signal processing method of signal processing module shown in Figure 11, its flow process includes:
S00, signal processing module audio interface with audio frequency apparatus by the way of external plug is connected, and audio signal connects Receive module 2 to complete to dock according to usual manner of the prior art with the sound channel pole of audio interface, treat that recording opened by audio frequency apparatus After passage, MIC pole and the gnd electrode of audio interface are identified by the control module 1 in audio interface microphone pole and earth polar, identify it After, earth potential is docked with the gnd electrode identified, audio signal sending module 5 is docked with the MIC pole identified.
Receive on passage:
S01, audio signal reception module 2 receive the audio signal from audio frequency apparatus by the sound channel pole of audio interface, By the audio signal transmission of reception to the first audio signal modular converter 3.Should be from the audio signal of audio frequency apparatus via audio frequency Obtain after equipment framing, coding and digital-to-analogue conversion.
This audio signal from audio frequency apparatus is converted to digital signal by S02, the first audio signal modular converter 3, will Digital signal after conversion exports to decoder module 7.Before transmission to decoder module 7, it is preferred that by filter burr module pair Digital signal after conversion carries out filtering burr and processes.
The digital signal that audio signal from audio frequency apparatus is converted into by S03, decoder module 7 is decoded, and will solve Digital data transmission after Ma is to solving frame module 9.
S04, solution frame module 9 digital signal decoded to decoder module 7 carry out solving frame, and the data that will obtain after solving frame are entered Row cache, or send to other processing modules and carry out Business Processing.
On sendaisle:
S11, framing module 8 are taken out from caching or obtain the numeral treating to send to audio frequency apparatus from other processing modules To this, signal, treats that the digital signal sent to audio frequency apparatus carries out framing, inputs the digital signal after framing to coding module 6。
The digital signal treating to send to audio frequency apparatus through framing that framing module 8 is exported by S12, coding module 6 enters Row coding, inputs the digital signal after coding to the second audio signal modular converter 4.
The encoded digital signal treating to send to audio frequency apparatus is converted to by S13, the second audio signal modular converter 4 Audio signal, transmission is to audio signal sending module 5.
S14, audio signal sending module 5 will be via the second audio signal modular converters 4 turns by the MIC pole of audio interface The audio signal changed into sends to audio frequency apparatus.After audio frequency apparatus receives this audio signal, carry out analog digital conversion, decode, solve frame Operation.
The present invention utilize the audio interface of audio frequency apparatus before audio frequency apparatus carries out data communication with external equipment, the most right In audio interface, MIC pole and gnd electrode are identified, then by audio signal sending module in signal processing module with identify MIC pole is docked, and is docked with the gnd electrode identified by earth potential, provides precondition for data communication based on audio interface.Enter One step, the present invention, during utilizing audio interface to carry out data communication, utilizes current mode D/A converter module by from sound Frequently the audio signal that the mode of the MIC pole extraction electric current of interface will convert into sends to described audio frequency apparatus, simulates existing earphone Mike in the way of taking out electric current, send the operation principle of audio signal so that the signal processing module of the present invention and method with Existing audio interface can be preferably compatible.As long as any external equipment includes that the signal processing module that the present invention provides just may be used Automatically MIC pole and the gnd electrode of the audio interface of any audio frequency apparatus is identified, it is provided that communication efficiency by this signal processing module.
Above content is to combine specific embodiment further description made for the present invention, it is impossible to assert this Bright being embodied as is confined to these explanations.For general technical staff of the technical field of the invention, do not taking off On the premise of present inventive concept, it is also possible to make some simple deduction or replace, all should be considered as belonging to the protection of the present invention Scope.

Claims (14)

1. a signal processing module, described signal processing module is by the audio interface of audio frequency apparatus and audio frequency apparatus number According to alternately, described signal processing module include audio interface microphone pole and the control module in earth polar, audio signal reception module, One audio signal modular converter, the second audio signal modular converter and audio signal sending module, described audio signal reception mould Block docks with the sound channel pole of audio interface, wherein,
The control module in described audio interface microphone pole and earth polar is used for obtaining described audio frequency apparatus after opening recording channel, its During in audio interface, a pair audio frequency inputs extremely, each pole is relative to earthy voltage relative value;Detect the pair of audio frequency input pole In the positive negative characteristic of voltage relative value of each pole, according to Mike pole and the earth polar of audio interface described in testing result identification;Or, The voltage relative value of each pole in the input extremely of the pair of audio frequency is compared with earth potential, respectively according to respective comparative result Export a digital signal level respectively, according to Mike pole and the ground of audio interface described in two digital signal level identifications of output Pole;Described audio signal sending module is docked with the Mike pole identified, earth potential is docked with the earth polar identified;
Described audio signal reception module is for receiving the sound from described audio frequency apparatus by the sound channel pole of described audio interface Frequently signal;
Described first audio signal modular converter is for being converted to digital signal from the audio signal of described audio frequency apparatus;
Described second audio signal modular converter is for treating that the digital signal sent to described audio frequency apparatus is converted to audio frequency letter Number;
Described audio signal sending module is for will treating to send to described audio frequency apparatus by the Mike pole of described audio interface The audio signal that digital signal is converted into sends to described audio frequency apparatus.
2. signal processing module as claimed in claim 1, it is characterised in that described second audio signal modular converter is electric current Type D/A converter module.
3. signal processing module as claimed in claim 2, it is characterised in that described current mode D/A converter module is by from institute The audio signal that the mode of the Mike pole extraction electric current stating audio interface will convert into sends to described audio frequency apparatus.
4. signal processing module as claimed in claim 1, it is characterised in that described signal processing module also includes:
Coding module, is used for the encoding digital signals being sent to described audio frequency apparatus, the digital signal after encoding Input to described second audio signal modular converter is changed;
Decoder module, is decoded for the digital signal being converted into the audio signal from described audio frequency apparatus.
5. signal processing module as claimed in claim 4, it is characterised in that described signal processing module also includes:
Framing module, carries out framing, by the digital signal after framing for treating the digital signal sent to described audio frequency apparatus Input to described coding module encodes;
Solve frame module, carry out solving frame for digital signal decoded to described decoder module.
6. the signal processing module as described in any one of claim 1-5, it is characterised in that described audio interface microphone pole and ground The control module of pole is for when voltage relative value is more than described earth potential, and output level 1, when voltage relative value is less than described During current potential, output level 0;When exporting a level 1 and a level 0, during the pair of audio frequency corresponding to level 1 is inputted extremely One pole is identified as described Mike pole, and in being inputted extremely by the pair of audio frequency corresponding to level 0, a pole is identified as described earth polar.
7. the signal processing module as described in any one of claim 1-5, it is characterised in that described audio interface microphone pole and ground The control module of pole is for when voltage relative value is more than described earth potential, and output level 0, when voltage relative value is less than described During current potential, output level 1;When exporting a level 1 and a level 0, during the pair of audio frequency corresponding to level 0 is inputted extremely One pole is identified as described Mike pole, and in being inputted extremely by the pair of audio frequency corresponding to level 1, a pole is identified as described earth polar.
8. a signal processing method, including:
Acquisition audio frequency apparatus is after opening recording channel, and during in its audio interface, a pair audio frequency inputs extremely, each pole is relative to earth potential Voltage relative value;
Detect the positive negative characteristic of the voltage relative value of each pole in the input extremely of the pair of audio frequency, according to sound described in testing result identification Frequently the Mike pole of interface and earth polar;Or, by the pair of audio frequency input extremely in each pole voltage relative value respectively with earth potential Compare, export a digital signal level respectively according to respective comparative result, know according to two digital signal levels of output The Mike pole of the most described audio interface and earth polar;
Audio signal sending module is docked with the Mike pole identified, earth potential is docked with the earth polar identified, by audio frequency Signal receiving module docks with the sound channel pole of audio interface;
The audio signal from audio frequency apparatus is received by the sound channel pole of described audio interface;
Digital signal will be converted to from the audio signal of described audio frequency apparatus;
To treat that the digital signal sent to described audio frequency apparatus is converted to audio signal;
To treat that the audio frequency that the digital signal sent to described audio frequency apparatus is converted into is believed by the Mike pole of described audio interface Number send to described audio frequency apparatus.
9. signal processing method as claimed in claim 8, it is characterised in that use current mode D/A converter module will treat to institute The digital signal stating audio frequency apparatus transmission is converted to audio signal.
10. signal processing method as claimed in claim 9, it is characterised in that described current mode D/A converter module by from The audio signal that the mode of the Mike pole extraction electric current of described audio interface will convert into sends to described audio frequency apparatus.
11. signal processing methods as claimed in claim 8, it is characterised in that the numeral sent to described audio frequency apparatus will be treated Before signal is converted to audio signal, also include: treat the encoding digital signals sent to described audio frequency apparatus;Will be from After the audio signal of described audio frequency apparatus is converted to digital signal, also include: the digital signal being converted into is decoded.
12. signal processing methods as claimed in claim 11, it is characterised in that treat the numeral sent to described audio frequency apparatus Before signal encodes, also include: treat the digital signal sent to described audio frequency apparatus and carry out framing;To the number being converted into After word signal is decoded, also include: carry out decoded digital signal solving frame.
13. signal processing methods as described in any one of claim 8-12, it is characterised in that when voltage relative value is more than described During earth potential, obtain level 1, when voltage relative value is less than described earth potential, obtain level 0, described in corresponding to level 1 In a pair audio frequency input extremely, a pole is identified as described Mike pole, a pole in being inputted extremely by the pair of audio frequency corresponding to level 0 It is identified as described earth polar.
14. signal processing methods as described in any one of claim 8-12, it is characterised in that when voltage relative value is more than described During earth potential, obtain level 0, when voltage relative value is less than described earth potential, obtain level 1, described in corresponding to level 0 In a pair audio frequency input extremely, a pole is identified as described Mike pole, a pole in being inputted extremely by the pair of audio frequency corresponding to level 1 It is identified as described earth polar.
CN201210127502.1A 2012-04-26 2012-04-26 Signal processing module and signal processing method Active CN103379052B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210127502.1A CN103379052B (en) 2012-04-26 2012-04-26 Signal processing module and signal processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210127502.1A CN103379052B (en) 2012-04-26 2012-04-26 Signal processing module and signal processing method

Publications (2)

Publication Number Publication Date
CN103379052A CN103379052A (en) 2013-10-30
CN103379052B true CN103379052B (en) 2016-12-14

Family

ID=49463623

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210127502.1A Active CN103379052B (en) 2012-04-26 2012-04-26 Signal processing module and signal processing method

Country Status (1)

Country Link
CN (1) CN103379052B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110501597A (en) * 2019-09-03 2019-11-26 广州小鹏汽车科技有限公司 Electric car and the detection circuit for BMS, method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035911A (en) * 2010-07-08 2011-04-27 中兴通讯股份有限公司 Device and method for accessing earphone of mobile phone
WO2011062778A1 (en) * 2009-11-19 2011-05-26 Apple Inc. Electronic device and external equipment with digital noise cancellation and digital audio path
CN201920987U (en) * 2010-12-07 2011-08-10 陕西科技大学 Skin hearing apparatus based on Morse codes
CN102255730A (en) * 2011-07-11 2011-11-23 吴沙林 Digital certificate safety lock device and digital certificate authentication system and method
CN102404665A (en) * 2010-09-07 2012-04-04 中兴通讯股份有限公司 Earphone interface self-adaptation circuit
CN102413239A (en) * 2011-11-15 2012-04-11 惠州Tcl移动通信有限公司 Mobile phone and method for detecting earphone mode of mobile phone

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011062778A1 (en) * 2009-11-19 2011-05-26 Apple Inc. Electronic device and external equipment with digital noise cancellation and digital audio path
CN102035911A (en) * 2010-07-08 2011-04-27 中兴通讯股份有限公司 Device and method for accessing earphone of mobile phone
CN102404665A (en) * 2010-09-07 2012-04-04 中兴通讯股份有限公司 Earphone interface self-adaptation circuit
CN201920987U (en) * 2010-12-07 2011-08-10 陕西科技大学 Skin hearing apparatus based on Morse codes
CN102255730A (en) * 2011-07-11 2011-11-23 吴沙林 Digital certificate safety lock device and digital certificate authentication system and method
CN102413239A (en) * 2011-11-15 2012-04-11 惠州Tcl移动通信有限公司 Mobile phone and method for detecting earphone mode of mobile phone

Also Published As

Publication number Publication date
CN103379052A (en) 2013-10-30

Similar Documents

Publication Publication Date Title
CN103378933B (en) Coding/decoding method, decoder module and signal processing method, signal processing apparatus
CN101783986B (en) Earphone interface circuit and electronic equipment
CN208675514U (en) A kind of frequency switch circuit and electronic equipment
CN104035357A (en) Headset, charging and OTG equipment circuit design based on USB socket
CN207783087U (en) Wireless earphone circuit with wired function and wireless headset
CN105101001A (en) Earphone identification device and terminal equipment
CN104618836A (en) Communication device
CN107172515A (en) Test earphone plug is inserted in mobile terminal detection circuit and mobile terminal
CN201750528U (en) Audio processing device
CN101990144A (en) Double earphone adapter, main board and method for detecting double earphones
CN105635902A (en) Audio interface compatible with digital audio device and implementation method
CN103634723B (en) Audio input circuit and the electronic equipment with audio input
CN102387429B (en) Audio signal switching device and audio signal transmission system
CN103379052B (en) Signal processing module and signal processing method
CN204968070U (en) Earphone socket, Headphone plug and electronic equipment
CN103379408B (en) Signal processing module
CN104683914A (en) Electronic equipment and earphone detection circuit, method and device
CN105049998B (en) A kind of audio communication device
CN105187992A (en) Microphone switch control circuit and method
CN102638593B (en) A kind of mobile phone
CN109470293B (en) Detection device and detection method for output of self-adaptive encoder
CN207475793U (en) It is a kind of can free switching audio output headset plug
CN106412760B (en) Earphone compatible device
CN107908387B (en) Signal transmission circuit, signal transmission system, signal transmission method and intelligent terminal
CN105915293A (en) Voice digital information transmission system and method based on wireless acoustic signals

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