Java Can';t使用bluecove检测蓝牙设备

Java Can';t使用bluecove检测蓝牙设备,java,bluetooth,bluecove,Java,Bluetooth,Bluecove,我试图使用bluecove显示与我的电脑关联的蓝牙设备列表,但它只是不断扫描,没有找到任何东西,它在终端上显示以下消息: BlueCove version 2.1.0 on winsock 并且在那里没有显示任何设备 以下是我正在使用的代码: BluetoothDeviceDiscovery bluetoothDeviceDiscovery=new BluetoothDeviceDiscovery(); //display local device address and na

我试图使用bluecove显示与我的电脑关联的蓝牙设备列表,但它只是不断扫描,没有找到任何东西,它在终端上显示以下消息:

BlueCove version 2.1.0 on winsock
并且在那里没有显示任何设备

以下是我正在使用的代码:

BluetoothDeviceDiscovery bluetoothDeviceDiscovery=new BluetoothDeviceDiscovery();
        //display local device address and name
        LocalDevice localDevice = LocalDevice.getLocalDevice();
        System.out.println("Address: "+localDevice.getBluetoothAddress());
        System.out.println("Name: "+localDevice.getFriendlyName());
        //find devices
        DiscoveryAgent agent = localDevice.getDiscoveryAgent();

我认为这是本地设备的一个问题,因为它甚至没有显示本地设备的地址。

您使用的是Windows 64位吗?如果是这样,您可能会发现需要使用BlueCove 2.1.1快照。请在此处尝试:。

只能使用BlueCove 2.1.1快照检测pc无法发现智能手机或BLE设备。