I was wondering how the computer determine the connected hardware -through USB- whether it is a mouse ,a keyboard or a camera etc... I opened a mouse and I couldn't find any thing that can identify the device , no microcontroller and no memory !!! so how ?!! thx in advance
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
|
I don't know what mouse you looked at, but USB devices have descriptors which are stored in ROM on the device. When the device is connected, it sends the device descriptor to the host PC, which contains the USB version, packet size, and vendor/product IDs, among other information. You can find more information on USB here. Or you could look at the official developer documentation for even more. |
|||
|