[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Not able to get GPSD and NTP talking
From: |
TarotApprentice |
Subject: |
Not able to get GPSD and NTP talking |
Date: |
Sun, 4 Oct 2020 22:25:08 +0000 (UTC) |
I am having an issue getting ntp working with gpsd. Hardware is a Raspberry Pi4
model B with a ublox 8 model GR-801 USB connected GPS.
Software is Raspberry Pi OS (64 bit) running their 5.4.51 kernel, ntp is
4.2.8p12+dfsg-4 from repo and gpsd is 3.20 from the buster-backports repo.
Following the HowTo guide at
https://gpsd.gitlab.io/gpsd/gpsd-time-service-howto.html#_feeding_ntpd_from_gpsd.
cgps shows
lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqklqqqqqqqqqqqqqqqqqqSeen 24/Used 16k
x Time: 2020-10-04T20:56:11.000Z xx PRN Elev Azim SNR Use x
x Latitude: 33.95493990 S xxGP 3 34.0 1.0 33.0 Y x
x Longitude: 151.23946370 E xxGP 4 67.0 112.0 32.0 Y x
x Alt (HAE, MSL): 198.986, 136.745 ft xxGP 6 5.0 269.0 32.0 Y x
x Speed: 0.01 mph xxGP 7 41.0 267.0 41.0 Y x
x Track (true, var): 0.0, 12.7 deg xxGP 9 58.0 212.0 35.0 Y x
x Climb: 0.00 ft/min xxGP 16 47.0 123.0 24.0 Y x
x Status: 3D FIX (15 secs) xxGP 22 14.0 11.0 34.0 Y x
x Long Err (XDOP, EPX): 0.60, +/- 29.3 ft xxGP 30 14.0 282.0 32.0 Y x
x Lat Err (YDOP, EPY): 0.67, +/- 32.8 ft xxGL 68 28.0 38.0 19.0 Y x
x Alt Err (VDOP, EPV): 1.12, +/- 11.8 ft xxGL 69 81.0 73.0 31.0 Y x
x 2D Err (HDOP, CEP): 0.89, +/- 10.8 ft xxGL 73 6.0 313.0 32.0 Y x
x 3D Err (PDOP, SEP): 1.43, +/- 89.1 ft xxGL 79 58.0 165.0 14.0 Y x
x Time Err (TDOP): 0.86 xxGL 80 53.0 294.0 33.0 Y x
x Geo Err (GDOP): 1.67 xxQZ 193 71.0 6.0 36.0 Y x
x Speed Err (EPS): +/- 0.8 mph xxQZ 194 48.0 321.0 36.0 Y x
x Track Err (EPD): n/a xxQZ 195 7.0 351.0 33.0 Y x
x Time offset: 0.328 sec xxGP 8 13.0 43.0 16.0 N x
x Grid Square: QF56ob xxGP 26 13.0 139.0 0.0 N x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjmMore...qqqqqqqqqqqqqqqqqqqqqqqqqqj
which tells me the gps has a 3D fix and is providing data.
Output from ipcs -m shows
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x4e545030 0 root 600 96 2
0x4e545031 1 root 600 96 2
0x4e545032 2 root 666 96 1
0x4e545033 3 root 666 96 1
0x4e545034 4 root 666 96 1
0x4e545035 5 root 666 96 1
0x4e545036 6 root 666 96 1
0x4e545037 7 root 666 96 1
0x47505344 8 root 666 24024 1
cat /proc/sysvipc/shm shows:
key shmid perms size cpid lpid nattch uid
gid cuid cgid atime dtime ctime rss
swap
1314148400 0 600 96 372 1778 2 0
0 0 0 1601844606 1601844507 1601800702 4096
0
1314148401 1 600 96 372 1778 2 0
0 0 0 1601844606 1601844507 1601800702 4096
0
1314148402 2 666 96 372 372 1 0
0 0 0 1601800702 0 1601800702 0
0
1314148403 3 666 96 372 372 1 0
0 0 0 1601800702 0 1601800702 0
0
1314148404 4 666 96 372 372 1 0
0 0 0 1601800702 0 1601800702 0
0
1314148405 5 666 96 372 372 1 0
0 0 0 1601800702 0 1601800702 0
0
1314148406 6 666 96 372 372 1 0
0 0 0 1601800702 0 1601800702 0
0
1314148407 7 666 96 372 372 1 0
0 0 0 1601800702 0 1601800702 0
0
1196446532 8 666 24024 372 372 1 0
0 0 0 1601800703 0 1601800703 24576
0
sudo systemctl status ntp
* ntp.service - Network Time Service
Loaded: loaded (/lib/systemd/system/ntp.service; enabled; vendor preset: enab
Active: active (running) since Mon 2020-10-05 08:33:35 AEDT; 4min 20s ago
Docs: man:ntpd(8)
Process: 406 ExecStart=/usr/lib/ntp/ntp-systemd-wrapper (code=exited, status=0
Main PID: 455 (ntpd)
Tasks: 2 (limit: 1975)
CGroup: /system.slice/ntp.service
└─455 /usr/sbin/ntpd -p /var/run/ntpd.pid -gN -u 110:116
Oct 05 08:34:43 *** ntpd[455]: Soliciting pool server 162.159.200.123
Oct 05 08:34:43 *** ntpd[455]: Soliciting pool server 27.124.125.251
Oct 05 08:34:43 *** ntpd[455]: Soliciting pool server 103.214.220.220
Oct 05 08:34:44 *** ntpd[455]: Soliciting pool server 45.124.53.221
Oct 05 08:34:44 *** ntpd[455]: Soliciting pool server 103.38.120.36
Oct 05 08:34:45 *** ntpd[455]: Soliciting pool server 61.68.38.238
Oct 05 08:34:46 *** ntpd[455]: Soliciting pool server 144.48.166.166
Oct 05 08:34:47 *** ntpd[455]: Soliciting pool server 2402:1f00:8100:400::1
Oct 05 08:35:09 *** ntpd[455]: receive: Unexpected origin timestamp 0xe324b
Oct 05 08:36:11 *** ntpd[455]: Soliciting pool server 103.76.40.123
ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
0.au.pool.ntp.o .POOL. 16 p - 64 0 0.000 0.000 0.000
1.au.pool.ntp.o .POOL. 16 p - 64 0 0.000 0.000 0.000
2.au.pool.ntp.o .POOL. 16 p - 64 0 0.000 0.000 0.000
3.au.pool.ntp.o .POOL. 16 p - 64 0 0.000 0.000 0.000
SHM(0) .GPS. 0 l - 64 0 0.000 0.000 0.000
SHM(1) .PPS. 0 l - 64 0 0.000 0.000 0.000
-any.time.nl 202.46.177.18 2 u 13 64 17 1.810 -0.344 0.404
*time.cloudflare 10.26.8.188 3 u 15 64 17 1.813 -0.283 0.448
+ntp1.ds.network 225.254.30.190 4 u 20 64 7 54.220 -0.043 0.300
#x.ns.gin.ntt.ne 249.224.99.213 2 u 14 64 17 1.853 -1.926 0.313
-103.38.121.36 ( 210.9.192.50 2 u 48 64 17 9.447 -0.763 2.510
+time.cloudflare 10.26.8.188 3 u 50 64 17 1.723 -0.442 0.268
-103.214.220.220 8.145.32.135 2 u 50 64 17 5.226 -0.044 0.236
-ntp2.ds.network 162.159.200.1 4 u 55 64 7 55.060 0.021 0.191
-ns1.adelaideweb 126.11.196.147 2 u 50 64 17 13.933 -0.279 0.276
-103.38.120.36 ( 130.95.179.80 2 u 50 64 17 5.294 -0.591 2.470
#61-68-38-238.st 203.59.7.248 3 u 49 64 17 48.319 1.370 0.701
-144.48.166.166 8.145.32.135 2 u 51 64 17 5.505 -0.077 0.175
#103.76.40.123 ( 202.6.131.118 2 u 61 64 7 2.347 -1.181 0.231
Which suggest it can't access the shared memory segments. Any help with further
debugging what is going on would be appreciated.
MarkJ
- Not able to get GPSD and NTP talking,
TarotApprentice <=