【问题标题】:Libusb error not supported不支持 libusb 错误
【发布时间】:2016-03-29 12:20:05
【问题描述】:

我正在尝试使用 Libusb 1.0 库和使用 zadig_2.2 安装的 libusk 驱动程序在 Arduino Due 上向微控制器发送等时传输。

批量传输完美运行,但当我尝试启动同步传输时,我收到错误代码“不支持错误”。按照我的理解,libusb 现在应该支持 Windows 的同步传输。

我正在使用 Visual Studio 2015。

有什么想法吗?

【问题讨论】:

    标签: usb libusb-1.0


    【解决方案1】:

    这可能是 Arduino 方面的两个问题。您应该配置:

    1. 端点配置。
    2. USB 描述符配置(端点应配置为等时传输类型)

    例如:

              ===>Endpoint Descriptor<===    // <-------- This is the one I'm using.
    bLength:                           0x07
    bDescriptorType:                   0x05
    bEndpointAddress:                  0x81  -> Direction: IN - EndpointID: 1
    bmAttributes:                      0x01  -> Isochronous Transfer Type, Synchronization Type = No Synchronization, Usage Type = Data Endpoint
    wMaxPacketSize:                  0x0040 = 1 transactions per microframe, 0x40 max bytes
    bInterval:                         0x01
    
              ===>Endpoint Descriptor<===
    bLength:                           0x07
    bDescriptorType:                   0x05
    bEndpointAddress:                  0x02  -> Direction: OUT - EndpointID: 2
    bmAttributes:                      0x01  -> Isochronous Transfer Type, Synchronization Type = No Synchronization, Usage Type = Data Endpoint
    wMaxPacketSize:                  0x0040 = 1 transactions per microframe, 0x40 max bytes
    bInterval:                         0x01
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-20
      • 2015-05-11
      • 2015-02-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多