Is there a facility to send USB requests through the script?

Daniel O'Connor doconnor at gsoft.com.au
Sun Apr 22 05:25:35 UTC 2012


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.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C








More information about the freebsd-usb mailing list