Re: [chrony-users] Application requires frequency accuracy but not time accuracy |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Application requires frequency accuracy but not time accuracy
- From: Brian Morgan <oopfan@xxxxxxxxxxxxx>
- Date: Mon, 30 Sep 2019 16:13:51 -0400
- Authentication-results: mta2.srv.hcvlny.cv.net smtp.user=oopfan; auth=pass (LOGIN)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=optonline.net; s=dkim-001; t=1569874431; bh=gXayLmvfYtrXW+vB3MYZ2OtdY/tX9nA/Mz4ytTUekao=; h=Subject:From:To:Message-ID:Date; b=PBVeBUX2ShAlUHrtiLmni417RaO/GpCnA3oCl1ScrG73ZYPlqjTrwZM9L7tcFtbp4 RPPR5gf295poSFVGtLySM7UWxtT6HjPrS7PcSHduXqTX7DE9on7v8uUlLlK59HBTd+ 0DmS1pB8UvFDdWribbD4Ang9GpgKPpdfxMo/7Z+sRKOCe/cLit+gBMw+se/Mt1tcAi A5T2BDL6OvLLi6nFwZYBtkIJBRnltj0NDP2JzU4aLMTU3KnnxveYEVRkZv3QxeK93g sVnMnrrrl4w1zNuKY0X0qRfTdTqDpvkRKe+04QXl1vgAwZikuOTmmsDdtzEQtH9BR0 cJWKRI/Y29O5w==
I just finished testing but first let me apologize for my idiotic
expectation that Chrony should have a good estimate of the current time
at boot-up. Not possible because the Pi is completely isolated.
Here is the log of events as I observed them using "chronyc sourcestats"
and a reliable timepiece:
Freq, Elapsed Time, Comment
, 00:00, Power-up
, 01:20, GPS fix
+10911, 06:30, Date set!
+5562, 08:29
+3089, 10:46
+2363, 12:57
+1177, 15:02
+942, 17:08
+14.46, 20:44
+12.27, n/a
+5.02, n/a
+0.26, 26:20
-5.90, n/a
-10.29, 31:20
-1.53, 32:20
-0.05, n/a
+0.28, n/a
-0.02, 38:20
+0.05, 40:20
+0.13, 42:20
+0.01, 44:20
I performed this test outdoors at around 3pm with overcast skies and
ambient temperature noticeably growing cooler. This is quite amazing.
Frequency sync to within 10PPM after only 20 minutes following GPS fix,
and then it just gets better.
This has got me thinking. I have an under-utilized Arduino
high-precision temperature logger. All that's to be done is to log
"Freq" and then afterwards I can join it with the temperature data. Then
I'll be able to see how quickly Chronyc responds to changes in ambient
temperature.
On 9/30/2019 9:44 AM, Brian Morgan wrote:
Thank you for your reply! To answer your question: "To better
understand the requirements on accuracy, how many milliseconds is one
pixel in that image?"
My refractor's focal length is 418mm. The CCD's pixel size is 4.65
microns. That is 2.29 arcsec per pixel which means 1568.9 pixels per
degree at the celestial equator. There are 86400 seconds per solar day
and therefore 240 seconds per degree. This reduces to 152.97
milliseconds per pixel. For a target above or below the celestial
equator you need to multiply 152.97 by the cosine of the object's
declination. For the Andromeda Galaxy the declination is 41 degrees
north. All said and done, that is 115.45 milliseconds per pixel. So to
put it another way, if I were to kill the drive the galaxy would drift
at a rate of 8.66 pixels per second.
I had mentioned that there was a temperature component. In a typical
imaging session ambient temperature drops about 5C. It is not a
straight line. The temperature can hold steady for an hour and then
drop 1C quickly.
Typically I power up the Pi an hour before astronomical darkness. From
experience with another Pi that is dedicated to imaging which has its
own GPS USB dongle, it can take quite a while before the LED on the
dongle begins to flash. The amount of time it takes to obtain a fix
depends where I position the telescope in the field. This is not a
problem. I like to power everything up well before I get down to
business. Also I should mention that I am at the mercy of the weather,
so I might go 10 days between imaging opportunities.
Having said this my expectation is that the drift file should give
Chrony enough information to make an initial estimate of the current
time just as soon as the Pi boots and Chrony loads. When the GPS comes
on line, perhaps as long as 20 minutes later, Chrony should utilize
the timestamps to formulate a more accurate, up-to-date picture.
Thank you to everyone for your help. This is a most interesting topic!
Brian
On 9/30/2019 4:11 AM, Miroslav Lichvar wrote:
On Sat, Sep 28, 2019 at 04:20:38PM -0400, Brian Morgan wrote:
I wish to thank Professor Unruh. He inspired me to take a deep dive
into my
chrony.conf file. As a software developer and devotee to the concept of
"minimal completeness" I have arrived at this:
driftfile /var/lib/chrony/drift
makestep 0.1 3
refclock SHM 0 refid GPS poll 7
That looks good to me. You could add there corrtimeratio 1000. That
would make the frequency more stable, but if I understand the previous
emails correctly, that might not actually be what you need.
Setting minsamples and maxsamples for the refclock could improve the
phase or frequency accuracy. But we would need to know how much wander
the clock has (how unstable is temperature) and how much jitter is
there in the GPS samples.
I am a great believer in sharing knowledge. Many astrophotographers
keep
their "secrets" to themselves. I, on the other hand, like to share.
I'd like
to offer you my website so you can follow my progress. My latest
subject is
the Andromeda Galaxy:
https://astrotuna.com/andromeda-galaxy-m31-the-saga-continues-siril-app/
Very nice. To better understand the requirements on accuracy, how many
milliseconds is one pixel in that image?
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.