From owner-freebsd-usb@FreeBSD.ORG Sun Apr 22 05:25:35 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA566106566B for ; Sun, 22 Apr 2012 05:25:35 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 5EBB38FC0C for ; Sun, 22 Apr 2012 05:25:35 +0000 (UTC) Received: from ur.dons.net.au (ppp121-45-72-72.lns20.adl6.internode.on.net [121.45.72.72]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id q3M5PKbk042082 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sun, 22 Apr 2012 14:55:27 +0930 (CST) (envelope-from doconnor@gsoft.com.au) Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=iso-8859-1 From: "Daniel O'Connor" In-Reply-To: <4F939175.50207@rawbw.com> Date: Sun, 22 Apr 2012 14:55:20 +0930 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4F939175.50207@rawbw.com> To: Yuri X-Mailer: Apple Mail (2.1257) X-Spam-Score: 2.162 (**) BAYES_00,KHOP_DYNAMIC,RDNS_DYNAMIC X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 Cc: freebsd-usb@freebsd.org 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 05:25:35 -0000 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. >=20 > 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