|
From: | address@hidden |
Subject: | [gpsd-users] configproblem with ntp and pps, |
Date: | Fri, 22 Dec 2017 20:20:27 +0100 |
Hi! Can you please tell what's wrong with my configuration? I have tried many combinations (type 20, 22, 28 for the 127.127.t.u), but only the shared memory driver seems to work, a bit. But at the end, I don't get my ntpd running with gps and pps, never saw that "o" in front of pps... I have a ublox Neo8 connected to my raspi. GPS is working: $: minicom -b 9600 -o -D /dev/ttyAMA0d ... GPGSV,4,3,15,24,80,284,37,25,09,239,21,28,03,057,,32,11,321,37*75 $GPGSV,4,4,15,33,26,211,,36,27,153,,49,30,186,36*48 $GLGSV,3,1,10,69,24,221,35,70,41,289,37,71,16,340,22,78,22,078,18*62 $GLGSV,3,2,10,79,62,050,17,80,42,285,38,81,33,116,19,82,03,155,*69 $GLGSV,3,3,10,87,09,010,,88,36,052,*61 $GNGLL,xxxx.29216,N,00yyy.37000,E,185730.00,A,A*79 $GNRMC,185731.00,A,xxxx.29207,N,00yyy.36975,E,0.062,,221217,,,A*6A $GNVTG,,T,,M,0.062,N,0.115,K,A*3C $GNGGA,185731.00,xxxx.29207,N,00yyy.36975,E,1,12,0.82,67.0,M,46.1,M,,*7C $GNGSA,A,3,24,12,19,17,15,10,13,18,32,,,,1.49,0.82,1.25*18 $GNGSA,A,3,79,80,70,69,78,71,,,,,,,1.49,0.82,1.25*1B $GPGSV,4,1,15,01,06,015,13,10,18,291,41,12,46,233,43,13,16,159,26*76 $GPGSV,4,2,15,15,37,187,41,17,39,062,27,18,12,262,26,19,46,093,26*71 $GPGSV,4,3,15,24,80,284,37,25,09,239,21,28,03,057,,32,11,321,37*75 $GPGSV,4,4,15,33,26,211,,36,27,153,,49,30,186,36*48 $GLGSV,3,1,10,69,24,221,35,70,41,289,37,71,16,340,22,78,22,078,18*62 $GLGSV,3,2,10,79,62,050,17,80,42,285,38,81,33,116,18,82,03,155,*68 $GLGSV,3,3,10,87,09,010,,88,36,052,*61 ... and the pps-signal on gpio 18 seems also to be well: $: ppstest /dev/pps0 trying PPS source "/dev/pps0" found PPS source "/dev/pps0" ok, found 1 source(s), now start fetching data... source 0 - assert 1513968862.143188729, sequence: 157363 - clear 0.000000000, sequence: 0 source 0 - assert 1513968862.143501385, sequence: 157364 - clear 0.000000000, sequence: 0 source 0 - assert 1513968863.142874222, sequence: 157365 - clear 0.000000000, sequence: 0 I'm not able bring ntpd to use my GPS and pps. Every 1,0s: ntpq -c peers -p -c rv remote refid st t when poll reach delay offset jitter ============================================================================== xSHM(0) .GPS. 1 l 180 16 0 0.000 -105.42 0.000 SHM(1) .PPS. 0 l - 16 0 0.000 0.000 0.000 xptbtime1.ptb.de .PTB. 1 u 43 128 377 34.931 -0.125 1.086 remote refid st t when poll reach delay offset jitter ============================================================================== xSHM(0) .GPS. 1 l 180 16 0 0.000 -105.42 0.000 SHM(1) .PPS. 0 l - 16 0 0.000 0.000 0.000 xptbtime1.ptb.de .PTB. 1 u 43 128 377 34.931 -0.125 1.086 associd=0 status=0028 leap_none, sync_unspec, 2 events, no_sys_peer, version="ntpd address@hidden Sat Oct 7 14:29:08 UTC 2017 (1)", processor="armv7l", system="Linux/4.9.70-v7+", leap=00, stratum=2, precision=-20, rootdelay=34.931, rootdisp=14.881, refid=192.53.103.108, reftime=dde7d286.f3242439 Fri, Dec 22 2017 19:50:46.949, clock=dde7d4b8.c0da8ec4 Fri, Dec 22 2017 20:00:08.753, peer=0, tc=7, mintc=3, offset=-0.124790, frequency=-1.692, sys_jitter=0.000000, clk_jitter=0.927, clk_wander=0.025 _____________________________________________________________________ Here's a part of my ntp.conf # GPS Serial data reference (NTP0) server 127.127.28.0 minpoll 4 maxpoll 4 fudge 127.127.28.0 time1 +0.0 refid GPS stratum 1 # # # GPS PPS reference (NTP1) server 127.127.28.1 minpoll 4 maxpoll 4 prefer fudge 127.127.28.1 refid PPS _____________________________________________________________________ And some more informations: $: uname -a Linux raspi 4.9.70-v7+ #1068 SMP $: lsmod Module Size Used by bcm2835_gpiomem 3940 0 uio_pdrv_genirq 3923 0 uio 10204 1 uio_pdrv_genirq pps_gpio 3293 0 pps_core 9164 1 pps_gpio i2c_dev 6913 0 $: l /dev/gp gpiochip0 gpiomem gps0 gpspps0 $: l /dev/pps0 crw-rw---- 1 root 245, 0 /dev/pps0 $: l /dev/ttyAMA0 crw-rw---- 1 root 204, 64 /dev/ttyAMA0 _____________________________________________________________________ $: gpsd -n -N -D3 /dev/ttyAMA0 gpsd:INFO: launching (Version 3.16) gpsd:INFO: listening on port gpsd gpsd:INFO: stashing device /dev/ttyAMA0 at slot 0 gpsd:INFO: opening GPS data source type 2 at '/dev/ttyAMA0' gpsd:INFO: speed 9600, 8N1 gpsd:INFO: gpsd_activate(2): activated GPS (fd 6) gpsd:INFO: KPPS:/dev/ttyAMA0 RFC2783 path:/dev/pps1, fd is 7 gpsd:INFO: KPPS:/dev/ttyAMA0 pps_caps 0x1133 gpsd:INFO: KPPS:/dev/ttyAMA0 have PPS_CANWAIT gpsd:INFO: KPPS:/dev/ttyAMA0 kernel PPS will be used gpsd:INFO: PPS:/dev/ttyAMA0 ntpshm_link_activate: 1 gpsd:INFO: device /dev/ttyAMA0 activated gpsd:INFO: KPPS:/dev/ttyAMA0 kernel PPS timeout Interrupted system call gpsd:INFO: KPPS:/dev/ttyAMA0 kernel PPS timeout Interrupted system call gpsd:INFO: KPPS:/dev/ttyAMA0 kernel PPS timeout Interrupted system call gpsd:INFO: running with effective group ID 20 gpsd:INFO: running with effective user ID 111 gpsd:INFO: startup at 2017-12-22T18:55:30.000Z (1513968930) gpsd:INFO: /dev/ttyAMA0 identified as type u-blox, 1 sec @ 9600bps gpsd:INFO: UBX_MON_VER: SW ROM CORE 3.01 (107888),HW 00080000,FWVER=SPG 3.01,PROTVER=18.00,GPS;GLO;GAL;BDS,SBAS;IMES;QZSS gpsd:INFO: KPPS:/dev/ttyAMA0 kernel PPS timeout Connection timed out gpsd:INFO: KPPS:/dev/ttyAMA0 kernel PPS timeout Connection timed out gpsd:INFO: KPPS:/dev/ttyAMA0 kernel PPS timeout Connection timed out gpsd:INFO: Sats used (8): gpsd:INFO: PRN= 10 az=292 el=19 (-0.876670, 0.354197, 0.325568) gpsd:INFO: PRN= 12 az=232 el=45 (-0.557208, -0.435338, 0.707107) gpsd:INFO: PRN= 13 az=159 el=17 (0.342709, -0.892787, 0.292372) gpsd:INFO: PRN= 15 az=187 el=37 (-0.097329, -0.792683, 0.601815) gpsd:INFO: PRN= 18 az=262 el=13 (-0.964888, -0.135606, 0.224951) gpsd:INFO: PRN= 24 az=285 el=78 (-0.200827, 0.053812, 0.978148) gpsd:INFO: PRN= 32 az=321 el=10 (-0.619760, 0.765339, 0.173648) gpsd:INFO: KPPS:/dev/ttyAMA0 kernel PPS timeout Connection timed out gpsd:INFO: KPPS:/dev/ttyAMA0 kernel PPS timeout Connection timed out gpsd:INFO: KPPS:/dev/ttyAMA0 kernel PPS timeout Connection timed out gpsd:WARN: PPS:/dev/ttyAMA0 unchanged state, ppsmonitor sleeps 10 gpsd:INFO: Sats used (8): gpsd:INFO: PRN= 10 az=292 el=19 (-0.876670, 0.354197, 0.325568) gpsd:INFO: PRN= 12 az=232 el=45 (-0.557208, -0.435338, 0.707107) gpsd:INFO: PRN= 13 az=159 el=17 (0.342709, -0.892787, 0.292372) gpsd:INFO: PRN= 15 az=187 el=37 (-0.097329, -0.792683, 0.601815) gpsd:INFO: PRN= 18 az=262 el=13 (-0.964888, -0.135606, 0.224951) gpsd:INFO: PRN= 24 az=284 el=79 (-0.185141, 0.046161, 0.981627) gpsd:INFO: PRN= 32 az=321 el=10 (-0.619760, 0.765339, 0.173648) gpsd:INFO: KPPS:/dev/ttyAMA0 kernel PPS timeout Connection timed out gpsd:INFO: Sats used (8): gpsd:INFO: PRN= 10 az=292 el=19 (-0.876670, 0.354197, 0.325568) gpsd:INFO: PRN= 12 az=232 el=45 (-0.557208, -0.435338, 0.707107) gpsd:INFO: PRN= 13 az=159 el=17 (0.342709, -0.892787, 0.292372) gpsd:INFO: PRN= 15 az=187 el=37 (-0.097329, -0.792683, 0.601815) gpsd:INFO: PRN= 18 az=262 el=13 (-0.964888, -0.135606, 0.224951) gpsd:INFO: PRN= 24 az=284 el=79 (-0.185141, 0.046161, 0.981627) gpsd:INFO: PRN= 32 az=321 el=10 (-0.619760, 0.765339, 0.173648) gpsd:INFO: KPPS:/dev/ttyAMA0 kernel PPS timeout Connection timed out gpsd:INFO: KPPS:/dev/ttyAMA0 kernel PPS timeout Connection timed out gpsd:INFO: KPPS:/dev/ttyAMA0 kernel PPS timeout Connection timed out gpsd:INFO: Sats used (9): gpsd:INFO: PRN= 10 az=292 el=19 (-0.876670, 0.354197, 0.325568) gpsd:INFO: PRN= 12 az=232 el=45 (-0.557208, -0.435338, 0.707107) gpsd:INFO: PRN= 13 az=159 el=17 (0.342709, -0.892787, 0.292372) gpsd:INFO: PRN= 15 az=187 el=37 (-0.097329, -0.792683, 0.601815) gpsd:INFO: PRN= 17 az= 63 el=39 (0.692442, 0.352817, 0.629320) gpsd:INFO: PRN= 18 az=262 el=13 (-0.964888, -0.135606, 0.224951) gpsd:INFO: PRN= 24 az=284 el=79 (-0.185141, 0.046161, 0.981627) gpsd:INFO: PRN= 32 az=321 el=10 (-0.619760, 0.765339, 0.173648) gpsd:INFO: KPPS:/dev/ttyAMA0 kernel PPS timeout Connection timed out gpsd:INFO: KPPS:/dev/ttyAMA0 kernel PPS timeout Connection timed out gpsd:INFO: KPPS:/dev/ttyAMA0 kernel PPS timeout Connection timed out gpsd:INFO: Sats used (9): gpsd:INFO: PRN= 10 az=292 el=19 (-0.876670, 0.354197, 0.325568) gpsd:INFO: PRN= 12 az=232 el=45 (-0.557208, -0.435338, 0.707107) gpsd:INFO: PRN= 13 az=159 el=17 (0.342709, -0.892787, 0.292372) gpsd:INFO: PRN= 15 az=187 el=37 (-0.097329, -0.792683, 0.601815) gpsd:INFO: PRN= 17 az= 63 el=39 (0.692442, 0.352817, 0.629320) gpsd:INFO: PRN= 18 az=262 el=13 (-0.964888, -0.135606, 0.224951) gpsd:INFO: PRN= 24 az=284 el=79 (-0.185141, 0.046161, 0.981627) gpsd:INFO: PRN= 32 az=321 el=10 (-0.619760, 0.765339, 0.173648) gpsd:INFO: KPPS:/dev/ttyAMA0 kernel PPS timeout Connection timed out gpsd:INFO: KPPS:/dev/ttyAMA0 kernel PPS timeout Connection timed out gpsd:INFO: KPPS:/dev/ttyAMA0 kernel PPS timeout Connection timed out gpsd:WARN: PPS:/dev/ttyAMA0 unchanged state, ppsmonitor sleeps 10
Regards, and happy holidays |
smime.p7s
Description: S/MIME cryptographic signature
[Prev in Thread] | Current Thread | [Next in Thread] |