gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-users] Is GPSD receiving PPS?


From: Jon Brase
Subject: Re: [gpsd-users] Is GPSD receiving PPS?
Date: Fri, 04 Mar 2016 02:57:22 -0600
User-agent: Opera Mail/12.16 (Linux)

On Thu, 03 Mar 2016 18:22:00 -0600, Gary E. Miller <address@hidden> wrote:


gpsmon only shows one device at a time.  Your configuration is using
two devices: one the GPS serial, and one the gpio.

Gpsd works fine if you just specify the both devices:
        gpsd /dev/tty[your-gps] /dev/pps[your-pps]



OK. It's not made really clear in the documentation that specifying anything but a serial device is even an option.

In any case, I'm now launching gpsd with the command line:

gpsd -n /dev/ttyAMA0 /dev/pps0 -F /var/run/gpsd.sock

to launch it as a daemon at boot, or:

gpsd -F /var/run/gpsd.sock -nND 5 /dev/ttyAMA0 /dev/pps0

For having a look at the debug output at runtime

(The port change there is because Raspbian uses systemd, whose init seems to "helpfully" grab ports daemons started in boot scripts and pass traffic on those ports through to the process. If the process dies or the service is stopped, init doesn't let go of the port. So if I shutdown the boot-time daemon to run gpsd in a terminal for debugging, I have to start it on a different port).

In any case, with that command line, I am now seeing different output with regards to PPS. GPSD still seems to be having trouble getting valid PPS data, but ppstest still seems to have no trouble.

pptest gives me lines of the form:

source 0 - assert 1457080600.005932677, sequence: 14275 - clear 0.000000000, sequence: 0 source 0 - assert 1457080601.005952941, sequence: 14276 - clear 0.000000000, sequence: 0 source 0 - assert 1457080602.005933205, sequence: 14277 - clear 0.000000000, sequence: 0

And continues with a new line every second for as long as I leave it up.

I've attached the output I'm getting from GPSD. The first section is printed one time when I start GPSD, and I've cut it off just before the point that GPSD starts printing my ICBM address. The second section appears every second or two once GPSD is up and running. (I'm not sure of list etiquette here. Is it preferred to paste things in the ~100 line range directly into an e-mail body, or to attach them?)

Jon Brase

Attachment: gpsdOutput.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]