'hcitool con' 的输出

问题描述

如何解释“hcitool con”的输出?

% hcitool con
Connections:
    < ACL 00:11:22:33:44:55 handle 1 state 1 lm SLAVE AUTH ENCRYPT

更具体地说,我需要以下部分的详细信息:

句柄: 这似乎是连接的一些枚举,但我可以确信新连接总是获得最低的空闲“句柄”数吗? “句柄 0”是否表示正在进行连接?

状态: 那是州以及它们与哪些数字相关联?我见过 1、5、8 和 9。

奴隶: 这是否意味着远程设备是从设备?还是本地的?

这个问题或多或少地陈述(但没有回答)在这里:Need detail explanation of Bluetooth command "hcitool con" and hcitool sr

解决方法

hcitool 是 2017 年的 deprecated by the BlueZ project。如果您正在学习使用它的教程,它可能已经过时。

bluetoothctl 是用于连接远程设备的命令行工具。

还有 btmgmt 工具,您可以在其中获取有关与 sudo btmgmt con 的当前连接的信息。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...