Message Boards Message Boards

0
|
12446 Views
|
11 Replies
|
4 Total Likes
View groups...
Share
Share this post:

Implement a clock that can be used to synchronize another clock?

Posted 7 years ago

How can I implement a clock that can be used to synchronize another clock?

POSTED BY: Rodrigo Sambade
11 Replies

First the use of the term "atomic": I believe it is just a branding terminology from watch manufacturers

https://www.twentytwoten.com/666/will-atomic-time-watch-sync-australia/

So, I believe the poster is trying to have Mathematica generate a modified IRIG H signal which will be locally transmitted (minimal broadcast meeting legal standards) somehow to the watch.

https://www.nist.gov/pml/time-and-frequency-division/radio-stations/wwv/wwv-and-wwvh-digital-time-code-and-broadcast

https://irig.org/

This signal will reset or synchronized "radio-controlled clocks" the preferred term by NIST:

https://www.nist.gov/pml/time-and-frequency-division/radio-stations/wwvb/help-wwvb-radio-controlled-clocks

In the US we have two of short-wave stations that broadcast the signals which can be used to synch radio-controlled clocks.

There is plenty of information available on the internet on the subject of radio-controlled clocks and the stations that broadcast the signals. One can start here:

https://www.rtl-sdr.com/wwv-and-wwvh-special-messages-to-broadcast/

Follow the links in the comments, watch the video, etc. The most informative was the following video

https://www.youtube.com/watch?v=6SHGAEhnsYk The youtuber provides many links. Most notable is

https://github.com/hzeller/txtempus

Now there are other solutions that can be found online none found using Wolfram Language.

Radio JJY Time Pulse Emulator

https://giammaiot.blogspot.com/2019/09/software-defined-radio-time-pulse.html

These sites as asides: https://www.youtube.com/watch?v=sdCLNtXDJb8 https://wwv.mcodes.org/

When or if time permits I may make a go of it but with no way to test I don't have access to a radio-controlled clock (watch). First function that comes to mind involves SquareWave[] or the like.

Wolfram Data

EntityClass["BroadcastStation", 
  "City" -> 
   Entity["City", {"FortCollins", "Colorado", 
     "UnitedStates"}]] // EntityList

WWV is not on the list. Yes it is short-wave, but.

POSTED BY: Hans Michel

You can use this

Dynamic[Refresh[Now, UpdateInterval -> 1]] or 
Dynamic[Refresh[DateString[], UpdateInterval -> 1]]

I usually style the datestring to larger font and color.

POSTED BY: Jack I Houng
Posted 3 years ago

I think the US does at least a decent job of providing accurate time at: https://www.time.gov.

That said, I needed a challenge this afternoon.

How about this (it seems to match https://www.time.gov):

First cell:

now = DateString[Now, "ISODateTime"];
Dynamic[now]

Second cell:

i = 1;
While [i < 10000000, i++; now = DateString[Now, "ISODateTime"]]

Though you will have to force the engine to stop.

POSTED BY: Mike Besso

I mean that the clock must update atomically.

POSTED BY: Rodrigo Sambade
Posted 3 years ago

What do you mean by "real-time time"?

POSTED BY: Rohit Namjoshi

I don't need that. I need real-time time.

POSTED BY: Rodrigo Sambade
Posted 4 years ago

Why do you need Mathematica to do this? On a Linux or Mac OS shell

cat </dev/tcp/time.nist.gov/13

Your computer is probably set to synchronize its clock with NIST so you can just do this from the shell

date
POSTED BY: Rohit Namjoshi

I just want Mathematica to get the atomic time from a server and display it in real time so that I can synchronize my watch on my wrist.

POSTED BY: Rodrigo Sambade

I feel there is something probably still missing from the description of the problem, but when I want something to show me the time, I use a cell phone or maybe my computer's clock, which set their times from one of the NIST servers. In Mathematica you can use DateString[] or DateList[]. I don't know what its source is, maybe the computer's clock.

POSTED BY: Michael Rogers

I have a clock that is not synchronized, so I need Mathematica to show me the current atomic time so that I can synchronize it.

POSTED BY: Rodrigo Sambade

Do you mean a Clock[] or an animated wall clock, or some other sort of clock, like a game clock? Why do you need two clocks: cannot the output of one clock be used in multiple places? Or is one a physical clock, controlled by Mathematica?

POSTED BY: Michael Rogers
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract