Discussion:
[chrony-users] Help Chrony synchronization(connectivity) is lost after 10 to 15 minutes.
Munsif ALI
2018-10-06 16:51:52 UTC
Permalink
I have used for logging sensor data while not connected to the Internet.I want to use a GPS receiver<https://m.ipc2u.com/catalog/gps-721> for the time synchronization. I would like to use gpsd and chrony to achieve this.

here is my chrony.conf file

refclock SOCK /var/run/chrony.ttyS0.sock refid SOCK
keyfile /etc/chrony/chrony.keys
commandkey 1
driftfile /var/lib/chrony/chrony.drift
log tracking measurements statistics
logdir /var/log/chrony

# maxupdateskew 100.0

dumponexit

dumpdir /var/lib/chrony

# local stratum 10
allow

logchange 0.5

makestep 1 -1

# mailonchange ***@localhost 0.5

hwclockfile /etc/adjtime

rtcsync

When I run chronyc tracking and chronyc sources it looks like the my machine is connecting to GPS.

here my Chronyc tracking command output:


Reference ID : 116.122.250.120 (116.122.250.120)
Stratum : 1
Ref time (UTC) : wed sep 18 19:05:11 2018
System time : 0.000564536 seconds fast of NTP time
Last offset : +0.000280794 seconds
RMS offset : 0.000322653 seconds
Frequency : 19.616 ppm fast
Residual freq : +0.003 ppm
Skew : 0.053 ppm
Root delay : 0.039604 seconds
Root dispersion : 0.000406 seconds
Update interval : 1042.6 seconds
Leap status : Normal


***@munsif:/home/munsif# chronyc sources -v
210 Number of sources = 1
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
#* SOCK 0 4 7 10 -12us[ +561us] +/- 15us

When we start the GPS chronyc sources -v says chrony is synchronized the gps sock... here is the output of chronyc sources.
After 5 to 10 mints chronyc sources -v command says GPS in not synchronized

***@munsif:/home/munsif# chronyc sources
210 Number of sources = 1
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
#? SOCK 0 4 0 436 +121ns[ +132ns] +/- 3511ns

Every thing is working fine for 5 to 10 mints and after that chrony is not sync with GPS.
when chrony is not sync I run following commands
systemctl restart chrony
systemctl restart gpsd
Now chrony is sync with GPS approx 5 to 10 mints and again after that connectivity is lost.

I have also put this question to stackoverflow and unix.exchange web.

Here this question link<https://stackoverflow.com/questions/52400105/chrony-connectivity-is-lost-after-10-to-15-minutes> and here is discussion link<https://chat.stackoverflow.com/rooms/180544/discussion-between-munsif-ali-and-user3788685>

Any help will be highly appreciated.

regrads.

Munsif Ali
Miroslav Lichvar
2018-10-08 08:45:15 UTC
Permalink
Post by Munsif ALI
I have used for logging sensor data while not connected to the Internet.I want to use a GPS receiver<https://m.ipc2u.com/catalog/gps-721> for the time synchronization. I would like to use gpsd and chrony to achieve this.
When I run chronyc tracking and chronyc sources it looks like the my machine is connecting to GPS.
Reference ID : 116.122.250.120 (116.122.250.120)
Stratum : 1
The Reference ID indicates chrony is synchronized to an NTP server,
but stratum is of a reference clock, and your config doesn't have an
NTP server. Was it combined from two different tracking outputs?
Post by Munsif ALI
210 Number of sources = 1
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
#* SOCK 0 4 7 10 -12us[ +561us] +/- 15us
When we start the GPS chronyc sources -v says chrony is synchronized the gps sock... here is the output of chronyc sources.
After 5 to 10 mints chronyc sources -v command says GPS in not synchronized
The problem can either be that chrony is receiving measurements from
gpsd but for some reason is ignoring them, or gpsd stops providing the
measurements.

Can you please add "log refclocks statistics" to your chrony.conf,
restart chronyd and gpsd, let it run for few minutes, and post the
logs here?
--
Miroslav Lichvar
--
To unsubscribe email chrony-users-***@chrony.tuxfamily.org
with "unsubscribe" in the subject.
For help email chrony-users-***@chrony.tuxfamily.org
with "help" in the subject.
Trouble? Email ***@chrony.tuxfamily.org.
Munsif ALI
2018-10-08 09:51:17 UTC
Permalink
I have added NEMA source to config file now config file look like this.


refclock SHM 0 delay 0.5 refid NEMA
refclock SOCK /var/run/chrony.ttyS0.sock refid PPS
keyfile /etc/chrony/chrony.keys
commandkey 1
driftfile /var/lib/chrony/chrony.drift
log tracking measurements statistics
logdir /var/log/chrony
# maxupdateskew 100.0
dumponexit
dumpdir /var/lib/chrony
# local stratum 10
allow
logchange 0.5
makestep 1 -1
# mailonchange ***@localhost 0.5
hwclockfile /etc/adjtime
rtcsync



Chrony tracking command output

Reference ID : 80.80.83.0 (PPS)
Stratum : 1
Ref time (UTC) : Mon Oct 8 09:19:02 2018
System time : 0.000000000 seconds fast of NTP time
Last offset : +0.000274657 seconds
RMS offset : 0.000274657 seconds
Frequency : 3.643 ppm slow
Residual freq : +1.313 ppm
Skew : 0.214 ppm
Root delay : 0.000000 seconds
Root dispersion : 0.000042 seconds
Update interval : 0.0 seconds
Leap status : Normal

refclock logs

===============================================================================
Date (UTC) Time Refid DP L P Raw offset Cooked offset Disp.
===============================================================================
2018-10-08 09:07:10.999961 PPS 7 N 0 3.928400e-05 3.928372e-05 1.000e-09
2018-10-08 09:07:10.361087 NEMA 8 N 0 -3.610877e-01 -3.610877e-01 1.000e-06
2018-10-08 09:07:12.000013 PPS 8 N 0 -1.331400e-05 -1.331429e-05 1.000e-09
2018-10-08 09:07:11.360277 NEMA 9 N 0 -3.602776e-01 -3.602776e-01 1.000e-06
2018-10-08 09:07:12.999950 PPS 9 N 0 5.005200e-05 5.005170e-05 1.000e-09
2018-10-08 09:07:12.367687 NEMA 10 N 0 -3.676874e-01 -3.676874e-01 1.000e-06
2018-10-08 09:07:14.000019 PPS 10 N 0 -1.907700e-05 -1.907731e-05 1.000e-09
2018-10-08 09:07:13.423749 NEMA 11 N 0 -4.237497e-01 -4.237497e-01 1.000e-06
2018-10-08 09:07:14.999954 PPS 11 N 0 4.565000e-05 4.564969e-05 1.000e-09
2018-10-08 09:07:14.370052 NEMA 12 N 0 -3.700529e-01 -3.700529e-01 1.000e-06
2018-10-08 09:07:16.000020 PPS 12 N 0 -2.018100e-05 -2.018132e-05 1.000e-09
2018-10-08 09:07:15.421999 NEMA 13 N 0 -4.219999e-01 -4.219999e-01 1.000e-06
2018-10-08 09:07:17.000020 PPS 13 N 0 -2.030100e-05 -2.030133e-05 1.000e-09
2018-10-08 09:07:16.416285 NEMA 14 N 0 -4.162856e-01 -4.162856e-01 1.000e-06
2018-10-08 09:07:18.000016 PPS 14 N 0 -1.638200e-05 -1.638234e-05 1.000e-09
2018-10-08 09:07:17.371727 NEMA 15 N 0 -3.717272e-01 -3.717272e-01 1.000e-06
2018-10-08 09:07:09.277845 NEMA - N - - -3.778460e-01 4.651e-03
2018-10-08 09:07:18.999946 PPS 15 N 0 5.361800e-05 5.361766e-05 1.000e-09
2018-10-08 09:07:11.500000 PPS - N - - 1.381370e-08 8.698e-06
2018-10-08 09:07:18.364172 NEMA 0 N 0 -3.641724e-01 -3.641724e-01 1.000e-06
2018-10-08 09:07:19.999948 PPS 0 N 0 5.197700e-05 5.197665e-05 1.000e-09
2018-10-08 09:07:19.373265 NEMA 1 N 0 -3.732658e-01 -3.732658e-01 1.000e-06
2018-10-08 09:07:21.000019 PPS 1 N 0 -1.919900e-05 -1.919936e-05 1.000e-09
2018-10-08 09:07:20.364130 NEMA 2 N 0 -3.641304e-01 -3.641304e-01 1.000e-06
2018-10-08 09:07:22.000025 PPS 2 N 0 -2.545000e-05 -2.545037e-05 1.000e-09
2018-10-08 09:07:21.362402 NEMA 3 N 0 -3.624029e-01 -3.624029e-01 1.000e-06
2018-10-08 09:07:23.000017 PPS 3 N 0 -1.724400e-05 -1.724437e-05 1.000e-09
2018-10-08 09:07:22.364320 NEMA 4 N 0 -3.643210e-01 -3.643210e-01 1.000e-06
2018-10-08 09:07:24.000019 PPS 4 N 0 -1.909900e-05 -1.909938e-05 1.000e-09
2018-10-08 09:07:23.363622 NEMA 5 N 0 -3.636226e-01 -3.636226e-01 1.000e-06
2018-10-08 09:07:24.999952 PPS 5 N 0 4.848300e-05 4.848261e-05 1.000e-09
2018-10-08 09:07:24.409611 NEMA 6 N 0 -4.096113e-01 -4.096113e-01 1.000e-06
===============================================================================
Date (UTC) Time Refid DP L P Raw offset Cooked offset Disp.
===============================================================================
2018-10-08 09:07:25.999974 PPS 6 N 0 2.623400e-05 2.623360e-05 1.000e-09
2018-10-08 09:07:25.355667 NEMA 7 N 0 -3.556680e-01 -3.556680e-01 1.000e-06
2018-10-08 09:07:27.000021 PPS 7 N 0 -2.119700e-05 -2.119740e-05 1.000e-09
2018-10-08 09:07:26.405270 NEMA 8 N 0 -4.052705e-01 -4.052705e-01 1.000e-06
2018-10-08 09:07:28.000033 PPS 8 N 0 -3.250700e-05 -3.250741e-05 1.000e-09
2018-10-08 09:07:27.353669 NEMA 9 N 0 -3.536692e-01 -3.536692e-01 1.000e-06
2018-10-08 09:07:29.000029 PPS 9 N 0 -2.902200e-05 -2.902242e-05 1.000e-09
2018-10-08 09:07:28.419567 NEMA 10 N 0 -4.195675e-01 -4.195675e-01 1.000e-06
2018-10-08 09:07:29.999987 PPS 10 N 0 1.340100e-05 1.340057e-05 1.000e-09
2018-10-08 09:07:29.376964 NEMA 11 N 0 -3.769647e-01 -3.769647e-01 1.000e-06
2018-10-08 09:07:31.000020 PPS 11 N 0 -2.005200e-05 -2.005243e-05 1.000e-09
2018-10-08 09:07:30.373371 NEMA 12 N 0 -3.733714e-01 -3.733714e-01 1.000e-06
2018-10-08 09:07:32.000028 PPS 12 N 0 -2.784000e-05 -2.784044e-05 1.000e-09
2018-10-08 09:07:31.355793 NEMA 13 N 0 -3.557933e-01 -3.557933e-01 1.000e-06
2018-10-08 09:07:32.999995 PPS 13 N 0 4.920000e-06 4.919551e-06 1.000e-09
2018-10-08 09:07:32.374137 NEMA 14 N 0 -3.741378e-01 -3.741378e-01 1.000e-06
2018-10-08 09:07:33.999981 PPS 14 N 0 1.918800e-05 1.918754e-05 1.000e-09
2018-10-08 09:07:33.430669 NEMA 15 N 0 -4.306691e-01 -4.306691e-01 1.000e-06
2018-10-08 09:07:24.372165 NEMA - N - - -3.721660e-01 4.537e-03
2018-10-08 09:07:35.000024 PPS 15 N 0 -2.354700e-05 -2.354746e-05 1.000e-09
2018-10-08 09:07:28.000011 PPS - N - - -1.082831e-05 4.102e-06
2018-10-08 09:07:34.375314 NEMA 0 N 0 -3.753141e-01 -3.753141e-01 1.000e-06



statistics log


==============================================================================================================
Date (UTC) Time IP Address Std dev'n Est offset Offset sd Diff freq Est skew Stress Ns Bs Nr
==============================================================================================================
2018-10-08 09:06:21 NEMA 7.560e-03 3.900e-01 6.641e-03 5.314e-04 3.508e-01 2.7e-01 3 0 3
2018-10-08 09:06:23 PPS 6.499e-07 1.127e-04 4.792e-07 3.689e-07 2.840e-05 1.8e-04 3 0 3
2018-10-08 09:06:37 NEMA 7.022e-03 3.842e-01 5.476e-03 3.310e-05 8.235e-03 1.4e-03 4 0 4
2018-10-08 09:06:39 PPS 6.758e-07 1.539e-06 3.757e-07 3.277e-07 8.629e-07 1.4e-03 4 0 3
2018-10-08 09:06:54 NEMA 5.684e-03 3.804e-01 4.000e-03 -7.819e-05 1.740e-03 1.4e-02 5 0 4
2018-10-08 09:06:54 PPS 1.954e-06 1.023e-05 1.086e-06 4.619e-07 8.357e-07 1.6e-01 5 0 3
2018-10-08 09:07:09 NEMA 4.645e-03 3.782e-01 2.833e-03 -1.054e-04 6.861e-04 1.6e-02 6 0 4
2018-10-08 09:07:11 PPS 2.493e-06 1.751e-05 2.239e-06 4.465e-07 6.431e-07 1.8e-02 6 0 4
2018-10-08 09:07:24 NEMA 4.203e-03 3.739e-01 2.364e-03 -1.538e-04 3.976e-04 7.1e-02 7 0 4
2018-10-08 09:07:28 PPS 3.344e-06 2.169e-05 3.742e-06 3.795e-07 5.750e-07 1.0e-01 7 0 5
2018-10-08 09:07:41 NEMA 5.159e-03 3.766e-01 2.798e-03 -6.910e-05 3.527e-04 2.1e-01 8 0 5
2018-10-08 09:07:43 PPS 3.760e-06 2.513e-05 4.886e-06 3.408e-07 4.932e-07 6.7e-02 8 0 3



After 10 mints. The refclock log shows following output:


===============================================================================
Date (UTC) Time Refid DP L P Raw offset Cooked offset Disp.
===============================================================================
2018-10-08 09:32:29.999982 PPS 13 N 0 1.761700e-05 1.761653e-05 1.000e-09
2018-10-08 09:32:30.309141 NEMA 14 N 0 -3.091412e-01 -3.091412e-01 1.000e-06
2018-10-08 09:32:30.999983 PPS 14 N 0 1.716700e-05 1.716653e-05 1.000e-09
2018-10-08 09:32:31.336771 NEMA 15 N 0 -3.367717e-01 -3.367717e-01 1.000e-06
2018-10-08 09:32:23.447775 NEMA - N - - -3.477760e-01 4.679e-03
2018-10-08 09:32:32.000070 PPS 15 N 0 -6.964200e-05 -6.964248e-05 1.000e-09
2018-10-08 09:32:23.000012 PPS - N - - -1.200083e-05 6.034e-06
2018-10-08 09:32:32.375898 NEMA 0 N 0 -3.758982e-01 -3.758982e-01 1.000e-06
2018-10-08 09:32:33.000070 PPS 0 N 0 -6.974900e-05 -6.974948e-05 1.000e-09
2018-10-08 09:32:33.352441 NEMA 1 N 0 -3.524413e-01 -3.524413e-01 1.000e-06
2018-10-08 09:32:34.000011 PPS 1 N 0 -1.115700e-05 -1.115749e-05 1.000e-09
2018-10-08 09:33:25.828062 NEMA 6 N 0 5.199121e+04 5.199121e+04 1.000e-06
2018-10-08 09:33:26.819088 NEMA 7 N 0 5.199122e+04 5.199122e+04 1.000e-06
2018-10-08 09:33:27.828052 NEMA 8 N 0 5.199121e+04 5.199121e+04 1.000e-06
2018-10-08 09:33:28.819344 NEMA 9 N 0 5.199122e+04 5.199122e+04 1.000e-06
2018-10-08 09:33:29.827839 NEMA 10 N 0 5.199121e+04 5.199121e+04 1.000e-06
2018-10-08 09:33:30.819455 NEMA 11 N 0 5.199122e+04 5.199122e+04 1.000e-06
2018-10-08 09:33:31.828761 NEMA 12 N 0 5.199121e+04 5.199121e+04 1.000e-06
2018-10-08 09:33:32.819201 NEMA 13 N 0 5.199122e+04 5.199122e+04 1.000e-06
2018-10-08 09:33:34.828812 NEMA 15 N 0 5.199121e+04 5.199121e+04 1.000e-06
2018-10-08 09:33:29.968618 NEMA - N - - 5.199121e+04 5.359e-03
2018-10-08 09:33:35.829628 NEMA 0 N 0 5.199121e+04 5.199121e+04 1.000e-06
2018-10-08 09:33:36.829893 NEMA 1 N 0 5.199121e+04 5.199121e+04 1.000e-06
2018-10-08 09:33:37.829922 NEMA 2 N 0 5.199121e+04 5.199121e+04 1.000e-06
2018-10-08 09:33:38.829935 NEMA 3 N 0 5.199121e+04 5.199121e+04 1.000e-06
2018-10-08 09:33:40.829681 NEMA 5 N 0 5.199121e+04 5.199121e+04 1.000e-06
2018-10-08 09:33:41.830111 NEMA 6 N 0 5.199121e+04 5.199121e+04 1.000e-06
2018-10-08 09:33:42.829835 NEMA 7 N 0 5.199121e+04 5.199121e+04 1.000e-06
2018-10-08 09:33:44.832557 NEMA 9 N 0 8.639983e+04 8.639983e+04 1.000e-06
2018-10-08 09:33:45.832581 NEMA 10 N 0 8.639983e+04 8.639983e+04 1.000e-06
2018-10-08 09:33:46.833308 NEMA 11 N 0 8.639983e+04 8.639983e+04 1.000e-06
2018-10-08 09:33:47.832688 NEMA 12 N 0 8.639983e+04 8.639983e+04 1.000e-06
===============================================================================
Date (UTC) Time Refid DP L P Raw offset Cooked offset Disp.
===============================================================================
2018-10-08 09:33:48.832499 NEMA 13 N 0 8.639983e+04 8.639983e+04 1.000e-06
2018-10-08 09:33:49.832589 NEMA 14 N 0 8.639983e+04 8.639983e+04 1.000e-06
2018-10-08 09:33:50.823703 NEMA 15 N 0 8.639984e+04 8.639984e+04 1.000e-06
2018-10-08 09:33:42.931268 NEMA - N - - 6.919552e+04 2.884e+03
2018-10-08 09:33:51.832819 NEMA 0 N 0 8.639983e+04 8.639983e+04 1.000e-06
2018-10-08 09:33:52.824609 NEMA 1 N 0 8.639984e+04 8.639984e+04 1.000e-06



The GPS is connected through gpsd using the SOCK driver, and I've confirmed
it is working.


The PPS is attached to /dev/pps0 and I have confirmed it is working for 2 mints:


# ppstest /dev/pps0
trying PPS source "/dev/pps0"
found PPS source "/dev/pps0"
ok, found 1 source(s), now start fetching data...
source 0 - assert 1538989332.000030486, sequence: 77 - clear 1538989331.100020194, sequence: 76
source 0 - assert 1538989332.000030486, sequence: 77 - clear 1538989332.099989206, sequence: 77
source 0 - assert 1538989333.000027868, sequence: 78 - clear 1538989332.099989206, sequence: 77
source 0 - assert 1538989333.000027868, sequence: 78 - clear 1538989333.100026798, sequence: 78
source 0 - assert 1538989334.000034819, sequence: 79 - clear 1538989333.100026798, sequence: 78
source 0 - assert 1538989334.000034819, sequence: 79 - clear 1538989334.100026658, sequence: 79
source 0 - assert 1538989335.000028736, sequence: 80 - clear 1538989334.100026658, sequence: 79
source 0 - assert 1538989335.000028736, sequence: 80 - clear 1538989335.099992945, sequence: 80
source 0 - assert 1538989336.000030023, sequence: 81 - clear 1538989335.099992945, sequence: 80
source 0 - assert 1538989336.000030023, sequence: 81 - clear 1538989336.100039242, sequence: 81
source 0 - assert 1538989337.000030602, sequence: 82 - clear 1538989336.100039242, sequence: 81
source 0 - assert 1538989337.000030602, sequence: 82 - clear 1538989337.100037228, sequence: 82
source 0 - assert 1538989337.999999318, sequence: 83 - clear 1538989337.100037228, sequence: 82
source 0 - assert 1538989337.999999318, sequence: 83 - clear 1538989338.100028954, sequence: 83
source 0 - assert 1538989339.000030054, sequence: 84 - clear 1538989338.100028954, sequence: 83
source 0 - assert 1538989339.000030054, sequence: 84 - clear 1538989339.100027652, sequence: 84
source 0 - assert 1538989340.000032340, sequence: 85 - clear 1538989339.100027652, sequence: 84
source 0 - assert 1538989340.000032340, sequence: 85 - clear 1538989340.100036408, sequence: 85
source 0 - assert 1538989341.000040290, sequence: 86 - clear 1538989340.100036408, sequence: 85
source 0 - assert 1538989341.000040290, sequence: 86 - clear 1538989341.100036915, sequence: 86
source 0 - assert 1538989342.000043465, sequence: 87 - clear 1538989341.100036915, sequence: 86
source 0 - assert 1538989342.000043465, sequence: 87 - clear 1538989342.100037169, sequence: 87
source 0 - assert 1538989343.000030576, sequence: 88 - clear 1538989342.100037169, sequence: 87
source 0 - assert 1538989343.000030576, sequence: 88 - clear 1538989343.100035975, sequence: 88
source 0 - assert 1538989344.000036063, sequence: 89 - clear 1538989343.100035975, sequence: 88
source 0 - assert 1538989344.000036063, sequence: 89 - clear 1538989344.100031717, sequence: 89
source 0 - assert 1538989344.999993916, sequence: 90 - clear 1538989344.100031717, sequence: 89
source 0 - assert 1538989344.999993916, sequence: 90 - clear 1538989345.100033126, sequence: 90
source 0 - assert 1538989345.999995711, sequence: 91 - clear 1538989345.100033126, sequence: 90
source 0 - assert 1538989345.999995711, sequence: 91 - clear 1538989346.100041771, sequence: 91
source 0 - assert 1538989347.000042706, sequence: 92 - clear 1538989346.100041771, sequence: 91
source 0 - assert 1538989347.000042706, sequence: 92 - clear 1538989347.100004091, sequence: 92
source 0 - assert 1538989348.000032496, sequence: 93 - clear 1538989347.100004091, sequence: 92
source 0 - assert 1538989348.000032496, sequence: 93 - clear 1538989348.100041986, sequence: 93
source 0 - assert 1538989349.000034251, sequence: 94 - clear 1538989348.100041986, sequence: 93
source 0 - assert 1538989349.000034251, sequence: 94 - clear 1538989349.100044037, sequence: 94
source 0 - assert 1538989349.999969746, sequence: 95 - clear 1538989349.100044037, sequence: 94
source 0 - assert 1538989349.999969746, sequence: 95 - clear 1538989350.100032890, sequence: 95
source 0 - assert 1538989351.000033760, sequence: 96 - clear 1538989350.100032890, sequence: 95
source 0 - assert 1538989351.000033760, sequence: 96 - clear 1538989351.100041824, sequence: 96
source 0 - assert 1538989352.000033445, sequence: 97 - clear 1538989351.100041824, sequence: 96
source 0 - assert 1538989352.000033445, sequence: 97 - clear 1538989352.100037571, sequence: 97
source 0 - assert 1538989353.000036861, sequence: 98 - clear 1538989352.100037571, sequence: 97
source 0 - assert 1538989353.000036861, sequence: 98 - clear 1538989353.100025857, sequence: 98
source 0 - assert 1538989353.999974979, sequence: 99 - clear 1538989353.100025857, sequence: 98
source 0 - assert 1538989353.999974979, sequence: 99 - clear 1538989354.100032049, sequence: 99
source 0 - assert 1538989355.000038082, sequence: 100 - clear 1538989354.100032049, sequence: 99
source 0 - assert 1538989355.000038082, sequence: 100 - clear 1538989355.100008120, sequence: 100
source 0 - assert 1538989356.000036357, sequence: 101 - clear 1538989355.100008120, sequence: 100
source 0 - assert 1538989356.000036357, sequence: 101 - clear 1538989356.100024625, sequence: 101
source 0 - assert 1538989357.000036617, sequence: 102 - clear 1538989356.100024625, sequence: 101
source 0 - assert 1538989357.000036617, sequence: 102 - clear 1538989357.100035072, sequence: 102
source 0 - assert 1538989357.999998129, sequence: 103 - clear 1538989357.100035072, sequence: 102
source 0 - assert 1538989357.999998129, sequence: 103 - clear 1538989358.100035107, sequence: 103
source 0 - assert 1538989358.999996552, sequence: 104 - clear 1538989358.100035107, sequence: 103
source 0 - assert 1538989358.999996552, sequence: 104 - clear 1538989359.100044830, sequence: 104
source 0 - assert 1538989359.999959692, sequence: 105 - clear 1538989359.100044830, sequence: 104
source 0 - assert 1538989359.999959692, sequence: 105 - clear 1538989360.099976176, sequence: 105
source 0 - assert 1538989361.000042206, sequence: 106 - clear 1538989360.099976176, sequence: 105
source 0 - assert 1538989361.000042206, sequence: 106 - clear 1538989361.100037914, sequence: 106
source 0 - assert 1538989362.000039969, sequence: 107 - clear 1538989361.100037914, sequence: 106
source 0 - assert 1538989362.000039969, sequence: 107 - clear 1538989362.100059917, sequence: 107
source 0 - assert 1538989363.000003249, sequence: 108 - clear 1538989362.100059917, sequence: 107
source 0 - assert 1538989363.000003249, sequence: 108 - clear 1538989363.100033881, sequence: 108
source 0 - assert 1538989364.000044242, sequence: 109 - clear 1538989363.100033881, sequence: 108
source 0 - assert 1538989364.000044242, sequence: 109 - clear 1538989364.100004467, sequence: 109
source 0 - assert 1538989365.000039435, sequence: 110 - clear 1538989364.100004467, sequence: 109
source 0 - assert 1538989365.000039435, sequence: 110 - clear 1538989365.100044617, sequence: 110
source 0 - assert 1538989366.000040007, sequence: 111 - clear 1538989365.100044617, sequence: 110
source 0 - assert 1538989366.000040007, sequence: 111 - clear 1538989366.100037514, sequence: 111
source 0 - assert 1538989367.000040233, sequence: 112 - clear 1538989366.100037514, sequence: 111
source 0 - assert 1538989367.000040233, sequence: 112 - clear 1538989367.100039724, sequence: 112
source 0 - assert 1538989368.000039477, sequence: 113 - clear 1538989367.100039724, sequence: 112
source 0 - assert 1538989368.000039477, sequence: 113 - clear 1538989368.100039865, sequence: 113
source 0 - assert 1538989369.000045992, sequence: 114 - clear 1538989368.100039865, sequence: 113
source 0 - assert 1538989369.000045992, sequence: 114 - clear 1538989369.100038817, sequence: 114
source 0 - assert 1538989370.000036588, sequence: 115 - clear 1538989369.100038817, sequence: 114
source 0 - assert 1538989370.000036588, sequence: 115 - clear 1538989370.100039420, sequence: 115
source 0 - assert 1538989371.000054882, sequence: 116 - clear 1538989370.100039420, sequence: 115
source 0 - assert 1538989371.000054882, sequence: 116 - clear 1538989371.100053352, sequence: 116
source 0 - assert 1538989372.000002667, sequence: 117 - clear 1538989371.100053352, sequence: 116
source 0 - assert 1538989372.000002667, sequence: 117 - clear 1538989372.100040437, sequence: 117
source 0 - assert 1538989373.000049206, sequence: 118 - clear 1538989372.100040437, sequence: 117
source 0 - assert 1538989373.000049206, sequence: 118 - clear 1538989373.099973918, sequence: 118
source 0 - assert 1538989374.000053037, sequence: 119 - clear 1538989373.099973918, sequence: 118
source 0 - assert 1538989374.000053037, sequence: 119 - clear 1538989374.100040007, sequence: 119
source 0 - assert 1538989375.000050347, sequence: 120 - clear 1538989374.100040007, sequence: 119
source 0 - assert 1538989375.000050347, sequence: 120 - clear 1538989375.100039055, sequence: 120
source 0 - assert 1538989376.000043221, sequence: 121 - clear 1538989375.100039055, sequence: 120
source 0 - assert 1538989376.000043221, sequence: 121 - clear 1538989376.100047394, sequence: 121
source 0 - assert 1538989377.000041090, sequence: 122 - clear 1538989376.100047394, sequence: 121
source 0 - assert 1538989377.000041090, sequence: 122 - clear 1538989377.100000469, sequence: 122
source 0 - assert 1538989378.000053223, sequence: 123 - clear 1538989377.100000469, sequence: 122
source 0 - assert 1538989378.000053223, sequence: 123 - clear 1538989378.100042017, sequence: 123
source 0 - assert 1538989379.000042655, sequence: 124 - clear 1538989378.100042017, sequence: 123
source 0 - assert 1538989379.000042655, sequence: 124 - clear 1538989379.100040998, sequence: 124
source 0 - assert 1538989380.000052112, sequence: 125 - clear 1538989379.100040998, sequence: 124
source 0 - assert 1538989380.000052112, sequence: 125 - clear 1538989380.100048373, sequence: 125
source 0 - assert 1538989381.000044215, sequence: 126 - clear 1538989380.100048373, sequence: 125
source 0 - assert 1538989381.000044215, sequence: 126 - clear 1538989381.100050417, sequence: 126
source 0 - assert 1538989381.999968051, sequence: 127 - clear 1538989381.100050417, sequence: 126
source 0 - assert 1538989381.999968051, sequence: 127 - clear 1538989382.100023719, sequence: 127
source 0 - assert 1538989383.000045779, sequence: 128 - clear 1538989382.100023719, sequence: 127
source 0 - assert 1538989383.000045779, sequence: 128 - clear 1538989383.100043301, sequence: 128
source 0 - assert 1538989384.000046601, sequence: 129 - clear 1538989383.100043301, sequence: 128
source 0 - assert 1538989384.000046601, sequence: 129 - clear 1538989384.100045772, sequence: 129
source 0 - assert 1538989385.000055759, sequence: 130 - clear 1538989384.100045772, sequence: 129
source 0 - assert 1538989385.000055759, sequence: 130 - clear 1538989385.100044038, sequence: 130
source 0 - assert 1538989386.000050969, sequence: 131 - clear 1538989385.100044038, sequence: 130
source 0 - assert 1538989386.000050969, sequence: 131 - clear 1538989386.100054125, sequence: 131
source 0 - assert 1538989387.000018993, sequence: 132 - clear 1538989386.100054125, sequence: 131
source 0 - assert 1538989387.000018993, sequence: 132 - clear 1538989387.100026980, sequence: 132
source 0 - assert 1538989388.000059350, sequence: 133 - clear 1538989387.100026980, sequence: 132
source 0 - assert 1538989388.000059350, sequence: 133 - clear 1538989388.100055585, sequence: 133
source 0 - assert 1538989389.000046516, sequence: 134 - clear 1538989388.100055585, sequence: 133
source 0 - assert 1538989389.000046516, sequence: 134 - clear 1538989389.100045938, sequence: 134
source 0 - assert 1538989390.000051066, sequence: 135 - clear 1538989389.100045938, sequence: 134
source 0 - assert 1538989390.000051066, sequence: 135 - clear 1538989390.100048800, sequence: 135
source 0 - assert 1538989391.000052471, sequence: 136 - clear 1538989390.100048800, sequence: 135
source 0 - assert 1538989391.000052471, sequence: 136 - clear 1538989391.100046430, sequence: 136
source 0 - assert 1538989392.000039433, sequence: 137 - clear 1538989391.100046430, sequence: 136
source 0 - assert 1538989392.000039433, sequence: 137 - clear 1538989392.100058423, sequence: 137
source 0 - assert 1538989393.000055527, sequence: 138 - clear 1538989392.100058423, sequence: 137
source 0 - assert 1538989393.000055527, sequence: 138 - clear 1538989393.100055732, sequence: 138
source 0 - assert 1538989394.000060546, sequence: 139 - clear 1538989393.100055732, sequence: 138
source 0 - assert 1538989394.000060546, sequence: 139 - clear 1538989394.100048680, sequence: 139
source 0 - assert 1538989394.999983730, sequence: 140 - clear 1538989394.100048680, sequence: 139
source 0 - assert 1538989394.999983730, sequence: 140 - clear 1538989395.100050746, sequence: 140
source 0 - assert 1538989396.000051875, sequence: 141 - clear 1538989395.100050746, sequence: 140
source 0 - assert 1538989396.000051875, sequence: 141 - clear 1538989396.100059195, sequence: 141
source 0 - assert 1538989397.000024117, sequence: 142 - clear 1538989396.100059195, sequence: 141
source 0 - assert 1538989397.000024117, sequence: 142 - clear 1538989397.100047473, sequence: 142
source 0 - assert 1538989398.000049385, sequence: 143 - clear 1538989397.100047473, sequence: 142
source 0 - assert 1538989398.000049385, sequence: 143 - clear 1538989398.099997127, sequence: 143
source 0 - assert 1538989399.000052900, sequence: 144 - clear 1538989398.099997127, sequence: 143
source 0 - assert 1538989399.000052900, sequence: 144 - clear 1538989399.100047805, sequence: 144
source 0 - assert 1538989400.000061809, sequence: 145 - clear 1538989399.100047805, sequence: 144
source 0 - assert 1538989400.000061809, sequence: 145 - clear 1538989400.100048957, sequence: 145
source 0 - assert 1538989401.000050398, sequence: 146 - clear 1538989400.100048957, sequence: 145
source 0 - assert 1538989401.000050398, sequence: 146 - clear 1538989401.100056587, sequence: 146
source 0 - assert 1538989402.000055520, sequence: 147 - clear 1538989401.100056587, sequence: 146
source 0 - assert 1538989402.000055520, sequence: 147 - clear 1538989402.100050065, sequence: 147
source 0 - assert 1538989403.000063204, sequence: 148 - clear 1538989402.100050065, sequence: 147
source 0 - assert 1538989403.000063204, sequence: 148 - clear 1538989403.100056491, sequence: 148
source 0 - assert 1538989404.000043256, sequence: 149 - clear 1538989403.100056491, sequence: 148
source 0 - assert 1538989404.000043256, sequence: 149 - clear 1538989404.100055024, sequence: 149
source 0 - assert 1538989405.000052799, sequence: 150 - clear 1538989404.100055024, sequence: 149
source 0 - assert 1538989405.000052799, sequence: 150 - clear 1538989405.100055238, sequence: 150
source 0 - assert 1538989406.000045060, sequence: 151 - clear 1538989405.100055238, sequence: 150
source 0 - assert 1538989406.000045060, sequence: 151 - clear 1538989406.100061297, sequence: 151
source 0 - assert 1538989406.999988177, sequence: 152 - clear 1538989406.100061297, sequence: 151
source 0 - assert 1538989406.999988177, sequence: 152 - clear 1538989407.100072544, sequence: 152
source 0 - assert 1538989408.000058548, sequence: 153 - clear 1538989407.100072544, sequence: 152
source 0 - assert 1538989408.000058548, sequence: 153 - clear 1538989408.100061553, sequence: 153
source 0 - assert 1538989409.000056127, sequence: 154 - clear 1538989408.100061553, sequence: 153
source 0 - assert 1538989409.000056127, sequence: 154 - clear 1538989409.099985809, sequence: 154
source 0 - assert 1538989410.000064271, sequence: 155 - clear 1538989409.099985809, sequence: 154
source 0 - assert 1538989410.000064271, sequence: 155 - clear 1538989410.099978541, sequence: 155
source 0 - assert 1538989411.000008139, sequence: 156 - clear 1538989410.099978541, sequence: 155
source 0 - assert 1538989411.000008139, sequence: 156 - clear 1538989411.100057623, sequence: 156
source 0 - assert 1538989412.000054635, sequence: 157 - clear 1538989411.100057623, sequence: 156
source 0 - assert 1538989412.000054635, sequence: 157 - clear 1538989412.100055450, sequence: 157
source 0 - assert 1538989413.000056955, sequence: 158 - clear 1538989412.100055450, sequence: 157
source 0 - assert 1538989413.000056955, sequence: 158 - clear 1538989413.100068959, sequence: 158
source 0 - assert 1538989414.000055250, sequence: 159 - clear 1538989413.100068959, sequence: 158
source 0 - assert 1538989414.000055250, sequence: 159 - clear 1538989414.100062260, sequence: 159
source 0 - assert 1538989415.000068128, sequence: 160 - clear 1538989414.100062260, sequence: 159
source 0 - assert 1538989415.000068128, sequence: 160 - clear 1538989415.100066289, sequence: 160
source 0 - assert 1538989416.000063046, sequence: 161 - clear 1538989415.100066289, sequence: 160
source 0 - assert 1538989416.000063046, sequence: 161 - clear 1538989416.100053591, sequence: 161
source 0 - assert 1538989417.000055051, sequence: 162 - clear 1538989416.100053591, sequence: 161
source 0 - assert 1538989417.000055051, sequence: 162 - clear 1538989417.100047715, sequence: 162
source 0 - assert 1538989418.000056941, sequence: 163 - clear 1538989417.100047715, sequence: 162
source 0 - assert 1538989418.000056941, sequence: 163 - clear 1538989418.100064132, sequence: 163
source 0 - assert 1538989419.000057197, sequence: 164 - clear 1538989418.100064132, sequence: 163
source 0 - assert 1538989419.000057197, sequence: 164 - clear 1538989419.100024046, sequence: 164
source 0 - assert 1538989420.000058380, sequence: 165 - clear 1538989419.100024046, sequence: 164
source 0 - assert 1538989420.000058380, sequence: 165 - clear 1538989420.100065410, sequence: 165
source 0 - assert 1538989421.000058814, sequence: 166 - clear 1538989420.100065410, sequence: 165
source 0 - assert 1538989421.000058814, sequence: 166 - clear 1538989421.100064848, sequence: 166
source 0 - assert 1538989422.000065014, sequence: 167 - clear 1538989421.100064848, sequence: 166
source 0 - assert 1538989422.000065014, sequence: 167 - clear 1538989422.100064953, sequence: 167
source 0 - assert 1538989423.000058520, sequence: 168 - clear 1538989422.100064953, sequence: 167
source 0 - assert 1538989423.000058520, sequence: 168 - clear 1538989423.100022621, sequence: 168
source 0 - assert 1538989424.000023825, sequence: 169 - clear 1538989423.100022621, sequence: 168
source 0 - assert 1538989424.000023825, sequence: 169 - clear 1538989424.100063583, sequence: 169
source 0 - assert 1538989425.000051266, sequence: 170 - clear 1538989424.100063583, sequence: 169
source 0 - assert 1538989425.000051266, sequence: 170 - clear 1538989425.100057561, sequence: 170
source 0 - assert 1538989426.000070860, sequence: 171 - clear 1538989425.100057561, sequence: 170
source 0 - assert 1538989426.000070860, sequence: 171 - clear 1538989426.100048359, sequence: 171
source 0 - assert 1538989427.000060842, sequence: 172 - clear 1538989426.100048359, sequence: 171
source 0 - assert 1538989427.000060842, sequence: 172 - clear 1538989427.100063569, sequence: 172
time_pps_fetch() error -1 (Connection timed out)
time_pps_fetch() error -1 (Connection timed out)
time_pps_fetch() error -1 (Connection timed out)
time_pps_fetch() error -1 (Connection timed out)
time_pps_fetch() error -1 (Connection timed out)
time_pps_fetch() error -1 (Connection timed out)

I don't know what is problem. I am totally stuck figuring out how to fix that ?

________________________________
From: Miroslav Lichvar <***@redhat.com>
Sent: Monday, October 8, 2018 1:45:15 PM
To: chrony-***@chrony.tuxfamily.org
Subject: Re: [chrony-users] Help Chrony synchronization(connectivity) is lost after 10 to 15 minutes.
Post by Munsif ALI
I have used for logging sensor data while not connected to the Internet.I want to use a GPS receiver<https://m.ipc2u.com/catalog/gps-721> for the time synchronization. I would like to use gpsd and chrony to achieve this.
When I run chronyc tracking and chronyc sources it looks like the my machine is connecting to GPS.
Reference ID : 116.122.250.120 (116.122.250.120)
Stratum : 1
The Reference ID indicates chrony is synchronized to an NTP server,
but stratum is of a reference clock, and your config doesn't have an
NTP server. Was it combined from two different tracking outputs?
Post by Munsif ALI
210 Number of sources = 1
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
#* SOCK 0 4 7 10 -12us[ +561us] +/- 15us
When we start the GPS chronyc sources -v says chrony is synchronized the gps sock... here is the output of chronyc sources.
After 5 to 10 mints chronyc sources -v command says GPS in not synchronized
The problem can either be that chrony is receiving measurements from
gpsd but for some reason is ignoring them, or gpsd stops providing the
measurements.

Can you please add "log refclocks statistics" to your chrony.conf,
restart chronyd and gpsd, let it run for few minutes, and post the
logs here?

--
Miroslav Lichvar

--
To unsubscribe email chrony-users-***@chrony.tuxfamily.org
with "unsubscribe" in the subject.
For help email chrony-users-***@chrony.tuxfamily.org
with "help" in the subject.
Trouble? Email ***@chrony.tuxfamily.org.
Miroslav Lichvar
2018-10-08 10:44:11 UTC
Permalink
Post by Munsif ALI
2018-10-08 09:32:32.375898 NEMA 0 N 0 -3.758982e-01 -3.758982e-01 1.000e-06
2018-10-08 09:32:33.000070 PPS 0 N 0 -6.974900e-05 -6.974948e-05 1.000e-09
2018-10-08 09:32:33.352441 NEMA 1 N 0 -3.524413e-01 -3.524413e-01 1.000e-06
2018-10-08 09:32:34.000011 PPS 1 N 0 -1.115700e-05 -1.115749e-05 1.000e-09
2018-10-08 09:33:25.828062 NEMA 6 N 0 5.199121e+04 5.199121e+04 1.000e-06
2018-10-08 09:33:26.819088 NEMA 7 N 0 5.199122e+04 5.199122e+04 1.000e-06
This is very strange. It looks like the time reported by the GPS
is suddenly off by ~14.4 hours.
Post by Munsif ALI
2018-10-08 09:33:42.829835 NEMA 7 N 0 5.199121e+04 5.199121e+04 1.000e-06
2018-10-08 09:33:44.832557 NEMA 9 N 0 8.639983e+04 8.639983e+04 1.000e-06
And here it is almost exactly 24 hours off.

I think that indicates a firmware bug in the GPS. Is there a firmware
update you could apply?

I'd suggest to ask on the gpsd-users mailing lists and see if anyone
has experience with this device.
--
Miroslav Lichvar
--
To unsubscribe email chrony-users-***@chrony.tuxfamily.org
with "unsubscribe" in the subject.
For help email chrony-users-***@chrony.tuxfamily.org
with "help" in the subject.
Trouble? Email ***@chrony.tuxfamily.org.
Munsif ALI
2018-10-09 10:17:53 UTC
Permalink
Miroslav lichvar thanks for the reponse.

I don't think it is a firmware bug in GPS because I have made a little program(using c++ language) which is receiving SIGIO signal via serial port and it continuously receiving GPS and PPS data.


I have installed pps-tool, when I run ppstest /dev/pps0 command it is fetching data for 2 mints and after that pps0 says connection time out error.

I don't know the actual problem why ppstest /dev/pps0 command stop receiving PPS data while I am receiving SIGIO pulse in my program ?

________________________________
From: Miroslav Lichvar <***@redhat.com>
Sent: Monday, October 8, 2018 3:44:11 PM
To: chrony-***@chrony.tuxfamily.org
Subject: Re: [chrony-users] Help Chrony synchronization(connectivity) is lost after 10 to 15 minutes.
Post by Munsif ALI
2018-10-08 09:32:32.375898 NEMA 0 N 0 -3.758982e-01 -3.758982e-01 1.000e-06
2018-10-08 09:32:33.000070 PPS 0 N 0 -6.974900e-05 -6.974948e-05 1.000e-09
2018-10-08 09:32:33.352441 NEMA 1 N 0 -3.524413e-01 -3.524413e-01 1.000e-06
2018-10-08 09:32:34.000011 PPS 1 N 0 -1.115700e-05 -1.115749e-05 1.000e-09
2018-10-08 09:33:25.828062 NEMA 6 N 0 5.199121e+04 5.199121e+04 1.000e-06
2018-10-08 09:33:26.819088 NEMA 7 N 0 5.199122e+04 5.199122e+04 1.000e-06
This is very strange. It looks like the time reported by the GPS
is suddenly off by ~14.4 hours.
Post by Munsif ALI
2018-10-08 09:33:42.829835 NEMA 7 N 0 5.199121e+04 5.199121e+04 1.000e-06
2018-10-08 09:33:44.832557 NEMA 9 N 0 8.639983e+04 8.639983e+04 1.000e-06
And here it is almost exactly 24 hours off.

I think that indicates a firmware bug in the GPS. Is there a firmware
update you could apply?

I'd suggest to ask on the gpsd-users mailing lists and see if anyone
has experience with this device.

--
Miroslav Lichvar

--
To unsubscribe email chrony-users-***@chrony.tuxfamily.org
with "unsubscribe" in the subject.
For help email chrony-users-***@chrony.tuxfamily.org
with "help" in the subject.
Trouble? Email ***@chrony.tuxfamily.org.
Miroslav Lichvar
2018-10-09 10:49:36 UTC
Permalink
Post by Munsif ALI
I don't think it is a firmware bug in GPS because I have made a little program(using c++ language) which is receiving SIGIO signal via serial port and it continuously receiving GPS and PPS data.
If you disable your program and chronyd, and run only gpsd, does the
date and time reported in GPRMC messages stay correct for at least 20
minutes?

You can print it like this:

$ gpspipe -r | grep --line-buffered GPRMC | awk -F , '{print $10, $2}'
091018 104838
091018 104839
091018 104840
091018 104841
091018 104842
--
Miroslav Lichvar
--
To unsubscribe email chrony-users-***@chrony.tuxfamily.org
with "unsubscribe" in the subject.
For help email chrony-users-***@chrony.tuxfamily.org
with "help" in the subject.
Trouble? Email ***@chrony.tuxfamily.org.
Munsif ALI
2018-10-10 09:48:25 UTC
Permalink
I have disabled chronyd, and run gpsd.

# gpspipe -r | grep --line-buffered GPRMC | awk -F , '{print $10, $2}'
---------------------------------------------------------------------------------------------
101018 040354.000
101018 040355.000
101018 040357.000
101018 040358.000
101018 040359.000
101018 040400.000
101018 040401.000
101018 040402.000
101018 040403.000
101018 040405.000
101018 040406.000
101018 040407.000
101018 040408.000
101018 040409.000
101018 040410.000
101018 040411.000
101018 040412.000
101018 040413.000
101018 040415.000
101018 040416.000
101018 040417.000
101018 040418.000
101018 040419.000
101018 040420.000
101018 040422.000
101018 040423.000
101018 040426.000
101018 040427.000
101018 040429.000
101018 040431.000
101018 040432.000
101018 040433.000
101018 040434.000
101018 040435.000
101018 040436.000
101018 040437.000
101018 040438.000
101018 040439.000
101018 040441.000
101018 040442.000
101018 040444.000
101018 040445.000
101018 040446.000
101018 040448.000
101018 040449.000
101018 040451.000
101018 040452.000
101018 040453.000
101018 040455.000
101018 040456.000
101018 040457.000
101018 040458.000
101018 040459.000
101018 040501.000
101018 040502.000
101018 040510.000
101018 040512.000
101018 040513.000
101018 040514.000
101018 040515.000
101018 040516.000
101018 040518.000
101018 040519.000
101018 040520.000
101018 040523.000
101018 040527.000
101018 040528.000
101018 040529.000
101018 040530.000
101018 040531.000
101018 040532.000
101018 040534.000
101018 040535.000
101018 040536.000
101018 040537.000
101018 040538.000
101018 040539.000
101018 040540.000
101018 040541.000
101018 040544.000
101018 040545.000
101018 040547.000
101018 040548.000
101018 040549.000
101018 040550.000
101018 040551.000
101018 040552.000
101018 040553.000
101018 040554.000
101018 040555.000
101018 040559.000
101018 040602.000
101018 040603.000
101018 040604.000
101018 040605.000
101018 040606.000
101018 040607.000
101018 040632.000
101018 040634.000
101018 040650.000
101018 040651.000
101018 040653.000
101018 040654.000
101018 040656.000
101018 040657.000
101018 040700.000
101018 040701.000
101018 040703.000
101018 040704.000
101018 040705.000
101018 040707.000
101018 040709.000
101018 040710.000
101018 040712.000
101018 040713.000
101018 040714.000
101018 040715.000
101018 040717.000
101018 040718.000
101018 040720.000
101018 040721.000
101018 040722.000
101018 040723.000
101018 040724.000
101018 040725.000
101018 040727.000
101018 040729.000
101018 040730.000
101018 040731.000
101018 040733.000
101018 040734.000
101018 040735.000
101018 040737.000
101018 040739.000
101018 040740.000
101018 040741.000
101018 040742.000
101018 040745.000
101018 040747.000
101018 040748.000
101018 040749.000
101018 040750.000
101018 040751.000
101018 040752.000
101018 040753.000
101018 040754.000
101018 040755.000
101018 040756.000
101018 040758.000
101018 040759.000
101018 040800.000
101018 040806.000
101018 040808.000
101018 040809.000
101018 040810.000
101018 040811.000
101018 040813.000
101018 040814.000
101018 040815.000
101018 040816.000
101018 040817.000
101018 040818.000
101018 040819.000
101018 040821.000
101018 040822.000
101018 040824.000
101018 040826.000
101018 040827.000
101018 040828.000
101018 040829.000
101018 040831.000
101018 040832.000
101018 040833.000
101018 040834.000
101018 040835.000
101018 040836.000
101018 040838.000
101018 040839.000
101018 040840.000
101018 040841.000
101018 040842.000
101018 040843.000
101018 040844.000
101018 040846.000
101018 040848.000
101018 040852.000
101018 040853.000
101018 040855.000
101018 040857.000
101018 040858.000
101018 040859.000
101018 040900.000
101018 040902.000
101018 040903.000
101018 040904.000
101018 040905.000
101018 040906.000
101018 040907.000
101018 040909.000
101018 040910.000
101018 040912.000
101018 040914.000
101018 040915.000
101018 040916.000
101018 040917.000
101018 040918.000
101018 040920.000
101018 040943.000
101018 040944.000
101018 040945.000
101018 040947.000
101018 041000.000
101018 041002.000
101018 041003.000
101018 041004.000
101018 041006.000
101018 041007.000
101018 041008.000
101018 041009.000
101018 041010.000
101018 041011.000
101018 041012.000
101018 041013.000
101018 041014.000
101018 041015.000
101018 041016.000
101018 041018.000
101018 041019.000
101018 041020.000
101018 041021.000
101018 041022.000
101018 041023.000
101018 041024.000
101018 041025.000
101018 041026.000
101018 041027.000
101018 041028.000
101018 041029.000
101018 041030.000
101018 041031.000
101018 041032.000
101018 041033.000
101018 041034.000
101018 041036.000
101018 041037.000
101018 041038.000
101018 041040.000
101018 041041.000
101018 041043.000
101018 041045.000
101018 041046.000
101018 041048.000
101018 041050.000
101018 041051.000
101018 041052.000
101018 041053.000
101018 041054.000
101018 041055.000
101018 041056.000
101018 041057.000
101018 041058.000
101018 041059.000
101018 041100.000
101018 041101.000
101018 041103.000
101018 041104.000
101018 041105.000
101018 041106.000
101018 041107.000
101018 041108.000
101018 041110.000
101018 041111.000
101018 041112.000
101018 041113.000
101018 041114.000
101018 041116.000
101018 041117.000
101018 041119.000
101018 041120.000
101018 041125.000
101018 041126.000
101018 041127.000
101018 041130.000
101018 041132.000
101018 041133.000
101018 041134.000
101018 041135.000
101018 041137.000
101018 041138.000
101018 041139.000
101018 041141.000
101018 041142.000
101018 041143.000
101018 041145.000
101018 041146.000
101018 041147.000
101018 041150.000
101018 041151.000
101018 041152.000
101018 041155.000
101018 041157.000
101018 041158.000
101018 041159.000
101018 041200.000
101018 041201.000
101018 041202.000
101018 041204.000
101018 041209.000
101018 041210.000
101018 041212.000
101018 041214.000
101018 041215.000
101018 041216.000
101018 041217.000
101018 041218.000
101018 041219.000
101018 041220.000
101018 041221.000
101018 041222.000
101018 041223.000
101018 041224.000
101018 041225.000
101018 041226.000
101018 041227.000
101018 041228.000
101018 041229.000
101018 041231.000
101018 041232.000
101018 041258.000
101018 041259.000
101018 041300.000
101018 041301.000
101018 041302.000
101018 041304.000
101018 041317.000
101018 041319.000
101018 041320.000
101018 041321.000
101018 041322.000
101018 041324.000
101018 041325.000
101018 041326.000
101018 041327.000
101018 041328.000
101018 041330.000
101018 041331.000
101018 041332.000
101018 041333.000
101018 041335.000
101018 041336.000
101018 041337.000
101018 041338.000
101018 041339.000
101018 041340.000
101018 041341.000
101018 041343.000
101018 041344.000
101018 041346.000
101018 041347.000
101018 041349.000
101018 041350.000
101018 041352.000
101018 041353.000
101018 041355.000
101018 041356.000
101018 041357.000
101018 041358.000
101018 041359.000
101018 041400.000
101018 041402.000
101018 041406.000
101018 041407.000
101018 041408.000
101018 041409.000
101018 041410.000
101018 041411.000
101018 041412.000
101018 041413.000
101018 041415.000
101018 041417.000
101018 041418.000
101018 041420.000
101018 041423.000
101018 041424.000
101018 041425.000
101018 041426.000
101018 041427.000
101018 041428.000
101018 041429.000
101018 041430.000
101018 041431.000
101018 041432.000
101018 041438.000
101018 041439.000
101018 041440.000
101018 041441.000
101018 041443.000
101018 041444.000
101018 041445.000
101018 041447.000
101018 041448.000
101018 041450.000
101018 041451.000
101018 041453.000
101018 041456.000
101018 041457.000
101018 041458.000
101018 041459.000
101018 041500.000
101018 041501.000
101018 041502.000
101018 041504.000
101018 041505.000
101018 041506.000
101018 041510.000
101018 041512.000
101018 041513.000
101018 041514.000
101018 041515.000
101018 041517.000
101018 041518.000
101018 041519.000
101018 041520.000
101018 041521.000
101018 041523.000
101018 041525.000
101018 041527.000
101018 041528.000
101018 041529.000
101018 041530.000
101018 041531.000
101018 041533.000
101018 041534.000
101018 041535.000
101018 041536.000
101018 041538.000
101018 041601.000
101018 041602.000
101018 041603.000
101018 041618.000
101018 041619.000
101018 041620.000
101018 041624.000
101018 041625.000
101018 041626.000
101018 041627.000
101018 041629.000
101018 041630.000
101018 041632.000
101018 041633.000
101018 041634.000
101018 041635.000
101018 041636.000
101018 041637.000
101018 041638.000
101018 041639.000
101018 041640.000
101018 041641.000
101018 041642.000
101018 041644.000
101018 041645.000
101018 041649.000
101018 041650.000
101018 041653.000
101018 041654.000
101018 041658.000
101018 041659.000
101018 041700.000
101018 041703.000
101018 041704.000
101018 041705.000
101018 041706.000
101018 041707.000
101018 041708.000
101018 041709.000
101018 041710.000
101018 041711.000
101018 041712.000
101018 041713.000
101018 041715.000
101018 041716.000
101018 041717.000
101018 041718.000
101018 041719.000
101018 041720.000
101018 041721.000
101018 041722.000
101018 041723.000
101018 041725.000
101018 041726.000
101018 041727.000
101018 041728.000
101018 041734.000
101018 041736.000
101018 041738.000
101018 041739.000
101018 041740.000
101018 041741.000
101018 041746.000
101018 041747.000
101018 041748.000
101018 041749.000
101018 041750.000
101018 041751.000
101018 041752.000
101018 041754.000
101018 041755.000
101018 041756.000
101018 041758.000
101018 041759.000
101018 041800.000
101018 041801.000
101018 041802.000
101018 041803.000
101018 041804.000
101018 041805.000
101018 041806.000
101018 041807.000
101018 041808.000
101018 041809.000
101018 041810.000
101018 041811.000
101018 041812.000
101018 041814.000
101018 041815.000
101018 041817.000
101018 041818.000
101018 041819.000
101018 041821.000
101018 041822.000
101018 041823.000
101018 041824.000
101018 041826.000
101018 041828.000
101018 041829.000
101018 041830.000
101018 041832.000
101018 041834.000
101018 041835.000
101018 041836.000
101018 041839.000
101018 041842.000
101018 041843.000
101018 041845.000
101018 041846.000
101018 041847.000
101018 041849.000
101018 041850.000
101018 041851.000
101018 041852.000
101018 041853.000
101018 041918.000
101018 041920.000
101018 041933.000
101018 041934.000
101018 041936.000
101018 041937.000
101018 041938.000
101018 041939.000
101018 041940.000
101018 041942.000
101018 041943.000
101018 041945.000
101018 041947.000
101018 041948.000
101018 041949.000
101018 041950.000
101018 041951.000
101018 041952.000
101018 041953.000
101018 041957.000
101018 041958.000
101018 042000.000
101018 042002.000
101018 042003.000
101018 042004.000
101018 042005.000
101018 042006.000
101018 042007.000
101018 042008.000
101018 042009.000
101018 042010.000
101018 042012.000
101018 042013.000
101018 042015.000
101018 042018.000
101018 042019.000
101018 042020.000
101018 042021.000
101018 042022.000
101018 042023.000
101018 042025.000
101018 042026.000
101018 042027.000
101018 042028.000
101018 042029.000
101018 042031.000
101018 042032.000
101018 042033.000
101018 042034.000
101018 042036.000
101018 042037.000
101018 042038.000
101018 042040.000
101018 042042.000
101018 042043.000
101018 042044.000
101018 042046.000
101018 042047.000
101018 042048.000
101018 042049.000
101018 042050.000
101018 042052.000
101018 042057.000
101018 042059.000
101018 042100.000
101018 042101.000
101018 042102.000
101018 042103.000
101018 042104.000
101018 042105.000
101018 042106.000
101018 042109.000
101018 042110.000
101018 042111.000
101018 042112.000
101018 042113.000
101018 042114.000
101018 042115.000
101018 042116.000
101018 042117.000
101018 042118.000
101018 042119.000
101018 042120.000
101018 042121.000
101018 042123.000
101018 042124.000
101018 042125.000
101018 042126.000
101018 042128.000
101018 042129.000
101018 042130.000
101018 042132.000
101018 042133.000
101018 042134.000
101018 042136.000
101018 042137.000
101018 042138.000
101018 042139.000
101018 042141.000
101018 042143.000
101018 042144.000
101018 042145.000
101018 042146.000
101018 042147.000
101018 042148.000
101018 042150.000
101018 042153.000
101018 042154.000
101018 042155.000
101018 042157.000
101018 042158.000
101018 042201.000
101018 042202.000
101018 042203.000
101018 042204.000
101018 042205.000
101018 042206.000
101018 042207.000
101018 042230.000
101018 042232.000
101018 042233.000
101018 042234.000
101018 042235.000
101018 042236.000
101018 042249.000
101018 042250.000
101018 042251.000
101018 042252.000
101018 042253.000
101018 042254.000
101018 042257.000
101018 042258.000
101018 042259.000
101018 042303.000
101018 042305.000
101018 042306.000
101018 042307.000
101018 042308.000
101018 042309.000
101018 042310.000
101018 042312.000
101018 042313.000
101018 042314.000
101018 042315.000
101018 042316.000
101018 042319.000
101018 042320.000
101018 042321.000
101018 042322.000
101018 042323.000
101018 042325.000
101018 042327.000
101018 042328.000
101018 042329.000
101018 042330.000
101018 042331.000
101018 042332.000
101018 042333.000
101018 042334.000
101018 042335.000
101018 042337.000
101018 042338.000
101018 042340.000
101018 042342.000
101018 042343.000
101018 042344.000
101018 042345.000
101018 042346.000
101018 042347.000
101018 042348.000
101018 042349.000
101018 042350.000
101018 042352.000
101018 042353.000
101018 042356.000
101018 042357.000
101018 042358.000
101018 042359.000
101018 042400.000
101018 042401.000
101018 042402.000
101018 042403.000
101018 042404.000
101018 042407.000
101018 042408.000
101018 042409.000
101018 042410.000
101018 042412.000
101018 042413.000
101018 042415.000
101018 042418.000
101018 042419.000
101018 042420.000
101018 042421.000
101018 042428.000
101018 042430.000
101018 042431.000
101018 042432.000
101018 042433.000
101018 042435.000
101018 042436.000
101018 042437.000
101018 042438.000
101018 042440.000
101018 042442.000
101018 042443.000
101018 042447.000
101018 042448.000
101018 042449.000
101018 042450.000
101018 042452.000
101018 042453.000
101018 042455.000
101018 042456.000
101018 042458.000
101018 042459.000
101018 042500.000
101018 042501.000
101018 042503.000
101018 042504.000
101018 042505.000
101018 042507.000
101018 042508.000
101018 042510.000
101018 042511.000
101018 042512.000
101018 042514.000
101018 042515.000
101018 042516.000
101018 042518.000
101018 042519.000
101018 042520.000
101018 042523.000
101018 042524.000
101018 042526.000
---------------------------------------------------------------------------------------------
#gpspipe -r

Output of gpspipe -r command is in file please find the attachment.


________________________________
From: Miroslav Lichvar <***@redhat.com>
Sent: Tuesday, October 9, 2018 3:49:36 PM
To: chrony-***@chrony.tuxfamily.org
Subject: Re: [chrony-users] Help Chrony synchronization(connectivity) is lost after 10 to 15 minutes.
Post by Munsif ALI
I don't think it is a firmware bug in GPS because I have made a little program(using c++ language) which is receiving SIGIO signal via serial port and it continuously receiving GPS and PPS data.
If you disable your program and chronyd, and run only gpsd, does the
date and time reported in GPRMC messages stay correct for at least 20
minutes?

You can print it like this:

$ gpspipe -r | grep --line-buffered GPRMC | awk -F , '{print $10, $2}'
091018 104838
091018 104839
091018 104840
091018 104841
091018 104842

--
Miroslav Lichvar

--
To unsubscribe email chrony-users-***@chrony.tuxfamily.org
with "unsubscribe" in the subject.
For help email chrony-users-***@chrony.tuxfamily.org
with "help" in the subject.
Trouble? Email ***@chrony.tuxfamily.org.
Miroslav Lichvar
2018-10-10 09:58:12 UTC
Permalink
Post by Munsif ALI
I have disabled chronyd, and run gpsd.
# gpspipe -r | grep --line-buffered GPRMC | awk -F , '{print $10, $2}'
---------------------------------------------------------------------------------------------
101018 040354.000
101018 040355.000
101018 040357.000
101018 040358.000
...
Post by Munsif ALI
101018 042520.000
101018 042523.000
101018 042524.000
101018 042526.000
That looks good.

Now, if you enable chronyd and/or your program, is the gpspipe output
still ok?

Do you see any messages from chronyd in syslog?
--
Miroslav Lichvar
--
To unsubscribe email chrony-users-***@chrony.tuxfamily.org
with "unsubscribe" in the subject.
For help email chrony-users-***@chrony.tuxfamily.org
with "help" in the subject.
Trouble? Email ***@chrony.tuxfamily.org.
Munsif ALI
2018-10-10 10:35:15 UTC
Permalink
Have you seen this. still that looks good ?
101018 040800.000 <-- skipped 6 seconds
101018 040806.000
101018 040808.000
101018 040809.000
...
101018 040918.000
101018 040920.000
101018 040943.000
101018 040944.000
101018 040945.000
101018 040947.000 <--- skipped 13 seconds
101018 041000.000
101018 041002.000
101018 041003.000
101018 041004.000
101018 041006.000
________________________________
From: Miroslav Lichvar <***@redhat.com>
Sent: Wednesday, October 10, 2018 2:58:12 PM
To: chrony-***@chrony.tuxfamily.org
Subject: Re: [chrony-users] Help Chrony synchronization(connectivity) is lost after 10 to 15 minutes.
I have disabled chronyd, and run gpsd.
# gpspipe -r | grep --line-buffered GPRMC | awk -F , '{print $10, $2}'
---------------------------------------------------------------------------------------------
101018 040354.000
101018 040355.000
101018 040357.000
101018 040358.000
...
101018 042520.000
101018 042523.000
101018 042524.000
101018 042526.000
That looks good.

Now, if you enable chronyd and/or your program, is the gpspipe output
still ok?

Do you see any messages from chronyd in syslog?

--
Miroslav Lichvar

--
To unsubscribe email chrony-users-***@chrony.tuxfamily.org
with "unsubscribe" in the subject.
For help email chrony-users-***@chrony.tuxfamily.org
with "help" in the subject.
Trouble? Email ***@chrony.tuxfamily.org.
Miroslav Lichvar
2018-10-10 10:49:29 UTC
Permalink
Post by Munsif ALI
Have you seen this. still that looks good ?
101018 040800.000 <-- skipped 6 seconds
101018 040806.000
I think that could explain the timeouts on the PPS device, but
probably not the huge step of the NMEA refclock.

You might want to ask people on the gpsd-users list.
--
Miroslav Lichvar
--
To unsubscribe email chrony-users-***@chrony.tuxfamily.org
with "unsubscribe" in the subject.
For help email chrony-users-***@chrony.tuxfamily.org
with "help" in the subject.
Trouble? Email ***@chrony.tuxfamily.org.
Bill Unruh
2018-10-09 13:11:47 UTC
Permalink
William G. Unruh __| Canadian Institute for|____ Tel: +1(604)822-3273
Physics&Astronomy _|___ Advanced Research _|____ Fax: +1(604)822-5324
UBC, Vancouver,BC _|_ Program in Cosmology |____ ***@physics.ubc.ca
Canada V6T 1Z1 ____|____ and Gravity ______|_ www.theory.physics.ubc.ca/
Post by Munsif ALI
Miroslav lichvar thanks for the reponse.
I don't think it is a firmware bug in GPS because I have made a little program(using c++
language) which is receiving SIGIO signal via serial port and it continuously receiving  GPS
and PPS data.
Since we have no idea what your little program is or what it does, it is
really hard to know what this means.
Post by Munsif ALI
I have installed pps-tool, when I run ppstest /dev/pps0 command it is fetching data for 2 mints
and after that  pps0 says connection time out error.
Which tells me that what is wrong has nothing to do with chrony, but is
further back along the chain. Either you have found a kernel bug, or you have
a defective gps receiver.
Post by Munsif ALI
I don't know the actual problem why ppstest /dev/pps0 command stop receiving PPS data while I
am receiving SIGIO pulse in my program ?
_______________________________________________________________________________________________
Sent: Monday, October 8, 2018 3:44:11 PM
Subject: Re: [chrony-users] Help Chrony synchronization(connectivity) is lost after 10 to 15
minutes.  
2018-10-08 09:32:32.375898 NEMA    0 N 0 -3.758982e-01 -3.758982e-01  1.000e-06
2018-10-08 09:32:33.000070 PPS     0 N 0 -6.974900e-05 -6.974948e-05  1.000e-09
2018-10-08 09:32:33.352441 NEMA    1 N 0 -3.524413e-01 -3.524413e-01  1.000e-06
2018-10-08 09:32:34.000011 PPS     1 N 0 -1.115700e-05 -1.115749e-05  1.000e-09
2018-10-08 09:33:25.828062 NEMA    6 N 0  5.199121e+04  5.199121e+04  1.000e-06
2018-10-08 09:33:26.819088 NEMA    7 N 0  5.199122e+04  5.199122e+04  1.000e-06
This is very strange. It looks like the time reported by the GPS
is suddenly off by ~14.4 hours.
2018-10-08 09:33:42.829835 NEMA    7 N 0  5.199121e+04  5.199121e+04  1.000e-06
2018-10-08 09:33:44.832557 NEMA    9 N 0  8.639983e+04  8.639983e+04  1.000e-06
And here it is almost exactly 24 hours off.
I think that indicates a firmware bug in the GPS. Is there a firmware
update you could apply?
I'd suggest to ask on the gpsd-users mailing lists and see if anyone
has experience with this device.
--
Miroslav Lichvar
--
with "unsubscribe" in the subject.
with "help" in the subject.
Loading...