<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" &lt;agcarver+ale@acarver.net&gt;<br><b>To: </b>ale@ale.org<br><b>Sent: </b>Thursday, November 19, 2015 11:51:03 AM<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;">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. &nbsp;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></blockquote><div><br></div><div>Beyond the USB-&gt;Serial adapters, I have 200 USB modems in my garage all with the serial 1234567. :)</div><div><br data-mce-bogus="1"></div><div>I need to investigate the tree. &nbsp;Does port 4 = the device #</div><div><br data-mce-bogus="1"></div><div>I think one thing causing me issue is the Hub. &nbsp;This "hub" does not exist outside this device.</div><div><br data-mce-bogus="1"></div><div>[root@localhost]# lsusb -t<br>Bus# 4<br>`-Dev# 1 Vendor 0x1d6b Product 0x0002<br>Bus# 3<br>`-Dev# 1 Vendor 0x1d6b Product 0x0003<br>&nbsp; &nbsp;|-Dev# 2 Vendor 0x15d9 Product 0x0a37<br>&nbsp; &nbsp; &nbsp;`-Dev# 3 Vendor 0x0572 Product 0x1340<br>Bus# 2<br>`-Dev# 1 Vendor 0x1d6b Product 0x0003<br>Bus# 1<br>`-Dev# 1 Vendor 0x1d6b Product 0x0002<br>&nbsp;`-Dev# 2 Vendor 0x8087 Product 0x07e6<br>&nbsp; &nbsp;`-Dev# 3 Vendor 0x1a40 Product 0x0101<br>&nbsp; &nbsp; &nbsp;`-Dev# 5 Vendor 0x148f Product 0x5370<br></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>This device:</div><div>Bus 001 Device 005: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter</div><div><br data-mce-bogus="1"></div><div>Is here:</div><div>/sys/devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.4/1-1.4.2</div><div><br data-mce-bogus="1"></div><div>1-1: Intel device</div><div>&nbsp; 1-1.4: Terminus Hub</div><div>&nbsp; &nbsp; 1-1.4.2: The Ralink</div><div><br data-mce-bogus="1"></div><div>Intel is the controller. &nbsp;Manufacturer is using a hub to provide 4 USB ports to one controller. &nbsp;usb1 is the Linux controller.</div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br></div><div><br></div></div></div></body></html>