Remix.run Logo
Time Station Emulator(github.com)
131 points by FriedPickles 9 hours ago | 39 comments
pesfandiar 2 minutes ago | parent | next [-]

I'm surprised and impressed that this works. I would've guessed phones have enough RF shielding and low-pass filters in the audio path to prevent this.

mikestew 8 hours ago | parent | prev | next [-]

“One of the higher-frequency harmonics inevitably created by any real-world DAC during playback will then be the original fundamental, which should leak to the environment as a short-range radio transmission via the ad-hoc antenna formed by the physical wires and circuit traces in the audio output path.”

Sometimes I think I’m a smart guy…and then I read of people doing shit like this.

hahahahhaah 9 minutes ago | parent | next [-]

THIS is what you call hacking

fragmede 5 hours ago | parent | prev | next [-]

Van Eck Phreaking dates back to 1982, which used CRTs, and if you're aware of that, it's not an insurmountably huge logical leap to realize that modern hardware can be exploited the same way (thanks to greater sensitivity in receiving devices).

https://en.wikipedia.org/wiki/Van_Eck_phreaking

ihaveajob an hour ago | parent [-]

I first learned about this while reading Cryptonomicon. It seemed too fantastical to be a real thing.

jofzar 6 hours ago | parent | prev [-]

Came here to say this, I literally can't believe this works.

It's like a couple of years ago where someone showed a proof of concept of turning a HDD into a microphone

jasonjayr 39 minutes ago | parent | next [-]

It turns out those shopping car wheel locks use the same kind of low-frequency RF that can leak from your phone speaker. Someone made an app that allows you to lock or unlock certain shopping carts.

xattt 3 hours ago | parent | prev [-]

… and I thought the Scanjet 5p “Ode to Joy” easter egg was incredible.

cvoss 8 hours ago | parent | prev | next [-]

I once programmed my TI-84 calculator to do exactly this! The only missing thing was a circuit to convert the audio jack output voltage into the needed form for an antenna. I had the CS know-how but no EE know-how, so I never got it to work. It was fun to dream about confusing my high school's clocks though. (Sadly, the other obstacle was that the clocks only listened for the signal overnight, which improved their chances of detecting the weak broadcast out of far-away Colorado.)

NegativeK 3 hours ago | parent | next [-]

I didn't know that about the overnight; that's neat. I'm often in my garage before work, and I always assumed the 5am reset time was just because only weirdos are noticing a clock whir its arms around then.

xattt 3 hours ago | parent [-]

I live just beyond the fringe zone for reception of WWVB on my Casio Waveceptor. Depending on solar conditions, and how I leave the watch overnight (south-east facing window with space to a metal window frame for a coupling effect), I can get it to sync once in a while.

direwolf20 7 hours ago | parent | prev [-]

> audio jack

That's a serial port, except when you're playing Bad Apple

anfractuosity 6 hours ago | parent | prev | next [-]

You can apparently lock shopping trolleys using the same kind of principle - https://www.tmplab.org/2008/06/18/consumer-b-gone/

And https://www.youtube.com/watch?v=LmSyb0kBvGE

axus 5 hours ago | parent [-]

He kind of buried the lede, there's another MP3 to unlock them.

hahahahhaah 5 minutes ago | parent | prev | next [-]

I was like is the clock transmission only 50khz and then wow it relies on harmonics.

SamBam 3 hours ago | parent | prev | next [-]

I have a big old analog radio-controlled clock in my classroom, and it's always about 4 minutes fast, which would drive me nuts except most of my students can't read analog time so they're never confused by it.

Regardless, I'm excited to try this out next time I'm in the classroom. I'm a little confused by time zones, however. My clock has no controls on the back whatsoever (at least that I can find, I haven't opened it up), so I assume it doesn't know what time zone I'm in.

So do I need to set the time zone on the station emulator? There's an "offset" setting, but it says it's only for correcting "minor errors."

LeoPanthera 2 hours ago | parent [-]

If you are in the USA, your clock must have a time zone control (or be fixed to one time zone), because the WWVB signal broadcasts UTC.

com2kid 3 hours ago | parent | prev | next [-]

I remember years ago I bought a clock that advertised it set itself using the atomic clock broadcast.

Which it did. The very first time it was plugged in, and then never again after. The clock also kept horrible time, it lost a couple minutes every month. Truly an astonishing piece of wtf engineering.

LeoPanthera 2 hours ago | parent | prev | next [-]

It says it doesn't work on iOS Safari, but iOS users can get the "Clock Wave" app from the app store which does the same thing. (And allows fun time zone tricks with clocks from other countries.)

ricktdotorg an hour ago | parent [-]

thank you for this reply! i've got 6x CASIO watches and have struggled to the time on them synced for over a decade. a quick [small] purchase later and every single one of my CASIOs are synced. i'm so happy. its the little things that matter. thanks again.

scoops_ 3 hours ago | parent | prev | next [-]

I’ll have to see if this can work with a multi band 6 gshock, I assume it’s similar to a standard atomic clock?

Chaosvex 7 hours ago | parent | prev | next [-]

Shame there's no video demonstrating it working. It's a fun idea but without a demo, I'm left wondering about the efficacy.

daniel_j 6 hours ago | parent [-]

I wasn't able to get this to work on a Pixel 8 in Chrome/Firefox on a JP region clock

wrs 9 hours ago | parent | prev | next [-]

And the 2024 lateral thinking award goes to...

geerlingguy 8 hours ago | parent [-]

Ha, there's one radio clock in my house that I still keep going for sentimental reasons... it's had a rough time setting itself for a few years, likely due to its placement in the house.

I'll have to test this out sometime, what a fun idea!

McGlockenshire 7 hours ago | parent | prev | next [-]

This is pretty darn cool, but I have to say I was somewhat let down by the WWVB signal. I was expecting the entire audible range instead of simply the extracted data. That being said, that's also really darn cool.

I find the WWV/WWVB droning soothing somehow.

WarOnPrivacy 3 hours ago | parent | next [-]

> I find the WWV/WWVB droning soothing somehow.

Me too. I had a Hallicrafter S-38 as a kid and used fall asleep by WWV & CHU. It felt like a private space that only nerds could find.

labcomputer 6 hours ago | parent | prev | next [-]

Err… WWVB has no audio range. The carrier frequency is only 60 kHz. It’s effectively a CW signal since the amplitude is only modulated once per second.

xattt 3 hours ago | parent | next [-]

There’s a voice mode station that mixes time signals and voice messages together during broadcast. This station also includes GPS errata from time to time, which in my head canon, are received by solo sailors crossing the Atlantic.

I thought this was Boulder, but I assume not?

vermilingua 6 hours ago | parent | prev | next [-]

There is an audible setting in the app that shifts the signal down to human range.

McGlockenshire 3 hours ago | parent | prev [-]

> WWVB has no audio range

I got my WWVB and WWVH confused!

There's a reasonable emulator here: https://wwv.mcodes.org/

Unfortunately it doesn't let you play both at the same time, which is what you need for the full experience.

drmpeg 6 hours ago | parent | prev [-]

Here's an emulation of WWV I did with a transmit capable SDR.

https://www.youtube.com/watch?v=9LsJn0CyyZI

sublinear 6 hours ago | parent | prev | next [-]

I can't tell if I'm fooling myself or if this actually (partially) worked. Is it possible for only the hour and seconds to sync if the signal isn't perfectly received? How long is it supposed to take to sync the time? Is it possible that this can confuse clocks that get a strong enough real signal while the phone is running this nearby?

I just tried it on a clock that has only ever successfully synced once many years ago, and it's still in the same bad location that never seemed to get a strong enough signal.

Its crappy little LCD animation did indeed seem to dance in sync with when I would turn the signal on and off on my phone. It took a few minutes of trying but then suddenly the hour and seconds updated to the exact time. Had to set the minutes manually :/

wildzzz 4 hours ago | parent [-]

It takes a whole minute for the entire data frame to be transmitted. While 1 bps is great for propagation, WWVB (and it's kin) is a really weak signal to pickup using the tiny antennas these kinds of clocks have. There's a relationship between received power, modulation type, data rate, error correction, and error rate so changing one will change others. Thus it can sometimes take at least several minutes for all of the timing data to be gathered as there is no error correction included in the data frame. Also the HF spectrum is incredibly noisy as switch-mode power supplies (pretty much in everything these days) produce a ton of interference so taking a battery powered clock outside can help greatly.

WWVB clocks are great but aren't so good these days. NTP is pretty much as good as anyone will ever need in their home but this has the downside of usually requiring internet access. GPS clocks have been the standard for 30+ years for anyone needing precision timing.

cantalopes 7 hours ago | parent | prev | next [-]

What? Wow

kiwijamo 5 hours ago | parent | prev | next [-]

I read the title as 'Train Station Emulator'. :)

pimlottc 4 hours ago | parent | prev | next [-]

This certainly looks impressive but it’s a bit misleading to say it works on “almost any phone” when it doesn’t work on iPhone (which only allows mobile Safari)

brilliang 6 hours ago | parent | prev [-]

Whenever I see things like this, my first thought is that somebody is going to write something to mess up nearby atomic clocks, just because they can, then I think- why, why did you do this?

Then someone will respond: you’re just catatrophising- anyone could’ve done this years before now, and I’ll say no, because it wasn’t up on frontpage HN there with code so that anyone would think of it. Then they’ll say, well why did you tell everyone that idea then! It’s your fault! Then I’ll say that someone would’ve done it if it weren’t me. Then I’ll go have a beer.

bityard 3 hours ago | parent [-]

Are you sure the beer didn't come first?