A Java library+sample application which will run on Debian Wheezy Raspberry Pi. This library will utilise libbluetooth (Bluez), and an appropriate sound library, to implement HFP, HSP, HFP-AG and HSP-AG with digital audio input and output.
The Raspberry Pi will have 2 bluetooth USB adapters connected. One USB adapter will behave as a HFP/HSP (Handsfree/Headset) and be connected to a mobile phone. The other USB adapter will behave as a HFP-AG/HSP-AG (Audio Gateway) and be connected to a handsfree device.
Duplex audio can be sent/received from both devices as a stream. The application will pass the audio data from one bluetooth module to the other - essentially making the raspberry pi act like a "man in the middle".
The application must capture all bluetooth events, allowing custom logic to be executed at those times i.e.:
- phone connected
- handsfree connected
- incoming call from phone (which is passed to the handsfree unit as a "RING")
- handsfree buttons
- disconnection events
Code must be fully commented. Build scripts must work out of the box.
You must have access to your own hardware (Raspberry Pi, 2 identical HCI bluetooth modules, a smartphone, and Handsfree device)