USB 2.0 Detect

  • Thread starter Thread starter David Angelovich
  • Start date Start date
D

David Angelovich

Hi

This probably isn't the right newsgroup to ask this, but I couldn't find
anything better....

Anyway, does anyone know how to tell if a PC has USB 1.x or USB 2.0 ports
(through software)?

TIA

- David Angelovich
 
David,

Right click the my computer icon on the desktop.
Select Manage. Next, select the device manager. Your USB ports should be
listed here. Click
the (+) next to Universal Serial Bus Controllers.

If your ports are listed as "Universal " , you have USB 1.1. If that are
listed as "enhanced", you have USB v 2.0

Regards

Prasad
 
David,

I've read some suggestions on how to approach this subject. Someone
recommended parsing the list of loaded drivers within the system and
searching for the EHCI driver which would imply USB 2.0. I didn't try that
method for a number of reasons. I didn't know how to obtain the list of
loaded drivers and also because there are 3rd party companies that provide a
EHCI to be used with their USB 2.0 card. To use that method you would have
to be aware of all parties besides Microsoft that has developed a EHCI.
You might want to try examining the registry under
HKLM\SYSTEM\CurrentControlSet\Enum\USB and look for the ROOT_HUB and
ROOT_HUB20 keys.
I've never looked at a system without USB to see whether or not those
entries are there. This could be achieved via software.
I used a different solution to solve the problem. My concern was whether
the person using my device was connected to a USB 1.1 port or USB 2.0 port.
Since my device requires USB 2.0 I examine the endpoint configuration. If
the MaxPacketSize of the endpoint is 512 then they're connected to a USB 2.0
port. Otherwise the MaxPacketSize would be 64 which implies USB 1.1.

Hope this helps.

Dave
 
Back
Top