Hello
I've started logging some USB cam wiht usb snoop under win32. ( A part
of the log is included )
I can't manage to understand it ... To reproduce it under linux.
The URB 222 is OK, a simple usb_set_interface will do fine ( i guess ).
I've just included it because it give info about current interface and
alt_setting selected.
But I can't figure out what URB 223 is and how to send a similar one
under linux. It's VENDOR specific packet so i suppose i need
USB_TYPE_VENDOR somewhere. But i don't know where to send it ... What
recipient, endpoint ... If some one get some sample code on how to send
the URB 223 it will help me a lot because i'm a little lost ...
Documention i've read speak about standard request, not this type of
packet ...
Tanx for your help
Munaut Sylvain
--- CUT ---
>>>>>>> URB 222 going down...
-- URB_FUNCTION_SELECT_INTERFACE:
ConfigurationHandle = 0xc18bf160
Interface: Length = 0x0000004c
Interface: InterfaceNumber = 0x00
Interface: AlternateSetting = 0x01
Interface: Class = 0xff
Interface: SubClass = 0xff
Interface: Protocol = 0xff
Interface: InterfaceHandle = 0xc1656c40
Interface: NumberOfPipes = 0x00000003
<<<<<<< URB 222 coming back...
-- URB_FUNCTION_SELECT_INTERFACE:
ConfigurationHandle = 0xc18bf160
Interface: Length = 0x0000004c
Interface: InterfaceNumber = 0x00
Interface: AlternateSetting = 0x01
Interface: Class = 0xff
Interface: SubClass = 0xff
Interface: Protocol = 0xff
Interface: InterfaceHandle = 0xc164ad20
Interface: NumberOfPipes = 0x00000003
Interface: Pipes[0] : MaximumPacketSize = 0x0001
Interface: Pipes[0] : EndpointAddress = 0x81
Interface: Pipes[0] : Interval = 0x01
Interface: Pipes[0] : PipeType = 0x03 (UsbdPipeTypeInterrupt)
Interface: Pipes[0] : PipeHandle = 0xc164ad38
Interface: Pipes[0] : MaxTransferSize = 0x00001000
Interface: Pipes[0] : PipeFlags = 0x00
Interface: Pipes[1] : MaximumPacketSize = 0x03c0
Interface: Pipes[1] : EndpointAddress = 0x82
Interface: Pipes[1] : Interval = 0x01
Interface: Pipes[1] : PipeType = 0x01 (UsbdPipeTypeIsochronous)
Interface: Pipes[1] : PipeHandle = 0xc164ad54
Interface: Pipes[1] : MaxTransferSize = 0x00008000
Interface: Pipes[1] : PipeFlags = 0x00
Interface: Pipes[2] : MaximumPacketSize = 0x0001
Interface: Pipes[2] : EndpointAddress = 0x83
Interface: Pipes[2] : Interval = 0x01
Interface: Pipes[2] : PipeType = 0x01 (UsbdPipeTypeIsochronous)
Interface: Pipes[2] : PipeHandle = 0xc164ad70
Interface: Pipes[2] : MaxTransferSize = 0x00001000
Interface: Pipes[2] : PipeFlags = 0x00
UsbSnoop - IRP_MJ_INTERNAL_DEVICE_CONTROL, IOCTL_INTERNAL_USB_SUBMIT_URB
>>>>>>> URB 223 going down...
-- URB_FUNCTION_VENDOR_DEVICE:
TransferFlags = 00000000 (USBD_TRANSFER_DIRECTION_OUT,
~USBD_SHORT_TRANSFER_OK)
TransferBufferLength = 00000001
TransferBuffer = c17ba900
TransferBufferMDL = 00000000
0000:
04
UrbLink = 00000000
RequestTypeReservedBits = 00
Request = 00
Value = 0000
Index = 0406
<<<<<<< URB 223 coming back...
-- URB_FUNCTION_CONTROL_TRANSFER:
PipeHandle = c140076c
TransferFlags = 00000002 (USBD_TRANSFER_DIRECTION_OUT,
USBD_SHORT_TRANSFER_OK)
TransferBufferLength = 00000001
TransferBuffer = c17ba900
TransferBufferMDL = c14007a0
UrbLink = 00000000
SetupPacket : 40 00 00 00 06 04 01 00
UsbSnoop - IRP_MJ_INTERNAL_DEVICE_CONTROL, IOCTL_INTERNAL_USB_SUBMIT_URB
--- CUT ---
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel