Time Triggered Protocol TTP C
Time Triggered Protocol TTP C
ROSS B A N N AT Y N E
f e a t u r e
Time Triggered
Protocol: TTP/C
Fault-tolerant, real-time performance is vital to the success of by-wire systems. Here is a solution that meets
safety-critical requirements.
I
n this article I’ll discuss an advanced serial communications pro-
tocol/system that has been developed for applications that
require highly dependable or fault-tolerant operation. “TTP”
stands for “Time Triggered Protocol,” which describes the first
fundamental property of this new communication protocol:
access to the communication medium is granted to the comput-
er nodes on a time-slot principle. The suffix “/C” indicates that this proto-
col conforms to so called class C applications, classified by the Society of
Automotive Engineers, Inc. (SAE). Class C applications are all electronic
systems of an automobile which are connected by a high-speed communi-
cation bus.
This article will discuss the beginnings of TTP/C, the requirement for
such a solution, some explanation of why no other suitable solutions exist,
the principles of the communications system, and details on the actual ser-
ial communications protocol message frames. Finally, I’ll describe some
typical applications of TTP/C.
TTP/C has been developed over the last 15 years from a research pro-
ject at the Technical University of Vienna, directed by Professor Hermann
Kopetz. The research project migrated into a European Community-fund-
ed scientific project by a consortium that included Daimler-Benz, Volvo,
Ford, Bosch, and Magneti-Marelli. The standard is open and a significant
amount of advanced development work has been undertaken using
TTP/C. The references at the end of this article provide some more
detailed writing on the subject matter.
Typical TTP/C applications would include automotive brake-by-wire or
steer-by-wire systems, in which the systems must be “fail-operational,” as the
applications are safety-critical. “By-wire” systems transfer electrical signals
down a wire instead of using a medium such as hydraulic fluid to transfer
muscular energy. A conventional this type of system, regularity of infor- the variability of this transmission time
antilock braking system (ABS) is con- mation transfer is critical to maintain (the minimum transmission timesub-
sidered “fail-silent”; if a fault in the control of the system. tracted from the maximum transmis-
electronic control system is detected, The distributed embedded control sion time). The maximum jitter
the control system is switched off, leav- world already supports several serial depends on the longest message that
ing the manual hydraulic back-up still communications systems such as CAN is possible to transmit.
operational. If no such hydraulic back- (Controller Area Network), SAE The type of communications proto-
up is available (as in the case of a by- J1850-DLC, and SAE J1850-HBCC col most suitable for ensuring regular-
wire system), the system must contin- specifications. Three categories of ity of information transfer is TDMA
ue to function in the event of a fault communications systems are classified (Time Division Multiple Access).
occurring. by the SAE: Class A is for low-speed Using a TDMA scheme ensures that
The automotive industry has iden- networks typically used in vehicle body nonpredictable message delays aren’t
tified many good reasons to develop controls; Class B is for high-speed net- possible, as message transmissions are
by-wire systems: reduction in parts works but with no safety-critical scheduled at the time of the design.
count, removal of hydraulic system, requirement; and Class C systems Each electronic control unit is
improved maintenance, increased per- require certain stringent safety-critical assigned a time slot in which it’s given
formance and functionality, increased requirements. The existing communi- exclusive access to the bus to send
passive safety by removal of mechani- cations protocols do not meet Class C messages. As every control unit has its
cal linkages to passenger compart- requirements, hence the Time own time slot, collisions are impossi-
ment, fuel economy, and so on. Triggered Protocol was developed. ble. Also, as each transmission has the
Although several nontrivial challenges The additional requirements for Class same priority for bus access, worst-case
must be overcome before by-wire sys- C are that they must be deterministic jitter can be easily calculated.
tems become the mainstream, many with small and bounded latencies, all- In time-triggered systems all
compelling reasons exist for the tech- fault scenarios must be accounted for actions are derived from the progres-
nology to be introduced—so the chal- with a safe alternative operating mode, sion of a globally synchronized time
lenges should be overcome relatively distributed clock synchronization base accessible to all nodes, whereas in
quickly. The TTP overcomes the chal- (global time) must be supported, and event-triggered systems, all actions are
lenge of fault-tolerant distributed the bus is guarded against “babbling derived from the occurrence of
embedded processing. idiot” nodes. events. Table 1 outlines the main dif-
Additional interest is expected in The unsuitability of the existing ferences between TTP/C and the
several other applications that require communications protocols stems from CAN protocol.
a high degree of dependability, partic- the fact that they are “event-trig- TDMA-based systems transmit state
ularly in the fields of aeronautics, mil- gered,” in that a precise moment in messages—for example, a switch
itary, and medical systems. time when a message will be received being either on or off. State messages
isn’t specified. A communications pro- can be observed for a longer period of
Requirements for safety- tocol can only be predictable if worst- time than an event and are transmit-
critical systems case transmission time and jitter are ted periodically. No new value over-
Closed-loop control-orientated safety known at the time of the design and writes an old value until the next
critical applications usually execute a meet the requirements of the applica- TDMA round, and the state informa-
control cycle in a pre-defined time tion. Real-time control applications tion isn’t consumed when it’s read. In
period. For example an electronic are very sensitive to jitter, and so it is a typical distributed embedded con-
braking system usually executes a con- an important parameter for develop- trol system in which a number of sen-
trol loop every 10ms or thereabouts. ing real-time distributed systems. The sors are sampled or polled periodical-
In this cycle, several sensor inputs are time delay between presenting a mes- ly during the control cycle, state mes-
RUPERT ADLEY
evaluated, an algorithm in which out- sage to be transmitted at the senders sages prove to be the most suitable
put control variables are calculated, interface and receiving the message at message type for closed-loop control
then signals are sent to actuators at the the receivers interface is known as the applications. Events, on the other
wheel. The loop is then repeated. In transmission time. Jitter is defined as hand, contain information that is valid
T
posable, which allows the behavior of
an overall system to be predicted from
the subsystem properties. Therefore,
Recommended Reading
Daimler-Benz AG, B.Hedenetz, and R.
communications network is used to example of a brake-by-wire architec- Belschner, “Brake-by-wire without
connect the steering actuators (motor ture is shown in Figure 5. Mechanical Backup by Using a TTP-
controllers) at the front of the vehicle, The system illustrates wheel nodes Communication Network,” SAE
the steering control unit mounted that control actuation of braking Congress Conference Proceedings,
near the steering wheel, and the actu- motors as well as providing the inter- 1998.
ator units on the rear wheels (motors face with the wheel speed sensors. It Kopetz, H., “Fault Management in the
used for four-wheel steering). Three may be the case that a fault-tolerant Time Triggered Protocol (TTP),” SAE
replicated nodes are present at the unit isn’t required at the wheel node, Congress Conference Proceedings, 1998.
front actuator. These nodes receive because a catastrophic event may not Koptez, Hermann. Real-Time Systems:
information on intended steering occur if one of the wheel nodes Design Principles for Distributed
angle from the main control unit and inhibits itself. It should be possible to Embedded Applications. Dordrecht, The
drive motors, which control the angle brake the vehicle to rest safely with any Netherlands: Kluwer Academic
of the wheels. Feedback on angle and three wheel nodes operational. The Publishers, 1997.
motor torque is returned to the main main central control unit consists of Kopetz, H., “Should Responsive Systems
controller, and additional actuators two replica controllers. The main con- Be Event-Triggered or Time-Triggered?,”
are used to provide a comfortable trol unit must be redundant because if IEICE Transactions on Electronics,
level of steering wheel feedback to the a fault develops, a catastrophic situa- November 1993.
driver. The main controller also con- tion could occur. Robert Bosch GmbH, E. Dilger, T. Fuhrer, B.
sists of two nodes because steering is a Muller, and S. Poledna, “The X-By-Wire
safety-critical application. Automotive and beyond Concept: Time-Triggered Information
A high level of redundancy is antic- TTP/C wasn’t developed to compete Exchange and Fail Silence Support by
ipated to be required on a steer-by- with existing serial communications New System Services,” SAE Congress
wire system, as no direct mechanical protocols; rather, it was developed to Conference Proceedings, 1998.