235 points · by szczys · 10y ago · 49 comments
Source: dad was an engineering major in the early 70s.
We could get same day runs if we paid more or had our own account. There were 3 tiers of cost..
To be fair, space probes occasionally do get software updates, eg http://blogs.esa.int/rosetta/2014/03/28/software-upgrade-at-...
In the case of the Curiosity Rover, it didn't even "ship" with the software of what it was supposed to do on Mars until it had landed there http://www.space.com/17034-mars-rover-curiosity-software-upg...
Edit: I'm not saying this was possible in 1969. I posted this because I was genuinely curious if it was ever done.
Sure. In 2014. Not in 1969.
I once had the very interesting experience of developing an in-place update for a mid-1980s-vintage spacecraft instrument: the magnetometer on the Galileo spacecraft. It used an 1802 processor with 2k bytes of memory and was programmed in Forth. The development system ran on an Apple II. The instrument developed a bad byte of RAM and so a patch had to be developed, but the Apple II that ran the Forth compiler had long since been decommissioned. (It was nine years between when the spacecraft was completed and when it arrived at Jupiter, three of which were a delay caused by the Challenger explosion.)
I ended up writing a complete 1802 emulator and new Forth development environment that was able to compile the original source code and reproduce what was then running on the instrument. That code ran in Common Lisp on a Macintosh II. Using that new development system, I produced a patch, which was only about a dozen bytes long. It was quite an inexpensive project by NASA standards (took about three months from start to finish with just me working on it) but the cost per byte of output code was pretty staggering :-)
;;; Engineering offset patch:
(compile-patch ": FIL! 1234 SWAP FILTF ;")
44C8 00 CA 00 1F 12 34
44D0 01 71 44 A2 00 D5
;;; Optimal averager sampling period patch. (Uses 2 bytes at 46FE)
(compile-patch
": SDSPIN DUP 15 = IF 1ST-DSPVECTOR TS! THEN DUP 28 = IF
ADDR-BUFFER DUP @ 20 + DUP 4CF8 > IF DROP 4800 THEN
DUP ROT 2+ 20 MOVE ADDR-BUFFER ! THEN
1 46FE +! 46FE @ 0= IF OPTST -7 46FE ! THEN
DUP 0= IF MAT-LOAD 4FF0 C@ 20 - 2/ CMDPTR +! THEN ;")
42B8 00 CA 01 60
42C0 00 2A 15 02 43 00 76 05
42C8 04 3B 41 63 01 60 00 2A
42D0 28 02 43 00 76 2C 40 50
42D8 01 60 01 95 00 2A 20 00
42E0 E9 01 60 00 1F 4C F8 02
42E8 37 00 76 07 01 6C 00 1F
42F0 48 00 01 60 02 B0 02 5D
42F8 00 2A 20 01 03 40 50 01
4300 A3 02 3F 00 1F 46 FE 01
4308 AF 00 1F 46 FE 01 95 01
4310 C0 00 76 0D 41 B8 00 1F
4318 FF F9 00 1F 46 FE 01 A3
4320 01 60 01 C0 00 76 14 42
4328 54 00 1F 4F F0 00 8A 00
4330 2A 20 00 F6 0E 3A 04 71
4338 01 AF 00 D5
A little longer than I remembered it, so maybe NASA got its money's worth after all!I have the complete source code for this project. If anyone is interested let me know and I'll post it somewhere.
The LM computer on Apollo 14 had to be updated in flight in order to bypass a faulty abort switch.[1] The patch was applied by radioing the instructions to the crew and having them enter it manually.
Sigh. Reading this at the start of my workday is not doing wonders to my morale.
Only tangentially related to the article, but since you are commenting here, I'd like to thank you for the "Lisping at JPL". I've read it several times, which caused me to start collecting all the info I could get on the Remote Agent. I couldn't find that much though. Surely such a project should have generated way more research papers than it did? Since it doesn't seem to be used anymore, where's the source code? It feels like it was killed with fire.
I wonder if current generation spacecraft now have something even half as powerful as the DS1 REPL...
One of the many reasons why I love reading the comments on this site.
[0] https://github.com/chrislgarry/Apollo-11
[1] https://hackadaycom.files.wordpress.com/2016/07/apollo-sourc...
https://github.com/avtobiff/virtualagc/blob/master/Luminary1...
"John Pultorak created a working reproduction of the Apollo Guidance Computer (AGC), wrote a complete manual that will allow you to build your own Apollo flight computer clone and released it in the public domain."
[1]: http://www.galaxiki.org/web/main/_blog/all/build-your-own-na...
My career choices really suck, should have joined NASA or SpaceX :-)
There was at least one case when the behaviour of the code was significantly changed in flight to work around a hardware failure (shorted button). This involved changing the writable memory, which kept all the state, to selectively disable some parts of the lunar landing program. For more details see:
http://www.ibiblio.org/apollo/#Final_exam_for_the_advanced_s...
For me the most interesting part is that there are hand-written notes in this version which are from the development process.