USB drivers architecture general questions


  1. Posts : 1
    windows 10
       #1

    USB drivers architecture general questions


    If you have two identical model USB printers plugged to the same machine, how does the printer know to print to the right one, is it based on what port the printer is plugged into or do all USB devices have unique IDs.

    When you plug a USB device in (E.G keyboard) if I understand Windows will normally have the drivers and install them, what confuses me is if I unplug the keyboard and plug into a different USB slot, it will configure for the new slot.
    What is Windows doing, is it reinstalling drivers or configuring the port to work with this USB device? and if so what does setting it up mean and where is the information stored.
      My Computer


  2. Posts : 809
    Win10
       #2

    Windows assigns a Container ID based on various things in a device's USB descriptor, which includes the serial number - How USB Devices are Assigned Container IDs | Microsoft Docs .

    What if there is no unique ID (e..g if the serial number is the same across identical devices)? Microsoft says don't do that - Avoiding Device Container Conflicts | Microsoft Docs

    Windows stores this information in the registry under Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum . If you remove the device and change the port, it will recompute the Container ID and look for the matching entry in the registry.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 02:18.
Find Us




Windows 10 Forums