From owner-freebsd-usb@FreeBSD.ORG Sun Aug 12 12:44:18 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 EF54B106566B for ; Sun, 12 Aug 2012 12:44:17 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.c2i.net [212.247.154.34]) by mx1.freebsd.org (Postfix) with ESMTP id 61F818FC14 for ; Sun, 12 Aug 2012 12:44:16 +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 laptop015.hselasky.homeunix.org) by mailfe02.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 307811797; Sun, 12 Aug 2012 14:44:07 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sun, 12 Aug 2012 14:44:42 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <20120812013351.GA35331@server.rulingia.com> In-Reply-To: <20120812013351.GA35331@server.rulingia.com> 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-15" Content-Transfer-Encoding: 7bit Message-Id: <201208121444.42872.hselasky@c2i.net> Cc: Subject: Re: 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 12:44:18 -0000 On Sunday 12 August 2012 03:33:51 Peter Jeremy wrote: > 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=00000000,SPD=LOW,NFR=2,SLEN=16,IVAL=0 > 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=00000000,SPD=LOW,NFR=2,SLEN=0,IVAL=0,ERR=0 frame[0] WRITE 8 > bytes > frame[1] WRITE 8 bytes > 11:12:53.548963 usbus1.3 SUBM-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=0,IVAL=32 > frame[0] READ 8 bytes > 11:12:53.601930 usbus1.3 > DONE-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=8,IVAL=32,ERR=0 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=00000081,SPD=LOW,NFR=1,SLEN=0,IVAL=32 > frame[0] READ 8 bytes > 11:12:53.633918 usbus1.3 > DONE-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=8,IVAL=32,ERR=0 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=00000081,SPD=LOW,NFR=1,SLEN=0,IVAL=32 > frame[0] READ 8 bytes > 11:12:53.697920 usbus1.3 > DONE-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=8,IVAL=32,ERR=0 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=00000081,SPD=LOW,NFR=1,SLEN=0,IVAL=32 > frame[0] READ 8 bytes > 11:12:53.729919 usbus1.3 > DONE-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=8,IVAL=32,ERR=0 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=00000081,SPD=LOW,NFR=1,SLEN=0,IVAL=32 > frame[0] READ 8 bytes > 11:12:53.761916 usbus1.3 > DONE-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=8,IVAL=32,ERR=0 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=00000081,SPD=LOW,NFR=1,SLEN=0,IVAL=32 > frame[0] READ 8 bytes > 11:12:53.793925 usbus1.3 > DONE-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=8,IVAL=32,ERR=0 frame[0] READ 8 > bytes > 0000 30 30 31 30 30 31 0D 00 -- -- -- -- -- -- -- -- |001001.. | > 11:12:54.795036 usbus1.3 SUBM-CTRL-EP=00000000,SPD=LOW,NFR=2,SLEN=16,IVAL=0 > 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=00000000,SPD=LOW,NFR=0,SLEN=0,IVAL=0,ERR=TIMEOUT Hi, You could try: hw.usb.ehci.lostintrbug="1" In /boot/loader.rc If that doesn't help, it is most likely a device problem. --HPS