From owner-freebsd-usb@FreeBSD.ORG Wed Mar 30 12:37:08 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBDF116A4CE for ; Wed, 30 Mar 2005 12:37:07 +0000 (GMT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 651B943D1F for ; Wed, 30 Mar 2005 12:37:07 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0)j2UCb3sf088118 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Wed, 30 Mar 2005 14:37:05 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id j2UCaCVK004639 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 30 Mar 2005 14:36:12 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id j2UCaBax095648; Wed, 30 Mar 2005 14:36:11 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id j2UCaB0m095647; Wed, 30 Mar 2005 14:36:11 +0200 (CEST) (envelope-from ticso) Date: Wed, 30 Mar 2005 14:36:11 +0200 From: Bernd Walter To: Alexandre Jouravlev Message-ID: <20050330123610.GP33677@cicely12.cicely.de> References: <20050330104411.GL33677@cicely12.cicely.de> <20050330110436.GM33677@cicely12.cicely.de> <6ea402e33ab5f4d1a9e66c51c5ddc78a@mail.ru> <20050330115629.GO33677@cicely12.cicely.de> <548e4b9dbf2553ebdc2584bee71441a5@mail.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <548e4b9dbf2553ebdc2584bee71441a5@mail.ru> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=no version=2.64 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on cicely12.cicely.de cc: ticso@cicely.de cc: freebsd-usb@freebsd.org Subject: Re: Ezload problems. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2005 12:37:08 -0000 On Wed, Mar 30, 2005 at 04:11:27PM +0400, Alexandre Jouravlev wrote: > > > >Try setting hw.usb.uhub.debug=20 befor testing. > >Would be interesting to see why you see a disconnect event, > >but no connect. > > > > > As I am not skilled usb developer (this is my first usb project ever) I > don't understand much in this output. > Here is the output of debug session from plugging the device to what > happens next: > > ugen0: Device (no firmware), rev 1.00/1.00, addr 2 > uhub_intr: sc=0xc288d790 > uhub_explore dev=0xc2af4380 addr=1 > uhub_explore: uhub0 port 1 status 0x0100 0x0000 This is a root hub - things might be different if you use another host controller type or an external hub between. Neverthelesse there is a problem to fix somewhere. > uhub_explore: port=1 !C_CONNECT_STATUS > uhub_explore: uhub0 port 2 status 0x0100 0x0003 > uhub_explore: C_PORT_ENABLED 0x3 > uhub_explore: status change hub=1 port=2 > uhub_explore: device addr=2 disappeared on port 2 > ugen0: at uhub0 port 2 (addr 2) disconnected > ugen0: detached > uhub_explore: port=2 !CURRENT_CONNECT_STATUS > uhub_intr: sc=0xc288d790 > uhub_explore dev=0xc2af4380 addr=1 > uhub_explore: uhub0 port 1 status 0x0100 0x0000 > uhub_explore: port=1 !C_CONNECT_STATUS > uhub_explore: uhub0 port 2 status 0x0101 0x0001 > uhub_explore: status change hub=1 port=2 > uhub_intr: sc=0xc288d790 > uhub_explore dev=0xc2af4380 addr=1 > uhub_explore: uhub0 port 1 status 0x0100 0x0010 > uhub_explore: port=1 !C_CONNECT_STATUS > uhub_explore: uhub0 port 2 status 0x0100 0x0011 > uhub_explore: status change hub=1 port=2 > uhub_explore: port=2 !CURRENT_CONNECT_STATUS > uhub_intr: sc=0xc288d790 I asume the messages don't have much time in between? > And next the following repeated at rate about 2 messages per second: > > uhub_intr: sc=0xc288d790 > uhub_explore dev=0xc2af4380 addr=1 > uhub_explore: uhub0 port 1 status 0x0100 0x0010 > uhub_explore: port=1 !C_CONNECT_STATUS > uhub_explore: uhub0 port 2 status 0x0101 0x0011 > uhub_explore: status change hub=1 port=2 Will have to check the meaning of those states in USB specs. Looks like we ignore it for whatever reason. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de