[ntp:questions] How to get shared memory access from gpsd to ntpd to work?

Etaoin Shrdlu etaoin at clickworkorange.com
Fri Aug 18 11:46:31 UTC 2017


In case it's any help, here's the full output when running gpsd from
the command line: 

# gpsd -N -D5 udp://192.168.13.100:10110
gpsd:INFO: launching (Version 3.11)
gpsd:IO: opening IPv4 socket
gpsd:IO: opening IPv6 socket
gpsd:INFO: listening on port gpsd
gpsd:PROG: NTPD shmat(0,0,0) succeeded, segment 0
gpsd:PROG: NTPD shmat(32769,0,0) succeeded, segment 1
gpsd:PROG: NTPD shmat(65538,0,0) succeeded, segment 2
gpsd:PROG: NTPD shmat(98307,0,0) succeeded, segment 3
gpsd:PROG: successfully connected to the DBUS system bus
gpsd:PROG: shmat() succeeded, segment 131076
gpsd:PROG: shared-segment creation succeeded,
gpsd:INFO: stashing device N at slot 0
gpsd:INFO: stashing device udp://192.168.13.100:10110 at slot 1
gpsd:INFO: running with effective group ID 20
gpsd:INFO: running with effective user ID 110
gpsd:INFO: startup at 2017-08-18T11:36:44.000Z (1503056204)
gpsd:CLIENT: => client(0): {"class":"VERSION","release":"3.11","rev":"3.11-3","proto_major":3,"proto_minor":9}\x0d\x0a
gpsd:PROG: checking client(0)
gpsd:CLIENT: <= client(0): ?WATCH={"raw":2,"pps":true}\x0d\x0a
gpsd:INFO: opening read-only GPS data source type 0 and at 'N'
gpsd:ERROR: device open failed: Permission denied - retrying read-only
gpsd:ERROR: read-only device open failed: Permission denied
gpsd:ERROR: N: device activation failed.
gpsd:INFO: opening UDP feed at 192.168.13.100, port 10110.
gpsd:INFO: gpsd_activate(2): activated GPS (fd 7)
gpsd:CLIENT: => client(0): {"class":"DEVICES","devices":[{"class":"DEVICE","path":"N"},{"class":"DEVICE","path":"udp://192.168.13.100:10110","activated":"2017-08-18T11:39:01.060Z"}]}\x0d\x0a{"class":"WATCH","enable":true,"json":false,"nmea":false,"raw":2,"scaled":false,"timing":false,"split24":false,"pps":true}\x0d\x0a
gpsd:INFO: reconnection attempt on device 0
gpsd:PROG: no /etc/gpsd/device-hook present, skipped running ACTIVATE hook
gpsd:INFO: opening read-only GPS data source type 0 and at 'N'
gpsd:ERROR: device open failed: Permission denied - retrying read-only
gpsd:ERROR: read-only device open failed: Permission denied
gpsd:ERROR: N: device activation failed.
gpsd:PROG: switching to match packet type 1: $GPGGA,113947.0,1234.567890,N,00012.34567,E,1,10,0.7,22.3,M,47.0,M,,*62\x0d\x0a
gpsd:PROG: switch_driver(NMEA0183) called...
gpsd:PROG: selecting NMEA0183 driver...
gpsd:INFO: udp://192.168.13.100:10110 identified as type NMEA0183, 35.861665 sec @ 0bps
gpsd:PROG: => Probing for Garmin NMEA
gpsd:IO: => GPS: $PGRMCE*0E\x0d\x0a FAILED
gpsd:IO: <= GPS: $GPGGA,113947.0,1234.567890,N,00012.34567,E,1,10,0.7,22.3,M,47.0,M,,*62
gpsd:WARN: can't use GGA time until after ZDA or RMC has supplied a year.
gpsd:PROG: GPGGA sentence timestamped 113947.00.
gpsd:PROG: GPGGA starts a reporting cycle.
gpsd:PROG: device 1 (fd=7, path udp://192.168.13.100:10110) already active.
gpsd:CLIENT: => client(0): $GPGGA,113947.0,1234.567890,N,00012.34567,E,1,10,0.7,22.3,M,47.0,M,,*62\x0d\x0a
gpsd:PROG: Changed mask: {ONLINE|LATLON|ALTITUDE|STATUS|MODE|PACKET|DRIVER|CLEAR|REPORT} with unreliable cycle detection
gpsd:PROG: time to report a fix
gpsd:PROG: => Probing for SiRF
gpsd:IO: => GPS: $PSRF100,0,0,9,0,0*33\x0d\x0a FAILED
gpsd:IO: <= GPS: $GPRMC,113947.0,A,1234.567890,N,00012.34567,E,0.0,122.4,180817,0.0,E,A*0F
gpsd:PROG: GPRMC sentence timestamped 113947.00.
gpsd:CLIENT: => client(0): $GPRMC,113947.0,A,1234.567890,N,00012.34567,E,0.0,122.4,180817,0.0,E,A*0F\x0d\x0a
gpsd:PROG: Changed mask: {ONLINE|TIME|LATLON|SPEED|TRACK|PACKET|REPORT|PPSTIME} with unreliable cycle detection
gpsd:PROG: time to report a fix
gpsd:PROG: => Probing for FV-18
gpsd:IO: => GPS: $PFEC,GPint*58\x0d\x0a FAILED
gpsd:IO: <= GPS: $GPVTG,122.4,T,122.4,M,0.0,N,0.0,K,A*23
gpsd:CLIENT: => client(0): $GPVTG,122.4,T,122.4,M,0.0,N,0.0,K,A*23\x0d\x0a
gpsd:PROG: => Probing for Trimble Copernicus
gpsd:IO: => GPS: $PTNLSNM,0139,01*5C\x0d\x0a FAILED
gpsd:IO: <= GPS: $GPGSA,A,2,07,08,10,15,16,18,20,21,26,27,,,1.0,0.7,0.7*36
gpsd:PROG: GPGSA sets mode 2
gpsd:CLIENT: => client(0): $GPGSA,A,2,07,08,10,15,16,18,20,21,26,27,,,1.0,0.7,0.7*36\x0d\x0a
gpsd:PROG: Changed mask: {ONLINE|DOP|PACKET|USED} with unreliable cycle detection
gpsd:INFO: reconnection attempt on device 0
gpsd:PROG: no /etc/gpsd/device-hook present, skipped running ACTIVATE hook
gpsd:INFO: opening read-only GPS data source type 0 and at 'N'
gpsd:ERROR: device open failed: Permission denied - retrying read-only
gpsd:ERROR: read-only device open failed: Permission denied
gpsd:ERROR: N: device activation failed.
gpsd:PROG: => Probing for Evermore
gpsd:IO: => GPS: 1002128e7f0101000101010000000000000000131003 FAILED
gpsd:IO: <= GPS: $GNGSA,A,2,07,08,10,15,16,18,20,21,26,27,,,1.0,0.7,0.7*28
gpsd:PROG: GPGSA sets mode 2
gpsd:CLIENT: => client(0): $GNGSA,A,2,07,08,10,15,16,18,20,21,26,27,,,1.0,0.7,0.7*28\x0d\x0a
gpsd:PROG: Changed mask: {ONLINE|DOP|PACKET|USED} with unreliable cycle detection
gpsd:PROG: => Probing for GPSClock
gpsd:IO: => GPS: $PFEC,GPsrq*5B\x0d\x0a FAILED
gpsd:IO: <= GPS: $GNGSA,A,2,70,71,76,77,85,86,87,,,,,,1.0,0.7,0.7*20
gpsd:PROG: GPGSA sets mode 2
gpsd:CLIENT: => client(0): $GNGSA,A,2,70,71,76,77,85,86,87,,,,,,1.0,0.7,0.7*20\x0d\x0a
gpsd:PROG: Changed mask: {ONLINE|DOP|PACKET|USED} with unreliable cycle detection
gpsd:PROG: => Probing for Ashtech
gpsd:IO: => GPS: $PASHQ,RID*28\x0d\x0a FAILED
gpsd:IO: <= GPS: $GPGSA,A,2,05,12,21,25,26,29,31,,,,,,1.5,1.2,0.8*33
gpsd:PROG: GPGSA sets mode 2
gpsd:CLIENT: => client(0): $GPGSA,A,2,05,12,21,25,26,29,31,,,,,,1.5,1.2,0.8*33\x0d\x0a
gpsd:PROG: Changed mask: {ONLINE|DOP|PACKET|USED} with unreliable cycle detection
gpsd:PROG: => Probing for UBX
gpsd:PROG: => GPS: UBX class: 06, id: 00, len: 0, crc: 0618
gpsd:IO: => GPS: b562060000000618 FAILED
gpsd:IO: <= GPS: $GPGSV,4,1,13,07,17,310,28,08,32,285,31,10,34,143,44,15,04,057,32*70
gpsd:PROG: Partial satellite data (1 of 4).
gpsd:CLIENT: => client(0): $GPGSV,4,1,13,07,17,310,28,08,32,285,31,10,34,143,44,15,04,057,32*70\x0d\x0a
gpsd:PROG: => Probing for MediaTek
gpsd:IO: => GPS: $PMTK605*31\x0d\x0a FAILED
gpsd:IO: <= GPS: $GPGSV,4,2,13,16,65,192,36,18,45,102,39,20,11,036,28,21,42,061,34*7F
gpsd:PROG: Partial satellite data (2 of 4).
gpsd:CLIENT: => client(0): $GPGSV,4,2,13,16,65,192,36,18,45,102,39,20,11,036,28,21,42,061,34*7F\x0d\x0a
gpsd:IO: <= GPS: $GPGSV,4,3,13,26,38,168,46,27,69,296,38,33,,,38,13,02,026,*4D
gpsd:PROG: Partial satellite data (3 of 4).
gpsd:CLIENT: => client(0): $GPGSV,4,3,13,26,38,168,46,27,69,296,38,33,,,38,13,02,026,*4D\x0d\x0a
gpsd:IO: <= GPS: $GPGSV,4,4,13,30,02,340,*4D
gpsd:CLIENT: => client(0): $GPGSV,4,4,13,30,02,340,*4D\x0d\x0a
gpsd:PROG: Changed mask: {ONLINE|DOP|SATELLITE|PACKET} with unreliable cycle detection
gpsd:IO: <= GPS: $GPGGA,114047.0,1234.567890,N,00012.34567,E,1,09,1.0,22.3,M,47.0,M,,*6F
gpsd:PROG: GPGGA sentence timestamped 114047.00.
gpsd:PROG: GPGGA starts a reporting cycle.
gpsd:PROG: tagged RMC as a cycle ender.
gpsd:CLIENT: => client(0): $GPGGA,114047.0,1234.567890,N,00012.34567,E,1,09,1.0,22.3,M,47.0,M,,*6F\x0d\x0a
gpsd:PROG: Changed mask: {ONLINE|TIME|LATLON|ALTITUDE|STATUS|MODE|PACKET|CLEAR|PPSTIME} with reliable cycle detection
gpsd:IO: <= GPS: $GPRMC,114047.0,A,1234.567890,N,00012.34567,E,0.0,122.4,180817,0.0,E,A*0C
gpsd:PROG: GPRMC sentence timestamped 114047.00.
gpsd:PROG: GPRMC ends a reporting cycle.
gpsd:CLIENT: => client(0): $GPRMC,114047.0,A,1234.567890,N,00012.34567,E,0.0,122.4,180817,0.0,E,A*0C\x0d\x0a
gpsd:PROG: Changed mask: {ONLINE|TIME|LATLON|SPEED|TRACK|PACKET|REPORT|PPSTIME} with reliable cycle detection
gpsd:PROG: time to report a fix
gpsd:IO: <= GPS: $GPVTG,122.4,T,122.4,M,0.0,N,0.0,K,A*23
gpsd:CLIENT: => client(0): $GPVTG,122.4,T,122.4,M,0.0,N,0.0,K,A*23\x0d\x0a
gpsd:IO: <= GPS: $GPGSA,A,2,07,08,10,15,16,18,21,26,27,,,,1.3,1.0,0.8*3E
gpsd:PROG: GPGSA sets mode 2
gpsd:CLIENT: => client(0): $GPGSA,A,2,07,08,10,15,16,18,21,26,27,,,,1.3,1.0,0.8*3E\x0d\x0a
gpsd:PROG: Changed mask: {ONLINE|DOP|PACKET|USED} with reliable cycle detection
gpsd:INFO: reconnection attempt on device 0
gpsd:PROG: no /etc/gpsd/device-hook present, skipped running ACTIVATE hook
gpsd:INFO: opening read-only GPS data source type 0 and at 'N'
gpsd:ERROR: device open failed: Permission denied - retrying read-only
gpsd:ERROR: read-only device open failed: Permission denied
gpsd:ERROR: N: device activation failed.
gpsd:IO: <= GPS: $GNGSA,A,2,07,08,10,15,16,18,21,26,27,,,,1.3,1.0,0.8*20
gpsd:PROG: GPGSA sets mode 2
gpsd:CLIENT: => client(0): $GNGSA,A,2,07,08,10,15,16,18,21,26,27,,,,1.3,1.0,0.8*20\x0d\x0a
gpsd:PROG: Changed mask: {ONLINE|DOP|PACKET|USED} with reliable cycle detection
gpsd:IO: <= GPS: $GNGSA,A,2,,,,,,,,,,,,,1.3,1.0,0.8*26
gpsd:PROG: GPGSA sets mode 2
gpsd:CLIENT: => client(0): $GNGSA,A,2,,,,,,,,,,,,,1.3,1.0,0.8*26\x0d\x0a
gpsd:PROG: Changed mask: {ONLINE|DOP|PACKET|USED} with reliable cycle detection
gpsd:IO: <= GPS: $GPGSA,A,2,05,12,21,25,26,29,31,,,,,,1.5,1.2,0.8*33
gpsd:PROG: GPGSA sets mode 2
gpsd:CLIENT: => client(0): $GPGSA,A,2,05,12,21,25,26,29,31,,,,,,1.5,1.2,0.8*33\x0d\x0a
gpsd:PROG: Changed mask: {ONLINE|DOP|PACKET|USED} with reliable cycle detection
gpsd:IO: <= GPS: $GPGSV,3,1,12,07,17,310,25,08,32,285,28,10,34,143,42,15,04,057,31*76
gpsd:PROG: Partial satellite data (1 of 3).
gpsd:CLIENT: => client(0): $GPGSV,3,1,12,07,17,310,25,08,32,285,28,10,34,143,42,15,04,057,31*76\x0d\x0a
gpsd:IO: <= GPS: $GPGSV,3,2,12,16,65,192,30,18,45,102,37,26,38,168,46,27,69,296,41*79
gpsd:PROG: Partial satellite data (2 of 3).
gpsd:CLIENT: => client(0): $GPGSV,3,2,12,16,65,192,30,18,45,102,37,26,38,168,46,27,69,296,41*79\x0d\x0a
gpsd:IO: <= GPS: $GPGSV,3,3,12,33,,,38,13,02,026,,20,11,036,,30,03,338,*4A
gpsd:CLIENT: => client(0): $GPGSV,3,3,12,33,,,38,13,02,026,,20,11,036,,30,03,338,*4A\x0d\x0a
gpsd:PROG: Changed mask: {ONLINE|DOP|SATELLITE|PACKET} with reliable cycle detection




More information about the questions mailing list