Nanosecond clock sync with a Raspberry Pi

  Рет қаралды 174,111

Jeff Geerling

Jeff Geerling

Күн бұрын

Пікірлер: 525
@nomadelog
@nomadelog 2 жыл бұрын
The official abbreviation for Coordinated Universal Time is UTC. This abbreviation comes as a result of the International Telecommunication Union and the International Astronomical Union wanting to use the same abbreviation in all languages. English speakers originally proposed CUT (for "coordinated universal time"), while French speakers proposed TUC (for "temps universel coordonné"). The compromise that emerged was UTC,[6] which conforms to the pattern for the abbreviations of the variants of Universal Time (UT0, UT1, UT2, UT1R, etc.).[
@JaredConnell
@JaredConnell 2 жыл бұрын
Like how iso stands for international organization for standardization, sometimes the acronym doesn't match in all languages
@flatiron235
@flatiron235 2 жыл бұрын
@@JaredConnell roughly the same reason. Additionally ISO is derived from the Greek word isos, which means "equal". The more you know... 😊
@tissuepaper9962
@tissuepaper9962 2 жыл бұрын
I just think of it as "Universal Time, Coordinated" and move on.
@Kalamatee
@Kalamatee 2 жыл бұрын
UTC stands for Universal Time Coordinate and refers to the baseline that coordinated time is set from (which is why it is represented as UTC+x).
@Kalamatee
@Kalamatee 2 жыл бұрын
So yes.. the acronym is correct.
@_winston_smith_
@_winston_smith_ 2 жыл бұрын
Having worked on PTP professionally, I know that a few years ago big players used to charge $1,000,000+ to license the software for the algorithm that does the synchronization. Then it would still take many months of work to integrate it into a working product. The fact that this is open source is awesome!
@tim-w
@tim-w 2 жыл бұрын
I can't fathom why people care so much about this.
@_winston_smith_
@_winston_smith_ 2 жыл бұрын
@@tim-w Do you use a cell phone? Tight synchronization is vital to making the radio network work. There are many other applications, but this is probably the one normal people interact with most often. The electrical grid also relies on tight synchronization, but the transition to digital is happening more slowly as they are ultra-conservative in that industry.
@anullhandle
@anullhandle 2 жыл бұрын
@@tim-w Making cell phones networks possible. Making GPS possible. Making banking transactions secure. Proving relativity. Calibrating equipment not to mention more serious applied and pure scientific research.
@rjy8960
@rjy8960 2 жыл бұрын
@@tim-w I currently have better than 1ns timing jitter between my Grandmaster and switch using PTP and Synchronous Ethernet in my home lab and the GM is accurate to about 40ns of UTC. As has been mentioned, timing is critical in communications systems. It is looking likely that 5G will transition in later specifications to a requirement of 5ns timing accuracy. It is fun to play with but there are absolutely real-world applications for sub-ns timing. In the industrial networking space accurate time is needed for synchronising different parts of a production facility and is provided by industrial field bus systems such as EtherCAT. With standard crystals I’ve had better than 20ns of timing jitter between devices on a network. One of the problems is that the GNSS constellations such as GPS, Galileo, GLONASS etc are prone to blocking so it is common to have multiple Grandmasters which may be 100’s of miles apart for resilience. In the UK there are exercises where GNSS is deliberately blocked and these are listed on Ofcom’s website. IT is also possible to have a GNSS firewall where if the GNSS signal is blocked the timing can be sourced from either another remote GNSS Grandmaster or a local Caesium / Rubidium clock. Accurate time is also critical for trading to track when exactly a transaction is placed and also in cars. Many new automotive applications rely on time for position doing and synchronising RADAR systems for spatial awareness.
@d3vastat0r89
@d3vastat0r89 2 жыл бұрын
Oof, this makes me think of how big companies will use open source work, not contribute, and then try to draw away attention from the open source work by rebranding and popularizing their own version that builds on it. I’m thinking about video capture software, that most streamers use. I hope whoever decides to make use of this put in a few of the millions into the work.
@timramich
@timramich 2 жыл бұрын
They should have more of those WWV type of transmitters all over the US and force auto makers to tune into it for turn signal flashing. No more sitting at red lights watching a bunch of flashing lights sync and unsync.
@JeffGeerling
@JeffGeerling 2 жыл бұрын
Hahaha, I actually made a similar comment on a Technology Connections video about turn signal timing :D
@AndreVanKammen
@AndreVanKammen 2 жыл бұрын
Make the whole city blink in sync, would be a nice sight on a dark night, it would probably reflect in the sky :)
@davidrmcmahon
@davidrmcmahon 2 жыл бұрын
I love that
@baylinkdashyt
@baylinkdashyt 2 жыл бұрын
@@JeffGeerling I was just about to mention Alec's clip on this, and you beat me to it.
@gudenau
@gudenau 2 жыл бұрын
You can just use cameras already in cars for this. :-)
@GSBarlev
@GSBarlev 2 жыл бұрын
Glad to see you and Dr. Byagowi debunking the radioactive hype. Looks like the average Rubidium oscillator consists of 160 picoCuries of radioactivity. For comparison, your average banana measures in at 520 picoCuries. And you *really shouldn't be eating* any Rubidium oscillators you find lying around. During undergrad physics we did a ton of experiments with radioactive button sources and a few using our college's very own neutron source. At the beginning of every lab we were given a safety lecture about the proper way to handle... the bricks of lead we were using for shielding, because those were the real health hazard.
@JeffGeerling
@JeffGeerling 2 жыл бұрын
I would also recommend against eating bricks of lead :D
@abyagowi7
@abyagowi7 2 жыл бұрын
Thank you for the explanation Gilad. It makes me feel more safe playing with these toys :)
@NiklasAuBln
@NiklasAuBln 2 жыл бұрын
@Astrocat 3D I'm pretty sure he will let us recompile the Linux kernel
@anon_y_mousse
@anon_y_mousse 2 жыл бұрын
Must be why I glow in the dark, I eat a lot of bananas.
@GSBarlev
@GSBarlev 2 жыл бұрын
@@anon_y_mousse This issue came up. Person in the class asked if they should be worried about their radiation dose because their significant other's diet was so rich in potassium. Physics professor replied, with a completely straight face, "Well, dosage vs. proximity follows the inverse square law."
@RoelBaardman
@RoelBaardman 2 жыл бұрын
I have used PTPv2 in wind tunnels, where multiple computers record audio signals from a few hundred microphones. The data is all timestamped, which allows software post-processing to calculate where certain sounds came from. The same effect as a dish that your would physically move. For this to work well, you want nanosecond-scale accuracy. And since wind tunnels are generally large metal structures, running a GPS antenna for each computer is not preferable.
@jyvben1520
@jyvben1520 2 жыл бұрын
large metal structure, like an antenna ? ;-)
@RoelBaardman
@RoelBaardman 2 жыл бұрын
@@jyvben1520 Like a faraday cage, about 20 meters in height. We try to keep the computers close to the microphones (near the ground) and they're generally standing in the wind (300kph). Running long wires in that environment doesn't seem wise.
@hyperfluff_folf
@hyperfluff_folf 2 жыл бұрын
What are you using microphones for in a wind tunnel and is it even possible to do acurate audio location when wind is a factor?
@RoelBaardman
@RoelBaardman 2 жыл бұрын
@@hyperfluff_folf about 50% of aircraft noise comes from the engines. The rest comes from the aircraft itself. Landing gear, flaps, but also small gaps between components. Since noise of landing aircraft is a big factor for airports, manufacturers want to find the sources of the noise. This is generally too complex to simulate with a computer I'm told. You are right that wind is a factor in the propagation of sound. These effects have been modeled, and we apply corrections to our measurements in an attempt to undo these effects. In order to apply the corrections we need to know things like wind speed in the wind tunnel, so these are measured too.
@RoelBaardman
@RoelBaardman 2 жыл бұрын
@Richard Cranium Yep, where PTP is used you sync after the fact. In general the strategy in measurement systems is to directly store your measurements on disk, unmodified. Wind tunnels are expensive to rent, so you want to have your data to pass through as little lines code as possible. Every line of code is a possible bug, and you cannot recover from bugs in your acquisition code.
@YeOldeTraveller
@YeOldeTraveller 2 жыл бұрын
I've run Stratum 1 servers from RPi 3s for a few years. While testing code for NTPsec, I had a group of 4 fed from the same antenna with carefully crafted cables to ensure that signal path was the same for each device. This was used to experiment with convergence differences between different NTP solutions. Also, my first professional presentation was on time synchronization using xntpd as one of the options. I also have code that is part of that project for adjusting the time in the kernel to reduce drift, basically adjusting the value of each 'tick' to account for the variance in the systems base oscillator.
@Wordsnwood
@Wordsnwood 2 жыл бұрын
The T-shirt was well Co-ordinated also... ;-) My first job as a sysadmin 30 years ago was setting up and managing xntp on our network, so this takes me way back. Back then you had to ask permission to have our servers "ping" off of a university's stratum 1 clock over in the next province. It's fascinating to learn how NTP is not accurate enough these days. But wow, a Stratum one clock for so cheap sounds amazing. And no, it did not impress the ladies back then either. 😆
@JeffGeerling
@JeffGeerling 2 жыл бұрын
[First date] Would you like to know how accurate my clocks are?
@sonosus
@sonosus 2 жыл бұрын
My clock's more accurate than any other out there.
@ewout4890
@ewout4890 2 жыл бұрын
I did an internship at a telecom company, every piece of lab equipment (network switches, oscilloscope etc.) was modded to be able to use the same clock signal via bare (coax) cabling.
@3Dpoleproductions
@3Dpoleproductions 2 жыл бұрын
We use ptp to coordinate audio and video over a network in the Audio Visual field. It allows us to get video walls synced up for making sure they are frame accurate. We actually don't care about the exact time just that all the device are synchronized. It also means we have to use somewhat specialized switches that support QoS and non-blocking.
@PsRohrbaugh
@PsRohrbaugh 2 жыл бұрын
Are they purple switches?
@3Dpoleproductions
@3Dpoleproductions 2 жыл бұрын
@@PsRohrbaugh honestly for video we end up using the Netgear av line switches. They come in a good range of sizes and configurations preset that's make manufacture specs for encoders and decoders. faster and easier deployment that way.
@jays.1876
@jays.1876 2 жыл бұрын
Jeff, On that scope you can use Measurements to measure time between the two pulses so you don't have to count ticks. You can also use Cursors to manually get a time delta by placing one cursor on one pulse and the other on the other pulse. Measurements and Cursors are very powerful tools in the scope and it's well worth the time to learn how to use them. Best wishes.
@JeffGeerling
@JeffGeerling 2 жыл бұрын
True, true.
@HeadBoffin
@HeadBoffin 2 жыл бұрын
Got many CM4's on order, in the meanwhile, the sun is out today so the master clock in the garden (sundial) is all we have! PS, black for signal and yellow for ground???
@JeffGeerling
@JeffGeerling 2 жыл бұрын
Haha I was wondering if someone would notice. I had plugged them in backwards from the pins I thought they were and just left 'em.
@stefanmisch5272
@stefanmisch5272 2 жыл бұрын
came here only for this comment 😅
@cb-zh3gv
@cb-zh3gv 2 жыл бұрын
If you think about it, on a sundial it is black for signal and yellow for ground.
@MarcoGPUtuber
@MarcoGPUtuber 2 жыл бұрын
It's about time!....to watch Jeff Geerling!
@flynn3649
@flynn3649 2 жыл бұрын
I get pumped when I see a Geerling notification in my feed. I know I'm gonna learn something cool.
@JoshLiechty
@JoshLiechty 2 жыл бұрын
As someone who went through the hassle of researching and waiting until I could snag a good deal on a used enterprise GPS clock, I'm stoked to see how accessible accurate NTP / PTP sources are becoming for the home lab community now. (Yeah, you're not the first, and neither was I, but hey, it's a cool club, and we're happy to welcome you!) I want to warn anyone who's eyeing old enterprise gear, make note of how long it's been end of life, check whether you can get firmware updates without a[n expensive] support contract, and verify that it was updated recently enough to handle the GPS Week Number rollover on April 6, 2019. The oldest and most affordable stuff out there cannot, so it's basically useless, and the gear that's new enough to still work is not as affordable as it should (IMHO) be. Caveat emptor, and whether you go refurbed enterprise or DIY, happy timekeeping!
@awesomefacepalm
@awesomefacepalm 2 жыл бұрын
I made a gps based ntp server with my old pi a few years back. it used the PPS on that gps chip. It was fun
@nulious
@nulious 2 жыл бұрын
@StringerNews1 mini pcie and M.2 lte and gps cards exist
@marcogenovesi8570
@marcogenovesi8570 2 жыл бұрын
@StringerNews1 afaik there are GPS/modem modules with serial interface for around 30$ to be used for Arduino, drones and other microcontroller-based stuff
@avramitra
@avramitra 2 жыл бұрын
This video is a godsend. I am currently working on a project where positioning is determined based on Time Difference of Arrival between two signals. Even though the project is in very early stage and we don't need perfectly synced devices right now, but eventually we'll need it. Else nothing will work. Thanks for making a video on this topic. It'll definitely help me immensely.
@brianscally3439
@brianscally3439 2 жыл бұрын
Jeff.. look at the timing features etc for the upcoming WiFi 7. 802.11be includes full QoS and time services so all your wireless devices can also sync.
@JeffGeerling
@JeffGeerling 2 жыл бұрын
WiFi 7 will be quite interesting. Borrows some features from 5G (which also uses this kind of timing accuracy to get the bandwidth it does).
@Dronebotworkshop
@Dronebotworkshop 2 жыл бұрын
Great video as always Jeff, but I have to admit that for me the star of the show was the shirt you're wearing - I want one of those!
@TheCRibe
@TheCRibe 2 жыл бұрын
Yes Jeff great video you always go beyond the content details I expect too see. Great work!
@fredrik241
@fredrik241 2 жыл бұрын
Nice job on finding yet another Raspberry angle on something I didn't know anything about! I loved the vibe and enthusiasm of Ahmad!
@JxH
@JxH 2 жыл бұрын
2:40 Radio Clocks "...will sync-up after a few minutes..." Only locally, from a 'continental' perspective. More-distant locations will have to wait until the wee hours (e.g. 2:00 AM local), when the VLF signal can reach their location.
@martyb3783
@martyb3783 2 жыл бұрын
Fascinating. I love all of the things you can do with a RPi. Great video!
@dormantat
@dormantat 2 жыл бұрын
This is fantastic for me. I have equipment that uses GPS for timing. Last year some of the GPS units stopped working and the equipment defaulted to NTP, which was not accurate enough. I then discovered they could use PTP, but the cost of a server was too much for me. Now maybe I can implement PTP.
@JeffGeerling
@JeffGeerling 2 жыл бұрын
It sounds like it's _time_ for an upgrade!
@hyperfluff_folf
@hyperfluff_folf 2 жыл бұрын
@@JeffGeerling ba dum ts xD, good one
@shubinternet
@shubinternet 2 жыл бұрын
But only if the network switches and other gear actually support PTP. If they don't, then you won't have a way to get the PTP signal across LAN segments so that the clients can talk to the server(s).
@TrippSC2
@TrippSC2 2 жыл бұрын
What a strange coincidence. I saw recently that VMware 7.0 supported PTP as a time sync source, which led me down the rabbit hole of all this stuff. Very cool video!
@pavan13
@pavan13 2 жыл бұрын
Tom Scott he's amazing his videos are super informative and easy to understand the bcz the he explains about things in a simple way.
@JeffGeerling
@JeffGeerling 2 жыл бұрын
He crams a good amount of information into a short video that illustrates what he's talking about very well.
@pavan13
@pavan13 2 жыл бұрын
@@JeffGeerling yeah 👍
@MC-emmcee
@MC-emmcee 2 жыл бұрын
You tease us so much. Most of us will not get our hands on ANY sort of RPi this year (or next, the way things are going). So you may as well do projects with, or educate us on, the hadron collider.
@ItsQuintFX
@ItsQuintFX 2 жыл бұрын
I love videos like this, though this issue in time syncing doesn't affect me personally. I am fascinated by it because the lengths people go to, to perfect solutions like this is impressive and greatly underrated by the majority. I can't help but and geek out about videos like this. Keep up the great content Jeff!
@HomelabExtreme
@HomelabExtreme 2 жыл бұрын
"Maybe i'll be the first homelabber with a time server in my rack" Sorry to break it to you, but that prize was handed out a long time ago, even on a Pi. Running GPS based stratum 1 servers on RPIs has been common for long.
@JeffGeerling
@JeffGeerling 2 жыл бұрын
What I meant was an atomic-clock-based PTP time server. No other *Pi*-based setup can do that besides a CM4 (and only recently at that).
@TheTkiller9999
@TheTkiller9999 2 жыл бұрын
This is a great post.... I just did something exactly like this... My Pi Hat uses multiple GPS sats to give me +/- 400ns time /date and I use NTP to get it to my networked servers...
@asbecka
@asbecka 2 жыл бұрын
GPS also has the roll over issue which can be fun to deal with. Do the cards have an auto update feature so they don’t fall victim to the GPS epoch issue?
2 жыл бұрын
I always get hyped up from these videos to have extra precise network time on my LAN for no apparent reason; your presentation is great. :D Is there such thing as a database of NICs to see which support PTP protocol? Eg. can I check somehow if an onboard LAN on a motherboard supports this or not? Because having a CM4 PTP server is just one part of the equation. I guess the big investment is going to be on the PC side.
@JeffGeerling
@JeffGeerling 2 жыл бұрын
Unfortunately, it seems like IEEE1588 support is often buried in tech specs for NICs :( And not all that support it really seem to have full driver support, either. It seems like Intel is the best bet, even many older NICs support it (e.g. i210 I think).
2 жыл бұрын
@@JeffGeerling so this will take some "time" (ba dum tss) to get mainstream unfortunately. :(
@ChrisA4A4
@ChrisA4A4 2 жыл бұрын
PPT also works with software time stamping. We have a Raspberry Pi 4 with a GPS Hat (with PPS) running as a PPT Server. We use this to time sync our web server which is located in the basement where we haven't any change to get a GPS signal. Using software instead of hardware time stamping reduce the accuracy to the micro second range. But that's at least two magnitudes better than using NTP from a time server via internet
@JeffGeerling
@JeffGeerling 2 жыл бұрын
@@ChrisA4A4 True! And I didn't even touch on that ability. And from some further investigation, it looks like it's _possible_ the chip in the Pi 4 could have 'unofficial' support for hardware timestamping, too.
@davidclift5989
@davidclift5989 2 жыл бұрын
The TimeCard uses a Xilinx FPGA, the software to program this is not open source, whilst you can get an open source bit stream to program it, if you want to change the programming you still need commercial software tools from Xilinx these are not open source although they are currently free to use
@ArjanvanVught
@ArjanvanVught 2 жыл бұрын
PTP is also used in the entertainment industry; synchronization for light and video shows.
@ArjanvanVught
@ArjanvanVught 2 жыл бұрын
https en wikipedia org /wiki/SMPTE_2059
@JeffGeerling
@JeffGeerling 2 жыл бұрын
Also AES67 for broadcast! I'm hoping to explore that a little more with my Dad (radio engineer) on a Geerling Engineering video in the future.
@bzuidgeest
@bzuidgeest 2 жыл бұрын
There is a good reason why the "traditional" devices are so expensive and it has nothing to do with the actual hardware. Those devices come with official certification and operating guarantees. Something this open source piece of hardware does not have. For hobbyists this might not matter, but in the company's this is mostly relevant for and in science that needs to be validated this is absolutely very important. This new card is nice and cool and absolutely no threat to the expensive models. The same goes for almost all expensive measuring equipment. Be it from fluke or agilent or Tektronix or whatever.
@bzuidgeest
@bzuidgeest 2 жыл бұрын
@StringerNews1 compared to the cost of calibration, certification, tracing, support and what not, the cost of hardware is minor. Yes it has some influence, but it might as well be nothing.
@bzuidgeest
@bzuidgeest 2 жыл бұрын
@StringerNews1 recertify! That is not the same as the original certifications of the design. Certification and calibration are also not one thing. Also with that kind of equipment economies of scale are not working. Long term support instead of the consumer 1 or 2 year is expensive. Yes they are no doubt milking their customers but it's not all nonsense. Look at how long fluke keeps certain models on the market because governments and companies have standardized on them. Hardly mass market. Therefore more expensive than the common trash.
@bzuidgeest
@bzuidgeest 2 жыл бұрын
@StringerNews1 strange... I have the same observation.
@FreshSmog
@FreshSmog 2 жыл бұрын
Pis are getting more and more useful! I'm never going to get one at this point..
@r1asimon01
@r1asimon01 2 жыл бұрын
PTP works by using profiles and the size of the network, routers, switches, etc are taken into account with PTP. PTP measures the end to end latency form the client to the PTP server to calculate the loss to maintain time sub microsecond.
@UpLateGeek
@UpLateGeek 2 жыл бұрын
At work we're looking at using our Cisco ASR routers as PTP GM clocks, with GPS reference. It looks like it's a pretty straightforward setup, so I'm sure there's more than a few CCIE types who would have this set up in their home labs. Granted a couch change raspberry pie is a lot cheaper than a $100K router, but businesses retire these things all the time, and it's not uncommon for equipment to be redirected from the e-waste bin to employees' home labs. (EDIT: Not that I'm speaking from experience.)
@VincentSaelzler
@VincentSaelzler 2 жыл бұрын
One of the most unique and interesting videos on the channel so far!
@mayankraichura
@mayankraichura 2 жыл бұрын
Jeff showing off 2 RPi CM4 when it's hard to get your hands on a single one 😂😂
@brenthoadley
@brenthoadley 2 жыл бұрын
You learn alot from these comments 10/10 video
@hagensiekerj
@hagensiekerj 2 жыл бұрын
I've been playing with GPS PPS on a Pi4 and Sparkfun GPS module and getting nanosecond level accuracy. Your statement about GPS is accurate though. The better the access to open sky the better the accuracy. Nobody needs any of this for home network stuff but it sure is fun to set up your own PPS server for a few bucks.
@GregCorson
@GregCorson Жыл бұрын
I hear the PI 5 supports PTP in it's NIC, any chance of a follow up on how to setup PTP on a Pi 5?
@michael7738
@michael7738 2 жыл бұрын
A few years back I had a Raspberry with GPS as the only time source, because that RPi was used outdoors without any network connectivity. I remember extremely good how I struggled to get GPSd and NTPd talking to each other.
@SillieWous
@SillieWous 2 жыл бұрын
CERN's "white rabbit" protocol and hardware can get even better (picosecond range). Completely open source, but probably not supported by CM4.
@scbtripwire
@scbtripwire 2 жыл бұрын
12:26 "I use this material to pick up girls." "Hey girl, are those clocks atomic? Because you make my heart go tick-tock." I'll see myself out.
@norshahidasaba2319
@norshahidasaba2319 5 ай бұрын
hahahaha...only the geeks will buy this pick-up line. =)
@zambonidriver42
@zambonidriver42 2 жыл бұрын
PTP is my favorite clock!
@Acirakin
@Acirakin 2 жыл бұрын
Stop buying all CM4 I can't get my hands on one :) Very educational video. I look forward to see that applied to online gaming
@JxH
@JxH 2 жыл бұрын
For test bench use, a GPS Disciplined Oscillator (GPSDO) can be useful. They're about US100. 'BG7TBL' is one designer. These gadgets contain an Oven Controlled Xtal Oscillator (OCXO), brought into alignment to GPS by a uC. They typically produce plain-Jane digital 1PPS and 10MHz signals on their front panel BNC connectors.
@MarcusPHagen
@MarcusPHagen 2 жыл бұрын
Yet another reason to ditch "Daylight Savings Time", with its twice/year shenanigans!
@autohmae
@autohmae 2 жыл бұрын
I can guarantee you are not the first with a PTP time server in their home lab. I don't remember who it was, but I remember seeing that someone had multiple atomic clocks in his homelab. This guy even did a test with him going up a mountain with the atomic clock and getting down and comparing two clocks.
@sunfoundermakereducation8590
@sunfoundermakereducation8590 2 жыл бұрын
Thank you very much. It was a new experience for me.
@JohnCookNet
@JohnCookNet 2 жыл бұрын
Great topic. I have several Casio watches that have the shortwave radio update feature. They are affordable and amazing. This is a very underrated technology. I recall there was some conversation in recent past about Govt reducing their funding in the NIST program. Hope this never happens.
@JeffGeerling
@JeffGeerling 2 жыл бұрын
Yeah, in the WWV tour video I linked, the engineer mentioned that from time to time there are discussions about cutting off WWV since GPS has all but taken over. But I think it would be a bit disruptive since there are still so many radio-based clocks! Also, for a Time Card upgrade, they might include a WWV receiver since, once you know your location with GPS, WWV can be a very accurate backup time source if GPS is jammed or the signal is lost.
@baylinkdashyt
@baylinkdashyt 2 жыл бұрын
@@JeffGeerling Seems worth pointing out here that the WWV(/B/H/L) clusters serve not only as time standards, but -- as I think their top-of-hour announcement says -- also *frequency* standards. That's *much* harder to ship over the internet, and still important. And you can't get it from network TV anymore...
@JohnCookNet
@JohnCookNet 2 жыл бұрын
@Astrocat 3D Ditto. This is a great example of how analog complements digital information. The simplicity of the radio wave's protocol is brilliant.
@strandvaskeren
@strandvaskeren 2 жыл бұрын
@Astrocat 3D Yeah, what's wrong with running wire telegraphs along railroads, just in case?
@matthiaslange392
@matthiaslange392 2 жыл бұрын
Nice. With this i will be never again to late to bid in the last second of an ebay offer 😁 Some of us are happy if their windows clock isn't out of sync by hours. "Sorry, boss. I'm not a little late at work this morning. I'm just out of sync"
@IMBlakeley
@IMBlakeley 2 жыл бұрын
I did some work with small 4g pico cells, the ones outside used GPS for time, the ones inside we fed with PTP from our backhaul radio equipment. That had a GPS and generated the PTP pretty much as the PI is doing, we had a load of interest from companies that wanted the GM functionality and didn't need the radio link. I left soon after, always wondered if it went anywhere was cheap compared to a GM IRO of $1000 IIRC but maximum of 6 slaves, would probably do more but that was all we tested. Somehow the solutions now are going to be way cheaper and this was only 6 years ago.
@mritunjaymusale
@mritunjaymusale 2 жыл бұрын
Some guy made this idea work with starlink aswell, so eventually getting the starlink dish and router might throughput PTP through existing LAN cables.
@Dreamwalkerx
@Dreamwalkerx 2 жыл бұрын
Sometimes the answer to a problem is NOT a raspberry Pi. Jeff Geerling 'Hold my beer!'
@thomasbonse
@thomasbonse 2 жыл бұрын
You're right, sometimes the answer is RPi-Pico, or 42. 😉
@dave_dennis
@dave_dennis 2 жыл бұрын
Excellent video Jeff. I would love to see a video about the PI’s ability to generate a reference frequency. Not a reference time via a pulse interval. The frequency domain is very important for synchronization of communications. You know as in frequency hopping spread spectrum. If the PI could give us a cheap way to generate an accurate frequency it would enable all kinds of elaborate data exchange at a very low cost. It would be a game changer.
@T3chpat
@T3chpat 2 жыл бұрын
Cool video, never knew time could be managed at home with my own server. When CM4 prices comes down, maybe I'll install it next to my Pi-hole! Thanks again for the video, I only wish you would post more often!
@aleksandertesenkov1421
@aleksandertesenkov1421 2 жыл бұрын
Very interesting and very educational. Excellent job Jeff.
@mzimmerman1988
@mzimmerman1988 2 жыл бұрын
Thanks! Very interesting stuff.
@HardwareHaven
@HardwareHaven 2 жыл бұрын
Welp. Definitely learned some new stuff here!
@HardwareHaven
@HardwareHaven 2 жыл бұрын
@+①②①④⑥③⑨⓪③④WhatsApp Oh wow definitely will "Jeff"
@totohayashigo
@totohayashigo 2 жыл бұрын
I think NTP and PTP are different usage, PTP and GM clock are for digital transmission usage … this is prevent digital packet collisions and crash. It can apply on device on the LAN, router, switch, ap … etc. and also apply on multicast streaming … like SMPTe 2110, Dante AV and NDI. PTP is like Metronome
@JxH
@JxH 2 жыл бұрын
It's worth mentioning that 1PPS signals (done correctly) are aligned with UTC seconds, so that all the 1PPS signals on Earth should transition (upwards) at the very same instant.
@ianallaway4964
@ianallaway4964 2 жыл бұрын
The Dante audio protocol actually uses PTP to sync all of the audio packets that are traveling over the network.
@roguethinker6284
@roguethinker6284 2 жыл бұрын
Loved this video. Beautiful , elegant explanations! And to boot on a PI! woooo hooo
@joeg3950
@joeg3950 2 жыл бұрын
Informative and got me thinking (This is where I usually get into trouble)
@d00dEEE
@d00dEEE 2 жыл бұрын
Wow, the day after Sam at THIS MUSEUM IS (NOT) OBSOLETE channel shows us how to build our own master clock, we get this!
@franciscogtome
@franciscogtome 2 жыл бұрын
Amazing video, Jeff! 💪🏻
@ygiagam
@ygiagam 2 жыл бұрын
Absolutely amazing - Thanks!
@PaulGrayUK
@PaulGrayUK 2 жыл бұрын
How did you find the time to do this? What would be a good project/task for an RPi that would save you the most time and with that, wished some projects showed the return upon time investment as if a day spent can return a day in a year, that whole days task becomes more likely to come about. So what would be the best projects you have done for yourself that have saved you the most time? Maybe a video idea is there for the answer.
@osd-cf
@osd-cf Жыл бұрын
Hi Jeff, thanks for the great explanation about how high precision time sychronisation is possible on the CM4. Have you published any of the code / instructions used in your demo? I would like to try to reproduce the time synchronization between two CM4 modules.
@hikaru-live
@hikaru-live 2 жыл бұрын
There are network switches that can fan out PTP. So if you connect the Pi to a few of those switches, you don't need those expensive grandmasters. In this case those switches handles downstream devices however many of them, and aggregates all of those into one PTP stream from the Pi.
@yngsjo
@yngsjo 2 жыл бұрын
I know a project with this in mind. Central clock replacement. I think there still is a lot of old mechanical clocks needed to be replaced by a raspberry pi.
@markfiechtner
@markfiechtner 2 жыл бұрын
I have been replacing clocks in my house for a few years. I have four pi zero (original, w, 2w) based clocks scattered about. Two are clocks ONLY. Two have clocks in the UI; but, also play audio from my home server. I have a pi 4 based GPS enabled NTP server supporting all my networked CPUs. My wife puts up with me. 😁
@happosade
@happosade 2 жыл бұрын
Media and entertainment is also using PTP! Maybe I can propose replacing the GM clocks on our network with few CM4s?
@JeffGeerling
@JeffGeerling 2 жыл бұрын
That's my hope! AES67 is getting more widespread, it would be nice to have a more off-the-shelf and inexpensive option compared to the master clocks out now.
@happosade
@happosade 2 жыл бұрын
@@JeffGeerling Absolutely agree. It feels waaay nicer to work with than Dante as per my experience. Likewise I'm hoping that ST2110 is getting way more traction in the future, as it feels like a lot more suitable to complex networks than NDI that just tries to do magic and failing... as it's in complex corporate networks, not in flat one. (Some video ideas there? :fingers_crossed:)
@jasonluong3862
@jasonluong3862 2 жыл бұрын
This is what makes science great. It ignores our subjective perception of reality including time in favor of something that is objectively true. To us, a watched pot never boils, but to science, if all relevant parameters are known, the boiling time of this pot is known to the accuracy of the oscillation frequency of an atom.
@jwillisbarrie
@jwillisbarrie 2 жыл бұрын
Thanks for adding actual captions for the Deaf
@50shadesofbeige88
@50shadesofbeige88 2 жыл бұрын
2:26 I just picture Jeff toiling away with a soldiering iron while WWV plays in the background. 😄 that's true geek cred.
@Quarky_
@Quarky_ 2 жыл бұрын
Amazingly information dense video, and all the while dealing with your health issues! How do you do it!?
@JeffGeerling
@JeffGeerling 2 жыл бұрын
Luckily for this video I had a lot of the groundwork completed in the past couple months. Some videos take a really long time to do, and this was one of them-I just needed to do the editing this week, and that's one of the easiest things to do while under the weather, since I can do it from my laptop!
@Quarky_
@Quarky_ 2 жыл бұрын
@@JeffGeerling Either way, all your videos are pretty thoroughly researched, but this one was a cut above the rest. Amazing work, and good luck with your health :)
@JBothell_KF0IVQ
@JBothell_KF0IVQ 2 жыл бұрын
Jeff ur videos always motivate me to go play with PIs but then I remember that I need to buy some 😭
@UNVIRUSLETALE
@UNVIRUSLETALE 2 жыл бұрын
This is really interesting, once more available I might get one
@rider68-12
@rider68-12 2 жыл бұрын
I have dealt with GPS time devices and can't wait see the time hat.
@fram1111
@fram1111 2 жыл бұрын
Always great content
@jamesdecross1035
@jamesdecross1035 2 жыл бұрын
A second is quite literally the second division of the hour, after the first, minute division.
@okoeroo
@okoeroo 2 жыл бұрын
Seriously impressive progress!
@electroplank587
@electroplank587 2 жыл бұрын
very interesting, i work in managed IT infrastructure and i notice that good time synchronization is often overlooked, most sys admins only care if it's accurate within a few minutes which make me die inside 😭
@DrorF
@DrorF 2 жыл бұрын
You say "Until next time I'm Jeff Geerling", but every time you come back you are Jeff Geerling again! 🤪
@DaHaiZhu
@DaHaiZhu 2 жыл бұрын
My dad would listen to the WWV every week to set the 50+ clocks in our home.
@glynnetolar4423
@glynnetolar4423 2 жыл бұрын
Mr. Geerling, I'm likely late for this. But those clocks that set themselves don't use WWV but WWVB. Which is on another frequency band. And no voice announcement. It's 60KHz.
@ConvivaTech
@ConvivaTech Жыл бұрын
Very nice! Wonder what would you do different nowadays?
@ilovefunnyamv2nd
@ilovefunnyamv2nd 2 жыл бұрын
watching this in the car over Bluetooth. quite ironic I'm watching a video about precise time keeping & syncing. and having the audio 2 seconds later than the video!
@LiLBitsDK
@LiLBitsDK 2 жыл бұрын
Jeff: Nerdy about time Me: Doesn't even use a watch anymore
@sabyasachitalukdar4314
@sabyasachitalukdar4314 2 жыл бұрын
Well thanks for making those board more rare.
@sandmanxo
@sandmanxo 2 жыл бұрын
Most radio controlled clocks use the signal from WWVB which runs at 60khz and there is no voice. While you can use WWV and WWVH too that would be more for a diy solution since there are multiple transmitters at 2.5, 5, 10, 15, and sometimes 20 and 25Mhz and depending on the time of day different ones will be receivable, whereas 60khz is available for most of the US, typically stronger at night.
@JeffGeerling
@JeffGeerling 2 жыл бұрын
Heh, I can imagine someone writing an AI engine just to translate timestamp information from the voice... when the data is literally encoded in the signal already :D
@sandmanxo
@sandmanxo 2 жыл бұрын
@@JeffGeerling Lol that would be crazy. The low frequency is used more for coverage and reliability on one set frequency than extracting the signal format. Knowing this is what happens when you're both a RHEL admin and a ham radio operator, you learn lots of mildly useful knowledge.
@JxH
@JxH 2 жыл бұрын
@@JeffGeerling HF signals are generally propagated via the ionosphere, so the path length is quite variable (on the scale of milliseconds), even moment to moment. The VLF signal, being groundwave, would tend to have a more consistent pathlength. Not that either source is intended to be used for precision time transfer anyway.
@shephusted2714
@shephusted2714 2 жыл бұрын
using gps time via an older usb gps is a great way to hack time and get all your machines synced plus avoid ntp reflection attacks - good timely content here! #red shirt shift
@shephusted2714
@shephusted2714 2 жыл бұрын
you can sync all your machines via webmin sys time and also hw time - you only need 1 usb gps - all the machines sync to the opnsense internal stratum 1 so you never go outside to sync - this content is a deeper look and great content - should you have redundant HA time servers? probably....if you are serious about your time - installing ptp may have been the bijou in this talk - the differences between mill and micro and nano seconds is a lot and we should all have some heightened expectations for future time hacks like the best movie ever made (red shirt jeff will concur) Time bandits
@shephusted2714
@shephusted2714 2 жыл бұрын
on a serious node you should actually line up the best hw and you should test failover and averaging of time between the ptp servers - it is master and slave you may want a sep master and slave so you may need 4 for HA - going with opnsense could be cheaper - there should be a turnkey linux version of this as a couple iso you spin up and passthrough gps usb...it should be easy to do on linux or bsd - maybe on a even lower cost arm like new nano pi with 2 2.5 and a 1g - 2 of those at 60 and a gps module and then just get 2 more to run the redundant time server - 300 bucks you have opnsense HA and nano second redundant (HA) time server #pps up and down #get a better gps module #birds are real #azimuth
@chuckduey2661
@chuckduey2661 2 жыл бұрын
Way cool!!! I can synchronize 2 CM4's using IEEE 1588. The CM4 with the addition of a time card can become a timing standard for a network for a fraction of the normal cost. My question is synchronizing more than 2 CM4 will require a network switch. Most of the inexpensive network switches don't work with PTP. Are there any low cost Gb switches that correctly deal with PTP packets?
@Balkroth
@Balkroth 2 жыл бұрын
So, as more and more of our access technologies require synchronization with ptp, I would assume we'll be able to just use the time signal in, say a Remote-Phy network, then feed it out to cable modems and clients (This is literally what DTP is. With most intel nics supporting some form of time stamping, we probably wont need specialized hardware in the future.
@midnightwatchman1
@midnightwatchman1 2 жыл бұрын
I am looking to implement PTP on a LAN that runs Dante audio equipment. This sounds like a good project
@carmakills
@carmakills 2 жыл бұрын
Love the channel
@davidg5898
@davidg5898 2 жыл бұрын
I have a piece of MIDI gear that does similar for my electronic musical instruments, except at a lower time resolution.
@judsonleach5248
@judsonleach5248 2 жыл бұрын
In a “crazy world…” here comes Jeff!!! Lol
@garyslittlehomestead2186
@garyslittlehomestead2186 2 жыл бұрын
Maybe I missed it but in a common home setup with several computers, nas, routers etc. can this card "give" correct synchronized time to everything connected in the home network?
@baylinkdashyt
@baylinkdashyt 2 жыл бұрын
In a common home setup, NTP (without special adapters) is plenty; it will get you to microseconds, and no civilian is going to notice. :-)
@JeffGeerling
@JeffGeerling 2 жыл бұрын
This civilian will notice! Haha. But yeah, NTP is definitely good enough for most-it can be easily configured on any regular Pi, too. The quartz clock that comes on a typical RTC will be accurate enough, especially if you grab a GPS HAT and get the main time data from that.
@garyslittlehomestead2186
@garyslittlehomestead2186 2 жыл бұрын
@@JeffGeerling thanks jeff, Appreciate your channel, really trying to get up to speed on the PI. I am doing a bus to rv conversion on an MCI coach bus and want to integrate raspberry Pi's for home assistant as well as other lighting and monitoring. still trying to get up to speed on the "lingo" but your channel helps a lot.
@baylinkdashyt
@baylinkdashyt 2 жыл бұрын
@@JeffGeerling I would have thought it obvious, jeff, that I don't class you as a civilian. Once your home network has more than two switches in it... :-)
@baylinkdashyt
@baylinkdashyt 2 жыл бұрын
@@garyslittlehomestead2186 wow, are you going to have an easier time than earlier people who have dug that hole, given the amount of 12-volt LED lighting equipment there is available these days.
This tiny computer changes EVERYTHING
15:57
Jeff Geerling
Рет қаралды 20 М.
The most accurate Raspberry Pi atomic clock IN THE WORLD!
11:20
Jeff Geerling
Рет қаралды 164 М.
This Game Is Wild...
00:19
MrBeast
Рет қаралды 184 МЛН
Farmer narrowly escapes tiger attack
00:20
CTV News
Рет қаралды 10 МЛН
so...I put a Time Server in my HomeLab
28:25
NetworkChuck
Рет қаралды 283 М.
Why would you build a Raspberry Pi Cluster?
10:30
Jeff Geerling
Рет қаралды 550 М.
I’ll never be late again - Open Timecard Mini
9:46
ShortCircuit
Рет қаралды 401 М.
The Obscure System That Syncs All The World’s Clocks
7:59
Half as Interesting
Рет қаралды 685 М.
NVIDIA’s New AI: Stunning Voice Generator!
6:21
Two Minute Papers
Рет қаралды 56 М.
So much functionality in one tiny Pi!
15:27
Jeff Geerling
Рет қаралды 206 М.
I ditched my Raspberry Pi for this
18:45
NetworkChuck
Рет қаралды 541 М.
6-in-1: Build a 6-node Ceph cluster on this Mini ITX Motherboard
13:03
I made the Petabyte Raspberry Pi even faster!
9:32
Jeff Geerling
Рет қаралды 179 М.
what happens when your CPU has a bug? (GhostWrite)
9:58
LaurieWired
Рет қаралды 41 М.