Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Potential desynchronization of epochs with large frequency detuning #2

Closed
pyuxiang opened this issue Jan 26, 2023 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@pyuxiang
Copy link
Collaborator

For a frequency detuning of 100pm (for simple crystal oscillators) at reference frequency 10 MHz, this corresponds to a timing drift of 1ms/s. The epoch size is roughly 500ms, so epochs initially synchronized via NTP (roughly a small 1ms to 20ms offset) will no longer overlap after 500s.

Note that this is normally not an issue when the two remote clocks are disciplined by rubidium clocks of at most 10 ppb.

If this is a potential issue, perhaps some epoch resynchronization scheme is required downstream, e.g. use of two epochs for peak tracking instead of only one epoch in costream.

@pyuxiang pyuxiang added the bug Something isn't working label Jan 26, 2023
@pyuxiang
Copy link
Collaborator Author

The relative frequency offset itself can also drift over time, will pose an issue as well?

@pyuxiang
Copy link
Collaborator Author

pyuxiang commented Mar 9, 2023

Using freqcd approach to bake in the frequency difference directly into the raw timestamps before packing into epochs mitigates this problem. An associated issue is related to the 20 hour 54-bit timestamp overflow, which needs fixing, see below:

https://github.com/franciumxzf/pfind/blob/cddfeafd7cd9f15d5015e430e0783e9939dccca0/src/pfind/freqcd.c#L275-L283

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant