This Curiosity mars rover is still hard at work, getting real science done at th...

@cdarwin@c.im

This Curiosity mars rover is still hard at work, getting real science done at the age of 13,
It is absolutely incredible — not only is Mars an actively hostile environment for robots, but the only kind of maintenance that JPL engineers can do is to send very, very careful software updates.
Nevertheless, the clever folks at JPL have managed to keep Curiosity safe, warm, mobile, and sciencing, despite well-worn wheels and less and less power every day.
One of those folks is Alexandra Holloway, the assistant team chief for engineering operations for Curiosity, who spoke to IEEE Spectrum about keeping Curiosity roving, what its future looks like, and how JPL has used that experience to make rovers like Perseverance even more capable

Holloway:
One of my favorite examples comes from a processor anomaly that happened on Sol 2172

[Ed. note: “Sol” is the term for a Martian day
—about 24 hours and 40 minutes].

Curiosity has two computers, A and B.

We landed on A, swapped to B due to a NAND memory anomaly early on (Sol 200).

For years, we were chugging along on B, until one day there was a problem
—B booted up, but it couldn’t mount its drive partition.

We’d never seen this before.

To preserve B’s data, we swapped back to A,
which we hadn’t trusted in two thousand Sols.

A also had a degraded memory, with only two gigabytes of usable storage space instead of four.

We painstakingly transferred data from B over to A and then down to Earth,

and eventually we ran out of stuff we wanted to transfer, which was really good,
because A then started acting funny in the same way it did on Sol 200.

It was acting like its memory was coming unsoldered. That’s bad.

We quickly swapped back to B, formatted it, and got it working again.

The problem then became that we couldn’t trust A’s memory at all,
but we needed a second computer as a “lifeboat” for diagnostics and transfers if B failed again.

We realized we had one other place of memory:
where we keep our flight software.

We have four copies of the flight software
(two current versions and two older versions)
in different banks of very small amounts of memory,
just 32 megabytes each.

What if we just jettisoned the old flight software copies and used that 64-megabyte NOR memory as our file system for computer A?

So that’s what we did.
It was so elegant!

Computer A is operating with less than 1 percent of its original memory, but we can run a mission on it.

A small mission, but we haven’t had to jettison any core capabilities.

We can still drive, we can manage data, we can even theoretically do science.

Everything works fine, just much slower and much smaller.

That flight software release was even called “R-Hope“ because we hoped it would work.

spectrum.ieee.org/curiosity-ro