From owner-freebsd-usb@FreeBSD.ORG Tue Dec 15 06:17:59 2009 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 DFBC2106568F for ; Tue, 15 Dec 2009 06:17:59 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 498D28FC1D for ; Tue, 15 Dec 2009 06:17:58 +0000 (UTC) Received: from inchoate.gsoft.com.au ([203.31.81.30]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id nBF6Hu2F055407 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 15 Dec 2009 16:47:56 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-usb@freebsd.org Date: Tue, 15 Dec 2009 16:47:46 +1030 User-Agent: KMail/1.9.10 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1534538.YmKpVpaBlK"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200912151647.53759.doconnor@gsoft.com.au> X-Spam-Score: -3.977 () ALL_TRUSTED,BAYES_00 X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Subject: Re-enumerating a device 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: Tue, 15 Dec 2009 06:18:00 -0000 --nextPart1534538.YmKpVpaBlK Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline [ Please CC me as I'm not on list ] Hi, I have an M-Audio MobilePre, it's a USB audio module which works with=20 snd_uadio, however to get it working I need to load the firwmare (via=20 DFU). Unfortunately the only way I can get it to re-enumerate after sending=20 the firmware is to unplug it enough to disconnect the data lines (but=20 not power) and then reconnect. I have tried usbconfig reset, power_off/power_on, set_config and set_alt=20 but to no avail.. [inchoate 16:46] ~/projects/dfu-util-0.1.snap20090212 >dfu-util -D ~/ma0041= 03.bin -t 256 dfu-util - (C) 2007-2008 by OpenMoko Inc. This program is Free Software and has ABSOLUTELY NO WARRANTY Opening USB Device 0x0000:0x0000... Claiming USB DFU Runtime Interface... Determining device status: state =3D dfuIDLE, status =3D 0 WARNING: Runtime device already in DFU state ?!? =46ound Runtime: [0x0763:0x2804] devnum=3D0, cfg=3D0, intf=3D0, alt=3D0, na= me=3D"RAM" Claiming USB DFU Interface... Setting Alternate Setting ... Determining device status: state =3D dfuIDLE, status =3D 0 dfuIDLE, continuing Transfer Size =3D 0x0100 bytes_per_hash=3D120 Starting download: [##################################################] fin= ished! state(7) =3D dfuMANIFEST, status(0) =3D No error condition is present state(2) =3D dfuIDLE, status(0) =3D No error condition is present Done! =46rom dmesg.. ugen0.2: at usbus0 # Run dfu-util ugen0.2: at usbus0 (disconnected) # Cause re-enumeratae ugen0.2: at usbus0 uaudio0: on usbus0 uaudio0: Play: 48000 Hz, 2 ch, 16-bit S-LE PCM format uaudio0: Record: 48000 Hz, 2 ch, 16-bit S-LE PCM format uaudio0: No midi sequencer pcm1: on uaudio0 =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart1534538.YmKpVpaBlK Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iD8DBQBLJyoR5ZPcIHs/zowRAp9HAJ4zExo8WsQ7ggoAaVQ6xEe69Bfm1QCgpjZx cu7gnwPs8YYkBPZ9XhVMGCM= =Y307 -----END PGP SIGNATURE----- --nextPart1534538.YmKpVpaBlK--