简体   繁体   中英

Android: receive Bluetooth data send with “unicast connectionsless mode”

I wanted to experiment a bit with an old bluetooth device and my smartphone. The device uses the Bluetooth 3.0's unicast connectionless mode to send data. I'd like to read this data with my smartphone, without establishing a connection. Reason? The device has a big range of about 50 meters, the smartphone only about 10 meters. I'd like to receive the data even if I am further away than 10 meters. Is it possible?

I googled on the topic and I found somewhere in the API some mysterious constants definitions "L2CAP" or so, with a comment "Unicast connectionless mode", which means, there seems to be a support for this feature. But except of those constants I found nothing - no functions, classes, methods, examples.

I would be thankful for any advice.

Unfortunately L2CAP is not supported version 4.2 onwards, there is an open issue on Android website which have more details.

Issue 58164: Support Bluetooth L2CAP

There seem to be no response on when fix will be done. I am too waiting for fix :-(

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM