by GlenTheMachine · 2y ago · 0 comments
I am a spacecraft engineer. I don’t see anything in the linked article indicating that they are actually running Windows - the BSOD claim is tongue-in-cheek, or at least that’s how I read it. I also don’t know of anyone anywhere that runs Windows on a spacecraft, with the exception of laptops used by astronauts. Typically one runs vxWorks, or maybe QNX. Some experimental (high risk, low cost) systems run Linux. Older spacecraft don't run any OS at all, everything is running on bare metal, and that may be true for a handful of current spacecraft as well.
Windows is used in some places by ground controllers, but these days they tend to be running Linux a lot more often.
> Safemode is the satellite equivalent of a blue screen of death.
It’s about avoiding safemode, and more generally about the end-to-end QA/testing process for satellites before they’re sent up into orbit. It’s very clearly not about actual Windows BSODs, it’s just written in a tongue-in-cheek style. Those commenting about “wtf windows on a spacecraft” clearly didn’t read the article, just read the title.
FWIW I found the writing style engaging and the content interesting. I guess the title is a little click-bait-y, but not in a way that I minded much, and I probably wouldn’t have read an article titled “How to avoid safemode on a satellite.” It’s a fine line, but titles DO have to draw you in, otherwise you’ll never read the article.
Re: the article itself, I did think it was pretty wild that customers have to be informed of every incident where a satellite flips into safemode in TESTING! In real operations, sure, but in testing, that’s wild. Feels like having to report bugs caught in my local dev environment, that were never deployed to prod.
If you’re paying two billion $ for something you become very very interested in test design and test results.
Also, safe mode isn’t really the same as a BSOD. It’s a mode where the spacecraft decides something is wrong and disables a lot of functionality and focuses on pointing the solar panels at the sun and the antennas at the ground. It does not cease functioning - if that happens, you’ve probably lost your spacecraft. It is therefore VITALLY IMPORTANT that safe mode works, and a smart program manager tests the hell out of it.
We already got that it's not actually Windows and so not literally identical to bsod in every detail.
It's not the same as a common os safe mode either because it happens by itself as the last resort response to a problem, like a bsod. Not just on command.
I have worked on software where individual customers pay millions for it, but not billions, and it’s also not a physical thing that can literally crash into earth or fly off into space if something goes wrong!
Because the customers are almost certainly running their own metrics, tracking failure rates over time. An increasing rate of failures across a program is probably a sign of something going wrong at a higher level. Remember too that there is "testing" and testing. One is you playing around with the software at your workstation, the other is the more formal testing as monitored by the acceptance and standards people.
https://news.ycombinator.com/item?id=41651715
TL;DR: the spacecraft is indeed not running Windows. It's running a custom OS written in C.
citation https://old.reddit.com/r/spacex/comments/ncj4vz/we_are_the_s...
At the time, some very good flight software engineers had been working diligently on a new UI framework that was written in the same code style and process as the rest of our flight software. However, I noticed a classic problem - we were working on the UI platform at the same time that we were trying to design and prototype the actual UI.
I made some observations:
1) We can create a prototype right now in Chrome, with its incumbent versatility.
2) The chip running the UI can actually reasonably run Chrome.
3) Web browsers are historically known for crashing, but that's partly because they have to handle every page on the whole Internet. A static system with the same browser running a single website, heavily tested, may be reliable enough for our needs.
4) We can always go back and reimplement the UI on top of the space-grade UI platform, and actually it'll be a lot easier because we will know exactly functionality we need out of that platform.
The prototype was a great success; we were able to implement a lot of interesting UI in just a week.
I left SpaceX before Crew Dragon launched, so I'm not sure what ended up launching or what the state of affairs is today. I remember hearing some feedback from testing sessions that the astronauts were pleasantly surprised when we were able to live edit a button when they commented it was too hard to reliably press it with their gloved finger.
As for reliability, to do a fair analysis you need to understand the requirements of the mission. Only then can you start thinking about faults and how to mitigate them. This isn't like Apollo where the astronauts had to physically reconfigure the spacecraft for each phase of the mission -- to an exceptionally large extent, Dragon flies itself. As a minor example of systemic fault tolerance, each display is individually controlled by its own processor. If a display fails, whether due to Chrome or cosmic radiation, an astronaut can simply use a different display.
Also, as a side note regarding "touchscreens" -- I believe some (very important) buttons did launch with Crew Dragon, but buttons and wiring are heavy, and weight is the enemy. If you're going to have a screen anyways, making it a touchscreen adds relatively trivial weight.
I am always amazed how HN doesn't realize many mission & life critical systems are powered by JS - especially as a front end through a browser.
Still get a familiar development experience, live updates, and able to run on constrained devices.
Please tell me you have a blog
why would that be mistaken for a joke?
(Maybe this is a good place to ask, anyone have a recommendation for static testing of JS?)
I'm working on a Linux distribution for space applications that addresses some of the pain points (application deployment, software update & memory-safe implementations of typical space protocols like CCSDS/PUS). If all goes to plan it will fly on a 1U CubeSat tech demonstrator this year, a cybersecurity research 1U CubeSat next year, and a 2U high performance satellite ... later. :)
The license list is a bit long:
https://www.starlink.com/assets/pdfs/Starlink-Open-Source-Co...
Software actually running on satellites isn't being distributed, so there's no license obligations there (unless it's AGPL, ha!)
In the same way that any pi project should really use i2c or spi to comms with hardware that's more purpose designed.
I've also worked with a payload running Windows Embedded.
Because TFA is highly misleading
> I don’t see anything in the linked article indicating that they are actually running Windows
TFA literally begins with a picture of a Windows BSOD with a Windows error message.
Then it got bought by RIM (BlackBerry). The source code went away and the owners stopped responding to the user community and the whole thing basically became irrelevant.