From owner-freebsd-usb@FreeBSD.ORG Sun Apr 22 06:39:04 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D6E4A106564A for ; Sun, 22 Apr 2012 06:39:04 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.c2i.net [212.247.154.194]) by mx1.freebsd.org (Postfix) with ESMTP id 5D99B8FC0A for ; Sun, 22 Apr 2012 06:39:04 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.212.201] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 265450754; Sun, 22 Apr 2012 08:38:57 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sun, 22 Apr 2012 08:37:57 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.3-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <4F939175.50207@rawbw.com> In-Reply-To: X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201204220837.57648.hselasky@c2i.net> Cc: Subject: Re: Is there a facility to send USB requests through the script? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Apr 2012 06:39:04 -0000 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