[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] [PATCH] [RFC] gpsmon: add PPS monitoring at -D2 debug lev
From: |
Beat Bolli |
Subject: |
Re: [gpsd-dev] [PATCH] [RFC] gpsmon: add PPS monitoring at -D2 debug level |
Date: |
Sat, 02 Nov 2013 00:26:48 +0100 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 |
On 02.11.13 00:24, Greg Troxel wrote:
>
> Andy Walls <address@hidden> writes:
>
>> IIRC gpsd has code in it to guess the proper edge based on the
>> relative lengths of the assert and deassert periods. PPS pulses are
>> short so the beginning edge of the short period should be it.
>
> Exactly. But it's interesting to know which is which, for configuring
> ntpd, which does not do this auto-sensing. So I'd like the debug output
> to print out which way gpsd thinks the pulse is working.
>
You can have that with -D7 (from the patched gpsmon log):
gpsd:RAW: PPS pps-detect on /dev/ttyS0 changed to 1
gpsd:INFO: PPS cycle: 999860, duration: 899943 @ 1383348322.002365
gpsd:RAW: PPS edge accepted 1Hz leading edge
gpsd:RAW: PPS edge 1383348322.2365000 offset -0.002365000
gpsd:RAW: PPS pps-detect on /dev/ttyS0 changed to 0
gpsd:INFO: PPS cycle: 999940, duration: 99997 @ 1383348322.102362
gpsd:RAW: PPS edge rejected 1Hz trailing edge
Beat
--
mail: echo '<address@hidden>' | tr -d '[A-S]'
pgp: 0x506A903A; 49D5 794A EA77 F907 764F D89E 304B 93CF 506A 903A
gsm: 4.7.7.6.0.7.7.9.7.1.4.e164.arpa
icbm: 47.0452 N, 7.2715 E
"It takes love over gold, and mind over matter" -- Dire Straits
signature.asc
Description: OpenPGP digital signature
Re: [gpsd-dev] [PATCH] [RFC] gpsmon: add PPS monitoring at -D2 debug level, Gerry Creager - NOAA Affiliate, 2013/11/01