From owner-freebsd-hardware@FreeBSD.ORG Fri Nov 4 19:22:56 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 0337B1065670 for ; Fri, 4 Nov 2011 19:22:56 +0000 (UTC) (envelope-from amijaresp@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id B9F218FC12 for ; Fri, 4 Nov 2011 19:22:55 +0000 (UTC) Received: by ggnk3 with SMTP id k3so1804799ggn.13 for ; Fri, 04 Nov 2011 12:22:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=APEhJfcgylE6XKqDiDaj23v48zGZj2WPm80bQ8slko4=; b=t82VUORFoq4UOKUV1pI1x4xs+BA2yO1VnqsKsWdPncJ4GiUJVyzAbveLFvF+oNYw8r ToEI4clw0RemK3KJBFE71bTx69K1eQ4CzthKLf+crOvCoUl4eEMWY/ucIDs05twmdoz+ Q/F3tBMJruGxfR2Ty8iQtWs2Y0DFosVLkHoZ4= MIME-Version: 1.0 Received: by 10.101.105.4 with SMTP id h4mr3995998anm.123.1320434574831; Fri, 04 Nov 2011 12:22:54 -0700 (PDT) Received: by 10.100.163.1 with HTTP; Fri, 4 Nov 2011 12:22:53 -0700 (PDT) In-Reply-To: <201111040941.28413.hselasky@c2i.net> References: <201111040941.28413.hselasky@c2i.net> Date: Fri, 4 Nov 2011 14:52:53 -0430 Message-ID: From: Alberto Mijares To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 Cc: freebsd-hardware@freebsd.org 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 19:22:56 -0000 Hi Hans, dmesg doesn't say anything when the failure occurs. # sysctl hw.usb.no_cs_fail sysctl: unknown oid 'hw.usb.no_cs_fail' I turned on debugging in the modem driver # sysctl hw.usb.u3g.debug=1 hw.usb.u3g.debug: 0 -> 1 However, I cannot recompile the kernel rigth now for USB_DEBUG. I hope when the failure occurs again the driver be able to say what is going on. I'll be posting the results here. Thanks in advance. Regards Alberto Mijares On 11/4/11, Hans Petter Selasky wrote: > 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 >