为什么我的程序无法从 USB 中断端点读取数据
我正在编写一个 libusb 程序来与 USB 游戏手柄交互。我找到它,打开它,与内核分离,声明接口,当我尝试 usb_interrupt_read 时,它返回 -110 (资源暂时不可用) 正在做什么?
另外,usb_set_configuration失败,所以我将其注释掉。我需要它吗?
为什么不读书了?
i = usb_interrupt_read(handle, 0x81, bytes, 8, 50);
printf("%d read\n", i);
perror("read");
I am writing a libusb program to interact with a USB gamepad. I found it, opened it, detached from kernel, claimed interface, and when I try to usb_interrupt_read it returns -110 (resource temporarily unavailable)
what is doing on?
Also, usb_set_configuration fails, so I commented it out. Do I need it?
Why isn't it reading?
i = usb_interrupt_read(handle, 0x81, bytes, 8, 50);
printf("%d read\n", i);
perror("read");
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论