Enabling driver use with all USB ports
-
Dienstag, 6. März 2012 19:15
Does anyone know how to prevent a device driver installation from being required each time a device is attached to a USB port where the USB port has not previously had the device driver associated with that port?
Example:
Step 1: New device attached to USB port A
- Windows activates the new hardware wizard for implementing the new device driver
- User interacts with the wizard and installs the driver
- Windows completes install of the driver
Step 2: Device removed from USB port A and inserted into USB port B
- Windows once again activates the new hardware wizard for implementing the device driver
Step 1 is expected, but I don't want to require the user to run through this process again if they plug the device into a new port (Step 2).
Alle Antworten
-
Dienstag, 6. März 2012 19:27Besitzer
sign your driver package. it will then be automatically used during installation of new instances of your device. it is by design that the usb stack treats your device as a new instance when plugged in to a different port. if you implement a serial number in the device, it is treated as the same device no matter which port it is plugged in to.d -- This posting is provided "AS IS" with no warranties, and confers no rights.
- Als Antwort markiert Doron Holan [MSFT]Microsoft Community Contributor, Owner Dienstag, 6. März 2012 19:27
-
Dienstag, 6. März 2012 19:29
Great! I will give that a try and post the results.
Thank you very much for the quick responce.
-
Donnerstag, 8. März 2012 05:53
BionicSparhawk wrote:>>Does anyone know how to prevent a device driver installation from being>required each time a device is attached to a USB port where the USB port>has not previously had the device driver associated with that port?The simplest solution is to add a serial number to your USB devicedescriptor. When a device has a serial number, Windows recognizes itregardless of the port it is plugged into. Without a serial number, thespecific device cannot be recognized, so each new port has to be seen as apreviously unseen new device.--Tim Roberts, timr@probo.comProvidenza & Boekelheide, Inc.
Tim Roberts, VC++ MVP Providenza & Boekelheide, Inc.- Als Antwort markiert Doron Holan [MSFT]Microsoft Community Contributor, Owner Donnerstag, 8. März 2012 06:35

