蓝牙:发送ACL命令
我想连接到我的耳机并向其发送 ACL
命令以使其响铃。
但是,到目前为止,我只找到了一种通过 RFCOMM 连接到蓝牙设备的方法。这是唯一的方法还是也可以发送 ACL 命令?
谢谢!
I would like to connect to my headset and send it an ACL
command to make it ring.
However, so far I only found a method to connect via RFCOMM
to a Bluetooth Device. Is that the only way or is it possible to send an ACL command as well?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您对协议感到困惑。 ACL 是使用的低级传输协议通过BT设备发送数据。它与数据的应用程序特定含义无关。上面的ACL链接是一个叫做L2CAP的协议,它本质上仍然是一个数据管道。在 L2CAP 之上,您可以了解特定于应用程序的协议,例如 RFCOMM。耳机配置文件 (HSP) 不是使用 RFCOMM,而是用于执行诸如拨打电话之类的操作。
http://en.wikipedia.org/wiki/Bluetooth_profile#Headset_Profile_.28HSP.29
You are confused about the protocols. ACL is a low-level transport protocol used by BT devices to send data. It has nothing to do with application specific meanings of the data. Above ACL links is a protocol called L2CAP, which is still essentially a data pipe. Above L2CAP you get into application specific protocols like RFCOMM. Rather than RFCOMM, Headset Profile (HSP) is used to do things like ringing a phone.
http://en.wikipedia.org/wiki/Bluetooth_profile#Headset_Profile_.28HSP.29