Click here to Skip to main content
15,917,709 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
For example,four same usb devices connecting in a usb hub, when testing one is error, how to distingush it from the others?
Updated 30-Jun-10 21:03pm

1 solution

Each USB port has a unique Address. Normally the internal USB controller is also hooked up to a hub, splitting it to multiple ports. Address examples for hub0 and 1:
hub0: 001A0000, 001A0001, ...
hub1: 001B0000, 001B0001, ...

Good luck!
Share this answer
xjh_sz 1-Jul-10 21:00pm    
First,thanks for your reply.But I don't konw how to distingush it from the others by soft program (eg vc.).
E.F. Nijboer 2-Jul-10 6:58am    
Then I do not fully understand your question. How do you access these usb devices? I thought you where working on something like a driver and couldn't distinguish the devices when more than one are connected. The address is by the way a property of the usb port that could be read with software. This is simply info of the device configuration and the 4 most left hex values represent the hub and the 3 most right represent the device. Maybe this helps or you could supply some extra info to make it more clear for me.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900