From owner-freebsd-usb@FreeBSD.ORG Sun Aug 12 01:34:07 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 0A1BC106564A for ; Sun, 12 Aug 2012 01:34:07 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from vps.rulingia.com (host-122-100-2-194.octopus.com.au [122.100.2.194]) by mx1.freebsd.org (Postfix) with ESMTP id AAA1D8FC0C for ; Sun, 12 Aug 2012 01:34:05 +0000 (UTC) Received: from server.rulingia.com (c220-239-249-137.belrs5.nsw.optusnet.com.au [220.239.249.137]) by vps.rulingia.com (8.14.5/8.14.5) with ESMTP id q7C1XwnQ071183 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 12 Aug 2012 11:33:58 +1000 (EST) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.14.5/8.14.5) with ESMTP id q7C1XpYv035509 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 12 Aug 2012 11:33:51 +1000 (EST) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.14.5/8.14.5/Submit) id q7C1XpVw035508 for freebsd-usb@freebsd.org; Sun, 12 Aug 2012 11:33:51 +1000 (EST) (envelope-from peter) Date: Sun, 12 Aug 2012 11:33:51 +1000 From: Peter Jeremy To: freebsd-usb@freebsd.org Message-ID: <20120812013351.GA35331@server.rulingia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sdtB3X0nJg68CQEu" Content-Disposition: inline X-PGP-Key: http://www.rulingia.com/keys/peter.pgp User-Agent: Mutt/1.5.21 (2010-09-15) Subject: USB devices disappearing 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, 12 Aug 2012 01:34:07 -0000 --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I have a USB-connected UPS and both sysutils/nut and a simple client that I wrote are reporting "no device" (LIBUSB_ERROR_NO_DEVICE via libusb) after talking to it for some (variable) time. If I restart my client it again works for a while before dying the same way. I'm using FreeBSD 8-stable/amd64 (r237444). As an example, my client sends "Q1\r" every second and expects a status message (chopped into 8-byte chunks) back. The following is a usbdump showing the last successful poll and failure. Any suggestions on where this problem exists? 11:12:53.547070 usbus1.3 SUBM-CTRL-EP=3D00000000,SPD=3DLOW,NFR=3D2,SLEN=3D1= 6,IVAL=3D0 frame[0] WRITE 8 bytes 0000 21 09 00 02 00 00 08 00 -- -- -- -- -- -- -- -- |!....... | frame[1] WRITE 8 bytes 0000 51 31 0D 00 00 00 00 00 -- -- -- -- -- -- -- -- |Q1...... | 11:12:53.548918 usbus1.3 DONE-CTRL-EP=3D00000000,SPD=3DLOW,NFR=3D2,SLEN=3D0= ,IVAL=3D0,ERR=3D0 frame[0] WRITE 8 bytes frame[1] WRITE 8 bytes 11:12:53.548963 usbus1.3 SUBM-INTR-EP=3D00000081,SPD=3DLOW,NFR=3D1,SLEN=3D0= ,IVAL=3D32 frame[0] READ 8 bytes 11:12:53.601930 usbus1.3 DONE-INTR-EP=3D00000081,SPD=3DLOW,NFR=3D1,SLEN=3D8= ,IVAL=3D32,ERR=3D0 frame[0] READ 8 bytes 0000 28 32 34 30 2E 38 20 32 -- -- -- -- -- -- -- -- |(240.8 2 | 11:12:53.602018 usbus1.3 SUBM-INTR-EP=3D00000081,SPD=3DLOW,NFR=3D1,SLEN=3D0= ,IVAL=3D32 frame[0] READ 8 bytes 11:12:53.633918 usbus1.3 DONE-INTR-EP=3D00000081,SPD=3DLOW,NFR=3D1,SLEN=3D8= ,IVAL=3D32,ERR=3D0 frame[0] READ 8 bytes 0000 34 30 2E 34 20 32 34 31 -- -- -- -- -- -- -- -- |40.4 241 | 11:12:53.633979 usbus1.3 SUBM-INTR-EP=3D00000081,SPD=3DLOW,NFR=3D1,SLEN=3D0= ,IVAL=3D32 frame[0] READ 8 bytes 11:12:53.697920 usbus1.3 DONE-INTR-EP=3D00000081,SPD=3DLOW,NFR=3D1,SLEN=3D8= ,IVAL=3D32,ERR=3D0 frame[0] READ 8 bytes 0000 2E 33 20 30 32 30 20 35 -- -- -- -- -- -- -- -- |.3 020 5 | 11:12:53.697995 usbus1.3 SUBM-INTR-EP=3D00000081,SPD=3DLOW,NFR=3D1,SLEN=3D0= ,IVAL=3D32 frame[0] READ 8 bytes 11:12:53.729919 usbus1.3 DONE-INTR-EP=3D00000081,SPD=3DLOW,NFR=3D1,SLEN=3D8= ,IVAL=3D32,ERR=3D0 frame[0] READ 8 bytes 0000 30 2E 32 20 31 33 2E 36 -- -- -- -- -- -- -- -- |0.2 13.6 | 11:12:53.729999 usbus1.3 SUBM-INTR-EP=3D00000081,SPD=3DLOW,NFR=3D1,SLEN=3D0= ,IVAL=3D32 frame[0] READ 8 bytes 11:12:53.761916 usbus1.3 DONE-INTR-EP=3D00000081,SPD=3DLOW,NFR=3D1,SLEN=3D8= ,IVAL=3D32,ERR=3D0 frame[0] READ 8 bytes 0000 20 32 35 2E 30 20 30 30 -- -- -- -- -- -- -- -- | 25.0 00 | 11:12:53.761976 usbus1.3 SUBM-INTR-EP=3D00000081,SPD=3DLOW,NFR=3D1,SLEN=3D0= ,IVAL=3D32 frame[0] READ 8 bytes 11:12:53.793925 usbus1.3 DONE-INTR-EP=3D00000081,SPD=3DLOW,NFR=3D1,SLEN=3D8= ,IVAL=3D32,ERR=3D0 frame[0] READ 8 bytes 0000 30 30 31 30 30 31 0D 00 -- -- -- -- -- -- -- -- |001001.. | 11:12:54.795036 usbus1.3 SUBM-CTRL-EP=3D00000000,SPD=3DLOW,NFR=3D2,SLEN=3D1= 6,IVAL=3D0 frame[0] WRITE 8 bytes 0000 21 09 00 02 00 00 08 00 -- -- -- -- -- -- -- -- |!....... | frame[1] WRITE 8 bytes 0000 51 31 0D 00 00 00 00 00 -- -- -- -- -- -- -- -- |Q1...... | 11:12:59.679800 usbus1.3 DONE-CTRL-EP=3D00000000,SPD=3DLOW,NFR=3D0,SLEN=3D0= ,IVAL=3D0,ERR=3DTIMEOUT --=20 Peter Jeremy --sdtB3X0nJg68CQEu Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlAnB/8ACgkQ/opHv/APuIc8iwCgonM6lw8oopvh3RabtF9wS/2C VCsAn3z3qYZ8rBnk6FTwul0SlXNxPWjq =8rvx -----END PGP SIGNATURE----- --sdtB3X0nJg68CQEu--