6 ms·
As I mentioned in another recent thread https://news.ycombinator.com/item?id=6615457 https://news.ycombinator.com/item?id=6615457 engineers are often not awar
by WalterBright 13y ago
As I mentioned in another recent thread
https://news.ycombinator.com/item?id=6615457 https://news.ycombinator.com/item?id=6615457
engineers are often not aware of basic principles of fail safe design. I mentioned Toyota, and this article confirms it.
Not mentioned in this article is the most basic fail safety method of all - a mechanical override that can be activated by the driver. This is as simple as a button that physically removes power from the ignition system so that the engine cannot continue running.
I don't mean a button that sends a command to the computer to shut down. I mean it physically disconnects power to the ignition. Just like the big red STOP button you'll find on every table saw, drill press, etc.
Back when I worked on critical flight systems for Boeing, the pilot had the option of, via flipping circuit breakers, physically removing power from computers that had been possessed by skynet and were operating perversely.
This is well known in airframe design. As previously, I've recommended that people who write safety critical software, where people will die if it malfunctions, might spend a few dollars to hire an aerospace engineer to review their design and coach their engineers on how to do fail safe systems properly.
- makerops 13y agoI was always taught that the mechanical override was shifting it out of drive and into neutral.
- michael_h 13y agoThis is true for most vehicles, but on some cars (like the Prius) the shifter is not mechanical. Yes, it's unnerving.
- msandford 13y agoThat's why you buy a car with a manual transmission. Those haven't been electronic-ized yet and are unlikely to be as the forces involved in depressing the clutch are substantial and unlikely to go away. Once the clutch plates are no longer in contact the engine can do whatever it wants but none of that makes it to the wheels. And then you can get the car out of gear to coast, turn the whole car off and then back on. There's no substitute to having a human being in the loop to execute high-level "executive" functions, especially when things aren't done to the very high standards of aerospace. You know, like cars.
- drbawb 13y ago> That's why you buy a car with a clutch pedal. There exist "manual transmission" that lack an operator controlled clutch. DCTs are very much manual transmissions, but many of them rely on a TCM to disengage the clutches.
- bri3d 13y agoI do agree that having a hydraulic (or cable)-clutch car eliminates the ECU from a critical path (power to wheels), but there are plenty of electronic-ized manuals. There are all sorts of advanced DSG / dual-clutched transmissions in many newer cars, but even some older cars like the MR2 and Smart cars have a http://en.wikipedia.org/wiki/Electrohydraulic_manual_transmission http://en.wikipedia.org/wiki/Electrohydraulic_manual_transmi... : quite literally a manual transmission where the clutch has been actuated electronically.
- drbawb 13y agoThe list is only growing longer . . . If you have computer-assisted hill starts, collision avoidance, or computer assisted braking [through ABS, certain traction & stability control systems, etc] your computer has control of your brakes. If you have range-assisted cruise control, or early collision alert, your computer likely has total control over your throttle. If you have parking assist, lane departure warning, lane following assist, or electric power steering etc: your computer has control over your steering. If your car has a DCT: your computer has control over your shifting _as well as both clutches._ -- Meaning you have _no mechanical interface_ to disengage the motor from the transmission. This is similar to your Prius example: the shifter is not mechanical. On many new cars: there's no ignition key to remove. You likely have a smart "keyfob" that simply needs to be within X-feet of the car, and then you have a push button ignition. I'm sure there's some override for the button [push and hold for three seconds], but it's still going to go through some electronics to figure that out. --- The only bit that scares me is that all these systems potentially share the CAN bus with the horrendous "Infotainment" systems that every manufacturer loves to install. shudders
- fnordfnordfnord 13y agoMfrs have started using LIN for slow-control accessories like power windows, door locks, wipers, etc. A separate CAN for critical functions of the auto, and another (sometimes CAN) system for non-critical things like GPS integration, entertainment, and (apparently) MOSTbus has finally taken off after much teeth gnashing. MOST is a higher bandwidth than CAN bus system designed for 'infotainment' systems in autos. https://en.wikipedia.org/wiki/MOST_Bus https://en.wikipedia.org/wiki/MOST_Bus
- drbawb 13y agoThanks for sharing! I have to admit though I'm surprised that some of those accessories even require a bus as they're typically operated by simple switches. I guess door locks, wipers, etc. make some sense: with the prevalence of central locking, as well as wipers that sense rain and things like that. Windows are a bit odd, as they just need a very simple switch. I suppose having all the accessories on a common bus must simplify the wiring harness though. --- I'm curious how TESLA integrates their in-dash system with the rest of the car. I thought their in-dash console could control some rather safety-critical "preferences" of the car ... for instance I thought you could adjust the level of regenerative braking. (Other manufacturers are also offering "sport modes", etc -- though they're not always controllable through the dash.)
- matt-attack 13y agoI agree. With a Camry, shifting into N would have immediately remedied the problem. I remember hearing reports claiming: "Shifting to N didn't do anything". The explanation always seemed obvious to me: Non-technical driver experiences UA. In a panic shifts into neutral. Hears engine scream. Thinks, "The car is still going!" and doesn't realize that despite the sound, the car is actually slowing down. I know this to be a common misconception in my experience. People commonly misinterpret high revs with "going fast".
- drbawb 13y agoOh wow, good point, I hadn't thought of that. "High revs" = "motor going fast" to me, not "wheels going fast." But I had not considered that this correlation is only intuitive to me because I own a car with a manual transmission.
- Zancarius 13y agoI'd imagine the sudden loss of power should be apparent as well. But then, people can react irrationally (or not at all) in a full on panic.
- kabouseng 13y agoYou already have that, it is called the ignition key. The fact that the driver didn't think to either switch off the engine, put the gear in neutral, or slam on the brakes, makes me think he also wouldn't think to press the big red button. Also pilots get proper training to handle their vehicles, car drivers not so much.
- konstruktor 13y agoThe cost of the level of training airline pilots get (around 100kUSD) would be prohibitive for individual driving. Also, they fly with an equally well trained colleague who will run the checklists in an emergency and correct their mistakes. I assume private pilots make as stupid mistakes as individual drivers. Aircraft investigation is really good at overcoming hindsight bias and looking at human factors in a more objective way. What seems absolutely logical for you to type, having read about these incidents before, might not be as obvious to a driver who hasn't read about unwanted acceleration but is suddenly experiencing it.
- superuser2 13y agoNo, you don't. Many modern cars use contactless/electronic ignition keys and start buttons connected to software. Braking is a software function (I.e. ABS) and most Americans drive automatic (software) transmissions.
- kabouseng 13y ago>>Many modern cars use contactless/electronic ignition keys and start buttons connected to software. Fair enough, but as far as I know not a valid point in this specific case. >>Braking is a software function Yes, but a completely separated system. The odds of both software systems failing simultaneously is getting in the hash collisions domain... >>most Americans drive automatic (software) transmissions. Again a seperate system, and you still have a neutral position.
- msandford 13y agoSeparate systems, FOR NOW. How long do you think that will last? And would you care to bet your life on it?
- mjn 13y agoOne interesting thing I've noticed is that subway systems, long home of one of the more iconic failsafes, the big red lever behind glass connected directly to hydraulic brakes, are moving away from that. An old-style subway (like NYC) has emergency-stop-in-place levers that cause the train to screech to a halt immediately. But automatic train systems, like the Copenhagen Metro, have a similar looking lever that is just a computer signal that signals an emergency condition. The default response (according to the fine-print under it that I recently read) is that the train will continue on to the next station, open its doors, and then hold until further instructions. That part I assume is on purpose, because even a computerized system could have "stop immediately" as the default policy when the emergency lever is pulled. Would be interesting to read the analysis that led to the decision. My guess is that it's because on-train issues are statistically the most likely emergency situation a passenger would signal (heart attacks, fights, etc.), in which case continuing to the next station (typically 30-90 seconds) where emergency staff can meet the train and access it, rather than stopping in the middle of a subway tunnel or elevated rail segment, is the most sensible policy.
- infinotize 13y agoThose mechanical overrides can still come in handy: http://www.timeout.com/newyork/film/the-hot-seat-samuel-l-jackson http://www.timeout.com/newyork/film/the-hot-seat-samuel-l-ja... [granted, incident allegedly from 1990, but still applicable]
- warfangle 13y agoNYC subways have additional safety features - if the track signals indicate stop (due to imminent collision with another train, for example), there are tripcocks. These raise from the tracks, and catch on the bottom of the train, causing it to hard break immediately.
- twistedpair 13y agoFailsafes don't always fail safely. Take the unmanned Chicago subway train that cruised through the failsafes and crashed into another train, two weeks ago. Another article quotes a CTA official as not knowing how it could have escaped the yard without the brakes tripping. http://www.huffingtonpost.com/2013/10/04/cta-blue-line-crash-investigation_n_4044302.html http://www.huffingtonpost.com/2013/10/04/cta-blue-line-crash...
- coryrc 13y agoI guess you weren't working on the 787, which is exclusively fly-by-wire -- turn off the computers and it crashes.
- WalterBright 13y agoI worked on the 757, and got it hammered into me how to do failsafe design. I don't know the failsafe design of the 787, but I have faith that Boeing, the FAA, and the aerospace engineers know what they're doing with failsafe design.
- fnordfnordfnord 13y agoWalterBright I have a great deal of appreciation and respect for nearly everything you've said in this thread up to the point where you declare to have "faith" in Boeing and the FAA. Engineering critical systems and faith of any kind don't belong together.
- WalterBright 13y agoI'll get on a 787 and fly on it because I have faith in Boeing etc. But you're right in that if I was actually working on the 787, I would have no such faith, and would verify the designs I was responsible for.
- ubernostrum 13y agoI often point out in aviation-related threads the striking difference between aircraft engineering in the past and today. In 1989, a DC-10 operating United flight 232 suffered an uncontained engine failure which damaged the tail and disabled flight controls, resulting in 111 deaths (and could have been more, but in a freak of chance, a DC-10 flight instructor was on board and was able to assist the crew in landing, which may have made the difference for the other 185 people on board). In 2010, an Airbus A380 operating Qantas flight 32 suffered an uncontained engine failure which damaged a wing, disabled a hydraulic system and braking systems, and disabled some flight controls while starting a fire. It resulted in... zero deaths. In the early 1990s, Boeing 737-200 and 737-300 aircraft had a variety of uncommanded rudder movement issues, resulting in at least 157 deaths. In 2012-2013, the 787's battery fires resulted in... zero deaths. In other words, the main difference between "then" and "now" is exactly the opposite of the usual arguments against modern aircraft development: more recent aircraft, when they have serious issues, result in fewer injuries and deaths than older aircraft when they experienced serious issues. This track record of improvement gives justifiable faith that modern aircraft development is safer.
- Arjuna 13y ago"Just like the big red STOP button you'll find on every table saw, drill press, etc." For those that like finding out, "What's the formal name for that?"... it's called a kill switch: https://en.wikipedia.org/wiki/Kill_switch https://en.wikipedia.org/wiki/Kill_switch For further reading, see the related "Dead man's switch": https://en.wikipedia.org/wiki/Dead_man%27s_switch https://en.wikipedia.org/wiki/Dead_man%27s_switch
- beowulfey 13y agoEverything I learned as an engineering undergrad had an underlying safety mindset. It was made pretty clear that redundancy and safety are foremost in design procedure. If most engineers these days aren't receiving that in their education then we need to drastically shift the education paradigm. As the people designing all these important systems, they absolutely must be focused on safety.
- 205guy 13y agoWalterBright wrote: "engineers are often not aware of basic principles of fail safe design." I would suggest they should not be called "engineers" then. And in many countries, they're not. Part of the problem is that the tech community includes a lot of different people. Some are programmers, some are program managers, some went to engineering school, some are licensed engineers (in some other discipline). In the US, these are all commonly called engineers. Sadly, I think a lot of web programmers just don't know the true scope of the software industry and its practices. If you want to design/build a bridge, you need a state license and insurance. The software industry isn't regulated like that. Anyone can design the software that controls a car. That's probably OK since web apps are non-critical systems. But I can't help but wonder if net security wouldn't be better if more programmers had better training in recognizing and improving the total impact of a system. It is only the reputation of the company and potential damages in a lawsuit such as this one that put pressure on the car manufacturer and web-app startup to test their code in depth. Actually, I do wonder how much the US auto safety regulations are involved with firmware--or do they just test the macro behavior of the car?
- xorblurb 13y ago> Anyone can design the software that controls a car. That's probably OK since web apps are non-critical systems. Wat?
- WalterBright 13y agoI'd be surprised if there was a single question on a state licensing exam on failsafe design. The sample tests I looked at had none. The GRE exams I took had none. The engineering courses I took never mentioned it. I don't recall ever seeing an engineering textbook discussing it. I've never seen it brought up in engineering forums or discussions about engineering disasters. And, I see little evidence of awareness of it outside of aerospace - Toyota, Fukushima, and Deep Water Horizon being standout examples of such lack. You can throw in New Orleans where hospitals (and everyone else but one building) put their emergency generators in the basement. And in a NYC phone company substation was entirely destroyed because a vital oil pump was in the basement that got flooded during Sandy.
- WalterBright 13y ago
- WalterBright 13y agoA couple articles I wrote on the topic: "Safe Systems from Unreliable Parts" http://www.drdobbs.com/architecture-and-design/safe-systems-from-unreliable-parts/228701716 http://www.drdobbs.com/architecture-and-design/safe-systems-... "Designing Safe Software Systems" http://www.drdobbs.com/architecture-and-design/designing-safe-software-systems-part-2/228701618 http://www.drdobbs.com/architecture-and-design/designing-saf...