[ale] USB port identification

Chris Fowler cfowler at outpostsentinel.com
Thu Nov 19 12:53:28 EST 2015


> From: "Alex Carver" <agcarver+ale at acarver.net>
> To: ale at ale.org
> Sent: Thursday, November 19, 2015 12:26:06 PM
> Subject: Re: [ale] USB port identification

> On 2015-11-19 09:17, Chris Fowler wrote:
> >> From: "Alex Carver" <agcarver+ale at acarver.net>
> >> To: ale at ale.org
> >> Sent: Thursday, November 19, 2015 11:51:03 AM
> >> Subject: Re: [ale] USB port identification

> >> Ok, then use lsusb or the system log to find the serial number for each
> >> device and add that as an additional uniqueness parameter in a udev
> >> rule. Barring that, look at the kernel device tree which will show the
> >> physical layout as something like:

> >> /devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4.5

> >> Which would be port five on a hub attached to bus 1, port 4.

>> Beyond the USB->Serial adapters, I have 200 USB modems in my garage all with the
> > serial 1234567. :)

> > I need to investigate the tree. Does port 4 = the device #

> No, the port is the port regardless of the sequential device number.
> Pull it out and plug it back in and the device number might increment
> but the port will stay the same.


All this back and forth for nothing. I just checked my original program and what we just determined I was already doing. Ugh. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20151119/1e8edabf/attachment.html>


More information about the Ale mailing list