« Return to Thread: GPSDRIVE can't communicate with my globalsat BU-353

Re: GPSDRIVE can't communicate with my globalsat BU-353

by Wayne Topa-3 :: Rate this Message:

Reply to Author | View in Thread

Ross Scanlon wrote:

> On Sat, 04 Apr 2009 10:25:28 -0400
> Wayne Topa <linuxone@...> wrote:
>
>
>>> The default parameters for gpsd for device should be /dev/gps and hotplug
>>> should automatically handle this for you.
>> Well maybe it *should have*, but it didn't/doesn't.  I don't have
>> /dev/gps.  So I changed /etc/default/gpsd to what the  8.04_manual has
>> for that file. Unplugged the gps, stopped gpsd, restarted gpsd, plugged
>> gps in.  Ran gpspipe -r which displays one line "GPSD, R=1", and still
>> no /dev/gps and gpsdrive can't see the gps.
>
> Wayne,
>
> My mistake I should have said udev should be handling it.
>
No Problem.  I thought uvdev had it's own hotplug pgm.  :-)

> The udev rule should be something like:
>
> SYSFS{idVendor}=="067b", SYSFS{idProduct}=="2303", SYMLINK="gps", RUN+="/lib/udev/gpsd.hotplug.wrapper"
>
This is the z60_gpsd rule
# Prolific Technology, Inc. PL2303 Serial Port
SYSFS{idVendor}=="067b", SYSFS{idProduct}=="2303", SYMLINK="gps%n",
RUN+="/lib/udev/gpsd.hotplug.wrapper"

and the related lsusb entry
Bus 006 Device 012: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial
Port

That is exactly what is in the file and the gpsd.hotplug.wrapper script
does have the code doing what you describe, yet there is still no
/dev/gps.  The code from both files is:

________
----Manual say /etc/defaults/gpsd should be
  START_DAEMON="true"
DAEMON_OPTS="-n"
DEVICES="/dev/gps"
___________

___________________
--- the wrapper code
/lib/udev/gpsd.hotplug.wrapper
! /bin/sh
# $Id: gpsd.hotplug.wrapper 4669 2008-01-21 15:07:00Z esr $

#debian addition:
[ ! -r /etc/default/gpsd ] || . /etc/default/gpsd
[ "$START_DAEMON" = "true" ] || exit 0
[ "$USBAUTO" = "true" ] || exit 0
___________________


Weird huh.  Looks right except the ""$USBAUTO" = "true" ] || exit 0".
USBAUTO in *not* in the default/gpsd options mentioned in the manual
instructions.

Thanks again for the reply Ross.
Maybe the fact that I have too many usb ports (4 on one card 5 on the
other) on this box is causing this problem.

My UPS, ATT USB wireless modem, PicKit2 Programmer, external HD, and
Kodak Camera Dock don't have a problem though.  Only thing that might
mess up the works is that the ATT Modem uses ttyUSB0 through ttyUSB4
when its connected to the net.

Regard

Wayne
_______________________________________________
GPSdrive mailing list
GPSdrive@...
http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive

 « Return to Thread: GPSDRIVE can't communicate with my globalsat BU-353