<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>"Phil Turmel" &lt;philip@turmel.org&gt;<br><b>To: </b>ale@ale.org<br><b>Sent: </b>Thursday, November 19, 2015 1:01:04 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;"><br><br>Chris, you've already said the serial devices are all the same, so IDs<br>won't help. &nbsp;That eliminates the easy matching tools in udev. &nbsp;You'll<br>need to play with 'udevadm info -a /sys/....' to look for matching<br>strings that will help you uniquely identify the ports. &nbsp;The data does<br>exist -- see the output of 'lsusb -t'. &nbsp;The tree-view will also help you<br>figure out the path you need to use with udevadm.<br></blockquote><div><br></div><div>This is what I'm doing and this is what I did in the past, but forgot about today. &nbsp;I've been doing this for 20+ years so I'm sure I've forgotten a thing or two of what I've done.</div><div><br data-mce-bogus="1"></div><div>Right now I'm simply working on an abstraction function that will convert the devpath to number of 1-6. &nbsp;This function also checks to see which hardware (out of 3 possible) it is running on to do the correct conversion.</div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div></div></div></body></html>