1

libusb_interrupt_transfer(...) によるデバイスへの書き込みは、常に LIBUSB_ERROR_IO で終了します。Libusb バージョン: libusb-1.0.4 STM32F103 コード - hid デバイスの st 例

チェック済み:

  1. コード内のエンドポイントは lsusb のように設定されています: 0x81
  2. usbmon では、記述子などのリクエストを確認できますが、libusb_interrupt_transfer(...) をトリガーすると、通信がありません ( usbmon にログインしません)。
  3. STM32 ボードが指定された割り込みエンドポイントに入ることはありません
  4. 使用するデバイス ハンドルが適切である

問題を追跡するための次のステップは何ですか?

lsusb の出力は次のとおりです。

Bus 001 Device 005: ID 0483:5750 STMicroelectronics Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x0483 STMicroelectronics idProduct 0x5750 bcdDevice 2.00 iManufacturer 1 STMicroelectronics iProduct 2 STM32 Custm HID iSerial 3 8D8316685052 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 41 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xc0 Self Powered MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 3 Human Interface Device bInterfaceSubClass 0 No Subclass bInterfaceProtocol 0 None iInterface 0 HID Device Descriptor: bLength 9 bDescriptorType 33 bcdHID 1.10 bCountryCode 0 Not supported bNumDescriptors 1 bDescriptorType 34 Report wDescriptorLength 163 Report Descriptors: ** UNAVAILABLE ** Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0002 1x 2 bytes bInterval 32 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x01 EP 1 OUT bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0002 1x 2 bytes bInterval 32 Device Status: 0x0001 Self Powered

4

0 に答える 0