<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><br></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><blockquote style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Alex Carver" <agcarver+ale@acarver.net><br><b>To: </b>ale@ale.org<br><b>Sent: </b>Thursday, November 19, 2015 12:26:06 PM<br><b>Subject: </b>Re: [ale] USB port identification<br></blockquote></div><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;">On 2015-11-19 09:17, Chris Fowler wrote:<br>>> From: "Alex Carver" <agcarver+ale@acarver.net><br>>> To: ale@ale.org<br>>> Sent: Thursday, November 19, 2015 11:51:03 AM<br>>> Subject: Re: [ale] USB port identification<br>> <br>>> Ok, then use lsusb or the system log to find the serial number for each<br>>> device and add that as an additional uniqueness parameter in a udev<br>>> rule. Barring that, look at the kernel device tree which will show the<br>>> physical layout as something like:<br>> <br>>> /devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4.5<br>> <br>>> Which would be port five on a hub attached to bus 1, port 4.<br>> <br>> Beyond the USB->Serial adapters, I have 200 USB modems in my garage all with the serial 1234567. :) <br>> <br>> I need to investigate the tree. Does port 4 = the device # <br><br>No, the port is the port regardless of the sequential device number.<br>Pull it out and plug it back in and the device number might increment<br>but the port will stay the same.<br><br>> </blockquote><div>All this back and forth for nothing. I just checked my original program and what we just determined I was already doing. Ugh.</div><div><br data-mce-bogus="1"></div><blockquote style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><br></blockquote></div></div></body></html>