Re: How to force usbser.sys to re-enumerate the device
- From: "Maxim S. Shatskih" <maxim@xxxxxxxxxxxxxxxx>
- Date: Sat, 9 Dec 2006 03:27:19 +0300
Maybe it is a good idea to avoid such resets?
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@xxxxxxxxxxxxxxxx
http://www.storagecraft.com
"Hapary" <hapary@xxxxxxxxx> wrote in message
news:1165599925.894241.229970@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello all,
I'm implementing an external USB device, which supports a minimal CDC
and is seen as a virtual serial port from windows.
The external device might get reset as a result of a watch dog or some
other cause. After the reset, the device loses its USB address (as it
is stored in its RAM) and other settings, and the USB controller on the
device is also reset. Consequently, although windows thinks that every
thing is fine, and the connection is ok, the device is waiting for
enumeration.
Unfortunately I don't have access to USB pull-ups to cause a bus reset
and force the windows to re-enumerate the device. Also although
disconnecting the USB cable and connecting it again can fix everything,
but this can't be done as well (as a requirement from my boss).
I can send anything to the host either just before the reset (where the
device is in addressed state, or after it (where the device is waiting
for enumeration). Is there anything in CDC standard that I can use ? Is
there anything in usbser.sys that might be beneficial for me ? I know
that I can do a soft-replug in windows (by devcon for example), but is
there any way to do that from a USB device ?
I know that one option is writing a device driver, but I want to avoid
that as much as possible.
Thanks in advance,
.
- Follow-Ups:
- Re: How to force usbser.sys to re-enumerate the device
- From: Pavel A.
- Re: How to force usbser.sys to re-enumerate the device
- References:
- How to force usbser.sys to re-enumerate the device
- From: Hapary
- How to force usbser.sys to re-enumerate the device
- Prev by Date: Re: How to turn TCP KeepAlive on and change KeepAlive interval via TDI
- Next by Date: Re: A child's remove lock(s)
- Previous by thread: Re: How to force usbser.sys to re-enumerate the device
- Next by thread: Re: How to force usbser.sys to re-enumerate the device
- Index(es):
Relevant Pages
|