Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Apr 2012 08:37:57 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-usb@freebsd.org
Subject:   Re: Is there a facility to send USB requests through the script?
Message-ID:  <201204220837.57648.hselasky@c2i.net>
In-Reply-To: <B957ABB9-8E23-4BD7-98FA-C115D1F3E8DA@gsoft.com.au>
References:  <4F939175.50207@rawbw.com> <B957ABB9-8E23-4BD7-98FA-C115D1F3E8DA@gsoft.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 22 April 2012 07:25:20 Daniel O'Connor wrote:
> On 22/04/2012, at 14:34, Yuri wrote:
> > I am looking at the USB webcam device that doesn't work on BSD (stalls).
> > I have the log of linux USB communcation to the same device, where it
> > works fine.
> > 
> > Is there a way I can send the particular requests to USB device through
> > script, as a debugging facility, so that I can easily change what is
> > sent, compare what is received to what I have in log, and make changes?
> 
> AFAIK there are no shell commands for this, however you can get libusb
> bindings for Python, Ruby, etc..
> 
> > I know that kernel also sends some requests to the USB device, and I
> > would like to disable this in such case.
> 
> If there is no driver then the kernel will only enumerate it which is the
> bare minimum to give it an address and read out the configuration
> descriptors.

You can do this using usbconfig -d X.Y do_request

man usbconfig

Only control transfers!

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204220837.57648.hselasky>