[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-users] 1PPS issue with Jackson Labs Mini-PCIe GPS Module.
From: |
Lyle Baker |
Subject: |
Re: [gpsd-users] 1PPS issue with Jackson Labs Mini-PCIe GPS Module. |
Date: |
Wed, 27 Apr 2016 14:28:09 +0000 |
Thanks for the response Gary, much appreciated!
>
> Yo Lyle!
>
> On Mon, 25 Apr 2016 19:19:26 +0000
> Lyle Baker <address@hidden> wrote:
>
>> I'm attempting to bring up a Jackson Labs Mini-PCIe GPS card
>> (http://www.jackson-labs.com/index.php/products/mini_pcie_gpsdo ) and
>> I cannot get gpsd to recognize the 1PPS signal.
>
>> gpsd:INFO: launching (Version 3.9)
>
> gpsd version 3.9 is old and unsupported.
>
> newer gpsd has much improved PPS debug logging.
>
I've updated to Ubuntu 16.04 from 14.04. This version includes: gpsd: 3.15
(revision 3.15-2build1)
>> address@hidden:~# gpsd -nN -D 5 /dev/ttyUSB0
>
> You say you have a mini-pcie GPS, but then you read the GPS using USB?
>
> I see the spec says serial over USB, with PPS on DCD, but the time quality
> will be about 1 milliSec, not the 10 nanaSec they claimm.
>
> So this GPS sucks for timekeeping, hopefully good enough for you.
I hope to have a new motherboard shortly where I can tie the TTL 1PPS output to
a GPIO pin, but so far I've found even less information on how to make that
work than I have the USB serial port version.
>
>> gpsd:ERROR: PPS ioctl(TIOCMIWAIT) failed: 25 Inappropriate ioctl for
>> device
>
> No ttyUSB supports TIOCMWAIT, but that is OK, because:
>
>> gpsd:INFO: KPPS caps 1133
>> gpsd:WARN: KPPS kernel PPS will be used
>
> You do have KPPS for your ttyUSB, so if DCD is there you should see it.
If I run gtkterm, I can see the DCD line toggling on the display.
>
>> address@hidden:~# ntpq -pn
>
> This is way premature. You need to be able to see the PPS using ntpshmmon
> first.
>
> So, run gpsd, then run ntpshmmon and see what you get.
>
ntpshmmon shows:
sample NTP0 1461764649.135457957 1461764649.134715195 1461764649.000000000 0 -1
sample NTP0 1461764650.135921285 1461764650.128227220 1461764650.000000000 0 -1
sample NTP0 1461764651.136068301 1461764651.132532795 1461764651.000000000 0 -1
sample NTP0 1461764786.166592930 1461764786.166537054 1461764786.000000000 0 -1
sample NTP0 1461764787.167080546 1461764787.134161490 1461764787.000000000 0 -1
sample NTP0 1461764788.168150013 1461764788.131230648 1461764788.000000000 0 -1
sample NTP0 1461764789.168410030 1461764789.131433499 1461764789.000000000 0 -1
sample NTP0 1461764790.169267191 1461764790.137482855 1461764790.000000000 0 -1
sample NTP0 1461764791.170269045 1461764791.138552979 1461764791.000000000 0 -1
sample NTP0 1461764792.170664000 1461764792.130633573 1461764792.000000000 0 -1
sample NTP0 1461764793.171011018 1461764793.130637558 1461764793.000000000 0 -1
sample NTP0 1461764794.171468438 1461764794.138095136 1461764794.000000000 0 -1
sample NTP0 1461764795.172184567 1461764795.148690567 1461764795.000000000 0 -1
sample NTP0 1461764796.172237915 1461764796.147635794 1461764796.000000000 0 -1
> If ntpshmmon does not show PPS, then run debug this way to give us the PPS
> related stuff, without the other cruft.:
>
> # gpsd -nN -D 9 /dev/ttyUSB0 |& fgrep PPS
>
address@hidden:~# gpsd -nN -D 9 /dev/ttyUSB0 |&fgrep PPS
gpsd:PROG: PPS:/dev/ttyUSB0 chrony socket /var/run/chrony.ttyUSB0.sock doesn't
exist
gpsd:PROG: KPPS:/dev/ttyUSB0 checking /sys/devices/virtual/pps/pps0/path,
/dev/ttyUSB0
gpsd:INFO: KPPS:/dev/ttyUSB0 RFC2783 path:/dev/pps0, fd is 7
gpsd:INFO: KPPS:/dev/ttyUSB0 pps_caps 0x1133
gpsd:INFO: KPPS:/dev/ttyUSB0 have PPS_CANWAIT
gpsd:INFO: KPPS:/dev/ttyUSB0 kernel PPS will be used
gpsd:PROG: PPS:/dev/ttyUSB0 thread launched
gpsd:INFO: PPS:/dev/ttyUSB0 ntpshm_link_activate: 1
gpsd:ERROR: KPPS:/dev/ttyUSB0 kernel PPS failed Interrupted system call
gpsd:ERROR: KPPS:/dev/ttyUSB0 kernel PPS failed Interrupted system call
gpsd:ERROR: KPPS:/dev/ttyUSB0 kernel PPS failed Interrupted system call
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with
{ONLINE|TIME|LATLON|SPEED|TRACK|PACKET|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with {ONLINE|TIME|PACKET|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with
{ONLINE|TIME|LATLON|ALTITUDE|STATUS|MODE|PACKET|CLEAR|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with
{ONLINE|TIME|LATLON|STATUS|PACKET|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with
{ONLINE|TIME|LATLON|SPEED|TRACK|PACKET|REPORT|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with {ONLINE|TIME|PACKET|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with
{ONLINE|TIME|LATLON|ALTITUDE|STATUS|MODE|PACKET|CLEAR|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with
{ONLINE|TIME|LATLON|STATUS|PACKET|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with
{ONLINE|TIME|LATLON|SPEED|TRACK|PACKET|REPORT|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with {ONLINE|TIME|PACKET|PPSTIME}
gpsd:ERROR: KPPS:/dev/ttyUSB0 kernel PPS failed Connection timed out
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with
{ONLINE|TIME|LATLON|ALTITUDE|STATUS|MODE|PACKET|CLEAR|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with
{ONLINE|TIME|LATLON|STATUS|PACKET|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with
{ONLINE|TIME|LATLON|SPEED|TRACK|PACKET|REPORT|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with {ONLINE|TIME|PACKET|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with
{ONLINE|TIME|LATLON|ALTITUDE|STATUS|MODE|PACKET|CLEAR|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with
{ONLINE|TIME|LATLON|STATUS|PACKET|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with
{ONLINE|TIME|LATLON|SPEED|TRACK|PACKET|REPORT|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with {ONLINE|TIME|PACKET|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with
{ONLINE|TIME|LATLON|ALTITUDE|STATUS|MODE|PACKET|CLEAR|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with
{ONLINE|TIME|LATLON|STATUS|PACKET|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with
{ONLINE|TIME|LATLON|SPEED|TRACK|PACKET|REPORT|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with {ONLINE|TIME|PACKET|PPSTIME}
gpsd:ERROR: KPPS:/dev/ttyUSB0 kernel PPS failed Connection timed out
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with
{ONLINE|TIME|LATLON|ALTITUDE|STATUS|MODE|PACKET|CLEAR|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with
{ONLINE|TIME|LATLON|STATUS|PACKET|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with
{ONLINE|TIME|LATLON|SPEED|TRACK|PACKET|REPORT|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with {ONLINE|TIME|PACKET|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with
{ONLINE|TIME|LATLON|ALTITUDE|STATUS|MODE|PACKET|CLEAR|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with
{ONLINE|TIME|LATLON|STATUS|PACKET|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with
{ONLINE|TIME|LATLON|SPEED|TRACK|PACKET|REPORT|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with {ONLINE|TIME|PACKET|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with
{ONLINE|TIME|LATLON|ALTITUDE|STATUS|MODE|PACKET|CLEAR|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with
{ONLINE|TIME|LATLON|STATUS|PACKET|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with
{ONLINE|TIME|LATLON|SPEED|TRACK|PACKET|REPORT|PPSTIME}
gpsd:DATA: packet type 1 from /dev/ttyUSB0 with {ONLINE|TIME|PACKET|PPSTIME}
and ntpq still shows nothing for PPS
address@hidden:~# ntpq -pn
remote refid st t when poll reach delay offset jitter
==============================================================================
0.ubuntu.pool.n .POOL. 16 p - 64 0 0.000 0.000 0.001
1.ubuntu.pool.n .POOL. 16 p - 64 0 0.000 0.000 0.001
2.ubuntu.pool.n .POOL. 16 p - 64 0 0.000 0.000 0.001
3.ubuntu.pool.n .POOL. 16 p - 64 0 0.000 0.000 0.001
ntp.ubuntu.com .POOL. 16 p - 64 0 0.000 0.000 0.001
-127.127.28.0 .GPS. 0 l 19 64 377 0.000 -3.340 2.444
127.127.28.1 .PPS. 0 l - 64 0 0.000 0.000 0.000
-65.182.224.60 209.51.161.238 2 u 21 64 377 59.279 1.270 1.489
+208.75.88.4 69.36.224.15 2 u 15 64 377 40.841 -0.792 2.270
*184.105.192.247 216.218.254.202 2 u 16 64 377 40.551 2.648 1.325
-91.189.89.199 193.79.237.14 2 u 48 64 377 136.765 -0.579 2.343
-45.79.10.228 200.98.196.212 2 u 15 64 377 3.619 -0.481 1.339
+209.242.224.97 209.242.224.11 2 u 18 64 377 30.543 3.930 2.658
-91.189.94.4 193.79.237.14 2 u 49 64 377 131.761 2.198 2.086
-67.227.252.196 64.113.32.5 2 u 10 64 377 31.114 1.733 1.326
-104.156.99.226 204.123.2.72 2 u 16 64 377 59.065 2.516 1.420