Summary of the invention
The technical matters that the present invention will solve provides a kind of method of playing the portable terminal of hi-fi music and passing through the mobile terminal playing hi-fi music.
Goal of the invention of the present invention realizes through following technical scheme:
A kind of portable terminal of playing hi-fi music, said portable terminal are communicated by letter with high-fidelity headphone with computer respectively and are connected, and said portable terminal comprises: processor; The USB interface switch; The USB audio decoder, digital audio bus switch, audio digital to analog converter; Operational amplifier, headphone driver; Wherein, said USB interface switch is used under the control of said processor, the music signal of the computer that receives is switched transfer to said USB audio decoder; Said USB audio decoder is used under the control of said processor, and the music signal of said USB audio decoder transmission is decoded, and being decoded into digital audio and video signals, and said digital audio and video signals is transferred to said digital audio bus switch; Said digital audio bus switch is used under the control of said processor, said digital audio and video signals being transferred to said audio digital to analog converter; Said audio digital to analog converter is used under the control of said processor, converting digital audio and video signals to simulated audio signal, and transfers to said operational amplifier; Said operational amplifier is used under the control of said processor, the simulated audio signal after the conversion is amplified, and the simulated audio signal after will amplifying transfers to said headphone driver; Said headphone driver is used to drive the high-fidelity headphone that is connected with said mobile device, and the simulated audio signal after the said amplification is transferred to said high-fidelity headphone, to play hi-fi music through said high-fidelity headphone.
Above-mentioned sound is play the portable terminal of hi-fi music, and wherein: also comprise: USB interface is used to set up said portable terminal and is connected with the communication of said computer; Storer is used to store the type of service of the said USB interface that the user is provided with, and the type of service of said USB interface comprises music playing mode.
The portable terminal of above-mentioned broadcast hi-fi music, wherein: said USB interface switch also is used for when being connected with compunlcation, sending connection notification signal to said processor through control bus through said USB interface when detecting said mobile device.
The portable terminal of above-mentioned broadcast hi-fi music; Wherein: said processor also is used for when receiving the connection notification signal of said USB interface switch transmission; Inquire about the type of service of the USB interface of storing in the said storer, to judge that said portable terminal is whether as the playback terminal of hi-fi music.
The portable terminal of above-mentioned broadcast hi-fi music, wherein: said processor also is used for when the type of service of the USB interface stored of the said storer of inquiry is music playing mode, judging the playback terminal of said portable terminal as hi-fi music; Said USB interface switch also is used for when said processor is judged said portable terminal as the playback terminal of hi-fi music; Under the control of said processor, the music signal of the computer that will receive through said USB interface switches and transfers to said USB audio decoder.
The portable terminal of above-mentioned broadcast hi-fi music, wherein: also comprise: earphone interface is used to set up said portable terminal and is connected with the communication of said high-fidelity headphone;
Said headphone driver also is used for the simulated audio signal after the said operational amplifier amplification is further amplified; And the simulated audio signal after will amplifying transfers to said high-fidelity headphone through said earphone interface, to play hi-fi music through said high-fidelity headphone.
A kind of method through the mobile terminal playing hi-fi music; Said method comprises: said portable terminal is communicated by letter with high-fidelity headphone with computer respectively and is connected; Said method comprises: the music signal of the computer that receives is decoded, to be decoded into digital audio and video signals; Convert said digital audio and video signals to simulated audio signal; Simulated audio signal after the said conversion is amplified; Drive the high-fidelity headphone that is connected with said mobile device, the simulated audio signal after the said amplification is transferred to said high-fidelity headphone, to play hi-fi music through said high-fidelity headphone.
The above-mentioned method of passing through the mobile terminal playing hi-fi music; Wherein: also comprise: detect said mobile device through USB interface when being connected with compunlcation; Inquire about the type of service of the USB interface of storing in the said storer, to judge that said portable terminal is whether as the playback terminal of hi-fi music.
The above-mentioned method of passing through the mobile terminal playing hi-fi music, wherein: also comprise:, judge the playback terminal of said portable terminal as hi-fi music if when the type of service of USB interface of storage is music playing mode; The music signal of the computer that will receive through said USB interface is decoded, to be decoded into digital audio and video signals.
The above-mentioned method of passing through the mobile terminal playing hi-fi music; Wherein: also comprise: the simulated audio signal after will amplifying further amplifies; And the simulated audio signal after the said further amplification transferred to said high-fidelity headphone through said earphone interface, to play hi-fi music through said high-fidelity headphone.
The technical scheme that the embodiment of the invention provides, with the USB interface switch, the USB audio decoder; The digital audio bus switch is integrated into the inside of portable terminal; When user's portable terminal is set to the music terminal pattern, just can be directly listen to the music of high-fidelity from computer through this portable terminal, compare with prior art; Do not need the user to carry external power supply, thereby improved user's experience.
Embodiment
Fig. 1 is a kind of applied environment figure that plays the portable terminal of hi-fi music provided by the invention.
In the present embodiment, this portable terminal 1 is connected through usb communication with computer 2 (PC), and simultaneously, this portable terminal and high-fidelity headphone 3 are connected through usb communication.
In the present embodiment, when the user need listen to the music of high-fidelity through high-fidelity headphone 3, the user can be set to the music terminal with portable terminal 1; At this moment; This portable terminal 1 communicated with computer 2 through USB be connected, at this moment, this mobile device 1 can carry out the music signal of computer 2 outputs the high-fidelity audio to be handled; And the music signal after will handling exports high-fidelity headphone 3 to and plays, thereby just can make the user hear the music of high-fidelity.
In the present embodiment, this portable terminal 1 can be mobile phone, panel computer.
Fig. 2 is a kind of structural drawing of playing the portable terminal of hi-fi music provided by the invention.
In the present embodiment, this mobile device comprises processor 20, power supervisor 21, storer 22; USB interface switch 23, USB audio decoder 24, digital audio bus switch 25, audio digital to analog converter 26; Operational amplifier 27, earphone interface 28, USB interface 29, headphone driver 30.
In the present embodiment, power supervisor 21 is processor 20 respectively, storer 22, USB interface switch 23, USB audio decoder 24; Digital audio bus switch 25, audio digital to analog converter 26, operational amplifier 27, earphone interface 28; USB interface 29, headphone driver 30 communications connect, and are used to be respectively processor 20, storer 22; USB interface switch 23, USB audio decoder 24, digital audio bus switch 25, audio digital to analog converter 26; Operational amplifier 27, earphone interface 28, USB interface 29, headphone driver 30 provides power supply.In the present embodiment, power supervisor 21 can provide power supply by battery.
In the present embodiment, processor 20 can be central processing unit, audio process, signal processor.
In the present embodiment, this mobile device is connected with compunlcation through USB interface 29, and receives the music signal of computer through USB interface 29.
USB interface switch 23 is connected with 24 communications of USB interface 29, processor 20, USB audio decoder respectively, is used for when detecting mobile device and pass through USB interface 29 and be connected with compunlcation, through I
2The C control bus sends USB and connects notification signal to processor 20.
In the present embodiment, 24 communications are connected USB interface switch 23 with the USB audio decoder with USB interface 29 through the usb data bus, through I
2C control bus or usb data bus are connected with processor 20 communications.In the present embodiment; The music signal of the computer that USB interface switch 23 is used for USB interface 29 is received switches between processor 20 and USB audio decoder 24; Be appreciated that for; The music signal of the computer that USB interface 29 is received transfers to processor 20, and the music signal of the computer that perhaps USB interface 29 is received transfers to USB audio decoder 24.
Processor 20 is connected with storer 22 communications through data bus; And communicate by letter through SPI control bus and USB audio decoder 24 and to be connected; Be used for when the USB that receives 23 transmissions of USB interface switch connects notification signal; The type of service of USB interface 29 of storage in the consults memory 22 is to judge that this portable terminal is whether as the playback terminal of hi-fi music.
In the present embodiment, if when the user needs this portable terminal as the playback terminal of hi-fi music, the type of service of USB interface 29 that can portable terminal is set to music playing mode, and is stored in storer 22.
When the type of service that inquires USB interface 29 is music playing mode; Start USB audio decoder 24 through the SPI control bus; Simultaneously; Control USB interface switch 23 is input to USB audio decoder 24 with the music signal of the computer that USB interface 29 receives, and control USB audio decoder 24 passes through I
2S voice data bus is connected with audio digital to analog converter 25 communications.
In the present embodiment, processor 20 also is used for initialization USB audio decoder 24.
In the present embodiment, USB audio decoder 24 is in the initialization of processor 20, and the music signal of the computer that USB interface 29 is received is decoded, to be decoded into I
2The S digital audio and video signals.
Processor 20 also is used for control USB audio decoder 24 I with decoding
2The S digital audio and video signals transfers to digital audio bus switch 25, simultaneously, starts and initialization digital audio bus switch 25.
Digital audio bus switch 25 is through control line and I
2S voice data bus is connected with processor 20 communications, and passes through I
226 communications are connected S voice data bus with the frequency weighted-voltage D/A converter with USB audio decoder 24 respectively, are used for the I of processor 20 with 24 outputs of USB audio decoder
2The switching of S digital audio and video signals exports audio digital to analog converter 26 to.Be appreciated that for, with the I of processor output
2The S digital audio and video signals exports audio digital to analog converter 26 to, the I that perhaps USB audio decoder 24 is exported
2The S digital audio and video signals exports audio digital to analog converter 26 to.
Digital audio bus switch 25 also is used under the control of processor 20, with the I of USB audio decoder 24 outputs
2The S digital audio and video signals exports audio digital to analog converter 26 to.
In the present embodiment, processor 20 passes through I
2C control bus initialization frequency weighted-voltage D/A converter 26.
At this moment, audio digital to analog converter 26 is used under the control of processor 20, with I
2The S digital audio and video signals converts simulated audio signal to, and under the control of processor 20, exports the simulated audio signal after the conversion to operational amplifier 27.
In the present embodiment, processor 20 also is used for starting and initialization operational amplifier 27 and headphone driver 30 through control line.
Operational amplifier 27 is used under the control of processor 20, the simulated audio signal after audio digital to analog converter 26 conversions is carried out elementary amplification, and under the control of processor 20 simulated audio signal after the elementary amplification is being transferred to headphone driver 30.
Headphone driver 30 is used under the control of processor 20; Simulated audio signal after the elementary amplification of operational amplifier 27 outputs is amplified once more; And driving is through the high-fidelity headphone of earphone interface 28 communication connections; Simultaneously, export simulated audio signal to high-fidelity headphone through earphone interface 28.At this moment, the user just can listen to the music of high-fidelity through high-fidelity headphone.
The technical scheme that the embodiment of the invention provides, with the USB interface switch, the USB audio decoder; The digital audio bus switch is integrated into the inside of portable terminal; When user's portable terminal is set to the music terminal pattern, just can be directly listen to the music of high-fidelity from computer through this portable terminal, compare with prior art; Do not need the user to carry external power supply, thereby improved user's experience.
Fig. 3 is the process flow diagram that passes through the method for mobile terminal playing hi-fi music provided by the invention.
In the present embodiment, when the user need pass through the mobile terminal playing hi-fi music, need portable terminal be crossed USB with the computer expert and be connected, simultaneously, portable terminal is connected through USB with high-fidelity headphone.
Step S300, when detecting mobile device USB and be connected with compunlcation, the type of service of this USB interface of inquiry storage.
Step S301 judges that through the type of service of this USB interface this portable terminal is whether as the playback terminal of hi-fi music.In the present embodiment, if when the user needs this portable terminal as the playback terminal of hi-fi music, the type of service of USB interface that can portable terminal is set to music playing mode, and is stored in storer.In the present embodiment, when the type of service of USB interface of the portable terminal of inquiry is set to music playing mode, judge the playback terminal of this portable terminal as hi-fi music, and execution in step S302; When the type of service of USB interface of the portable terminal of inquiry is set to unmusical play mode, judge this portable terminal not as the playback terminal of hi-fi music, and execution in step S303, do not carry out hi-fi music and play.
Step S302, the music signal of the computer that USB interface is received is decoded, to be decoded into I
2The S digital audio and video signals.
Step S304 is with I
2The S digital audio and video signals converts simulated audio signal to.
Step S305 carries out elementary amplification with the simulated audio signal after the conversion.
Step S306 amplifies the simulated audio signal after the elementary amplification once more.
Step S307 drives the high-fidelity headphone that is connected with portable terminal, exports the simulated audio signal after this amplification to this high-fidelity headphone, to play hi-fi music through this high-fidelity headphone.
At this moment, the user just can listen to the music of high-fidelity through high-fidelity headphone.
The technical scheme that the embodiment of the invention provides, when user's portable terminal was set to the music terminal pattern, portable terminal was decoded into I with the music signal of the computer that USB interface receives
2The S digital audio and video signals, conversion of the line number of going forward side by side mould and signal amplify, and drive high-fidelity headphone again; Thereby can directly listen to the music of high-fidelity from computer through this portable terminal; Compare with prior art, do not need the user to carry external power supply, thereby improved user's experience.
The embodiment of the above is a preferred embodiments of the present invention, is not to limit practical implementation scope of the present invention with this, and scope of the present invention comprises and is not limited to this embodiment.All shapes according to the present invention, the equivalence variation that structure is done all comprise in protection scope of the present invention.