From owner-freebsd-usb@FreeBSD.ORG Sat Jul 23 16:53:47 2011 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 7E1BB1065670 for ; Sat, 23 Jul 2011 16:53:47 +0000 (UTC) (envelope-from peerst@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3D4A28FC19 for ; Sat, 23 Jul 2011 16:53:46 +0000 (UTC) Received: by vws18 with SMTP id 18so2972634vws.13 for ; Sat, 23 Jul 2011 09:53:46 -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:content-transfer-encoding; bh=ZCVLQHz6LXMia+yrWrRrKE95X3/XUuLJL10hLBZRY4I=; b=Jd0XKoCZwS+5GIplMiDoNvah3kh4v8J2xVojzoF/GBnAdf1hVW4mdPgLnGqM9oMOld PdXRlStCVPMLlVBVz45iV+PV09qRmr6xyYWNbG+NQssaJWlaSNPNEDAD0C8qlWAy+J87 QqNRPgHc7YbndptaprLi2pMQVW1XnfPswXqUA= MIME-Version: 1.0 Received: by 10.52.73.164 with SMTP id m4mr2848388vdv.157.1311440026296; Sat, 23 Jul 2011 09:53:46 -0700 (PDT) Received: by 10.52.188.102 with HTTP; Sat, 23 Jul 2011 09:53:46 -0700 (PDT) In-Reply-To: <201107231755.23755.hselasky@c2i.net> References: <201107231717.34403.hselasky@c2i.net> <201107231755.23755.hselasky@c2i.net> Date: Sat, 23 Jul 2011 18:53:46 +0200 Message-ID: From: Peer Stritzinger To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-usb Subject: Re: Powercycling USB device on hub 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: Sat, 23 Jul 2011 16:53:47 -0000 On Sat, Jul 23, 2011 at 5:55 PM, Hans Petter Selasky wro= te: >> Since power-cycling needs to reset the HUB I now have the problem to >> find out on which HUB in the system my device hangs. >> >> There are two HUB's on the same root HUB and I don't want to >> power-cycle all devices. =A0Is there a way to learn the physical >> structure of a USB bus? > > devinfo > > Address 1 is always the root HUB. Tried this already but it only shows the hubs but none of my devices because they have no driver (custom built USB devices, only talk to them via libusb). e.g. usbus3 uhub3 uhub4 pnpinfo vendor=3D0x0424 product=3D0x2514 devclass=3D0x0= 9 devsubclass=3D0x00 sernum=3D"" release=3D0x0bb3 intclass=3D0x09 intsubclass=3D0x00 at port=3D7 interface=3D0 uhub5 pnpinfo vendor=3D0x0424 product=3D0x2514 devclass=3D0x0= 9 devsubclass=3D0x00 sernum=3D"" release=3D0x0bb3 intclass=3D0x09 intsubclass=3D0x00 at port=3D8 interface=3D0 There is one of the devices attached either to uhub4 or uhub5 (visible in usbconfig) but nothing shown in devinfo (even with -v). -- Peer