Hello,

I've one query. I've got 4 USB ports on my system. Now, I want to configure
those ports, lets say, for disks and printers. 
For that I require some specific port number or a way to recognize all the
four ports.

As per my knowledge, USB port, device and bus mapping is only available in
/proc/bus/usb/devices file.
Similarly the directories related to buses are available in /proc/bus/usb
directory. 

I tried to plug-in different USB devices on the same port but the information
in the /proc/bus/usb/devices does not give the same port and bus mapping. 
E.g, I tried connecting 2 USB devices.
/proc/bus/usb/devices recognizes the device as given below:
T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 8 Spd=12 MxCh= 0
T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 9 Spd=12 MxCh= 0

Now, if I exchange the two devices the mapping is not the same.
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 10 Spd=12 MxCh= 0
T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 11 Spd=12 MxCh= 0

If I connect some other device, again the behavior will be different.
Different Devices connecting to the same port are not resulting in the same
bus-port mapping. It is not consistent. 

It changes every time we change the devices. So, I'm not able to find out how
to detect the hardware port on which the USB device is connected. 
  
Any pointer would be of great help.
 
thanx and regards,

Ravi Kumar






DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. 
Before opening attachments please check them for viruses and defects. MindTree 
Consulting Private Limited (MindTree) will not be responsible for any viruses or 
defects or any forwarded attachments emanating either from within MindTree or outside. 
If you have received this message by mistake please notify the sender by return  
e-mail and delete this message from your system. Any unauthorized use or dissemination 
of this message in whole or in part is strictly prohibited.  Please note that e-mails 
are susceptible to change and MindTree shall not be liable for any improper, untimely 
or incomplete transmission.


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to