Reverse Engineering Cyclic Redundancy Codes

Cyclic redundancy codes (CRC) are a type of checksum commonly used to detect errors in data transmission. For instance, every Ethernet packet that brought you the web page you’re reading now carried with it a frame check sequence that was calculated using a CRC algorithm. Any corrupted packets that failed the check were discarded, and the missing data was detected and re-sent by higher-level protocols. While Ethernet uses a particularly common CRC, there are many, many different possibilities. When you’re reverse-engineering a protocol that contains a CRC, although it’s not intended as a security mechanism, it can throw a wrench in your plans. Luckily, if you know the right tool, you can figure it out from just a few sample messages.

A case in point was discussed recently on the hackaday.io Hack Chat, where [Thomas Flayols] came for help reverse engineering the protocol for some RFID tags used for race timing. Let’s have a look at the CRC, how it is commonly used, and how you can reverse-engineer a protocol that includes one, using [Thomas’] application as an example.

Continue reading “Reverse Engineering Cyclic Redundancy Codes”

What’s The Deal With Square Traces On PCBs

When designing a printed circuit board, there are certain rules. You should place decoupling capacitors near the power pins to each chip. Your ground planes should be one gigantic fill of copper; two ground planes connected by a single trace is better known as an antenna. Analog sections should be kept separate from digital sections, and if you’re dealing with high voltage, that section needs to be isolated.

One that I hear a lot is that you must never put a 90-degree angle on a trace. Some fear the mere sight of a 90-degree angle on a PCB tells everyone you don’t know what you’re doing. But is there is really no greater sin than a 90-degree trace on a circuit board?

This conventional wisdom of eschewing 90-degree traces is baked into everything we know about circuit board design. It is the first thing you’re taught, and it’s the first thing you’ll criticize when you find a board with 90-degree traces. Do square traces actually matter? The short answer is no, but there’s still a reason we don’t do it.

Continue reading “What’s The Deal With Square Traces On PCBs”

You’re Sitting On An Engineering Masterpiece: Chairs As A Design Challenge

If you move as a hardware hacker through the sometimes surprisingly similar world of artists, craftspeople, designers, blacksmiths, and even architects, there’s one piece of work that you will see time and time again as an object that exerts a curious fascination. It seems that designing and building a chair is a rite of passage, and not just a simple chair, but in many cases an interesting chair.

An American-made Windsor chair from the turn of the 19th century. Los Angeles County Museum of Art [Public domain]
An American-made Windsor chair from the turn of the 19th century. Los Angeles County Museum of Art [Public domain]
Some of the most iconic seating designs that you will be instantly familiar with through countless mass-produced imitations began their lives as one-off design exercises. Yet we rarely see them in our community of hackers and makers, a search turns up only a couple of examples. This is surprising, not least because there is more than meets the eye to this particular piece of furniture. Your simple seat can be a surprisingly complex challenge.

Moving Charis From Artisan to Mass Market

The new materials and mass production techniques of the 19th and 20th centuries have brought high-end design into the hands of the masses, but while wealthy homes in earlier centuries had high-quality bespoke furniture in the style of the day, the traditional furniture of the masses was hand-made in the same way for centuries often to a particular style dependent on the region in which it was produced.

Continue reading “You’re Sitting On An Engineering Masterpiece: Chairs As A Design Challenge”

The Future Of Space Is Tiny

While recent commercial competition has dropped the cost of reaching orbit to a point that many would have deemed impossible just a decade ago, it’s still incredibly expensive. We’ve moved on from the days where space was solely the domain of world superpowers into an era where multi-billion dollar companies can join on on the fun, but the technological leaps required to reduce it much further are still largely relegated to the drawing board. For the time being, thing’s are as good as they’re going to get.

Starlink satellites ready for launch

If we can’t count on the per pound cost of an orbital launch to keep dropping over the next few years, the next best option would logically be to design spacecraft that are smaller and lighter. Thankfully, that part is fairly easy. The smartphone revolution means we can already pack an incredible amount sensors and processing power into something that can fit in the palm of your hand. But there’s a catch: the Tsiolkovsky rocket equation.

Often referred to as simply the “rocket equation”, it allows you to calculate (among other things) the ratio of a vehicle’s useful cargo to its total mass. For an orbital rocket, this figure is very small. Even with a modern launcher like the Falcon 9, the payload makes up less than 5% of the liftoff weight. In other words, the laws of physics demand that orbital rockets are huge.

Unfortunately, the cost of operating such a rocket doesn’t scale with how much mass it’s carrying. No matter how light the payload is, SpaceX is going to want around $60,000,000 USD to launch the Falcon 9. But what if you packed it full of dozens, or even hundreds, of smaller satellites? If they all belong to the same operator, then it’s an extremely cost-effective way to fly. On the other hand, if all those “passengers” belong to different groups that split the cost of the launch, each individual operator could be looking at a hundredfold price reduction.

SpaceX has already packed 60 of their small and light Starlink satellites into a single launch, but even those craft are massive compared to what other groups are working on. We’re seeing the dawn of a new era of spacecraft that are even smaller than CubeSats. These tiny spacecraft offer exciting new possibilities, but also introduce unique engineering challenges.

Continue reading “The Future Of Space Is Tiny”

Snoopy Come Home: The Search For Apollo 10

When it comes to the quest for artifacts from the Space Race of the 1960s, few items are more sought after than flown hardware. Oh sure, there have been stories of small samples of the 382 kg of moon rocks and dust that were returned at the cost of something like $25 billion making it into the hands of private collectors, and chunks of the moon may be the ultimate collector’s item, but really, at the end of the day it’s just rock and dust. The serious space junkie wants hardware – the actual pieces of human engineering that helped bring an epic adventure to fruition, and the closer to the moon the artifact got, the more desirable it is.

Sadly, of the 3,000,000 kg launch weight of a Saturn V rocket, only the 5,600 kg command module ever returned to Earth intact. The rest was left along the way, mostly either burned up in the atmosphere or left on the surface of the Moon. While some of these artifacts are recoverable – Jeff Bezos himself devoted a portion of his sizable fortune to salvage one of the 65 F1 engines that were deposited into the Atlantic ocean – those left on the Moon are, for now, unrecoverable, and in most cases they are twisted heaps of wreckage that was intentionally crashed into the lunar surface.

But at least one artifact escaped this ignominious fate, silently orbiting the sun for the last 50 years. This lonely outpost of the space program, the ascent stage from the Apollo 10 Lunar Module, appears to have been located by a team of amateur astronomers, and if indeed the spacecraft, dubbed “Snoopy” by its crew, is still out there, it raises the intriguing possibility of scoring the ultimate Apollo artifact by recovering it and bringing it back home.

Continue reading “Snoopy Come Home: The Search For Apollo 10”

Spy Tech: Tiny Spy Plane Becomes Cold War Prize

What looks like something famous, is much smaller, and is embroiled in a web of cold war cloak-and-dagger intrigue? It sounds like the answer could be Mini-Me from the Austin Powers movies, but we were actually thinking of the D-21 supersonic spy drone. Never heard of it? It didn’t have a very long service life, but it was a tiny little unmanned SR-71 and is part of a spy story that would fit right in with James Bond, if not Austin Powers.

The little plane had a wingspan of only 19 feet — compared to the SR-71’s 56 foot span — and was 42 feet long. It could fly at about Mach 3.3 at 95,000 feet and had a range of around 3,500 miles. It shared many characteristics with its big brother including the use of titanium and a design to present a low RADAR cross-section.

The Spy Who Photographed Me

With today’s global economy and increased international cooperation, it is hard to remember just how tense the late 1960s were. Governments wanted to see what other governments were up to. Satellite technology would eventually fill that role, but even though spy satellites first appeared in 1959, they used film that had to be retrieved by an airplane as it fell from the sky and then processed. Not exactly real time. More effective satellites would have to wait for better imaging technology — see the video below for just how bad those old satellite images were. That left spy planes to do the bulk of the work.

Continue reading “Spy Tech: Tiny Spy Plane Becomes Cold War Prize”

Electric Cars Sound Off, Starting July 1st

By and large, automakers have spent much of the last century trying to make cars quieter and more comfortable. Noise from vehicles can be disruptive and just generally annoying, so it makes sense to minimise it where possible.

However, the noise from the average motor vehicle can serve a useful purpose. A running engine acts as an auditory warning to those nearby. This is particularly useful to help people avoid walking in front of moving vehicles, and is especially important for the visually impaired.

Electric vehicles, with their near-silent powertrains, have put this in jeopardy. Thus, from July 1st, 2019, the European Union will enforce regulations on the installation of noise-making devices on new electric and hybrid vehicles. They are referred to as the “Acoustic Vehicle Alert System”, and it’s been a hot area of development for some time now. Continue reading “Electric Cars Sound Off, Starting July 1st”