gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WARN cycle-start and how to set min_cycle?


From: Anders Wallin
Subject: WARN cycle-start and how to set min_cycle?
Date: Mon, 28 Oct 2019 15:54:15 +0200


I am getting warnings like this:
gpsd:WARN: cycle-start detector failed.
browsing the code I modified libgpsd_core.c to output the cause of that warning:
gpsd:WARN: cycle-start detector failed. gap 0.894707 > min_cycle 0.250000
gpsd:WARN: cycle-start detector failed. gap 0.894767 > min_cycle 0.250000
gpsd:WARN: cycle-start detector failed. gap 0.845705 > min_cycle 0.250000
gpsd:WARN: cycle-start detector failed. gap 0.894633 > min_cycle 0.250000

So it seems that my F9T on a 115200bps UART somehow sets min_cycle to 0.25, although the default message-rate is 1 Hz, and the timing of messages is e.g.:
(I'm not sure the repeated TPV is a bug or a feature..)
2019-10-28 13:46:01.163939 RAW len(rawdata)= 41
2019-10-28 13:46:01.164071 TOFF
2019-10-28 13:46:01.164280 TPV
2019-10-28 13:46:02.160856 RAW len(rawdata)= 41
2019-10-28 13:46:02.161016 TOFF
2019-10-28 13:46:02.161226 TPV
2019-10-28 13:46:02.164658 TPV
2019-10-28 13:46:03.158568 RAW len(rawdata)= 41
2019-10-28 13:46:03.158743 TOFF
2019-10-28 13:46:03.159045 TPV

So, should I avoid the cycle-start WARN - will it make any difference to anything else?
Is there a way of setting min_cycle at build time or runtime?

In particular I seem to have arrived at a configuration that outputs TOFF, but not PPS (which I want, because it has qErr) - but I don't know if that is related to the cycle start warning.
At debug-level 3 gpsd outputs:
gpsd:INFO: PPS:/dev/ttyUSB0 Clear hooks called clock:  1572270542.000046027 real:  1572270542.000000000: accepted
gpsd:WARN: cycle-start detector failed. gap 0.894809 > min_cycle 0.250000
gpsd:INFO: PPS:/dev/ttyUSB0 Clear hooks called clock:  1572270543.000068801 real:  1572270543.000000000: accepted
gpsd:WARN: cycle-start detector failed. gap 0.894673 > min_cycle 0.250000
gpsd:INFO: PPS:/dev/ttyUSB0 Clear hooks called clock:  1572270544.000063034 real:  1572270544.000000000: accepted
gpsd:WARN: cycle-start detector failed. gap 0.899696 > min_cycle 0.250000

ubxtool shows UBX-TIM-TP containing a qErr, but I don't get any PPS json-messages.
ppswatch shows (repeated messages?):
trying PPS source "/dev/pps0"
found PPS source "/dev/pps0"
timestamp: 1572270711, sequence: 389, offset:  70713
timestamp: 1572270711, sequence: 389, offset:  70713
timestamp: 1572270712, sequence: 390, offset:  68807
timestamp: 1572270712, sequence: 390, offset:  68807
timestamp: 1572270713, sequence: 391, offset:  66821
timestamp: 1572270713, sequence: 391, offset:  66821


thanks,
Anders

reply via email to

[Prev in Thread] Current Thread [Next in Thread]