Notification of Driver Unloading



We are using using an FDTI USB to serial adapter with our proprietry X86
hardware running CE 5.0 and everything works geat until the adapter is
disconnected while the COM port is communicating. There are exceptions, the
system hangs and ultimately our hardware watchdog resets. It appers that
this happens becuase the applications is communicating with the COM port
while the USB to servir drive is attempting to unload. Since we can not
prevent our users from disconnecting at will, we need to find a programatic
solution. We have several ideas but don't know if they are viable, please
comment on these ideas and offer new ones if you have any.
1. Prevent the USB to serial driver from unloading, Would this prevent the
crash? Is there any way to do it?
2. Stop communicating with the adapter when the app is notified that the
driver is unloading. Is there any notification like this? Would it be fast
enough?


.



Relevant Pages

  • Wireless USB Disconnects Work Around?
    ... my 802.11b wireless USB adapter disconnects randomly and without ... multiple wireless channels, played with all available "preamble type" ... share IRQ's with the USB host controller. ... I used a command built into Windows XP ...
    (microsoft.public.windowsxp.network_web)
  • Re: USB to Serial Bridge
    ... Ein nicht korrekt installiertes USB Gerät wird auch nicht mit Strom ... ATEN liefert nur einen Kabel USB zu Seriell Adapter. ... auf die *.inf Datei und installieren wählen. ... Der Treiber legt einen virtuellen COM Port an mit einer Nummer größer ...
    (microsoft.public.de.german.windowsxp.hardware)
  • Re: USB connected HDs
    ... connected the included external power adapter to the HD and the USB ... HDs I own and with USB flash drives. ... the auxiliary power supply connector. ...
    (microsoft.public.windowsxp.general)
  • Re: USB connected HDs
    ... the included external power adapter to the HD and the USB ... I own and with USB flash drives. ... the auxiliary power supply connector. ...
    (microsoft.public.windowsxp.general)
  • Re: PCMCIA to USB adapter? Hack?
    ... Find a 5Volt PCMCIA to/from USB v? ... Plug adapter ... The configuration of the RPLed files and drivers, ...
    (comp.sys.ibm.ps2.hardware)