From: Dale on
2009/12/11 Sudev Barar <sbarar(a)gmail.com>:
> 2009/12/11 Wayne <linuxtwo(a)gmail.com> <linuxtwo(a)gmail.com>:
>>>>> whether it get plugged in and out of the USB port? Basically I want it
>>>>> to reclaim ttyUSB0 after it have been removed from the USB port and
>>>>> then plugged back in. Â Currently when I unplug the USB GPS and plug it
>>>>> back in it takes the next ttyUSB* inline ie ttyUSB3 for me currently
>
> What you should do is default to ttyUSB8 or so.
> Udev will automatically assign first available "free" device. Keeping
> gps at higher number will not normally interfere with this.
>

How do I get it to default to say ttyUSB8?, cause all I am getting at
the moment is that it wants to connect to ttyUSB3 and it just ignoring
what it put in the conf file

Regards
Dale
--
[WWW] http://quail.southernvaleslug.org/
"The significant problems we face cannot be solved at the same level
of thinking we were at when we created them" - Albert Einstein


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
From: Chris Bannister on
On Fri, Dec 11, 2009 at 02:56:54PM +1030, Dale wrote:
> How do I get it to default to say ttyUSB8?, cause all I am getting at
> the moment is that it wants to connect to ttyUSB3 and it just ignoring
> what it put in the conf file

Set up a udev rule for that particular device.

--
Chris.


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
From: Jon Dowland on
On Sat, Dec 12, 2009 at 12:12:44AM +1300, Chris Bannister
wrote:
> Set up a udev rule for that particular device.

I'd second this: hard-coding to ttyUSB8 or similar could
potentially fail in the unlikely event you use up to that
number prior to plugging in the GPS. YOu can use udev to
provide a unique name, safe from clashes, such as
/dev/my_gps.
From: Toan Pham on
sorry, typo on the last email..

BUS=="usb", KERNEL=="ttyUSB*", NAME="ttyUSB0"

On Fri, Dec 11, 2009 at 12:06 PM, Toan Pham <tpham3783(a)gmail.com> wrote:

>
> Add this udev rule to /etc/udev/rules.d/50-gps.rules
>
> BUS=="usb", KERNEL="ttyUSB*", NAME="ttyUSB0"
>
> On Fri, Dec 11, 2009 at 10:26 AM, Jon Dowland <jon+debian-user(a)alcopop.org<jon%2Bdebian-user(a)alcopop.org>
> > wrote:
>
>> On Sat, Dec 12, 2009 at 12:12:44AM +1300, Chris Bannister
>> wrote:
>> > Set up a udev rule for that particular device.
>>
>> I'd second this: hard-coding to ttyUSB8 or similar could
>> potentially fail in the unlikely event you use up to that
>> number prior to plugging in the GPS. YOu can use udev to
>> provide a unique name, safe from clashes, such as
>> /dev/my_gps.
>>
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.10 (GNU/Linux)
>>
>> iEYEARECAAYFAksiZLwACgkQFotOcXAy8jghCgCgu+G7WBef1WuZIsQ+q+7U4vv9
>> jcMAnRrExSNrKVx9EdCIRi5Soy6LHSka
>> =FcpK
>> -----END PGP SIGNATURE-----
>>
>>
>
From: Toan Pham on
Add this udev rule to /etc/udev/rules.d/50-gps.rules

BUS=="usb", KERNEL="ttyUSB*", NAME="ttyUSB0"

On Fri, Dec 11, 2009 at 10:26 AM, Jon Dowland
<jon+debian-user(a)alcopop.org<jon%2Bdebian-user(a)alcopop.org>
> wrote:

> On Sat, Dec 12, 2009 at 12:12:44AM +1300, Chris Bannister
> wrote:
> > Set up a udev rule for that particular device.
>
> I'd second this: hard-coding to ttyUSB8 or similar could
> potentially fail in the unlikely event you use up to that
> number prior to plugging in the GPS. YOu can use udev to
> provide a unique name, safe from clashes, such as
> /dev/my_gps.
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iEYEARECAAYFAksiZLwACgkQFotOcXAy8jghCgCgu+G7WBef1WuZIsQ+q+7U4vv9
> jcMAnRrExSNrKVx9EdCIRi5Soy6LHSka
> =FcpK
> -----END PGP SIGNATURE-----
>
>