It’s been 6 years since the hacker’s treat of a book, “The Martian” by Andy Weir, was self-published, and 2 years since the movie came out. We’ve talked about it briefly before, but enough time has passed that we can now write-up the book’s juicier hacks while being careful to not give away any plot spoilers. The book has more hacks than the movie so we’re using the book as the source.
For anyone unfamiliar with the story, Mark Watney is an astronaut who’s left for dead, by himself, on Mars. To survive, he has a habitat designed for six, called the Hab, two rovers, the Mars Descent Vehicle (MDV) they arrived in, and the bottom portion of the Mars Ascent Vehicle (MAV), the top portion of which was the rocket that his five crewmates departed in when they left him alone on the inhospitable desert planet. If you haven’t read it yet, it’s easy to finish over a long weekend. Do yourself a favor and pick it up after work today.
Watney’s major concern is food. They sent up some potatoes with the mission which will sprout roots from their eyes. To grow potatoes he needs water.
One component of the precious H2O molecule is of course the O, oxygen. The bottom portion of the MAV doesn’t produce oxygen, but it does collect CO2 from the Martian atmosphere and stores it in liquid form. It does this as one step in producing rocket fuel used later to blast off from the surface.
Continue reading “Hacking On Mars In “The Martian””
Interplanetary probes were a constant in the tech news bulletins of the 1960s and 1970s. The Space Race was at its height, and alongside their manned flights the two superpowers sent unmanned missions throughout the Solar System. By the 1980s and early 1990s the Space Race had cooled down, the bean counters moved in, and aside from the spectacular images of the planets periodically arriving from the Voyager series of craft there were scant pickings for the deep space enthusiast.
The launch in late 1996 of the Mars Pathfinder mission with its Sojourner rover then was exciting news indeed. Before Spirit, the exceptionally long-lived Opportunity, and the relatively huge Curiosity rover (get a sense of scale from our recent tour of JPL), the little Sojourner operated on the surface of the planet for 85 days, and proved the technology for the rovers that followed.
In these days of constant online information we’d see every nuance of the operation as it happened, but those of us watching with interest in 1997 missed one of the mission’s dramas. Pathfinder’s lander suffered what is being written up today as the first bug on Mars. When the lander collected Martian weather data, its computer would crash.
Like many other spacecraft, the lander’s computer system ran the real-time OS VxWorks. Of the threads running on the craft, the weather thread was a low priority, while the more important task of servicing its information bus was a high priority one. The weather task would hog the resources, causing the operating system equivalent of an unholy row in our Martian outpost. A priority inversion bug, and one that had been spotted before launch but assigned a low priority.
You can’t walk up to a computer on another planet and swap out a few disks, so the Pathfinder team had to investigate the problem on their Earthbound replica of the lander. The fix involved executing some C code on an interpreter prompt on the spacecraft itself, something that would give most engineers an extremely anxious moment.
The write-up is an interesting read, it’s a translation from a Russian original that is linked within it. If the work of the JPL scientists and engineers interests you, this talk from the recent Hackaday superconference might be of interest.
[via Hacker News]