This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Bluedroid stack and bluetooth profiles



Hi,

I am running android kitkat on Pandaboard ES and want to use my device as BT headset.

I am trying to get an understanding of Bluedroid stack and available profiles but since there is not much documentation available on this am kind of stuck. 

What are the default profiles present and where can I find them in the bluedroid source ?

How can I test this profiles ?

Is it possible to add a profile ? If yes how can I implement that ?

I am just entering into this field and trying to learn as much as possible.

Thanks in advance.

  • Hi  Aashish,

    You can start by  examining the google developers website and also  take a look the MAP standard which was introduced in Android KitKat.

    http://developer.android.com/guide/topics/connectivity/bluetooth.html

    http://developer.android.com/reference/android/bluetooth/BluetoothProfile.html

    also take a look at this article:

    http://processors.wiki.ti.com/index.php/Android-Adding_Bluetooth_Profile

    Regards,

    Boyko

  • Hi Boyko,

    Thanks for quick reply. Those links are very helpful.

    https://developer.bluetooth.org/TechnologyOverview/Pages/HFP.aspx

    What I understood from above link is that Hands free profile defines two roles one of audio gateway and other of Hands free. After digging some more I found out that most android running devices (in our case pandaboard) supports audio gateway.

    I would like to enable Hands Free mode in pandaboard running android kitkat( such that it behaves like a headset), so that I can make and receive calls from board or stream audio from my android phone to pandaboard.

    What changes will I have to make in bluedroid stack to enable Hands Free role ?

  • Is there specific  reason you are using kitkat ( it is not officialy supported at that  moment) and as far as i know there are Bluetooth enchantments to it that i am not fully aware of.

    Regards,

    Boyko

  • Yes,  I am aware that it is not supported officially at the moment but our customer needs kitkat running on it so want to test all interfaces.

  • Hi ,

    I went through Bluedroid source code. As per my understanding although there is HFP ( Handsfree Profile) only Audio Gateway role is implemented and for us to have support for Hands free role we will have to implement it from scratch. 

  • Hi,

    As I mentioned earlier we want to use pandaboard running android as handsfree device i.e. making and receiving calls in/from mobile phone. Since android now uses bluedroid stack there is not much information available on internet on how to add your own profile to android. 

    Can we use android running device as headset/handsfree device ?

    Has anyone implemented handsfree role of HSP on android ?

    How can we implement the same for pandaboard running android?