Time Station Emulator

(github.com)

221 points | by FriedPickles 22 hours ago

20 comments

  • cvoss 21 hours ago
    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 16 hours ago
      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 16 hours ago
        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 20 hours ago
      > audio jack

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

  • anfractuosity 19 hours ago
    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 18 hours ago
      He kind of buried the lede, there's another MP3 to unlock them.
  • jhbadger 8 hours ago
    This could be really useful in the future. NIST has been talking about retiring its radio-syncing signal, as there are better modern alternatives with satellites, the Internet, etc. But last time they suggested this there was an outcry, not just from the public with old radio-synced clocks and watches, but also industry with legacy equipment using it. This provides a solution.
    • lxgr 2 hours ago
      Satellite-based time signals also seem easier to spoof, given the inherent power constraints of the transmitters.

      That said, newer ones can use authentication, which (together with a reasonably accurate local oscillator) can prevent at least trivial spoofing.

  • mikestew 21 hours ago
    “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 13 hours ago
      THIS is what you call hacking
      • gchadwick 6 hours ago
        A shame this hasn't shot to number 1 on HN and stayed there. At least it's getting reasonable upvotes.

        This is a truly fantastic piece of hacking, going by the original meaning of the word as used within the dawn of the computer era.

    • fragmede 18 hours ago
      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 14 hours ago
        I first learned about this while reading Cryptonomicon. It seemed too fantastical to be a real thing.
        • hackernudes 4 hours ago
          Pretty sure it was in Snow Crash
      • torcete 10 hours ago
        Reminds me of the theremin. Turning an interference into something useful (or beautiful)
    • jofzar 18 hours ago
      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 14 hours ago
        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 16 hours ago
        … and I thought the Scanjet 5p “Ode to Joy” easter egg was incredible.
  • Chaosvex 20 hours ago
    Shame there's no video demonstrating it working. It's a fun idea but without a demo, I'm left wondering about the efficacy.
  • SamBam 15 hours ago
    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 15 hours ago
      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.
      • SamBam 8 minutes ago
        Ah, hunting the serial number led me to discover that the clock is part of a centrally-synchronized wireless clock system. The company is discontinued, so who knows how old these are. So I'm going to hunt down a wireless transmitter somewhere in the building that is setting my clock four minutes fast... Oh well, I don't get to try out OP's cool tech!
  • pesfandiar 13 hours ago
    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.
  • airbreather 8 hours ago
    check out this guy, doing something similar sending Lora packets without a radio - https://youtu.be/eIdHBDSQHyw?si=MGteEp72Mz52qNqu

    "This video explores LoRaWAN communication using a microcontroller without a dedicated radio chip. CNLohr demonstrates techniques to transmit LoRa packets over surprisingly long distances, pushing the limits of inexpensive hardware. The project involves creative software and hardware interaction to generate signals at unexpected frequencies."

  • com2kid 16 hours ago
    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.

    • kotaKat 8 hours ago
      What's weird is it seems like for a long time now I haven't seen "self setting" clocks on retail shelves in a while at big box stores. Everyone went back to just manual timekeeping and I haven't seen a self-setter in a hot minute.
      • lxgr 2 hours ago
        I really wish microwaves and ovens came with radio-controlled clocks.

        While the mains frequency is usually a great (long-term) stable frequency source, the bigger problem is that all microwaves I know lack a backup battery and require re-setting after unplugging them.

      • sumtechguy 4 hours ago
        I recently bought 2 of them.

        You have to specifically look for the feature. Most do not have it.

  • LeoPanthera 15 hours ago
    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 14 hours ago
      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_ 16 hours ago
    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?
  • wrs 22 hours ago
    And the 2024 lateral thinking award goes to...
    • geerlingguy 21 hours ago
      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 20 hours ago
    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.

    • labcomputer 19 hours ago
      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 16 hours ago
        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?

        • lxgr 2 hours ago
          That's WWV, also in Fort Collins, but on a very different frequency in the shortwave band.
      • vermilingua 19 hours ago
        There is an audible setting in the app that shifts the signal down to human range.
      • McGlockenshire 16 hours ago
        > 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.

    • WarOnPrivacy 16 hours ago
      > 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.

    • drmpeg 19 hours ago
      Here's an emulation of WWV I did with a transmit capable SDR.

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

  • tamimio 11 hours ago
    Very impressive, I just tried it, the first time it worked but synced the wrong time, despite the device time is correct, the browser (preview part) had the wrong time however. I tried to offset the time and sync it again, the watch is detecting the signal but no sync.

    Nonetheless, pretty amazing!

  • hahahahhaah 13 hours ago
    I was like is the clock transmission only 50khz and then wow it relies on harmonics.
  • sublinear 19 hours ago
    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 17 hours ago
      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 20 hours ago
    What? Wow
  • kiwijamo 18 hours ago
    I read the title as 'Train Station Emulator'. :)
  • pimlottc 17 hours ago
    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 19 hours ago
    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 16 hours ago
      Are you sure the beer didn't come first?