开发者

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?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜