From: Dale on
Hi All,

Does anyone know how to lock a GPS down to use ttyUSB0 all the time,
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
as I have a USB 3G dongle occupying ttyUSB1 and ttyUSB2.

I have looked around in udev ie /etc/udev/ and /etc/udev/rules.d/ to
find the file where I can lock it to ttyUSB0 but had no success.

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: Wayne on
Dale wrote:
> Hi All,
>
> Does anyone know how to lock a GPS down to use ttyUSB0 all the time,
> 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
> as I have a USB 3G dongle occupying ttyUSB1 and ttyUSB2.
>
> I have looked around in udev ie /etc/udev/ and /etc/udev/rules.d/ to
> find the file where I can lock it to ttyUSB0 but had no success.

Edit /etc/default/gpsd

Wayne


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
From: Dale on
2009/12/11 Wayne <linuxtwo(a)gmail.com>:
> Dale wrote:
>>
>> Hi All,
>>
>> Does anyone know how to lock a GPS down to use ttyUSB0 all the time,
>> 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
>> as I have a USB 3G dongle occupying ttyUSB1 and ttyUSB2.
>>
>> I have looked around in udev ie /etc/udev/ and /etc/udev/rules.d/ to
>> find the file where I can lock it to ttyUSB0 but had no success.
>
> Edit /etc/default/gpsd
>
> Wayne
>

Hi Wayne,

That was not what I was looking for. I have gpsd all configured, I
want to nail this device down in that if it gets unplugged that it
always gets ttyUSB0 even when there is other USB devices plugged into
that machine.

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: "Wayne linuxtwo on
Dale wrote:
> 2009/12/11 Wayne <linuxtwo(a)gmail.com>:
>> Dale wrote:
>>> Hi All,
>>>
>>> Does anyone know how to lock a GPS down to use ttyUSB0 all the time,
>>> 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
>>> as I have a USB 3G dongle occupying ttyUSB1 and ttyUSB2.
>>>
>>> I have looked around in udev ie /etc/udev/ and /etc/udev/rules.d/ to
>>> find the file where I can lock it to ttyUSB0 but had no success.
>> Edit /etc/default/gpsd
>>
>> Wayne
>>
>
> Hi Wayne,
>
> That was not what I was looking for. I have gpsd all configured, I
> want to nail this device down in that if it gets unplugged that it
> always gets ttyUSB0 even when there is other USB devices plugged into
> that machine.

Thats what I thought you wanted to do


/etc/default/gsd

# Default settings for gpsd.
# Please do not edit this file directly - use `dpkg-reconfigure gpsd' to
# change the options.
START_DAEMON="false"
DAEMON_OPTS=""
DEVICES="/dev/ttyUSB0"
USBAUTO="true"


Works here but of course YMMV

Wayne


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
From: Sudev Barar on
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.

--
Regards,
Sudev Barar
Read http://blog.sudev.in for topics ranging from here to there.

PS: Replying using bottom post/in-line post makes email conversations
whole lot easier for meaningful dialogue. Snip out what is not
relevant. Adopt this and spread the message.


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org