With the rapid development of In-Vehicle Infotainment, as a multifunctional information entertainment platform, Interconnectedness, Multimedia, Time To Market and Cost has been its first consideration.Android as a free open source operating system, now has become a very popular OS for embedded devices. It can not only reduce development cost, shorten development time, but also provides a powerful multimedia and wireless technological support, for many automotive equipment manufacturers favor.Bluetooth as a short-range wireless communication technology has been widely used in voice and data transmission, which is very convenient for the user, and the In-Vehicle Infotainment integrated bluetooth become a value-added points.But the bluez Bluetooth stack in Android can’t support bluetooth A2DP Sink. In this thesis by integrating the CSR bluetooth protocol stack in Android, and developing bluetooth A2DP Sink system services to make up for the shortage. And a demo application is provided to automotive equipment manufacturers as design reference.Firstly in this thesis the background is introduced to make the main purpose clear; Then described the overall design of the system, based on the requirements analysis, chose SirF Prima2processor and CSR8311A08bluetooth chip to design the hardware platform, and chose Android2.3as the operating system and chose CSR synergy stack as bluetooth stack; Then described the detailed design of hardware platform, including the design of the main board and bluetooth module; Then described the detailed design for software platform, including the development of CSR bluetooth protocol stack on the Android, by creating the bluetooth service process in user space, implementing the protocol stack task scheduling, serial port communication, data storage and communication service with the Android system, the sotware platform development also includes the development of the Android system services, in which the local service implements the audio decoding and playback, the Java service provided to the application of IPC call interface to use bluetooth services; Finally finished application development used for testing and provided to application developers for reference.This system could completely pass the interoperability test with PTS, which is Bluetooth SIG official test tool, and the stress tests, also has the good sound quality and fluency. This system provides a low cost, multi-function, good connectivity, and easy integrating solutions which meet requirement to play Bluetooth stereo music, and it has been applied in many practical productions. |