The content of the invention
Present invention aim to address with Bluetooth wireless transmission and pass through the lance between line in line wire transmission both of which
Shield, realizes the unification being wirelessly transferred between wire transmission, i.e., when using tone frequency channel wire wire transmission, can also use bluetooth
Module is wirelessly transferred.
In a first aspect, the embodiments of the invention provide a kind of audio playing apparatus, the audio playing apparatus includes audio
Interface, bluetooth module, power amplifier;
The output end of the COBBAIF is connected to the first input end of the bluetooth module, and external equipment is by wirelessly connecting
The second input of bluetooth module is connected to, the output end of the bluetooth module is connected to the power amplifier;
When bluetooth module, which detects tone frequency channel wire, to be accessed by COBBAIF, the bluetooth module starts to enter audio signal
Row processing so that the power amplifier plays the audio signal, wherein, the audio signal include wireless audio signal and
Wireline audio signal.
With reference in a first aspect, in the first possible implementation of first aspect, described device includes audio selection
Circuit, the bluetooth module includes the pins of GPIO second, and DAC, the COBBAIF is AUX jacks, and the AUX jacks include
Line audio-frequency module, the power amplifier includes power amplifier switches;
First output end of the AUX jacks is connected to the pins of GPIO second, the second output end of the AUX jacks
The power amplifier switches are connected to, the output end of the wireline audio module is connected to the first of the audio selecting circuit
Input, the output end of the DAC is connected to the second input of the audio selecting circuit, the audio selecting circuit it is defeated
Go out end and be connected to the power amplifier;
When the pins of GPIO second, which detect tone frequency channel wire, to be accessed by AUX jacks, the wireline audio module will have
Line audio signal is inputted to the audio selecting circuit, and the bluetooth module disconnection of wireless links or suspended wireless audio signal
Transmission, after the wireline audio signal is handled through the audio selecting circuit, result is inputted to the power amplifier,
So that the power amplifier plays wireline audio signal;Pass through AUX jacks when the pins of GPIO second detect tone frequency channel wire
During dial-out, the bluetooth module reconnects wireless link or recovers the transmission of wireless audio signal, and the bluetooth module will be received
Wireless audio signal inputted after DAC to the audio selecting circuit, the wireless audio signal is through audio selection electricity
After the processing of road, result is inputted to the power amplifier, so that the power amplifier plays wireless audio signal.Knot
Close the first possible implementation of first aspect, in second of possible implementation of first aspect, the bluetooth
Module also includes GPIO three-prongs, and the GPIO three-prongs are connected to the 3rd input of audio selecting circuit;
When the pins of GPIO second, which detect tone frequency channel wire, to be accessed by AUX jacks, the wireline audio module will have
Line audio signal is inputted to the audio selecting circuit, if to have detected wireless audio signal defeated for the GPIO three-prongs
Enter, the GPIO three-prongs control the audio selecting circuit, so that the audio selecting circuit exports wireless audio signal,
And input the wireless audio signal to the power amplifier so that it plays wireless audio signal.
With reference to the first possible implementation or second of possible implementation of first aspect, in first aspect
In the third possible implementation, the bluetooth module determines have wireless audio signal to input and/or nothing according to Bluetooth protocol
The disconnection and connection and/or the pause of wireless audio signal and broadcasting of line link.
With reference in a first aspect, in the 4th kind of possible implementation of first aspect, the bluetooth module includes GPIO
Second pin, ADC, the COBBAIF is AUX jacks, and the AUX jacks include wired audio-frequency module, the power amplifier
Including power amplifier switches;
First output end of the AUX jacks is connected to the pins of GPIO second, the second output end of the AUX jacks
The power amplifier switches are connected to, the output end of the wireline audio module is connected to the ADC, the output of the DAC
End is connected to the power amplifier;
When the pins of GPIO second, which detect tone frequency channel wire, to be accessed by AUX jacks, the wireline audio module will have
Line audio signal is inputted to the ADC, and after the ADC and DAC processing, result is inputed into the power amplifier,
So that the power amplifier plays the wireline audio signal.
Second with reference to the first possible implementation or first aspect of first aspect or first aspect is possible
4th kind of possible implementation of the third possible implementation or first aspect of implementation or first aspect,
In 5th kind of possible implementation of one side, the bluetooth module also includes:The pins of GPIO first, the GPIO first is managed
Pin is connected to power amplifier switches, for opening or turning off the power amplifier.
Second aspect, the embodiments of the invention provide a kind of Baffle Box of Bluetooth, the Baffle Box of Bluetooth includes first aspect such as and appointed
Audio playing apparatus described in one.
Therefore, by audio playing apparatus provided in an embodiment of the present invention and Baffle Box of Bluetooth, the audio playing apparatus bag
Include COBBAIF, bluetooth module, power amplifier;It is first defeated that the output end of the COBBAIF is connected to the bluetooth module
Enter end, external equipment is connected to institute by being wirelessly connected to the second input of bluetooth module, the output end of the bluetooth module
State power amplifier;When bluetooth module, which detects tone frequency channel wire, to be accessed by COBBAIF, the bluetooth module starts to audio
Signal is handled, so that the power amplifier plays the audio signal, wherein, the audio signal includes ANTENNAUDIO
Signal and wireline audio signal, are realized when being wirelessly transferred, and can also be carried out wire transmission by tone frequency channel wire, be solved
Bluetooth wireless transmission and by the contradiction between tone frequency channel wire wire transmission, realizes the system being wirelessly transferred between wire transmission
One, i.e., when using tone frequency channel wire wire transmission, bluetooth module can also be used to be wirelessly transferred.
Embodiment
Below by drawings and examples, technical scheme is described in further detail.
Fig. 1 is audio playing apparatus schematic diagram provided in an embodiment of the present invention.As shown in figure 1, the audio playing apparatus bag
Include:COBBAIF 11, bluetooth module 12, power amplifier 13.
When the second external equipment inserts COBBAIF 11 by tone frequency channel wire, bluetooth module 12, which is detected on COBBAIF, to be had
After tone frequency channel wire access This move, bluetooth module 12 can electrically wipe programmable read only memory off according to manufacturer
Different configurations in (electrically erasable programmable read only memory, EEPROM), start
Audio signal is handled, after the Audio Signal Processing of 12 pairs of inputs of bluetooth module, result is inputted to power amplification
Device 13, so that the playing audio signal of power amplifier 13.Wherein, the audio signal can be that the second external equipment passes through tone frequency channel wire
The wireline audio signal of input, such as, music, the audio signal can also be that the first external equipment is defeated by bluetooth wireless pairing
Enter to the wireless audio signal of bluetooth module 12, such as in telephone relation when being used using audio playing apparatus as Mobile phone hand-free
Appearance, or the music inputted during wireless connection, the audio signal can also include above-mentioned wireline audio signal and above-mentioned nothing simultaneously
Line audio signal.Wherein, the first external equipment is the equipment with bluetooth module wireless pairing, and the second external equipment is by audio
The equipment of interface 11 and audio playing apparatus wired connection, the first external equipment and the second external equipment can be same set
Standby or different equipment, such as, the first external equipment and the second external equipment can be mobile phones, PAD, in notebook
Any one or its combination.
Fig. 2 realizes for a kind of of embodiment illustrated in fig. 1 of the present invention, as shown in Fig. 2 during the present invention is implemented, audio plays dress
Put including audio selecting circuit, bluetooth module 12 include universal input/output (General Purpose Input Output,
GPIO) the second pin GPIO2, digital-to-analogue conversion DAC, COBBAIF 11 are AUX jacks, and the AUX jacks include wireline audio mould
Block, power amplifier 13 includes power amplifier switches.
First output end of the AUX jacks is connected to the second pins of GPIO GPIO2, the second of the AUX jacks
Output end is connected to the power amplifier switches, and the output end of the wireline audio module is connected to the audio selecting circuit
First input end, the output end of the DAC is connected to the second input of the audio selecting circuit, the audio selection electricity
The output end on road is connected to the power amplifier.
Specifically, when the joint of tone frequency channel wire inserts AUX jacks, AUX jacks internal circuit produces a low level signal, should
Low level signal triggers the second pins of GPIO GPIO2 of bluetooth module so that bluetooth module passes through second pins of GPIO GPIO2
Tone frequency channel wire insertion AUX jack This moves are detected, now, bluetooth module is by disconnecting bluetooth wireless link or pause
The transmission of wireless audio signal, wireline audio module inputs wireline audio signal to audio selecting circuit, is selected through the audio
Select after processing of circuit, result is inputted to the power amplifier, so that the power amplifier plays wireline audio letter
Number.Now, due to being to disconnect bluetooth connection, but bluetooth module is not closed, therefore, bluetooth module is by the ANTENNAUDIO received
Signal is inputted after DAC to the audio selecting circuit, and audio selecting circuit can be by the ANTENNAUDIO on the first external equipment
Signal, such as, low battery is reminded etc., played back by power amplifier.When the joint of tone frequency channel wire extracts AUX jacks, AUX
Jack internal circuit produces a high level signal, the second pins of GPIO GPIO2 detections of high level signal triggering bluetooth module
To there is tone frequency channel wire to extract AUX jack This moves, now, bluetooth module by linking wireless connection or recovering wireless sound again
The transmission of frequency signal, wireless audio signal is inputted to audio selecting circuit, after being handled through the power selection circuitry, so that work(
Rate amplifier plays wireless audio signal.Wherein, bluetooth module can control the disconnected of bluetooth wireless link by Bluetooth protocol
Chain and link again, bluetooth module can also control the broadcasting and pause of wireless audio signal by Bluetooth protocol.
Fig. 3 is another realization of embodiment illustrated in fig. 1 of the present invention.On the basis of above-mentioned Fig. 2, the bluetooth module is also
Including GPIO three-prong GPIO7, the GPIO three-prongs GPIO7 is connected to the 3rd input of audio selecting circuit;
When the second pins of GPIO GPIO2, which detects tone frequency channel wire, to be accessed by AUX jacks, the wireline audio module
Wireline audio signal is inputted to the audio selecting circuit, if the GPIO three-prongs GPIO7 has detected wireless sound
Frequency signal is inputted, and the GPIO7 three-prongs produce the change of low and high level by software mode, and if GPIO the 3rd is managed
In high level effectively, then the GPIO three-prongs GPIO7 controls the audio selecting circuit to pin GPIO7 by high level, with
Make audio selecting circuit output wireless audio signal, and by the wireless audio signal input to the power amplifier with
It is set to play wireless audio signal.At the end of wireless audio signal is played, GPIO three-prongs GPIO7 is jumped by software mode
It is changed into low level, terminates the control to audio selecting circuit, audio selecting circuit can selects to export wireline audio signal, and will
The wireline audio signal inputs to power amplifier, so that power amplifier plays wireline audio signal.
Alternatively, bluetooth module determines there is wireless audio signal according to Bluetooth protocol.Such as, according to Bluetooth protocol, bluetooth
Module 12 can know hands-free mode (Hands-free Profile, FTP) or the agreement of Bluetooth audio frequency mode
The various states of (Advance Audio Distribution Profile, A2DP).
Fig. 4 is the tone frequency channel wire of embodiment illustrated in fig. 3 of the present invention and the connection circuit diagram of AUX jacks.As shown in figure 4, at this
In embodiment, including:AUX jacks, LINE_IN ports, SPK_LINE_IN ports, GPIO7, the first inductance L1, the second inductance
L2, the first electric capacity C1, the second electric capacity C2, the 3rd electric capacity C3, the 4th electric capacity C4, first resistor R1, second resistance R2,3rd resistor
R3, the 4th resistance R4, the 5th transistor Q5.Wherein, LINE_IN ports are a detection mouths, for detecting whether there is tone frequency channel wire
Joint insertion AUX jacks, SPK_LINE_IN port tables are shown with the output port of line audio signal, and LINE_IN usually locates port
In vacant state, when the joint of tone frequency channel wire inserts AUX jacks 11,1 and 4 short circuits in Fig. 4, LINE_IN ports ground connection becomes
Low level, can by some GPIO connection of the LINE_IN ports and bluetooth module (do not illustrate herein, can be by LINE_IN
GPIO the second pin GPIO2 connections of port and bluetooth module), notify blue by the second pins of GPIO GPIO2 so as to realize
The current AUX jacks of tooth module have joint insertion, and (LINE_IN pins are connected to the circuit diagram of bluetooth module not shown in figure, herein
LINE_IN pins and bluetooth module can simply be connected);Wherein, when bluetooth module detects the pins of GPIO second
After GPIO2 level change, it is possible to achieve the control to bluetooth wireless connection, realize and disconnect bluetooth connection or closing bluetooth mould
The functions such as block.2,3 in figure be wireline audio signal input port, and last wireline audio signal is defeated from SPK_LINE_IN ports
Go out, finally the wireline audio signal has been exported to power amplifier (as shown in Figure 6).GPIO three-prongs GPIO7 is located at
In bluetooth module, bluetooth module can control GPIO three-prongs GPIO7 to export high level or low level, and bluetooth module control
The condition of GPIO three-prongs GPIO7 outputs high level processed is that bluetooth module finds to be currently at talking state, if bluetooth mould
Block is in talking state, then GPIO three-prongs GPIO7 is high level, and the wireline audio signal in 2,3 is then grounded, SPK_
LINE_IN ports do not have wireline audio signal output, i.e., no wireline audio signal is inputted to power amplifier, and realizing is having
When wireless audio signal is inputted, such as when conversing, power amplifier does not play the wireline audio signal of tone frequency channel wire transmission, but broadcasts
Put wireless audio signal during wireless connection.
Fig. 5 is the audio signal of embodiment illustrated in fig. 3 of the present invention and the connection circuit diagram of power amplifier.As shown in figure 5,
In the present embodiment, including:LINE_IN ports, PA_EN ports, VBAT_IN ports, the 5th resistance R5, the 6th resistance R6, the
Seven resistance R7, the first transistor Q1.Wherein, PA_EN represents the enable port of power amplifier, connects the switch of power amplifier
Pin, VBAT_IN is cell voltage input port, when the joint of tone frequency channel wire inserts AUX jacks 11, LINE_IN ports ground connection
Become low level, PA_EN and VBAT_IN (high level) is turned on, and PA_EN is changed into high level, and power amplifier is opened.
Fig. 6 is the circuit diagram of embodiment illustrated in fig. 3 of the present invention.As shown in fig. 6, in the present embodiment, SPK_L is wireless sound
The output port of frequency signal, power amplifier can use PAM8302A chips.When the joint insertion AUX jacks 11 of tone frequency channel wire
When, LINE_IN ports ground connection becomes low level, and GPIO three-prongs GPIO7 can export high level by bluetooth module control,
Low level can also be exported, GPIO three-prongs GPIO7 low and high level can be controlled by the software in bluetooth module, than
Such as, by software mode GPIO three-prongs GPIO7 can be set to export low level when not conversing, is exported when there is call
High level.When GPIO three-prongs GPIO7 exports low level, SPK_L is ground connection, is exactly the ANTENNAUDIO letter of bluetooth module
Number output is connected on the ground, is not connected on power amplifier, and SPK_LINE_IN, i.e. wireline audio signal has been connected to power
(had shown that on amplifier in Fig. 4), when sending a telegram here or removing electricity, GPIO three-prongs GPIO7 is set to high level, and SPK_L is defeated
Enter to power amplifier, SPK_LINE_IN ground connection, realize broadcasting wireless audio signal.After end of conversation, GPIO the 3rd
Pin GPIO7 exports low level signal, recovers state during tone frequency channel wire, realizes broadcasting wireline audio signal.
It should be noted that the first pins of GPIO GPIO1 in Fig. 6 is arranged in bluetooth module, for bluetooth module control
The opening of power amplifier processed or closing, when tone frequency channel wire inserts AUX jacks, the GPIO1 pins do not work, from Fig. 6
Understand, when PA_EN is drawn high, no matter GPIO1 is drawn high or drag down, and the switch of power amplifier is not all influenceed.
Fig. 7 realizes for another of embodiment illustrated in fig. 1 of the present invention.As shown in fig. 7, the bluetooth module bag in the present embodiment
GPIO the second pin GPIO2, ADC, DAC are included, the COBBAIF is AUX jacks, the AUX jacks include wireline audio mould
Block, the power amplifier includes power amplifier switches;
First output end of the AUX jacks is connected to the second pins of GPIO GPIO2, the second of the AUX jacks
Output end is connected to the power amplifier switches, and the output end of the wireline audio module is connected to the ADC, the DAC
Output end be connected to the power amplifier;
When the second pins of GPIO GPIO2, which detects tone frequency channel wire, to be accessed by AUX jacks, the wireline audio module
Wireline audio signal is inputted to the ADC, after the ADC and DAC processing, result is inputed into the power amplification
Device, so that the power amplifier plays the wireline audio signal.Moreover, now because wireline audio signal passes through bluetooth mould
After the processing of block 12, output to power amplifier 13, it is possible to the volume of wireline audio signal is controlled using bluetooth module 12,
And can be handled by audio algorithms such as balanced devices (Equalizer, EQ), realize the frequency response processing of audio signal;Simultaneously can
The volume of wireline audio signal is controlled with being realized by analog gain, digital gain processing.
It should be noted that in scheme shown in Fig. 2-Fig. 4, the scheme shown in Fig. 2 and Fig. 4 can be combined,
Scheme shown in Fig. 3 and Fig. 4 can be combined.SPK_LINE_IN in Fig. 2, Fig. 3 and Fig. 7 represents wireline audio signal,
SPK_L represents wireless audio signal, and bluetooth module also includes other GPIO, other GPIO be used for audio signal input or
Output.
Further, present invention additionally comprises a kind of Baffle Box of Bluetooth, the Baffle Box of Bluetooth is included as shown in Figure 1, Figure 2, in Fig. 3, Fig. 7
Described audio playing apparatus.
Using audio playing apparatus provided in an embodiment of the present invention and Baffle Box of Bluetooth, realize and be wirelessly transferred and wire transmission
Between unification, i.e., using tone frequency channel wire wire transmission when, bluetooth module can also be used to be wirelessly transferred.
Above-described embodiment, has been carried out further to the purpose of the present invention, technical scheme and beneficial effect
Describe in detail, should be understood that the embodiment that the foregoing is only the present invention, be not intended to limit the present invention
Protection domain, within the spirit and principles of the invention, any modification, equivalent substitution and improvements done etc. all should be included
Within protection scope of the present invention.