LibUsb.open错误(设备与根集线器的碰撞)

时间:2018-05-07 11:00:32

标签: 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: 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.

我已经使用Zadig更新了驱动程序,但我仍然遇到了这个问题。 还有别的东西要检查吗?

1 个答案:

答案 0 :(得分:0)

问题似乎是我没有触发LibUsb.freeDeviceList(devs,unref_devices);当我手动断开USB设备并在新连接时成功连接它时,我想通了。