I’ll never be late again - Open Timecard Mini

ShortCircuit
20 Sept 202409:45

Summary

TLDRThe video script discusses the importance of accurate timekeeping in computers, especially in large networks. It introduces two products: the Time Card Mini and the G0 KK (Gawk), which use GPS to achieve time accuracy down to 0.03 seconds per year. These devices connect to satellites for precise time data and output it through a Raspberry Pi. The script also covers setting up a time server using these devices, addressing initial technical issues and achieving synchronization with public time servers. The result is a local time server with remarkable accuracy, demonstrating a fun and advanced solution for time synchronization.

Takeaways

  • ⏰ Time synchronization is crucial for computers, especially in large clusters, where all machines must stay in sync.
  • 🖥️ The Time Beat Time Card Mini and G0KK (Gawk) are specialized devices designed to provide highly accurate time synchronization for computers using GPS data.
  • 📅 Most computers have real-time clocks, but they can drift by seconds per day, which can be problematic for precision applications.
  • 📡 The Time Card Mini connects to satellites (GPS, GLONASS, Galileo) to get precise time data, which it relays to a Raspberry Pi or other systems.
  • 📈 The SI T 5811 chip included in these devices can maintain time accuracy within one part per billion for up to 8 hours.
  • 💻 The Ethernet connection allows the time card to be integrated into existing systems, sending time signals through the network without needing a new rack or system.
  • 🕒 In a Linus Media Group project, the Time Card Mini was used to set up a precise time server, which was essential for syncing computers in a cluster.
  • 🔄 The Raspberry Pi kernel used to run the time sync software had issues with simultaneous GPS serial and PPS data, but a fix is in progress.
  • ⚙️ Proper setup can lead to nanosecond-level accuracy, with occasional minor offsets caused by the hardware and software configuration.
  • 🔧 Although precise time synchronization is not always necessary, it's a fun and interesting project, particularly for those working with clusters or requiring high precision.

Q & A

  • Why is time synchronization important for computers?

    -Time synchronization is crucial for computers, especially when multiple computers need to communicate or perform tasks in sync. It ensures that all systems are working with the same time reference, which is essential for operations that require precise timing.

  • What is a real-time clock (RTC) and why might it not be accurate?

    -A real-time clock is a hardware clock found on computer motherboards that keeps track of the current time. However, it may not be highly accurate as it can drift by several seconds per day due to the inherent inaccuracies of the clock hardware.

  • How does the Time Card Mini help improve time accuracy?

    -The Time Card Mini uses a GPS chip to connect to GPS and other satellite systems like Galileo to receive very accurate time data, which it then outputs to a connected Raspberry Pi, significantly improving time accuracy.

  • What is the purpose of the u-blox M8F0 GPS chip on the Time Card Mini?

    -The u-blox M8F0 GPS chip is used to receive accurate time data from GPS and other satellite systems. It sends a pulse at the start of every second, which helps to synchronize the system time with high precision.

  • What is the function of the PCIe card mentioned in the script?

    -The PCIe card is used to provide power to the Time Card Mini. It allows for the addition of a powerful and accurate time server to existing infrastructure without the need for significant hardware changes.

  • Why did Linus Media Group set up a time server using the Time Card Mini and gawk One Mini?

    -Linus Media Group set up a time server to meet the precise time synchronization requirements of their Proxmox cluster setup, which needed time sync within about 5 milliseconds.

  • What is the issue with the Raspberry Pi's kernel code as it relates to the Time Card Mini?

    -The kernel code has an issue handling both the GPS serial connection (NMEA) and the PPS (Pulse Per Second) at the same time, which can cause instability. The Time Card Mini's manufacturer is aware of the issue and is working on a fix.

  • What is the significance of the PPS signal from the GPS chip?

    -The PPS signal provides a highly accurate time reference, with the potential to achieve synchronization within nanoseconds, which is essential for applications requiring precise timekeeping.

  • Why might using a public time server as a primary clock source be problematic if the internet goes down?

    -If the internet goes down, a public time server as a primary clock source would not be accessible, potentially causing synchronization issues. However, the GPS chip would still provide accurate time data, though without the internet, the system would lose the ability to sync with the actual time.

  • How accurate is the time synchronization achieved with the Time Card Mini and gawk One Mini?

    -The time synchronization achieved with these devices can be within 10 nanoseconds, which is extremely accurate and suitable for high-precision applications.

  • What is the practical use of such accurate timekeeping for a typical user?

    -While most users do not require such precise timekeeping, it is essential for specific applications like scientific research, financial trading systems, or any system that requires highly synchronized operations across multiple devices.

Outlines

00:00

🕒 Importance of Time Synchronization in Computing

The paragraph discusses the critical role of time synchronization in computing, especially when managing multiple computers. It introduces two products: the Time Card Mini and the g0 KK (possibly pronounced 'gawk'), which are used to maintain accurate timekeeping. These devices connect to GPS and other satellite systems to provide precise time data. The Time Card Mini includes a Raspberry Pi Compute Module 4, a GPS chip (u-blox LEA-M8F0), and additional features like USB, SD card slot, and Ethernet for connectivity. The devices are set up to create a time server for Linus Media Group, which is necessary for their Proxmox cluster setup requiring time sync within 5 milliseconds. The video also mentions a minor issue with the pronunciation of the product name 'g0 KK' and the setup process involving connecting antennas for GPS reception.

05:01

📡 Setting Up GPS Time Server and Resolving Technical Issues

This paragraph details the process of setting up a GPS time server using the Time Card Mini and gawk One Mini. It covers the initial lack of GPS reception, which was resolved by plugging in the correct antennas. The video explains the configuration of the time server, focusing on primary and secondary clocks. The primary clock uses PPS (Pulse Per Second) from the GPS chip for nanosecond accuracy, while the secondary clock sources time from public servers like Cloudflare. The paragraph also discusses a technical issue with the Raspberry Pi's kernel code, which affects the simultaneous use of GPS serial (NMEA) and PPS connections. The video concludes with a successful setup of the time server, achieving synchronization within 10 nanoseconds, and a demonstration of syncing a laptop to the local time server. The host expresses enthusiasm for the setup, despite it not being a necessity, and encourages viewers to subscribe and share their thoughts.

Mindmap

Keywords

💡Time Synchronization

Time synchronization is the process of ensuring that multiple computers or systems are running on the same time. In the video, the speaker emphasizes the importance of time sync across computers, especially in environments like server clusters, where even a few milliseconds of difference can cause issues. For example, Proxmox requires time sync within 5 milliseconds, making this concept essential for the setup described.

💡Time Card Mini

The Time Card Mini is a hardware device used to ensure accurate timekeeping by syncing with GPS satellites. The video highlights its role in providing precise time data to a Raspberry Pi system, making it suitable for creating a highly accurate local time server. The speaker focuses on this product's use in their setup at Linus Media Group for advanced time synchronization.

💡Real-time Clock (RTC)

A Real-time Clock (RTC) is a clock on a computer's motherboard that keeps track of time even when the machine is powered off. However, RTCs are prone to drifting, as explained in the video, where it's mentioned that an average computer's real-time clock can drift by several seconds per day. The Time Card Mini and other products discussed provide a more accurate alternative by using GPS-based time sources.

💡GPS Chip

A GPS chip is a component that communicates with global positioning satellites to get highly accurate time and location data. In the video, the u-blox Lea M8 F0 GPS chip is central to the Time Card Mini, helping the device retrieve accurate time from GPS satellites like Galileo and GLONASS, which is then used to sync time on the Raspberry Pi system.

💡PPS (Pulse Per Second)

PPS, or Pulse Per Second, is a signal emitted by GPS chips to mark the start of each second with extreme precision. The video explains that this pulse is used to synchronize time to the nanosecond level, a feature important for achieving the high accuracy needed in the Time Card Mini setup. The speaker notes that the GPS chip sends this pulse, which helps sync time down to a few nanoseconds or microseconds.

💡Proxmox

Proxmox is an open-source server management platform that relies on accurate time synchronization for proper functioning. In the video, Proxmox is mentioned as a key reason for setting up a time server, as it requires all connected systems to be within a 5-millisecond time sync. This highlights the importance of the Time Card Mini's precise timekeeping for server clusters.

💡NTP (Network Time Protocol)

NTP is a protocol used to synchronize the clocks of computers over a network. In the video, the speaker mentions using a local NTP server to sync their systems, and they configure Cloudflare's NTP server as a secondary time source. NTP is crucial in network environments to keep all systems running on the same time.

💡Cluster Computing

Cluster computing refers to a setup where multiple computers work together to perform tasks, often in data centers or for high-performance computing. In the video, the speaker explains that Linus Media Group was setting up a computer cluster and required accurate time sync between all machines, which is why they explored using the Time Card Mini and the G0KK (Gawk) for time synchronization.

💡Kernel Code

Kernel code refers to the core part of an operating system that manages system resources and communication between hardware and software. In the video, the speaker mentions an issue with the Raspberry Pi's kernel code affecting the time synchronization software, specifically when trying to use both the GPS serial connection (NMEA) and PPS simultaneously. This points to a technical limitation that is being worked on by the software developers.

💡Cloudflare

Cloudflare is an internet infrastructure company providing services such as DNS and NTP servers. In the video, the speaker configures Cloudflare’s public NTP server as a secondary time source for their local time server setup. This adds redundancy in case the GPS signal is unavailable or unreliable, ensuring that the time server stays accurate by using both GPS and internet-based sources.

Highlights

Time synchronization is crucial for computers, especially when coordinating tasks across multiple machines.

The Time Card Mini and the g0 KK are products designed to provide highly accurate timekeeping for computer systems.

Computer motherboards typically have a real-time clock that can drift, making external timekeeping devices valuable.

The Time Card Mini can maintain time accuracy to within 0.03 seconds per year.

The device uses a Raspberry Pi Compute Module 4 and a GPS chip to sync with global satellite systems for precise time data.

It offers USB, SD card slot, DIP switches, GPIO pins, antenna connection, USB on-the-go, and Ethernet for connectivity.

The PCIe card is used to provide power to the Raspberry Pi, allowing it to function as a time server.

Setting up a time server at Linus Media Group was motivated by the need for precise time sync in a computer cluster setup.

Proxmox, a virtualization platform, requires time sync within about 5 milliseconds for cluster operations.

The Time Card Mini and g0 KK can be configured to use PPS from the GPS chip for nanosecond accuracy.

The device can also sync time with public NTP servers like time.cloudflare.com for a secondary time source.

MSI sponsored the video, offering back-to-school deals on a range of laptops, gaming PCs, GPUs, and more.

GPS antennas are required for the device to receive signals and maintain accurate timekeeping.

The device can achieve time accuracy within 10 nanoseconds, which is exceptionally precise.

There was an issue with the Raspberry Pi's kernel code that prevented simultaneous use of NMEA and PPS.

Time Beat is working on a fix for the kernel code issue to improve the device's functionality.

For now, it's recommended to use a public time server for major time sync and GPS for PPS to avoid issues.

The time server can sync time with devices on the same network, providing accurate local time.

While not necessary for all setups, the Time Card Mini and g0 KK offer a fun and precise way to manage time on a network.

Transcripts

play00:00

as you can probably imagine time is very

play00:02

important when it comes to computers you

play00:05

want your computer to be in time

play00:07

especially if you have more than one

play00:09

computer say you have a thousand

play00:11

computers and you want to like do stuff

play00:13

across all of them well they better be

play00:15

in time sync and it's not really a

play00:17

problem that we have but when I saw this

play00:21

product the time beat time card mini and

play00:24

the other one in here this one called is

play00:27

called the g0 KK I don't know if you're

play00:29

supposed to call call it gawk I probably

play00:31

should have asked them how to pronounce

play00:33

it but it doesn't matter it was just too

play00:35

cool to not check out I've never played

play00:37

with one of these this guy right here

play00:41

the gawk

play00:42

one and this one as you could probably

play00:45

guess is the time card mini you may or

play00:47

may not be aware but basically every

play00:49

computer on the planet I think I imagine

play00:52

phones have them but definitely like

play00:54

your gaming computer on its motherboard

play00:56

will have something called a realtime

play00:57

clock usually the clocks on computer are

play01:00

not super accurate for example the

play01:03

real-time clock in your average computer

play01:05

will drift multiple seconds per day for

play01:07

example this little add-on chip right

play01:09

here can hold time down to 0.03 seconds

play01:13

per year which is very accurate let's

play01:16

focus on the time card mini for now

play01:18

because the actual bones of these two

play01:20

products are pretty much the same you've

play01:22

got a Raspberry Pi compute module

play01:25

4 we've got a little spacer board on the

play01:28

back but this is the important part this

play01:31

is the time teller right here you can

play01:33

see the ublock Lea M8 F0 it's a GPS chip

play01:38

so what this board basically does is

play01:41

connects to GPS glow Nas Galileo

play01:44

satellites gets very accurate time data

play01:47

from them and then outputs it through

play01:50

these pins to our little Raspberry Pi

play01:53

and then we've got two little spots over

play01:54

here for add-on modules these uh you can

play01:57

put little chips on them and this chip

play01:59

the SI T 5811 can hold one part per

play02:03

billion accuracy for up to 8 hours in

play02:08

terms of the rest of IO it has USB here

play02:11

it's got an SD card slot here bunch of

play02:14

dip switches primarily used for setup

play02:16

you've got your connection points for

play02:17

the raspy the full set of GPO pins for

play02:20

the raspy which is super nice an antenna

play02:23

connection USB on the- go connection two

play02:27

type-c USBS and ethernet now you would

play02:30

use this ethernet to well provide

play02:32

internet to the Raspberry Pi and also to

play02:34

send your time signaling out um as you

play02:37

can imagine it's a little weird to be

play02:39

plugging a computer into a computer

play02:41

right this is a pcie card why would you

play02:43

plug this computer into your other

play02:46

computer the function of this is

play02:48

literally just to give power it's

play02:51

basically so you can add a very powerful

play02:54

very accurate time server to your

play02:57

existing infrastructure without having

play02:59

to put like a a whole new rack Unit in

play03:01

or like duct tape it to the side of your

play03:03

rack or whatever aside from these just

play03:05

being cool the reason I asked for them

play03:07

was to make a Time server at Linus Media

play03:09

Group for us the thing that kind of

play03:11

sparked this idea is we were setting up

play03:13

a cluster of computers using proxmox and

play03:15

proxmox requires that the time sync be

play03:18

within about 5 milliseconds you can

play03:20

achieve that pretty easily by having any

play03:22

local time server for instance most

play03:24

routers will let you enable an ntp

play03:26

server that runs on them which is what

play03:27

we did and it worked totally fine but

play03:30

you know it's me I want to do it like

play03:32

fancy or silly and that's what we're

play03:35

going to do with these do you think that

play03:36

this I mean it just needs to provide

play03:38

Power right I run the time card mini in

play03:41

the gawk One Mini it's like time server

play03:45

setion okay now I think I have to try

play03:48

that I really hope this doesn't break it

play03:51

I'd feel kind of bad if I broke it oh

play03:54

look at that they're both blinking look

play03:58

at that wow it works okay

play04:00

we've got a Time server in the time

play04:03

server can you see how this makes

play04:06

perfect sense now it should be running

play04:08

already you can see from the logs it's

play04:10

connecting to cloudflare um that's an

play04:13

ntp server a public time server uh that

play04:16

I configure just as like a secondary

play04:18

source usually you'd see a bunch of GPS

play04:20

logs but that's because I haven't told

play04:22

you about today's sponsor thanks to MSI

play04:25

for sponsoring this video unlike your

play04:27

homework there's one thing you won't

play04:28

want to put off msi's amazing back to

play04:31

school deals they're offering a wide

play04:32

selection of laptops gaming PCs gpus and

play04:36

more check out the MSI cyborg 14 an

play04:38

entrylevel gaming laptop that's sleek

play04:41

and Powerful perfect for gamers students

play04:43

or anyone who needs both it's equipped

play04:45

with a 14in full HD screen an Nvidia

play04:48

4000 series GPU and an Intel i7

play04:51

processor not quite what you're looking

play04:53

for no worries MSI has plenty of other

play04:56

laptops on sale right now be a good

play04:58

student and check out MS back to school

play05:00

deals using the link in the description

play05:02

below sorry wrong thing I mean I haven't

play05:04

plugged in the antennas yet so let's do

play05:07

that you can use basically any GPS

play05:09

antenna as far as I'm aware I got these

play05:11

ones on Amazon this is meant for a boat

play05:14

and I needed to get an adapter cuz this

play05:16

uses BNC connectors now I wonder will we

play05:19

have GPS reception in here zero

play05:21

satellites in view look at that 10

play05:25

satellites in view ooh wah wa we woo all

play05:29

right look at this we got our gawk one

play05:32

oh look it's ripping dude nothing like

play05:34

measuring your time in Nan seconds it's

play05:37

a very in-depth config file you can mess

play05:39

around with a lot of different settings

play05:41

and some far more advanced than others

play05:43

um but what we're most interested in is

play05:46

the primary clocks and secondary clocks

play05:48

primary clocks usually you set as your

play05:50

most accurate source of time in our case

play05:52

we're going to use PPS from the GPS chip

play05:56

and that's one pulse per second PPS

play05:58

stands for and basically Bally what's

play06:00

happening is the GPS chip on the time

play06:01

card is sending a little electrical

play06:03

signal at the start of every second and

play06:05

that's going to sink our time down to

play06:07

like Nan seconds or micros seconds and

play06:10

be very accurate then in the secondary

play06:12

clock section we're getting our major

play06:14

time which is like what time of day it

play06:16

is just down to the minute or second uh

play06:19

we're getting that from cloud flare

play06:20

time. cloudflare.com wow look at

play06:23

that hey I don't know I feel like

play06:26

something's funky is going on with this

play06:27

one

play06:36

the thing that's strange is it's like

play06:37

reporting to the

play06:39

dashboard very

play06:41

infrequently ooh look at our offset it's

play06:45

terrible we have 5c

play06:48

variants I don't know what to do boys

play06:51

it's been a few days but we've got the

play06:53

GPS antennas outside we've got them

play06:55

hooked up and we've sorted out the

play06:57

couple little issues we were running

play06:58

into I worked out with the time beat

play07:00

guys and now this all makes a lot more

play07:02

sense and it isn't crashing anymore I

play07:05

want to just give you guys a little bit

play07:06

of background here on the Raspberry Pi

play07:08

there's like an issue with the kernel

play07:10

code that they use to run the time beat

play07:13

software it doesn't like having the GPS

play07:15

serial connection which we call nmea as

play07:18

well as PPS at the same time and they

play07:20

did admit to me it is kind of their own

play07:22

fault because they wrote the code but

play07:23

they are working on a fix but for now we

play07:26

can't really do both at the same time at

play07:28

least not on the newer version

play07:30

this is the older version you can see

play07:32

here I'm running this on the time card

play07:34

mini you can see we're reading the major

play07:35

time from the GPS chip and it's several

play07:38

hundred milliseconds out which makes

play07:39

sense and then if we look at our

play07:42

PPS it's pretty accurate but it's also a

play07:45

bit all over the place for the most part

play07:48

we're

play07:49

talking within 10 nond accuracy but then

play07:53

on other times it's 14 or 45 nond out

play07:58

which is still mindboggling accurate but

play08:00

they were telling me on a proper setup

play08:01

without this bug they usually within 1 2

play08:04

3 NS at all times which is so so stable

play08:10

generally they recommended to me to just

play08:13

disable this nmea data and use a public

play08:16

time server like time. windows.com time.

play08:18

cloudflare.com as your major time Source

play08:21

now you might have a problem if the

play08:22

internet goes out because you're losing

play08:23

your major time Source but the GPS chip

play08:26

does still have that information and the

play08:28

pulse per second should still stay

play08:30

relatively accurate but generally if you

play08:32

have downtime of your main internet you

play08:33

probably have bigger problems let's sync

play08:36

my laptop to it hey it worked look at

play08:39

that look how accurate the time is if I

play08:42

sync to this local time server or like

play08:44

half a millisec out some of that is just

play08:47

going to be the clock on this Mac

play08:48

probably not being the greatest thing

play08:49

ever but uh we're also syncing over

play08:51

Wi-Fi but there you go we have a local

play08:54

time server getting its data from GPS

play08:57

and from public time servers our gawk

play09:00

One Mini our very own generally pretty

play09:02

much within 10 NS which is kind ofing

play09:05

insane I like this thing it's not

play09:07

necessary for us at all don't get me

play09:10

wrong what for our cluster setup as long

play09:13

as they're all synced to like a local

play09:15

time server we have our router acting as

play09:18

that it's got a pretty accurate Nick and

play09:21

maybe it's not true to actual time but

play09:24

as long as they all think that they're

play09:25

on the same time it doesn't really

play09:27

matter but this is just cool and I like

play09:29

doing cool stuff like this and I like

play09:31

sharing it with you so get subscribed

play09:34

hit like and tell me what you think

play09:35

about acurate time you probably don't

play09:37

need it either but it is fun and not

play09:40

that expensive if you buy the normal

play09:41

version of this and build it

play09:43

yourself bye

Rate This

5.0 / 5 (0 votes)

Related Tags
TimekeepingComputer SyncGPS TimeRaspberry PiTech GadgetsAccuracyDIY ProjectLinus MediaProxmoxNTP Server