[ale] USB port identification

Jim Kinney jkinney at jimkinney.us
Thu Nov 19 10:26:17 EST 2015


I was under the impression that udev rules could also be used with the device ID. That way you detect what was plugged in and then run whatever's needed on that port. Need to know the ID in advance or use a broad category from the text strings.

On November 19, 2015 9:45:40 AM EST, Chris Fowler <cfowler at outpostsentinel.com> wrote:
>> From: "Sergio Chaves" <sergio.chaves at gmail.com>
>> To: "Atlanta Linux Enthusiasts" <ale at ale.org>
>> Sent: Thursday, November 19, 2015 7:49:48 AM
>> Subject: Re: [ale] USB port identification
>
>> You may need a udev rule to accomplish what you want.
>> Something like 7.12.12 in this page
>> http://www.linuxfromscratch.org/lfs/view/6.2/chapter07/symlinks.html
>
>I only wish.. 
>
>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. 
>
>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 
>
>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. 
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Ale mailing list
>Ale at ale.org
>http://mail.ale.org/mailman/listinfo/ale
>See JOBS, ANNOUNCE and SCHOOLS lists at
>http://mail.ale.org/mailman/listinfo

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20151119/f0debe4b/attachment.html>


More information about the Ale mailing list