|
From: | Norton Allen |
Subject: | Re: [gpsd-dev] Port to QNX: PPS without SHM? |
Date: | Mon, 21 Dec 2015 21:45:24 -0500 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 |
On 12/20/2015 3:46 AM, Hal Murray wrote:Hal, I have tried several different configurations:address@hidden said:That mostly worked: I was able to see the JSON data and watch the NMEA interface, but ntpd was unable to synch.ntpd should work when gpsd doesn't have PPS. What did ntpq -p show?Any thoughts on what would be necessary to get PPS_ENABLE to work without NTPSHM_ENABLE?Bypass gpsd and feed the PPS directly to ntpd. (after you get the JSON path working) 1: gpsd with only NMEA input, ntpd configured to reference gpsd_json and /dev/pps1 In this configuration, gpsd does not transmit any data packets to ntpd. I am speculating and almost certainly wrong, but it seems as though gpsd is not sending packets because it has no PPS data. gpsd is sending version information.2: I made modifications to timehint.c to actually activate the pps thread. [I will be more than happy to share the details, but I am hoping to spare you that at the moment. I'm hoping your high-level view will help, but feel free to demand more info.] For the first run, in separate terminals: ./gpsd -N -D2 /dev/gps1 /dev/pps1ntp_gps.conf includes: # by default act only as a basic NTP clientIn this configuration, gpsd is producing TPV and TOFF packets: gpsd:CLIENT: => client(0): {"class":"TPV","device":"/dev/gps1","mode":3,I still fail to get ntpd to lock, ntpq output is the same as above. 3: I replaced 127.127.22.1 with 127.127.46.129. Same results, except ntpq now says: $ ./ntpq -p[The documentation of this option in ntpd's refclock_gpsdjson.c is somewhat unclear, so I would not be surprised if I misinterpreted it.] In all cases, I have verified with ./ntpd -dd that ntpd is in fact receiving the packets gpsd is sending and appears to be parsing them correctly. Is there anything obvious I am missing in this setup? Is there any more complete information I could provide that would help? I will continue to investigate on the ntpd end. |
[Prev in Thread] | Current Thread | [Next in Thread] |