Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/331.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java LibUsb.open错误(设备与根集线器冲突)_Java_Usb_Usb4java - Fatal编程技术网

Java LibUsb.open错误(设备与根集线器冲突)

Java LibUsb.open错误(设备与根集线器冲突),java,usb,usb4java,Java,Usb,Usb4java,代码片段 deviceHandle = new DeviceHandle(); int isDeviceOpened = LibUsb.open(device, deviceHandle); 输出: isDeviceOpened: -12 错误: libusb: error [init_device] program assertion failed: device address collision with root hub org.usb4java.LibUsbException:

代码片段

deviceHandle = new DeviceHandle();
int isDeviceOpened = LibUsb.open(device, deviceHandle);
输出:

isDeviceOpened: -12
错误:

libusb: error [init_device] program assertion failed: device address collision with root hub

org.usb4java.LibUsbException: USB error 12: Unable to open USB device: Operation not supported or unimplemented on this platform

libusb: error [winusbx_open] could not open device \\.\USB<some chars here> #{some chars here} (interface 0): [5] Access is denied.
libusb:error[init_device]程序断言失败:设备地址与根集线器冲突
org.usb4java.libusbeexception:USB错误12:无法打开USB设备:此平台不支持或未执行操作
libusb:错误[winusbx_open]无法打开设备\\.\USB{some chars here}(接口0):[5]访问被拒绝。
我已经使用Zadig更新了驱动程序,但仍然遇到这种情况。
还有什么需要检查的吗?

问题似乎是我没有触发LibUsb.freeDeviceList(devs,unref_设备),当我手动断开USB设备的连接并在新连接时成功连接时,我发现了这一点