[ gpsdrive ] GPSDRIVE can't communicate with my globalsat BU-353

Wayne Topa linuxone at intergate.com
Mon Apr 6 05:56:22 AKDT 2009


Ross Scanlon wrote:
>>> 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"
> 
> If you change the SYMLINK="gps%n" to SYMLINK="gps" it should then create a
> symlink /dev/gps to whatever your /dev/ttyUSBxxx is for the gps.
> 

--- Leaving the whole thread in for posterity.

Right on Ross.  The removal of the %n does create the symlink and it now 
works as it should.

Thanks for all your help.  This isn't rocket Science but the problem 
wasn't mentioned anywhere I looked.  Hope this helps someone else to get 
there gpsdrive running.

Beat Regards, again

Wayne

> With "gps%n" it creates a symlink of /dev/gpsN where N is the ttyUSB
> number eg /dev/gps0 where gps is on /dev/ttyUSB0 etc. It's so that it's
> possible to have multiple gps attached.
> 
> 
>> 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.
> 
> Number of USB ports should not be a problem.
> 
> 



More information about the GPSdrive mailing list