Re: [SLUG] USB Serial port devices

From: Possum (vegetableblood@gmail.com)
Date: Tue Jun 06 2006 - 17:45:37 EDT


I'm surprised nobody has mentioned autofs

http://freshmeat.net/projects/autofs/

And here's a how-to for the faint-hearted:

http://www.linux-consulting.com/Amd_AutoFS/autofs.html

Personally, I have autofs configured to identify the device by the
name/description it sends to the computer (the name you can see with dmesg,
like "USB Mass Storage"). It will automatically create a symlink to
whatever the device is and call them, i.e., /dev/usb0, /dev/psp,
/dev/camera, etc. Furthermore, I have it set to automatically mount said
device every time I try to access whatever directory it is to be mounted on.

It's a useful little tool so you don't have to deal with your usb devices
being mapped to /dev/sdr or w/e.

On 6/6/06, Bob Stia <rnr@sanctum.com> wrote:
>
> On Monday 05 June 2006 10:27, Chuck Hast wrote:
> > On 6/5/06, Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com> wrote:
> > > > I have external devices that are connected to these things and need
> to
> > > > make sure that the same hardware device comes on line as TTYUSB0,
> and
> > > > the second one always comes up as TTYUSB1 etc. Does anyone have a
> idea
> > > > of how to make sure that a given device always comes up with the
> same
> > > > serial port assignment.
> > >
> > > Another option you may want to explore is writing a little script to
> > > detect which physical device is linked to which serial port, by
> > > looking at /proc/bus/usb/devices (iirc), and then taking the
> > > appropriate action, perhaps by making a symlink (/dev/TTYUSB0 ->
> > > /dev/MyTTY1, /dev/TTYUSB1 -> /dev/MyTTY0 if they come up in reverse
> > > order, for example). I did something similar to this a while ago for
> > > Tosha's wacom tablet (before the driver improved and it became no
> > > longer necessary).
> >
> > OK, I am getting the impression that no one thought about this
> particular
> > issue when they designed usb... Making sure each device comes up on
> > the right port just does not appear to be something that was thought out
> > or if it was it has been kept quite obscure, I have noticed that even on
> > the other OS there are similar problems if not worse.
> >
> I don't have this problem but this has been discussed many times on the
> SuSE
> mailing lists and there are solutions. Don't know what distro you are
> running
> but it probably would be handled the same way.
>
> Try and do a search at http://marc.theaimsgroup.com
>
> Also, Google is your friend!
>
> Try something like:
>
> site:lists.suse.com SLE (year) (subject)
>
> Or, search the list archives on google with:
>
> site:list.suse.com <arg1> <arg2> <arg3> ...
>
> Each additional arg will help narrow the search. If you add [SLE] as an
> arg it will keep the search to the suse linux-e list. At least that has
> been
> my experience.
>
> Good Luck, the answer is there and if I remember correctly it was not that
> complicated.
>
> Bob S.
> -----------------------------------------------------------------------
> This list is provided as an unmoderated internet service by Networked
> Knowledge Systems (NKS). Views and opinions expressed in messages
> posted are those of the author and do not necessarily reflect the
> official policy or position of NKS or any of its employees.
>

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:04:34 EDT