Flexray - science fiction or fact?

Thursday, March 29, 2012

Tags :  electronics

ecu-emsI have never been a great lover of science fiction. The daring antics of comic book heroes such as Buck Rogers or Flash Gordon, or any of their later brethren, have never gripped me. Dashing around slaying the baddies using some form of ray gun was, I thought, rather too fanciful, and even from a tender age sounded too far-fetched and wholly impractical to me. So when I first heard about Flexray it sounded more akin to my comic book past than any serious technology in the modern world. But how wrong I was - you see, it's all to do with the limits of CANbus.


The CAN (Controller Area Network) bus is effectively a pair of twisted wires, one carrying a 'high' voltage and the other a 'low' voltage, which transmit a series of digital messages according to a given protocol. By connecting sensors, actuators and their controlling devices (ECUs) with messages loaded and downloaded at various 'nodes' along the way, what were once bulky vehicle electric harnesses have been reduced to but a single cable.


First defined in 1984 by component supplier Robert Bosch, and incorporated into ISO standard 11898 in 1994, since the mid-2000s CANbus has been fitted to just about every new passenger car, providing a single conduit for data transfer across the vehicle. The problem is that with a maximum transmission rate typically of the order of 1 Mbit/s, there is only so much information it can carry. Using a system whereby the priority of the message varies according to a designation given once the bus is operating above around 35% of its overall capacity, statistically there is no guarantee that the signal will be received at its destination in a timely manner if other, higher priority data is in the way.


A simple analogy is that of a car joining a busy road at a 'T' junction. The car can only access the busy road at a given time when there is space for it. If there is no space then any request to join the carriageway will be denied, and repeated requests ignored until there is either space or an approaching car (message) with a lower priority.


For time-sensitive control data (as in a powertrain) clearly this is a worry since the data about, for instance, an ignition timing pulse on an engine running at high speed needs to be delivered precisely at the optimum time, not five or even ten crankshaft degrees later. Of course, where a lot of time-sensitive data is used, multiple CANbus systems can be (and are) most helpful and, linked together, offer what many control engineers might say is an inexpensive if not very elegant solution.


ecu-ems-message-panel

A much better approach is Flexray. Described as a "time-deterministic protocol for X-by-wire applications", Flexray typically operates at up to ten times the speed of the fastest CANbus and, because of that, the data messages can be time triggered within a matrix according to their frequency and urgency.


It may not be as swashbuckling as Buck Rogers or capture the imagination as Flash Gordon does - for some people at least - but in the next five to ten years Flexray, as science fact, will surely make its presence felt in more ways than we can even guess at the moment.

Fig. 1 - Time-triggered network principles

Written by John Coxon

Leave your comment

Comments

The problem with inventing yet another bus is the developer usually wants everyone to pay a royalty which is why it is so far in the future. In the world of process control we have gone through this multiple times but with the advent of gigabit Ethernet the need for these other busses is rapidly dimishing. Ethernet isn't a silver bullet but is proving to be robust in an industrial environment and is providing performance well above most of the dedicated busses. CAN was developed when the current speeds of Ethernet were thought to be impossible to achieve but now even the most critical control systems in refineries and chemical plants regularly utilize it so why not cars?
Calculations show that the maximum acceptable delays (transmission repetitions because collisions occurred due to CSMA/CD access technique) are very inferior to the timing imposed in SAE Benchmark. The 100 GB Ethernet will be used accordingly in the automotive field, as already used by Telecom operators instead of SDH / SONET