After querying the hub driver for the hardware identifiers associated with the new PDO, the operating system searches the appropriate INF files to find a match for the identifiers. Starting with Windows 2000, when a new USB composite device is plugged into a computer, the USB hub driver creates a physical device object (PDO) and notifies the operating system that its set of child devices has changed. Multiple-Interface USB Devicesĭevices with multiple interfaces are called composite devices. The device class code, subclass code, and protocol code are determined by the bDeviceClass, bDeviceSubClass, and bDeviceProtocol fields of the device descriptor, respectively. These are 4-digit hexadecimal numbers.Īn INF model section can also specify the following hardware ID:Ĭ(2) is the device class code taken from the device descriptor. The hub driver extracts the vendor and product codes from the idVendor, idProduct, and bcdDevice fields of the device descriptor, respectively. V(4) is the vendor code that the USB committee assigns to the vendor.ĭ(4) is the product code that the vendor assigns to the device. When a new USB device is plugged in, the system-supplied USB hub driver composes the following device ID by using information extracted from the device's device descriptor: The set of identifiers generated for USB devices depends on whether the device is a single-interface device or a multiple-interface device.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |