[ale] USB port identification
Chris Fowler
cfowler at outpostsentinel.com
Thu Nov 19 13:54:45 EST 2015
> From: "Phil Turmel" <philip at turmel.org>
> To: ale at ale.org
> Sent: Thursday, November 19, 2015 1:01:04 PM
> Subject: Re: [ale] USB port identification
> Chris, you've already said the serial devices are all the same, so IDs
> won't help. That eliminates the easy matching tools in udev. You'll
> need to play with 'udevadm info -a /sys/....' to look for matching
> strings that will help you uniquely identify the ports. The data does
> exist -- see the output of 'lsusb -t'. The tree-view will also help you
> figure out the path you need to use with udevadm.
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.
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20151119/ff635b32/attachment.html>
More information about the Ale
mailing list