Porting Btstack to Android Device

129 views
Skip to first unread message

jup...@gmail.com

unread,
May 8, 2017, 4:34:25 AM5/8/17
to btstack-dev

Hi Matthias:

I have done some tests with the /port/mtk example, and it's works fine with my Android Phone(with mtk's bt chipset on board),but for phone whose bt chipset from other vendors(such as Broadcom、Qualcomm、CSR and so on),it will not work because there is no libbluetoothdrv.so in /system/lib.

So is there another way to integrate btstack in these phones ? 

ps:
 I found a bluetooth test application named “bdt” (/externals/bluetooth/bluedroid/test) which link against bluedroid ,can i use it as btstack's hci-transport interface ? 

Thanks!

Matthias Ringwald

unread,
May 8, 2017, 10:13:06 AM5/8/17
to btsta...@googlegroups.com
Hi

The port/mtk was custom port to a particular Android device. In general, BTstack can run on Android if it gets access to the Bluetooth module. 

I recently stumbled upon this page: https://source.android.com/devices/bluetooth and also did some digging around the lower layers of Bluedroid. It indicates that vendors need to provide a libbt-hci. So, if this library is present on all Android devices, it should be straight forward to interface with that from BTstack. Look like it refers to https://android.googlesource.com/platform/external/bluetooth/bluedroid/+/master/hci

Best
 Matthias

--
You received this message because you are subscribed to the Google Groups "btstack-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to btstack-dev...@googlegroups.com.
To post to this group, send email to btsta...@googlegroups.com.
Visit this group at https://groups.google.com/group/btstack-dev.
For more options, visit https://groups.google.com/d/optout.

jup...@gmail.com

unread,
May 8, 2017, 9:51:47 PM5/8/17
to btstack-dev
Thanks for your reply!
libbt-hci.so can be found in all my Android devices, i will make some attemeps on it.

在 2017年5月8日星期一 UTC+8下午10:13:06,Matthias Ringwald写道:
Reply all
Reply to author
Forward
0 new messages