linux – bluetoothctl到hcitool等效命令
发布时间:2020-05-23 08:39:11 所属栏目:Linux 来源:互联网
导读:在 Linux中,我曾经使用“hidd –connect mmac”来连接BT设备,但是现在它已经从Bluez5开始消失了. 我可以使用bluetoothctl手动建立连接但我需要从我的应用程序使用这些命令并使用bluetoothctl将是困难的. 什么是hcitool等效命令来做bluetoothctl做的事情? 例
|
在
Linux中,我曾经使用“hidd –connect mmac”来连接BT设备,但是现在它已经从Bluez5开始消失了.
什么是hcitool等效命令来做bluetoothctl做的事情? 例如,我输入bluetoothctl: select <cmac> scan on trust <mmac> pairable on pair <mmac> connect <mmac> 我可以使用“hcitool scan”进行扫描,但我还没想到要连接. 或者hcitool可以做bluetoothctl的工作吗? 解决方法我在这样的脚本中使用bluetoothctl:#!/bin/bash bluetoothctl << EOF power on EOF 并且可以将多个命令指定为每行一个命令. 奇怪的是,它对我来说不是这样的: echo "power on" | bluetoothctl (我使用的是bluez-5.21-r1 – 不确定这是否依赖于版本) (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- Linux – 了解mount命名空间并克隆CLONE_NEWNS标志
- debian – 在LVM / DRBD调整大小后,df报告的信息不正确
- linux – 只有行号的快速grep / grep?
- linux的远程经理?
- linux – 如何管道uptime / df的输出卷曲?
- 最快的Linux系统调用
- liunx Ubuntu安装shapely时提示错误:OSError: Could not f
- linux – 使用Wget的Shell脚本 – 如果else嵌套在for循环中
- linux – 如何防止子树删除(`rm -rf`)使其他磁盘I / O进程无
- linux – 为什么vsftpd的chroot_local_user不安全?
