21, 01, 1, 0x600, 0x400, buf, 0x7, 1000
21 - CLASS
01 - DIRECTION
0x600 - ?
0x400 - ?
buf - buf
0x7 - sizeof(buf)
1000 - timeout
it's dump via usbmon.
For example setting brightness
# v4l2-ctl -c brightness=1
in dump look like a
s 21 01 0200 0001 001a 26 =
01000101 15160500
Good day All!
How and where in your uvc driver code to be inserted,
тo pass in the USB a few bytes?
With libusb this string looks like:
#define ON_LED \x00\x00\x01\xc2\x00\x00\x00
memcpy(buf, ON_LED, 0x7);
usb_control_msg(devh, USB_TYPE_CLASS + USB_RECIP_INTERFACE, 1, 0x600, 0x400,
buf, 0x7,
Hi,
i'm not sure, but it looks like all non-uvc controls are done in
libwebcam and uvcdynctrl-data. For example this one is for logitech
uvcdynctrl-data: /usr/share/uvcdynctrl/data/046d/logitech.xml
On 21.11.2011 02:52, DIXLOR wrote:
Good day All!
How and where in your uvc driver code to be