<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>"Sergio Chaves" <sergio.chaves@gmail.com><br><b>To: </b>"Atlanta Linux Enthusiasts" <ale@ale.org><br><b>Sent: </b>Thursday, November 19, 2015 7:49:48 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;"><div dir="ltr"><div>You may need a udev rule to accomplish what you want.<br></div>Something like 7.12.12 in this page <a href="http://www.linuxfromscratch.org/lfs/view/6.2/chapter07/symlinks.html" target="_blank" data-mce-href="http://www.linuxfromscratch.org/lfs/view/6.2/chapter07/symlinks.html">http://www.linuxfromscratch.org/lfs/view/6.2/chapter07/symlinks.html</a><br><br></div></blockquote><div><br></div><div>I only wish..</div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>The problem is that The Bus 00X Device 00X is changing. Unplug the modem and plug it right back in and you'll get N+1 where N was what is was before. This makes identification of the port on the hardware nearly impossible.</div><div><br data-mce-bogus="1"></div><div>I need to identify the port on the hardware being used. Udev rules run a script where I take the Device/Bus value and determine what port it is attached. I then symlink a name in /dev to what the kernel assigned it. On the older hardware if you plugged this modem on the front port then /dev/usbmodem2 would be created. On back /dev/usbmodem0</div><div><br data-mce-bogus="1"></div><div>The real port you use dictates what programs will run on that tty. The people that use this system almost no nothing about computers. If any, it would be Windows. I've automated everything so they can hop on a train in NYC, go to a site, plug it up, and leave.</div><div><br data-mce-bogus="1"></div></div></div></body></html>