Files
tldr/pages.zh/linux/hcitool.md

36 lines
582 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# hcitool
> 监控、配置连接并向蓝牙设备发送特殊命令。
> 更多信息:<https://manned.org/hcitool>。
- 扫描蓝牙设备:
`hcitool scan`
- 输出设备的名称返回其MAC地址
`hcitool name {{bdaddr}}`
- 获取远程蓝牙设备的信息:
`hcitool info {{bdaddr}}`
- 检查与蓝牙设备的链接质量:
`hcitool lq {{bdaddr}}`
- 修改传输功率级别:
`hcitool tpl {{bdaddr}} {{0|1}}`
- 显示链接策略:
`hcitool lp`
- 请求与特定设备的认证:
`hcitool auth {{bdaddr}}`
- 显示本地设备:
`hcitool dev`