bugGPSD - Bugs: bug #50672, PPS not working with GPSD:...


bug #50672: PPS not working with GPSD: PPS:/dev/pps0 die

Submitted by:  Simon C <labrat9>
Submitted on:  Wed 29 Mar 2017 06:50:27 PM UTC  
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Invalid
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 26 Dec 2018 02:15:47 PM UTC, comment #1:

This is due to an ODROID driver bug. I ran into it myself while trying to qualify the C2 for use as a tiny NTP server.

It needs to be fixed upstream. I have submitted a report.

Eric S. Raymond <esr>
Project Administrator
Wed 29 Mar 2017 06:50:27 PM UTC, original submission:

This is on a ODROID-C2 running Linux 3.14.79-20-ARCH #1 SMP PREEMPT Sun Mar 19 13:57:19 MDT 2017 aarch64 GNU/Linux but I also get the same issue on armv7h (raspberry pi3)

GPSD is unable to use the /dev/pps0 even though it is found:

pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
pps pps0: new PPS source pps-gpio.0
pps pps0: Registered IRQ 97 as PPS source

And usable:
#ppstest /dev/pps0 [14:44:23]
trying PPS source "/dev/pps0"
found PPS source "/dev/pps0"
ok, found 1 source(s), now start fetching data...
source 0 - assert 1490813081.999192166, sequence: 645 - clear 0.000000000, sequence: 0
source 0 - assert 1490813082.999191449, sequence: 646 - clear 0.000000000, sequence: 0
source 0 - assert 1490813083.999192732, sequence: 647 - clear 0.000000000, sequence: 0

Chrony is also able to use it directly with its own compiled-in pps driver, shows working properly in chronyc tracking/sources but not able via SOCK or SHM1.

Log (gpsd -nND 6 /dev/ttyACM0 /dev/pps0):

gpsd:INFO: launching (Version 3.16)
gpsd:IO: opening IPv4 socket
gpsd:IO: opening IPv6 socket
gpsd:INFO: listening on port gpsd
gpsd:PROG: NTP: shmat(0,0,0) succeeded, segment 0
gpsd:PROG: NTP: shmat(32769,0,0) succeeded, segment 1
gpsd:PROG: NTP: shmat(65538,0,0) succeeded, segment 2
gpsd:PROG: NTP: shmat(98307,0,0) succeeded, segment 3
gpsd:PROG: NTP: shmat(131076,0,0) succeeded, segment 4
gpsd:PROG: NTP: shmat(163845,0,0) succeeded, segment 5
gpsd:PROG: NTP: shmat(196614,0,0) succeeded, segment 6
gpsd:PROG: NTP: shmat(229383,0,0) succeeded, segment 7
gpsd:PROG: successfully connected to the DBUS system bus
gpsd:PROG: shmget(0x47505344, 8936, 0666) for SHM export succeeded
gpsd:PROG: shmat() for SHM export succeeded, segment 262152
gpsd:INFO: stashing device /dev/ttyACM0 at slot 0
gpsd:PROG: no /etc/gpsd/device-hook present, skipped running ACTIVATE hook
gpsd:INFO: opening GPS data source type 3 at '/dev/ttyACM0'
gpsd:INFO: speed 9600, 8N1
gpsd:INFO: gpsd_activate(2): activated GPS (fd 6)
gpsd:WARN: KPPS:/dev/ttyACM0 kernel PPS unavailable, PPS accuracy will suffer
gpsd:PROG: PPS:/dev/ttyACM0 thread launched
gpsd:INFO: PPS:/dev/ttyACM0 ntpshm_link_activate: 1
gpsd:INFO: device /dev/ttyACM0 activated
gpsd:WARN: TPPS:/dev/ttyACM0 ioctl(TIOCMIWAIT) failed: 22 Invalid argument
gpsd:PROG: PPS:/dev/ttyACM0 die: TIOCMIWAIT Error
gpsd:PROG: PPS:/dev/ttyACM0 gpsd_ppsmonitor exited.
gpsd:INFO: stashing device /dev/pps0 at slot 1
gpsd:PROG: no /etc/gpsd/device-hook present, skipped running ACTIVATE hook
gpsd:PROG: switch_driver(PPS) called...
gpsd:PROG: selecting PPS driver...
gpsd:WARN: KPPS:/dev/pps0 kernel PPS unavailable, PPS accuracy will suffer
gpsd:PROG: PPS:/dev/pps0 thread launched
gpsd:INFO: PPS:/dev/pps0 ntpshm_link_activate: 0
gpsd:INFO: device /dev/pps0 activated
gpsd:INFO: KPPS:/dev/pps0 gps_fd:-2 not a tty
gpsd:WARN: PPS:/dev/pps0 die: no TIOMCIWAIT, nor RFC2783 CANWAIT
gpsd:PROG: PPS:/dev/pps0 gpsd_ppsmonitor exited.
gpsd:INFO: running with effective group ID 14
gpsd:INFO: running with effective user ID 99
gpsd:INFO: startup at 2017-03-29T18:49:10.000Z (1490813350)
gpsd:PROG: switching to match packet type 1: $GNTXT,01,01,02,u-blox AG - http://www.u-blox.com*4E\x0d\x0a
gpsd:PROG: switch_driver(NMEA0183) called...
gpsd:PROG: selecting NMEA0183 driver...
gpsd:INFO: /dev/ttyACM0 identified as type NMEA0183, 0 sec @ 9600bps

Simon C <labrat9>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by esr (Posted a comment)
  • -email is unavailable- added by labrat9 (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-12-26 esr Open/ClosedOpen => Closed
    2018-12-26 esr StatusNone => Invalid

    Back to the top

    Powered by Savane 3.4