Get Apple To Track Your Bluetooth Devices For You

Apple’s “Find My” service allows users to track their missing devices by leveraging a worldwide network of location-aware iGadgets. With millions of iPhones and Macs out in the wild listening for the missing device’s Bluetooth advertisements and relaying their findings to the Cupertino Mothership, it’s a highly effective way of tracking hardware so long as it stays in relatively urban areas. Unfortunately, the system is completely proprietary and non-Apple devices aren’t invited to play.

Or at least, that used to be the case. A project recently released by the [Secure Mobile Networking Lab] called OpenHaystack demonstrates how generic devices can utilize Apple’s Find My network by mimicking the appropriate Bluetooth Low Energy (BLE) broadcasts. Currently they have a firmware image for the BBC micro:bit, as well as a Python script for Linux, that will allow you to spin up an impromptu Find My target. But the team has also published all the information required to implement similar functionality on other BLE-capable devices and microcontrollers, so expect the list of supported hardware to grow shortly.

Diagram showing how the Apple Find My system worksSomewhat ironically, while OpenHaystack allows you to track non-Apple devices on the Find Me tracking network, you will need a Mac computer to actually see where your device is. The team’s software requires a computer running macOS 11 (Big Sur) to run, and judging by the fact it integrates with Apple Mail to pull the tracking data through a private API, we’re going to assume this isn’t something that can easily be recreated in a platform-agnostic way. Beyond the occasional Hackintosh that might sneak in there, it looks like Tim Cook might have the last laugh after all.

It’s not immediately clear how difficult it will be for Apple to close this loophole, but the talk of utilizing a private API makes us think there might be a built-in time limit on how long this project will be viable. After all, Big Tech doesn’t generally approve of us peons poking around inside their machinations for long. Though even if Apple finds a way to block OpenHaystack, it’s expected the company will be releasing “AirTags” sometime this year which will allow users to track whatever objects they like through the system.

When Is Apple Beige Not Apple Beige?

If we cast our minds back a few decades, almost all computers were a beige colour. “Beige box” even became a phrase for a generic PC, such was their ubiquity. Long before PCs though there were other beige computers, and probably one of the first to land on the desks of enthusiasts rather than professionals was the Apple ][. But exactly what beige colour was it? It’s a question that interested [Ben Zotto], and his quest led him through a fascinating exploration of a colour most of us consider to be boring.

We’re used to older beige computers becoming yellow with time, as the effect of light and age causes the fire retardants in their plastic to release bromine. But the earlier Apple products haven’t done this, because their beige came not from the plastic but from a paint. [Ben] was lucky enough to find a small pot of touch-up paint from Apple that was made available to dealers, so notwithstanding any slight pigment changes from its age, he set off in pursuit of its origin.

Along the way to identifying a modern Pantone shade (Pantone 14–0105 TPG, for the curious) he treats us to a cross-section of Apple’s early colour history with reference to the memories of early Apple luminaries. He even suggests readily available shades that could suffice, pointing to Gloss Almond Rust-Oleum spray paint.

So should you wish to colour-match to an early Apple, now you can. If you have a Commodore or an Atari though, maybe your task is a little easier.

Raspberry Pi Zero Powers Spotify Streaming IPod

Even those critical of Apple as a company have to admit that they were really onto something with the iPod. The click wheel was a brilliant input device, and the simplicity of the gadget’s user interface made it easy to get to the music you wanted with a minimum of hoop jumping. Unfortunately it was a harbinger of proprietary software and DRM, but eventually there were a few open source libraries that let you put songs on the thing without selling your soul to Cupertino.

Of course, modern users expect a bit more than what the old hardware can deliver. Which is why [Guy Dupont] swapped the internals of his iPod Classic with a Raspberry Pi Zero W. This new Linux-powered digital audio player is not only capable of playing essentially any audio format you throw at it, but can also tap into streaming services such as Spotify. But such greatness doesn’t come easy; to pull this off, he had to replace nearly every component inside the player with the notable exception of the click wheel itself. Good thing the Classics were pretty chunky to begin with.

In addition to the Pi Zero running the show, he also had to fit a 1000 mAh battery, its associated charging and boost modules, a vibration motor for force feedback, and a 2″ LCD from Adafruit. The display ended up being almost the perfect size to replace the iPod’s original screen, and since it uses composite video, only took two wires to drive from the Pi. To interface with the original click wheel, [Guy] credits the information he pulled from a decade-old Hackaday post.

Of course with a project like this, the hardware is only half the story. It’s one thing to cram all the necessary components inside the original iPod enclosure, but by creating such an accurate clone of its iconic UI in Python, [Guy] really took things to the next level. Especially since he was able to so seamlessly integrate support for Spotify, a feature the Apple devs could scarcely have imagined back at the turn of the millennium. We’re very interested in seeing the source code when he pushes it to the currently empty GitHub repository, and wouldn’t be surprised if it set off a resurgence of DIY iPod clones.

We’ve seen modern hardware grafted onto the original iPod mainboard, and over the years a few hackers have tried to spin up their own Pi-based portable music players. But this project that so skillfully combines both concepts really raises the bar.

Continue reading “Raspberry Pi Zero Powers Spotify Streaming IPod”

Reconstructing Data From A Corrupt Apple ][ Floppy Disk

Back in 1990 [Benjamin Zotto] wrote – while in elementary school – a dog racing game called Wonderland 2. The BASIC source code and images for the game were stored on a single ProDOS formatted, soft-sectored 5.25″ floppy disk. Fast-forward thirty years to today and [Benjamin] found to his dismay that ProDOS could no longer read the floppy, giving an I/O error. Not deterred, he set about to recover the data, as documented in this Twitter thread.

Applesauce visualization of the patterns on the corrupted disk, with soft-sectoring spiral arms.

The gist of the story is that the floppy disk’s surface could still be scanned with help from the aptly named Applesauce Floppy Drive Controller, which got the following visualization of the magnetic patterns on the disk surface:

This data could then be analyzed sector by sector, with the bad sectors and the cause for ProDOS flaking out with its reading attempts here marked in red.

Checking the data recovered so far confirmed that it was a ProDOS disk. It also confirmed that the sector containing the directory listing was shot. This required diving into the technical reference manual for ProDOS and its filesystem to figure out how to reconstruct the directory layout. This required figuring out the offsets and sizes of the files, assisted by knowing what was likely on the disk, and having some bits and pieces of the original volume listing still intact. This allowed for the directory volume to be rebuilt, one byte at a time.

Sectors on the disk, with bad sectors in red.

At the end of that arduous and highly educational journey success waited, and [Benjamin] was once again able to relive his memories of 1990s BASIC and hand-drawn bitmap graphics.

The Origin Of Cut, Copy, And Paste

I’m always fascinated that someone designed just about everything you use, no matter how trivial it is. The keyboard you type on, the light switch you turn on, even the faucet handle. They don’t just spontaneously grow on trees, so some human being had to build it and probably had at least a hazy design in mind when they started it.

Some things are so ubiquitous that it is hard to remember that someone had to dream them up to begin with. A friend of mine asked me the other day why we use Control+X and Control+V to manipulate the clipboard almost universally. Control+C for copy makes sense, of course, but it is still odd that it is virtually universal in an industry where everyone likes to reinvent the wheel. I wasn’t sure of the answer but figured it had to do with some of the user interface standards from IBM or Sun. Turns out, it is much older than that.

Continue reading “The Origin Of Cut, Copy, And Paste”

Retrofitting USB-C To An IPod Nano

Some hacks serve a critical need, while others are just for the challenge or fun of it. We suspect the latter was the real reason [David Buchanan] converted a first generation iPod Nano from its original 30 pin connector to USB-C.

USB-C mounted

[David] bought the iPod with a dead battery, so when he opened the iPod to get the old battery out, he noticed there was enough space to fit a USB-C connector. The original Apple 30 pin connector runs USB 2.0 through four of the pins, so [David] used the original USB cable and identified the appropriate pins and traces with a continuity tester. The connector was destructively removed with side cutters, ripping off all but one of the pads in the process. A hot air station might have made things easier, but we assume he did not have one on hand. The USB-C connector was scavenged from a cheap USC-C to USB Micro adaptor and mounted by soldering the housing directly to the PCB’s ground plane. The three remaining terminals were soldered to the traces with enamel wire.

With the new battery installed, [David] confirmed that both charging and data transfer worked. The IC that handles the button and scroll pad interfered slightly with the new connector, so he filed away some of the IC’s excess. Any open pads close to the new connector was covered with Kapton tape to avoid shorts. The large hole in the enclosure for the 30 pin connection was partly filled in with five-minute epoxy. The final assembled product looks almost factory produced and works as it’s supposed to, so we call this a win.

Retrofitting USB-C connectors in various electronic devices has become a popular hack over the past two years. We’ve seen it done on everything from Thinkpads to soldering irons. Continue reading “Retrofitting USB-C To An IPod Nano”

Hackaday Links Column Banner

Hackaday Links: November 29, 2020

While concerns over COVID-19 probably kept many a guest room empty this Thanksgiving, things were a little different aboard the International Space Station. The four-seat SpaceX Crew Dragon is able to carry one more occupant to the orbiting outpost than the Russian Soyuz, which has lead to a somewhat awkward sleeping arrangement: there are currently seven people aboard a Station that only has six crew cabins. To remedy the situation, Commander Michael Hopkins has decided to sleep inside the Crew Dragon itself, technically giving himself the most spacious personal accommodations on the Station. This might seem a little hokey, but it’s actually not without precedent; when the Shuttle used to dock with the ISS, the Commander would customarily sleep in the cockpit so they would be ready to handle any potential emergency.

Speaking of off-world visitation, the Hayabusa2 spacecraft is nearly home after six years in space. It won’t be staying long though, the deep-space probe is only in the neighborhood to drop off a sample of material collected from the asteroid Ryugu. If all goes according to plan, the small capsule carrying the samples will renter the atmosphere and land in the South Australian desert on December 6th, while Hayabusa2 heads back into the black for an extended mission that would have it chasing down new asteroids into the 2030s.

Moving on to a story that almost certainly didn’t come from space, a crew from the Utah Division of Wildlife Resources recently discovered a strange metal monolith hidden in the desert. While authorities were careful not to disclose the exact coordinates of the object, it didn’t take Internet sleuths long to determine its location, in part thanks to radar data that allowed them to plot the flight path of a government helicopters. Up close inspections that popped up on social media revealed that the object seemed to be hollow, was held together with rivets, and was likely made of aluminum. It’s almost certainly a guerrilla art piece, though there are also theories that it could have been a movie or TV prop (several productions are known to have filmed nearby) or even some kind of military IR/radar target. We may never know for sure though, as the object disappeared soon after.

Even if you’re not a fan of Apple, it’s hard not to be interested in the company’s new M1 chip. Hackers have been clamoring for more ARM laptops and desktops for years, and with such a major player getting in the game, it’s only a matter of time before we start seeing less luxurious brands taking the idea seriously. After the recent discovery that the ARM version of Ubuntu can run on the new M1 Macs with a simple virtualization layer, it looks like we won’t have to wait too long before folks start chipping away at the Walled Garden.

In the market for a three phase servo controller? A reader who’s working on a robotics project worth as much as a nice house recently wrote in to tell us about an imported driver that goes for just $35. Technically it’s designed for driving stepper motors, but it can also (somewhat inefficiently) run servos. Our informant tells us that you’d pay at least $2,000 for a similar servo driver from Allen-Bradley, so the price difference certainly seems to make up for the hit in performance.

Finally, some bittersweet news as we’ve recently learned that Universal Radio is closing. After nearly 40 years, proprietors Fred and Barbara Osterman have decided it’s time to start winding things down. The physical store in Worthington, Ohio will be shuttered on Monday, but the online site will remain up for awhile longer to sell off the remaining stock. The Ostermans have generously supported many radio clubs and organizations over the years, and they’ll certainly be missed. Still, it’s a well-deserved retirement and the community wishes them the best.