Re: How to force usbser.sys to re-enumerate the device



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,


.



Relevant Pages

  • How to force usbser.sys to re-enumerate the device
    ... 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 ...
    (microsoft.public.development.device.drivers)
  • next-20081125: crypto hard disk gets unaccessable
    ... ACPI: Local APIC address 0xfee00000 ... Generic Bluetooth USB driver ver 0.3 ... root hub lost power or was reset ...
    (Linux-Kernel)
  • Re: Stop 0x000000CA
    ... Two USB hard disks of same size partitions crash the system with the blue ... Try it on your Windows XP, ... Two USB hard disks of different partition sizes, ... Are there any corresponding error reports in Event Viewer? ...
    (microsoft.public.windowsxp.help_and_support)
  • Burning DVD problems -- System lock-up
    ... information along with a Nero text file from Nero Info ... Adapter 1 ... Ricoh 1394 Controller May Not Work with Windows XP ... Windows XP Does Not Detect Your New USB Device ...
    (microsoft.public.windowsxp.general)
  • Re: Externe Festplatte an USB 2.0
    ... > Wikipedia-Artikel zu USB verstanden habe (und aus diesem Verständnis heraus ... einige Dinge bei Windows gegen ... auch PCI hat ordentlich Bandbreite und trotzdem ... Transfer zu Massenspeichern macht. ...
    (de.comp.hardware.laufwerke.festplatten)