首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >LibUsb.open错误(与根轮毂连接的设备连接)

LibUsb.open错误(与根轮毂连接的设备连接)
EN

Stack Overflow用户
提问于 2018-05-07 11:00:32
回答 1查看 725关注 0票数 0

代码段

代码语言:javascript
复制
deviceHandle = new DeviceHandle();
int isDeviceOpened = LibUsb.open(device, deviceHandle);

输出:

代码语言:javascript
复制
isDeviceOpened: -12

错误:

代码语言:javascript
复制
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更新了驱动程序,我仍然会遇到这样的情况。还有什么要查的吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-05-07 15:25:51

问题似乎是,我没有触发LibUsb.freeDeviceList(devs,unref_devices);当我手动断开USB设备时,我就知道了,当它刚刚连接时,我成功地连接了它。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50212632

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档