<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" <philip@turmel.org><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. That eliminates the easy matching tools in udev. 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. The data does<br>exist -- see the output of 'lsusb -t'. 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. 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. 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>