From owner-freebsd-usb@FreeBSD.ORG Thu Apr 19 19:35:02 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 1A29E106564A for ; Thu, 19 Apr 2012 19:35:02 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id DC4DE8FC08 for ; Thu, 19 Apr 2012 19:35:01 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id q3JJYsP7036844 for ; Thu, 19 Apr 2012 12:34:55 -0700 (PDT) (envelope-from yuri@rawbw.com) Message-ID: <4F9068DE.9090807@rawbw.com> Date: Thu, 19 Apr 2012 12:34:54 -0700 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120316 Thunderbird/10.0.3 MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: usbdump(8) question 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: Thu, 19 Apr 2012 19:35:02 -0000 I am trying to use usbdump(8) on one webcam, but the produced, log causes some questions. 1. Why -s 1024 option doesn't show actual data even though SLEN for packets is non-zero? 2. When I run webcamd, first 4 lines of log (with the error) quickly appear. Webcamd exits quickly, in 0.035s, but usbdump after 1-2 secs shows the rest of the log. Why is this significant delay? Why the first 4 lines aren't delayed? Yuri --- usbdump log --- # usbdump -i usbus3 -s 1024 12:32:19.151777 usbus3.2 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0 12:32:19.155753 usbus3.2 DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=28,IVAL=0,ERR=0 12:32:19.155772 usbus3.2 SUBM-CTRL-EP=00000000,SPD=HIGH,NFR=2,SLEN=36,IVAL=0 12:32:19.159264 usbus3.2 DONE-CTRL-EP=00000000,SPD=HIGH,NFR=2,SLEN=0,IVAL=0,ERR=STALLED <... at this point webcamd process is ended, but the following lines appear after 1-2 secs. Why? ...> 12:32:20.998845 usbus3.2 SUBM-CTRL-EP=00000000,SPD=HIGH,NFR=1,SLEN=8,IVAL=0 12:32:20.999006 usbus3.2 DONE-CTRL-EP=00000000,SPD=HIGH,NFR=1,SLEN=0,IVAL=0,ERR=0 12:32:20.999019 usbus3.2 SUBM-CTRL-EP=00000000,SPD=HIGH,NFR=1,SLEN=0,IVAL=0 12:32:20.999129 usbus3.2 DONE-CTRL-EP=00000000,SPD=HIGH,NFR=1,SLEN=0,IVAL=0,ERR=0 12:32:21.011833 usbus3.2 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0 12:32:21.013626 usbus3.2 DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=20,IVAL=0,ERR=0 12:32:21.014846 usbus3.2 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0 12:32:21.016000 usbus3.2 DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=4,IVAL=0,ERR=0 12:32:21.016014 usbus3.2 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0 12:32:21.017375 usbus3.2 DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=4,IVAL=0,ERR=0 12:32:21.017391 usbus3.2 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0 12:32:21.019250 usbus3.2 DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=4,IVAL=0,ERR=0 12:32:21.019264 usbus3.2 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0 12:32:21.021625 usbus3.2 DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=20,IVAL=0,ERR=0 12:32:21.021644 usbus3.2 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0 12:32:21.028876 usbus3.2 DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=12,IVAL=0,ERR=0 12:32:21.028891 usbus3.2 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0 12:32:21.108758 usbus3.2 DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=1024,IVAL=0,ERR=0 12:32:21.108773 usbus3.2 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=0,IVAL=0 12:32:21.191506 usbus3.2 DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=1024,IVAL=0,ERR=0 12:32:21.191522 usbus3.2 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=0,IVAL=0 12:32:21.273003 usbus3.2 DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=1024,IVAL=0,ERR=0 12:32:21.273018 usbus3.2 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=0,IVAL=0 12:32:21.286251 usbus3.2 DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=196,IVAL=0,ERR=0 12:32:21.286269 usbus3.2 SUBM-CTRL-EP=00000000,SPD=HIGH,NFR=1,SLEN=8,IVAL=0 12:32:21.286374 usbus3.2 DONE-CTRL-EP=00000000,SPD=HIGH,NFR=1,SLEN=0,IVAL=0,ERR=0