[ale] USB port identification

Chris Fowler cfowler at outpostsentinel.com
Wed Nov 18 19:59:15 EST 2015


I'm testing this new hardware and have ran into a snag with identifying specific USB ports. 

There are 2 root hubs. 

1. 2.0 4x ports 
2. 3.0 2x ports 

On the 2.0 it seems that no matter what port I plug my modem into, at boot it will be 001:004. 

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 
Bus 001 Device 004: ID 0572:1340 Conexant Systems (Rockwell), Inc. 
Bus 001 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub 
Bus 001 Device 002: ID 8087:07e6 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 

On the older hardware the device # was tied to a specific port. Both run a 2.6.38 kernel. Same software too. 

The problem is that I define what USB ports do what. If you plug a RTL8188CUS USB wireless adapter in port #1 it will behave as an AP. If you use port #2 it is configured as a station. The users will not even have access to the device in somce cases unless it runs as an AP. No LCD! No network! 

If I use USB to serial adapters then I assign port names based on Bus/Device. The user will then use a temp probe on one, maybe a terminal on another, and some sites even have a UPS that I am interfacing via USB serial. 

Another thing I noticed is that if I unplug the USB modem and plug back in it will be assigned 001/005. On the older hardware this is not the case. It is always the same. 

Is there any way I can identify the specific USB port on this computer that is being used by a device? 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20151118/5756ae09/attachment.html>


More information about the Ale mailing list