Skip to content

Instantly share code, notes, and snippets.

@RandomOnlineName
Last active August 21, 2023 17:46
Show Gist options
  • Save RandomOnlineName/5108f379b04a59b501c2f3becffea024 to your computer and use it in GitHub Desktop.
Save RandomOnlineName/5108f379b04a59b501c2f3becffea024 to your computer and use it in GitHub Desktop.
usb-proxy log
sudo ./usb-proxy --driver=fe980000.usb --device=fe980000.usb --vendor_id=045e --product_id=02ea --verbose
Device is: fe980000.usb
Driver is: fe980000.usb
vendor_id is: 1118
product_id is: 746
6 Devices in list
Target device not found
Device opened successfully
Start hotplug_monitor thread, thread id(7278)
InterfaceNumber 1 AlternateSetting 0 has no endpoint, skip
InterfaceNumber 2 AlternateSetting 0 has no endpoint, skip
Setup USB config successfully
Start for EP0, thread id(7275)
ep #0:
name: ep1in
addr: 1
type: iso blk int
dir : in ___
maxpacket_limit: 1024
max_streams: 0
ep #1:
name: ep1out
addr: 1
type: iso blk int
dir : ___ out
maxpacket_limit: 1024
max_streams: 0
ep #2:
name: ep2in
addr: 2
type: iso blk int
dir : in ___
maxpacket_limit: 1024
max_streams: 0
ep #3:
name: ep2out
addr: 2
type: iso blk int
dir : ___ out
maxpacket_limit: 1024
max_streams: 0
ep #4:
name: ep3in
addr: 3
type: iso blk int
dir : in ___
maxpacket_limit: 1024
max_streams: 0
ep #5:
name: ep3out
addr: 3
type: iso blk int
dir : ___ out
maxpacket_limit: 1024
max_streams: 0
ep #6:
name: ep4in
addr: 4
type: iso blk int
dir : in ___
maxpacket_limit: 1024
max_streams: 0
ep #7:
name: ep4out
addr: 4
type: iso blk int
dir : ___ out
maxpacket_limit: 1024
max_streams: 0
ep #8:
name: ep5in
addr: 5
type: iso blk int
dir : in ___
maxpacket_limit: 1024
max_streams: 0
ep #9:
name: ep5out
addr: 5
type: iso blk int
dir : ___ out
maxpacket_limit: 1024
max_streams: 0
ep #10:
name: ep6in
addr: 6
type: iso blk int
dir : in ___
maxpacket_limit: 1024
max_streams: 0
ep #11:
name: ep6out
addr: 6
type: iso blk int
dir : ___ out
maxpacket_limit: 1024
max_streams: 0
ep #12:
name: ep7in
addr: 7
type: iso blk int
dir : in ___
maxpacket_limit: 1024
max_streams: 0
ep #13:
name: ep7out
addr: 7
type: iso blk int
dir : ___ out
maxpacket_limit: 1024
max_streams: 0
event: connect, length: 0
event: control, length: 8
bRequestType: 0x80 (IN), bRequest: 0x06, wValue: 0x0100, wIndex: 0x0000, wLength: 64
type = USB_TYPE_STANDARD
req = USB_REQ_GET_DESCRIPTOR
desc = USB_DT_DEVICE
Control transfer succeed
ep0: transferred 18 bytes (in)
event: control, length: 8
bRequestType: 0x80 (IN), bRequest: 0x06, wValue: 0x0100, wIndex: 0x0000, wLength: 18
type = USB_TYPE_STANDARD
req = USB_REQ_GET_DESCRIPTOR
desc = USB_DT_DEVICE
Control transfer succeed
ep0: transferred 18 bytes (in)
event: control, length: 8
bRequestType: 0x80 (IN), bRequest: 0x06, wValue: 0x0200, wIndex: 0x0000, wLength: 255
type = USB_TYPE_STANDARD
req = USB_REQ_GET_DESCRIPTOR
desc = USB_DT_CONFIG
Control transfer succeed
ep0: transferred 119 bytes (in)
event: control, length: 8
bRequestType: 0x80 (IN), bRequest: 0x06, wValue: 0x0303, wIndex: 0x0409, wLength: 255
type = USB_TYPE_STANDARD
req = USB_REQ_GET_DESCRIPTOR
desc = USB_DT_STRING
Control transfer succeed
ep0: transferred 58 bytes (in)
event: control, length: 8
bRequestType: 0xc0 (IN), bRequest: 0x90, wValue: 0x0000, wIndex: 0x0004, wLength: 16
type = USB_TYPE_VENDOR
req = unknown = 0x90
Control transfer succeed
ep0: transferred 16 bytes (in)
event: control, length: 8
bRequestType: 0xc0 (IN), bRequest: 0x90, wValue: 0x0000, wIndex: 0x0004, wLength: 40
type = USB_TYPE_VENDOR
req = unknown = 0x90
Control transfer succeed
ep0: transferred 40 bytes (in)
event: control, length: 8
bRequestType: 0x80 (IN), bRequest: 0x06, wValue: 0x0300, wIndex: 0x0000, wLength: 255
type = USB_TYPE_STANDARD
req = USB_REQ_GET_DESCRIPTOR
desc = USB_DT_STRING
Control transfer succeed
ep0: transferred 4 bytes (in)
event: control, length: 8
bRequestType: 0x80 (IN), bRequest: 0x06, wValue: 0x0302, wIndex: 0x0409, wLength: 255
type = USB_TYPE_STANDARD
req = USB_REQ_GET_DESCRIPTOR
desc = USB_DT_STRING
Control transfer succeed
ep0: transferred 22 bytes (in)
event: control, length: 8
bRequestType: 0x80 (IN), bRequest: 0x06, wValue: 0x0100, wIndex: 0x0000, wLength: 18
type = USB_TYPE_STANDARD
req = USB_REQ_GET_DESCRIPTOR
desc = USB_DT_DEVICE
Control transfer succeed
ep0: transferred 18 bytes (in)
event: control, length: 8
bRequestType: 0x80 (IN), bRequest: 0x06, wValue: 0x0200, wIndex: 0x0000, wLength: 9
type = USB_TYPE_STANDARD
req = USB_REQ_GET_DESCRIPTOR
desc = USB_DT_CONFIG
Control transfer succeed
ep0: transferred 9 bytes (in)
event: control, length: 8
bRequestType: 0x80 (IN), bRequest: 0x06, wValue: 0x0200, wIndex: 0x0000, wLength: 119
type = USB_TYPE_STANDARD
req = USB_REQ_GET_DESCRIPTOR
desc = USB_DT_CONFIG
Control transfer succeed
ep0: transferred 119 bytes (in)
event: control, length: 8
bRequestType: 0x00 (OUT), bRequest: 0x09, wValue: 0x0001, wIndex: 0x0000, wLength: 0
type = USB_TYPE_STANDARD
req = USB_REQ_SET_CONFIGURATION
Activating 2 endpoints on interface 0
int_out: addr = 2, ep = #3
Creating thread for EP02
Start reading thread for EP02, thread id(7279)
int_in: addr = 2, ep = #2
Creating thread for EP82
Start writing thread for EP02, thread id(7280)
Start reading thread for EP82, thread id(7281)
process_eps done
Start writing thread for EP82, thread id(7282)
Activating 0 endpoints on interface 1
process_eps done
Activating 0 endpoints on interface 2
process_eps done
event: control, length: 8
bRequestType: 0x01 (OUT), bRequest: 0x0b, wValue: 0x0000, wIndex: 0x0000, wLength: 0
type = USB_TYPE_STANDARD
req = USB_REQ_SET_INTERFACE
Changing interface/altsetting
End writing thread for EP02, thread id(7280)
End writing thread for EP82, thread id(7282)
EP82(int_in): enqueued 48 bytes to queue
End reading thread for EP82, thread id(7281)
ioctl(USB_RAW_IOCTL_EP_READ): Cannot send after transport endpoint shutdown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment