3

I've connected an adafruit ultimate gps v3 to a raspberry pi using a USB adaptor. The gps unit seems to have a fix because the led (on the gps unit) blinks at a slow rate (may be every 10 s). If I do sudo cat /dev/ttyUSB0 I get NMEA data with location.

But when I install the gpsd, meaning:

sudo apt-get install gpsd gpsd-clients python-gps
sudo gpsd /dev/ttyUSB0 -F /var/run/gpsd.sock

and run the daemon (cgps -s), it says no fix found and GPS times out. I tried to kill gpsd and run it again:

sudo killall gpsd

sudo gpsd /dev/ttyUSB0 -F /var/run/gpsd.sock

but that didn't help. Do you have any idea why is that?

Logain
  • 4,259
  • 1
  • 23
  • 32
Demo80
  • 31
  • 1
  • 3
  • Please format your question using the given markups, e.g. precede 4 spaces for each line of code within a code block and surround commands in text with `backticks` `` – isaias-b Oct 16 '15 at 22:37

1 Answers1

2

sudo nano /etc/default/gpsd

change it to look like this

START_DAEMON="true"
GPSD_OPTIONS="/dev/ttyUSB0"
DEVICES=""
USBAUTO="true"
GPSD_SOCKET="/var/run/gpsd.sock"

then reboot. CGPS should work then.

Sjon
  • 4,989
  • 6
  • 28
  • 46
user853139
  • 21
  • 3
  • 3
    You've crossed 'options' with 'devices'. Options would bear flags, ( -b -G -n -N) e.g., `GPSD_OPTIONS="-n -G -b"` – Nodak Jan 24 '16 at 03:13