Invention content
The purpose of the embodiment of the present invention is to provide a kind of method and apparatus, and this method and equipment can allow for vehicle device and movementHigh quality audio content of the terminal communication with high bit rate.
To achieve these goals, the embodiment of the present invention provides a kind of vehicle device audio frequency playing method, for vehicle device, this methodIncluding:Determine the mobile terminal to communicate simultaneously by bluetooth and USB interface with the vehicle device;It is sent to identified mobile terminalVoice data communication strategy is so that the mobile terminal for receiving the voice data communication strategy passes through USB interface and the vehicle deviceCarry out voice data communication;The audio data from mobile terminal is received via USB interface;And play received audio numberAccording to.
Optionally, this method further includes:It obtains comprising the identifier of mobile terminal to be communicated by bluetooth with the vehicle deviceFirst list;It obtains comprising the second list of the identifier of mobile terminal to be communicated by USB interface with the vehicle device;AndBy the mobile terminal that identifier is existed simultaneously in the first list and the second list be determined as simultaneously by bluetooth andThe mobile terminal that USB interface communicates with the vehicle device.
Optionally, the identifier includes one below person:Terminal name, terminal address, terminal number.
Optionally, this method further includes:When receiving audio data from two or more mobile terminals simultaneously, according to pre-Setting priority plays the audio data received from the mobile terminal with higher priority.
The other side of the embodiment of the present invention provides a kind of vehicle device audio frequency playing method, for mobile terminal, the partyMethod includes:It is communicated simultaneously by bluetooth and USB interface with vehicle device;Voice data communication strategy is received with according to institute from the vehicle deviceThe voice data communication strategy received carries out voice data communication by USB interface and the vehicle device;And via USB interfaceAudio data is sent with by the vehicle device playing audio data to the vehicle device.
Optionally, this method further includes:Communication connection is established and via bluetooth to the vehicle by bluetooth and the vehicle deviceMachine transmits the identifier of the mobile terminal;And it is established by USB interface with the vehicle device and communicates to connect and connect via the USBMouth transmits the identifier of the mobile terminal to the vehicle device.
Optionally, the identifier includes one below person:Terminal name, terminal address, terminal number.
The other side of the embodiment of the present invention additionally provides a kind of vehicle device, which includes:Determining module, for trueThe fixed mobile terminal to be communicated simultaneously by bluetooth and USB interface with the vehicle device;Sending module, for whole to identified movementEnd sends voice data communication strategy so that the mobile terminal for receiving the voice data communication strategy passes through USB interface and instituteIt states vehicle device and carries out voice data communication;Receiving module, for receiving the audio data from mobile terminal via USB interface;WithAnd playing module, for playing received audio data.
Optionally, which further includes:First acquisition module includes what is communicated by bluetooth with the vehicle device for obtainingThe first list of the identifier of mobile terminal;Second acquisition module is communicated for obtaining to include by USB interface with the vehicle deviceMobile terminal identifier second list;And the determining module is additionally operable to exist simultaneously identifier in described firstMobile terminal in list and the second list is determined as the movement to communicate simultaneously by bluetooth and USB interface with the vehicle deviceTerminal.
Optionally, the identifier includes one below person:Terminal name, terminal address, terminal number.
Optionally, the playing module is additionally operable to receive from two or more mobile terminals simultaneously when the receiving moduleDuring audio data, the audio data received from the mobile terminal with higher priority is played according to pre-set priority.
The other side of the embodiment of the present invention additionally provides a kind of mobile terminal, which includes:Interface mouldBlock, for being communicated simultaneously by bluetooth and USB interface with vehicle device;Processing module is led to for receiving audio data from the vehicle deviceLetter strategy carries out voice data communication to pass through USB interface according to received voice data communication strategy with the vehicle device;And the interface module, it is additionally operable to send audio data to the vehicle device with as described in vehicle device broadcasting via USB interfaceAudio data.
Optionally, the interface module is additionally operable to:By bluetooth and the vehicle device establish communication connection and via bluetooth toThe vehicle device transmits the identifier of the mobile terminal;And communication connection is established and via institute by USB interface and the vehicle deviceState the identifier that USB interface transmits the mobile terminal to the vehicle device.
Optionally, the identifier includes one below person:Terminal name, terminal address, terminal number.
The other side of the embodiment of the present invention additionally provides a kind of vehicle, which includes above-mentioned vehicle device.
It, can be with through the above technical solutions, when vehicle device and mobile terminal are communicated simultaneously by bluetooth and USB interfaceOnly by USB interface communication audio data, to realize the audio output of high quality.
The other feature and advantage of the embodiment of the present invention will be described in detail in subsequent specific embodiment part.
Specific embodiment
The specific embodiment of the embodiment of the present invention is described in detail below in conjunction with attached drawing.It should be understood that thisLocate described specific embodiment and be merely to illustrate and explain the present invention embodiment, be not intended to restrict the invention embodiment.
Fig. 1 is the flow chart of vehicle device audio frequency playing method according to embodiments of the present invention, and this method can be used for such as leadingThe vehicle device of boat instrument, in-vehicle multi-media system etc..As shown in Figure 1, this method may comprise steps of:
In step S101, the mobile terminal to communicate simultaneously by bluetooth and USB interface with the vehicle device is determined.
For example, such as the mobile terminal of smart mobile phone, tablet computer etc., there is bluetooth communication and USB to connectMouthful, it can be connect by bluetooth equipment of the bluetooth wirelessly with such as vehicle device, can also wired side be passed through by USB interfaceFormula is connect with vehicle device, and in embodiment, mobile terminal can be connect and be communicated with vehicle device by bluetooth and USB interface simultaneously.
In step s 102, voice data communication strategy is sent so as to receive the audio to identified mobile terminalThe mobile terminal of data communication policy carries out voice data communication by USB interface and the vehicle device.
For example, communication strategy can be the communication control for controlling mobile terminal selection such as wired or wireless communication modeSystem strategy, communication mode can be selected according to the requirement of communication strategy by receiving the mobile terminal of communication strategy, in realityIt applies in example, vehicle device can send out the strategy that mobile terminal selection wired mode or USB interface communication mode is controlled to communicateIt send to mobile terminal so that the mobile terminal for receiving communication strategy stops or suspend Bluetooth communication, and USB interface is used to communicateCarry out the data transmission of such as audio data.
In step s 103, the audio data from mobile terminal is received via USB interface.
For example, by that will control mobile terminal that wired mode or USB interface communication mode is selected to communicateStrategy be sent to mobile terminal after, mobile terminal can be only by USB interface communication audio data, at this point, vehicle device can lead toIt crosses USB interface and carries out data interaction with mobile terminal.
In step S104, received audio data is played.
For example, vehicle device plays out the audio data received from USB interface, and the audio data of citing can beAudio data or lossless audio data with high bit rate etc..
It, can be with through the above technical solutions, when vehicle device and mobile terminal are communicated simultaneously by bluetooth and USB interfaceOnly by USB interface communication audio data, to realize the audio output of high quality.
In order to realize mobile terminal to being communicated by bluetooth and by the mobile terminal that USB interface communicates intoRow screening determines the mobile terminal to communicate simultaneously by bluetooth and USB interface in a manner that list is compared.Such as Fig. 2Shown, this method can include:
In step s 201, it obtains comprising the first row of the identifier of mobile terminal to be communicated by bluetooth with the vehicle deviceTable;
In step S202, the comprising the identifier of mobile terminal to be communicated with the vehicle device by USB interface is obtainedTwo lists;And
In step S203, identifier is existed simultaneously into the mobile terminal in the first list and the second listIt is determined as the mobile terminal to communicate simultaneously by bluetooth and USB interface with the vehicle device.
The shifting that can determine to communicate with the vehicle device by bluetooth and USB interface simultaneously by above-mentioned steps S201-S203Dynamic terminal.
For example, above-mentioned identifier can include one below person:Terminal name, terminal address, terminal number.Terminal nameIt can be the unit type that user is the self-defining name that terminal rises or mobile terminal.The citing of terminal address can be equipmentVirtual address or physical address.The citing of terminal number can be device id.Vehicle device is connected simultaneously with multiple mobile terminalsSituation about connecing, in embodiment, this method can also include:When simultaneously audio data is received from two or more mobile terminalsWhen, the audio data received from the mobile terminal with higher priority is played according to pre-set priority.It is mobile whole by settingThe priority at end can prevent data collision, preferentially to play the audio data from high priority mobile terminal.In embodimentIn, by taking android system as an example, vehicle device can be communicated by AoA agreements with mobile terminal.Wherein, communication strategy can be withIt is loaded into the AudioFlinger of mobile terminal.
Fig. 3 is the flow chart of vehicle device audio frequency playing method according to embodiments of the present invention, and this method can be used for such as intelligenceThe mobile terminal of energy mobile phone, tablet computer etc., this method can include:
It communicates in step S301, while by bluetooth and USB interface with vehicle device.
For example, the mobile terminal of smart mobile phone, tablet computer etc. can be a variety of with bluetooth and USB etc.Communication interface can be communicated by two or more interfaces with same vehicle device.
In step s 302, voice data communication strategy is received from the vehicle device to lead to according to received audio dataLetter strategy carries out voice data communication by USB interface and the vehicle device.
For example, mobile terminal can control its communication mode with other equipment by communication strategy, when mobile wholeWhen termination receives the specific communication strategy such as only to communicate by USB interface, it can only pass through USB interface and otherEquipment communicates.
In step S303, audio data is sent to play the sound by the vehicle device to the vehicle device via USB interfaceFrequency evidence.
For example, the audio data that mobile terminal is sent can be the audio data of lossless music.
In embodiment, method can also include:By bluetooth and the vehicle device establish communication connection and via bluetooth toThe vehicle device transmits the identifier of the mobile terminal;And communication connection is established and via institute by USB interface and the vehicle deviceState the identifier that USB interface transmits the mobile terminal to the vehicle device.
For example, it can be established and communicated to connect by discovery procedure between mobile terminal and vehicle device.In embodiments,Identifier can include one below person:Terminal name, terminal address, terminal number.
The embodiment of the present invention additionally provides a kind of vehicle device.Fig. 4 is the composition structure chart of vehicle device according to embodiments of the present invention.As shown in figure 4, vehicle device provided in an embodiment of the present invention can include:Determining module 401, for determine simultaneously by bluetooth andThe mobile terminal that USB interface communicates with the vehicle device;Sending module 402, for sending audio number to identified mobile terminalAccording to communication strategy so that the mobile terminal for receiving the voice data communication strategy carries out sound by USB interface and the vehicle deviceFrequency is according to communication;Receiving module 403, for receiving the audio data from mobile terminal via USB interface;And playing module404, for playing received audio data.
For example, determining module 401 can be realized by modules such as processor, controllers.Sending module 402, canEvery communication strategy is sent to mobile terminal with wired wirelessly or by USB interface by bluetooth.Receive mouldBlock 403 only can receive the audio data from mobile terminal by USB interface.The citing of playing module 404 can be audioDecoder module, virtual sound card or loud speaker etc..
Fig. 5 is the composition structure chart of vehicle device in accordance with another embodiment of the present invention.In embodiment, vehicle device can also wrapIt includes:First acquisition module 405, for obtaining comprising the first of the identifier of mobile terminal to be communicated by bluetooth with the vehicle deviceList;Second acquisition module 406, for obtaining comprising the identifier of mobile terminal to be communicated by USB interface with the vehicle deviceSecond list;And the determining module 401 is additionally operable to exist simultaneously identifier in the first list and described secondMobile terminal in list is determined as the mobile terminal to communicate simultaneously by bluetooth and USB interface with the vehicle device.In embodimentIn, the identifier can include one below person:Terminal name, terminal address, terminal number.
In embodiment, the playing module 404 can be also used for when the receiving module 403 is simultaneously from two or moreWhen mobile terminal receives audio data, the sound received from the mobile terminal with higher priority is played according to pre-set priorityFrequency evidence.
The other side of the embodiment of the present invention, additionally provides a kind of mobile terminal, and Fig. 6 is according to embodiments of the present inventionThe composition structure chart of mobile terminal.As shown in fig. 6, mobile terminal provided in an embodiment of the present invention can include:Interface module601, for being communicated simultaneously by bluetooth and USB interface with vehicle device;Processing module 602, for receiving audio number from the vehicle deviceLed to according to communication strategy with carrying out audio data with the vehicle device by USB interface according to received voice data communication strategyLetter;And the interface module 601, it is additionally operable to send audio data to the vehicle device via USB interface to be broadcast by the vehicle devicePut the audio data.
In embodiment, the interface module 601 can be also used for:Communication connection is established simultaneously by bluetooth and the vehicle deviceThe identifier of the mobile terminal is transmitted to the vehicle device via bluetooth;And communication link is established by USB interface and the vehicle deviceConnect and transmitted via the USB interface to the vehicle device identifier of the mobile terminal.Wherein, identifier can include it is following itOne:Terminal name, terminal address, terminal number.
The other side of the embodiment of the present invention additionally provides a kind of vehicle, which includes above-mentioned vehicle device.
The optional embodiment of example of the present invention, still, the embodiment of the present invention and unlimited are described in detail above in association with attached drawingDetail in the above embodiment, can be to the embodiment of the present invention in the range of the technology design of the embodiment of the present inventionTechnical solution carry out a variety of simple variants, these simple variants belong to the protection domain of the embodiment of the present invention.
It is further to note that specific technical features described in the above specific embodiments, in not lanceIn the case of shield, it can be combined by any suitable means.In order to avoid unnecessary repetition, the embodiment of the present invention pairVarious combinations of possible ways no longer separately illustrate.
It will be appreciated by those skilled in the art that all or part of the steps of the method in the foregoing embodiments are can to pass throughProgram is completed to instruct relevant hardware, which is stored in a storage medium, is used including some instructions so that oneA (can be microcontroller, chip etc.) or processor (processor) perform the whole of each embodiment the method for the applicationOr part steps.And aforementioned storage medium includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journeyThe medium of sequence code.
In addition, arbitrary combination can also be carried out between a variety of different embodiments of the embodiment of the present invention, as long as it is notThe thought of the embodiment of the present invention is violated, should equally be considered as disclosure of that of the embodiment of the present invention.