Safety critical sensors in cars
A number of industry segments demand systems that comply with specific safety requirements. Obvious examples are mil/aero and medical and, of course, one which we bump into every day and in which Mentor Embedded is very active: automotive.
Modern cars are stuffed with microprocessors and microcontrollers, which perform a variety of functions, which vary in their importance from convenience to safety critical. It is interesting to consider how these different type of systems are implemented …
Systems in cars may be broadly divided into 3 categories, depending on their safety requirements:
- Convenience systems, which add to the comfort and pleasure of using the vehicle, but are only an inconvenience if they malfunction; an example is climate control.
- Non-critical safety systems, which add to the safety of the vehicle, but do not render the vehicle unsafe if switched off, but may introduce problems if they malfunction; an example is electronic stability control [ESC].
- Critical systems, the correct functioning of which is essential to the safe operation of the vehicle; the braking system is a good example.
All of these systems will have software control, but rely on sensors to determine their operation. Although I focus on embedded software in this blog, an understanding of how such sensors are organized is useful. But, before I get on to looking at each kind of system, a [true] story …
Some years ago, my friend/colleague got a new car. It is not useful to identify the make/model here, as things will have changed, but suffice it to say that it was an up-market, expensive vehicle, where quality would be expected. Soon after taking delivery of the car, he was driving at some speed on the freeway, where the vehicle suddenly started to pull hard to one side. He quickly realized that the brakes on one side of the car were being applied automatically! He got the car under control and drove it straight to the dealers who had sold it, demanding immediate attention. A day later, they returned the car to him, admitting that they had not found a fault, but had replaced a bunch of stuff and assured him that it should be fine now. It was not fine. Next time he drove at speed, the problem occurred again. Once again, he returned the car and said that he would not accept it back until they had unambiguously identified the fault and rectified it. It took a couple of days. They discovered that the ESC sensor was faulty and triggered the system unnecessarily. This sensor is located under the driver’s seat and detects rotational movement of the car; the braking is intended to offset that motion to avoid the car going into a spin.
My friend was not really the victim of a faulty car. It was a major design flaw, which is so elementary that the manufacturers of the car should be deeply ashamed. I will explain by describing how each of the 3 types of system I categorized above should work, in terms of sensors:
- A convenience system needs a single sensor. If it malfunctions and the user notices, they can switch off the system and have it repaired at their convenience.
- A non-critical safety system needs a pair of sensors. The system compares their signals and, if they agree within a defined margin, it takes appropriate action. If the signals disagree, the system shuts down and displays a yellow indicator, which tells the driver that the system should be fixed sometime soon.
- A critical system needs 3 [or a larger odd number] of sensors. The system compares their signals and, if they all agree, it takes appropriate action. If one signal disagrees, the system takes action based on the other two, but illuminates a red indicator to advise the driver that urgent attention is required. If all 3 sensors disagree, the system inhibits further use of the vehicle immediately.
My friend’s car’s ESC system was a non-critical safety system, which had a single sensor instead of two, so it could not “fail safe”.
I suggested that a critical system needs 3 sensors. This is acceptable in automotive and industrial systems. For mil/aero, 5 sensors are likely to be required. For space systems, 7 is more likely. The space shuttle orbiter, for example, had 7 sensor/servos controlling each flying surface, each with its own computer, which was supplied and programmed by a different contractor. Is that overkill?
Posted January 13th, 2014, by Colin Walls
- Multicore systems: heterogenous architectures – untangling the technology and terminology
- Words – new, old and odd
- Another programming language survey – what are you using?
- What to do with all those pictures
- Uniqueness of C++ methods and class member variables
- The Big Mac question
- C++ – yet more Questions and Answers
- IQ – myth or meaningful?
- C++ – more Questions and Answers
- Asia [the band, not the continent]
- July 2014 (6)
- June 2014 (7)
- May 2014 (10)
- RIP Gordon Cameron
- Problems with pointers: out of scope, out of mind
- 1st world and 3rd world technology
- C++ Exception handling continued – words from an insider
- Internet shopping and customer service
- C++ Q&A
- Exception handling in C++ – developers are wary
- 1000 words
- Dynamic memory in real time systems – a solution?
- Genetic modification – where will it all end?
- April 2014 (8)
- C++ for embedded – your input needed
- The Power Distance Index and safe flying
- Wi-Fi, ZigBee, Miracast and Bluetooth: wireless networking on the move – without a router
- Are you good enough?
- USB 3.1 – more speed, more power and new connectors
- California drought: how water is wasted in huge volumes
- How was EE Live! for you?
- Teaching kids to program – why would we want to do that?
- March 2014 (9)
- February 2014 (8)
- January 2014 (8)
- December 2013 (6)
- November 2013 (9)
- October 2013 (9)
- September 2013 (8)
- August 2013 (9)
- July 2013 (9)
- June 2013 (8)
- May 2013 (9)
- April 2013 (9)
- March 2013 (10)
- February 2013 (7)
- January 2013 (9)
- December 2012 (8)
- November 2012 (9)
- October 2012 (9)
- September 2012 (8)
- August 2012 (9)
- July 2012 (9)
- June 2012 (10)
- May 2012 (9)
- April 2012 (10)
- March 2012 (9)
- February 2012 (8)
- January 2012 (9)
- December 2011 (7)
- November 2011 (8)
- October 2011 (9)
- September 2011 (9)
- August 2011 (10)
- July 2011 (8)
- June 2011 (10)
- May 2011 (11)
- April 2011 (10)
- March 2011 (10)
- February 2011 (9)
- January 2011 (8)
- December 2010 (7)
- November 2010 (9)
- October 2010 (8)
- September 2010 (8)
- August 2010 (9)
- July 2010 (10)
- June 2010 (10)
- May 2010 (8)
- April 2010 (9)
- March 2010 (9)
- February 2010 (8)
- January 2010 (8)
- December 2009 (8)
- November 2009 (10)
- October 2009 (9)
- September 2009 (8)
- August 2009 (9)
- July 2009 (9)
- June 2009 (9)
- May 2009 (9)