-1

我在 Window 10 系统上运行带有 Ubuntu 18 操作系统的 Vmware vm。USB 蓝牙设备已插入本机。现在我想在 Ubuntu 18 VM 中控制这个蓝牙设备,但失败了。

在 Ubuntu VM 中,我可以通过以下方式获取蓝牙硬件信息:

# hcitool scan
Scanning ...
    70:EF:00:D0:AE:05   ****
    3C:CD:57:2C:94:4F   ****
    14:DE:39:E5:B2:F8   ****
    48:01:C5:06:DC:A2   ****

# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 005: ID 0e0f:0008 VMware, Inc.
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


root@turnbig:~# lshw | grep Blue -C 10
                 *-usb:1
                      description: USB hub
                      product: VMware Virtual USB Hub
                      vendor: VMware, Inc.
                      physical id: 2
                      bus info: usb@2:2
                      version: 1.00
                      capabilities: usb-1.10
                      configuration: driver=hub slots=7 speed=12Mbit/s
                    *-usb
                         description: Bluetooth wireless interface
                         product: Virtual Bluetooth Adapter
                         vendor: VMware
                         physical id: 1
                         bus info: usb@2:2.1
                         version: 1.00
                         serial: 000650268328
                         capabilities: bluetooth usb-2.00
                         configuration: driver=btusb speed=12Mbit/s

但是当我尝试连接到其他 BT 设备时,它失败并显示“设备 3C:CD:57:2C:94:4F 不可用”,3C:CD:57:2C:94:4F是要连接的目标蓝牙设备:

# bluetooth
bluetooth = on

# bluetoothctl
[NEW] Controller 44:AF:28:F5:2B:D3 ***** [default]
Agent registered
[bluetooth]# info 3C:CD:57:2C:94:4F
Device 3C:CD:57:2C:94:4F not available
[bluetooth]# connect 3C:CD:57:2C:94:4F
Device 3C:CD:57:2C:94:4F not available

我可以通过主机(Window 10)连接到这个BT设备

感谢您的任何评论。

4

1 回答 1

0

问题已解决,原始解决方案在此处发布。

要使用 VMware 来宾操作系统的 USB 蓝牙,我们不能将蓝牙共享给来宾,我们应该将可移除的蓝牙设备直接连接到来宾。

于 2021-10-05T06:10:51.053 回答