Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: System Date/Time from Ensemble #51

Open
richard-gravy opened this issue Jun 12, 2021 · 4 comments
Open

FR: System Date/Time from Ensemble #51

richard-gravy opened this issue Jun 12, 2021 · 4 comments

Comments

@richard-gravy
Copy link

Hello,

I did some reading up after noticing how quickly my portable DAB radio obtains the date and time after power on.
The information is transmitted in local time offset, once per second, in Fig 0/10.
Do you think it might be possible to use this as a time source for an NTP server?

I know that there are better solutions available, like receiving MSF or local equivalent, but the thought occurred to me that if you are receiving DAB on an infrastructure device, like a beefy router, it may be useful for more than just audio.

@andimik
Copy link
Contributor

andimik commented Jun 13, 2021

It's similar to AlbrechtL/welle.io#654

@JvanKatwijk
Copy link
Owner

JvanKatwijk commented Jun 13, 2021 via email

@JvanKatwijk
Copy link
Owner

JvanKatwijk commented Jun 13, 2021 via email

@richard-gravy
Copy link
Author

@andimik Pleased that someone else has asked for the same thing in another project, means it's not a terrible idea!

I've just been looking at the "sock" driver for chrony, which is a common NTP daemon on Linux that can be client or server.
In particular, the structure of the data, indicated at https://git.tuxfamily.org/chrony/chrony.git/tree/refclock_sock.c, "struct sock_sample".

Would it be as simple as setting "tv" to the value from the ensemble, set everything else to zero except for the magic number?
Again, it's not practical as a primary reference because you can't interact with the transmission to compensate for drift, but it's better than nothing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants