From owner-freebsd-hardware@FreeBSD.ORG Fri Nov 4 08:54:28 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 552201065670 for ; Fri, 4 Nov 2011 08:54:28 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.c2i.net [212.247.154.226]) by mx1.freebsd.org (Postfix) with ESMTP id DEB428FC1C for ; Fri, 4 Nov 2011 08:54:27 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe08.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 200047933; Fri, 04 Nov 2011 09:44:23 +0100 From: Hans Petter Selasky To: freebsd-hardware@freebsd.org Date: Fri, 4 Nov 2011 09:41:28 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: In-Reply-To: X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201111040941.28413.hselasky@c2i.net> Cc: Alberto Mijares Subject: Re: How to debug USB hardware issues X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2011 08:54:28 -0000 On Friday 04 November 2011 02:01:45 Alberto Mijares wrote: > Hi, > > I have a SMS gateway with FreeBSD 8.2 RELEASE on old hardware > (Pentium4). It has plugged a modem Enfora SA-EL, GSM-GPRS, via USB. > > The modem has been working fine for years. However, since it's plugged > to this server, the application that manage the modem hangs every one > or two days. > > I'd like to know if there is a way to know exactly if the problem is > the USB ports or the modem failing (because has some years now). Some > time I have to reset the USB port (using usbconfig) and it works > again. Tha bad thing is that the application hangs and cannot reset > the modem (using the %RESET AT command). > > Thanks in advance for your suggestions. > > Regards > > > Alberto Mijares Hi, What does dmesg say when this failure occurs? Do you see the following sysctl: sysctl hw.usb.no_cs_fail I would start turn on debugging in the modem driver, compile kernel with options USB_DEBUG, and then see what is printed at the time of failure. --HPS