Hi all. Am I too quick?

> uname -a
FreeBSD chmmr.3501.lan 8.2-RELEASE FreeBSD 8.2-RELEASE #0 r218964: Wed Feb 23 13:41:25 EET 2011 arc...@chmmr.3501.lan:/usr/obj/usr/src/sys/MINIMAL_8 amd64

# /usr/sbin/usbconfig -d 1.2 -i 0 dump_info
ugen1.2: <Sierra Wireless AC595U Device Sierra Wireless, Incorporated> at usbus1, cfg=255 md=HOST spd=FULL (12Mbps) pwr=ON

Feb 24 10:39:15 chmmr kernel: ugen1.2: <Sierra Wireless, Incorporated> at usbus1
Feb 24 10:39:15 chmmr kernel: u3g0: <Data Interface> on usbus1
Feb 24 10:39:15 chmmr kernel: u3g0: Found 3 ports.

My problem with this device was that upon disconnection device should be reset to connect one more time. On 8.1 I just did:

#!/bin/sh -

awk '
$0~/.*chmmr mpd: \[pnet] chat: warning: line buffer overflow/{
system("/usr/sbin/usbconfig -d 1.2 -i 0 power_off; sleep 1; /usr/sbin/usbconfig -d 1.2 -i 0 power_save")

This was done solely because `usbconfig ... reset` effectively did nothing. But after upgrading this results in:

Feb 24 10:30:07 chmmr kernel: u3g0: at uhub0, port 1, addr 2 (disconnected)

And com port never comes back. The only solution would be to unplug device then replug it again in at least 5 seconds.

Is there any other way to completely reset this device? Has anyone solved this problem before?

Sphinx of black quartz judge my vow.
freebsd-usb@freebsd.org mailing list
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Reply via email to