【问题标题】:How to install hcitool in mac os terminal如何在 mac os 终端中安装 hcitool
【发布时间】:2019-11-01 03:14:11
【问题描述】:

大家好,我一直在尝试在 mac os 终端上使用 hcitool,但每当我输入 hcitool scan 时,就会出现以下错误 -bash: hcitool: command not found 我尝试过 pip install hcipip install hcitool,但会显示以下错误

  ERROR: Could not find a version that satisfies the requirement gatttool (from versions: none)

错误:找不到 gatttool 的匹配分布

请帮帮我

【问题讨论】:

    标签: macos terminal bluez


    【解决方案1】:

    诸如 hcitool、gatttool、hciconfig 等命令是 BlueZ 软件包的一部分,仅适用于 Linux。另一方面,MacOS 是 UNIX 核心,因此这些命令不会在 MacOS 操作系统上运行。在 MacOS 操作系统上获得某种功能之前曾有过黑客攻击,但解决方案总是不完整。

    您的下一个最佳选择是使用运行 Linux 来宾(例如 Ubuntu)的虚拟机,然后在该 VM 操作系统中使用 BlueZ 命令。

    我希望这会有所帮助。

    【讨论】:

      【解决方案2】:

      让自己启动并运行一个 Docker 容器。您可以编写保存在主机和容器之间的共享卷中的脚本(这意味着您不必登录到容器中)。然后,您可以从 OSX 终端执行这些脚本,以在容器中运行。

      HTH

      【讨论】:

        猜你喜欢
        • 2020-02-22
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-01-10
        • 2014-05-29
        • 2015-04-13
        • 1970-01-01
        相关资源
        最近更新 更多