android - 蓝牙不开启VM virtual Box

标签 android linux bluetooth virtual-machine virtualbox

我在 Virtual Box 上安装了 Android X-86 作为 Windows 7 上的虚拟机。我正在使用蓝牙加密狗访问我的 VM 上的蓝牙。但是我无法从菜单中打开蓝牙。当我启动蓝牙应用程序时,它只是说

Turning on Bluetooth...

什么都不做。在我上次使用它之前它一直运行良好,但突然停止工作。我使用以下步骤创建了 VM:

将客户操作系统的类型设置为 Linux 而不是其他。 创建虚拟机后,将网络适配器设置为“桥接”。 启动 VM 并在启动时选择“Live CD VESA”。 现在你找到了这个虚拟机的ip。转到 VM 中的终端(使用 Alt+F1 & Alt+F7 切换)并使用 netcfg 命令来找到它。 现在打开命令提示符并转到您的 android 安装文件夹(在主机上)。这通常是 C:\Program Files\Android\android-sdk\platform-tools>。 输入 adb 连接 IP_ADDRESS 插入 USB 蓝牙适配器。 在 VirtualBox 屏幕中,转到设备>USB 设备。选择加密狗。

此外,我发现了类似的问题,但还没有任何帮助 Bluetooth does not work in Android x86 on VirtualBox USB bluetooth in Ubuntu 12.04 on Virtual Box 任何关于如何在 Vm 上使用蓝牙加密狗的想法将不胜感激

最佳答案

成功验证:

Ubuntu:16.04
虚拟机:5.0.24
Android x86:4.4-r5、5.1-rc1、6.0-rc1*
已测试蓝牙 USB 加密狗:

PASSES: Cambridge Silicon Radio CSR8510 A10 [8891]
 FAILS: Broadcom BCM20702A0 [0112]

为了能够做到以下几点:

Android -> Settings -> Bluetooth -> On

您需要将蓝牙 USB 加密狗物理连接到主机,并在启动 VirtualMachine 之前将其虚拟连接到 VirtualMachine。

*注意:对于 Android 6.0-rc1,您可以在 启动后虚拟连接蓝牙 USB 加密狗(并启用 Android 设置蓝牙)。

Virtualbox -> AndroidVitrualMachine -> Settings -> USB -> USB+ (Button icon with the balloon help that says - Add new filter with all fields set to the values of the selected USB device attached to the Host PC.)

我已经对此进行了验证,其中包括运行 nRF Master Control Panel Android 应用程序并在 AndroidVirtualMachine 上扫描蓝牙 LE 设备。

关于android - 蓝牙不开启VM virtual Box,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28208879/

相关文章:

java - 工具栏额外的左插图/填充

android - 从 Volley 响应中获取 header

android - 偏好类别应该有键吗?

c - 允许某些进程读写目录并拒绝其余所有进程

ios - 我可以使用低功耗蓝牙连接 iOS 和 Windows 吗?

ios - 如何在不连接到真正的蓝牙设备的情况下创建 `EAAccessory` 对象?

安卓摄像头检测

linux - v4l2 可以用于从同一设备读取音频和视频吗?

c++ - 套接字编程 : Struct sockaddr VS struct sockaddr_in

ios - BLE 广告数据中有什么?