https://github.com/chegewara/esp32s2-usb-host-example
Code: Select all
I (59554) : Port powered ON
Waiting for conenction
I (71057) : HCD_PORT_EVENT_CONNECTION
I (71057) : HCD_PORT_STATE_DISABLED
Resetting
I (71117) : USB device reseted
I (71117) : HCD_PORT_STATE_ENABLED
Full speed enabled
I (71117) Pipe: : XFER status: 0, num bytes: 64, actual bytes: 18
Device descriptor:
Length: 18
Descriptor type: 18
USB version: 2.10
Device class: 0x00 (>ifc)
Device subclass: 0x00
Device protocol: 0x00
EP0 max packet size: 64
VID: 0x0781
PID: 0x5597
Revision number: 1.00
Manufacturer id: 1
Product id: 2
Serial id: 3
Configurations num: 1
I (71147) Pipe: : XFER status: 0, num bytes: 0, actual bytes: 0
I (71164) Pipe: : XFER status: 0, num bytes: 64, actual bytes: 32
Config:
Number of Interfaces: 1
Attributes: 0x80
Max power: 224 mA
Interface:
bInterfaceNumber: 0
bAlternateSetting: 0
bNumEndpoints: 2
bInterfaceClass: 0x08 (Mass Storage)
bInterfaceSubClass: 0x06
bInterfaceProtocol: 0x50
Endpoint:
bEndpointAddress: 0x81
bmAttributes: 0x02
bDescriptorType: 5
wMaxPacketSize: 64
bInterval: 0 ms
Endpoint:
bEndpointAddress: 0x02
bmAttributes: 0x02
bDescriptorType: 5
wMaxPacketSize: 64
bInterval: 0 ms
I (71201) Pipe: : XFER status: 0, num bytes: 64, actual bytes: 16
strings: SanDisk
I (71209) Pipe: : XFER status: 0, num bytes: 64, actual bytes: 34
strings: Cruzer Glide 3.0
I (71219) Pipe: : XFER status: 0, num bytes: 64, actual bytes: 42
strings: 4C530000240507207073