Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom bluetooth protocol support in Android

With the basic BT libraries available with Android OS, is creating a custom protocol to interface with a proprietary BT device supported? I've worked a bit with the TCP/IP stack, and it was fairly straightforward, but before I try to support BT I'd like to know how difficult that would be. I could see BT protocols being locked down to a few well known ones.

I did a bit of Googling on this and either my search text kung fu is not up to par, or documentation for doing this is quite sparse.

So, in summation, does Android OS (2.3+) support building your own protocols, and if so, where can I find documentation on it?

like image 673
Jeremy Holovacs Avatar asked Oct 10 '22 01:10

Jeremy Holovacs


1 Answers

Yes, if you'd like to build on a rfcomm stack, insecure connections are available at API level 10. Bluetooth Dev Article. For other protocols like l2cap or ACL there is no API for that.

like image 104
Dan S Avatar answered Oct 17 '22 02:10

Dan S