Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Dec 2009 16:47:46 +1030
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        freebsd-usb@freebsd.org
Subject:   Re-enumerating a device
Message-ID:  <200912151647.53759.doconnor@gsoft.com.au>

next in thread | raw e-mail | index | archive | help
--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: <Unknown> at usbus0
# Run dfu-util
ugen0.2: <Unknown> at usbus0 (disconnected)
# Cause re-enumeratae
ugen0.2: <M Audio> at usbus0
uaudio0: <MobilePre> 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: <USB audio> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912151647.53759.doconnor>