You are on page 1of 8

Safe-guarding CAN  FD

Improved CAN

for applications in trucks


Marc Schreiner, Helmut Leier, Matthias Zerzawy, Tobias Dunke, Jürgen Dorner

Authors
Dr. Marc Schreiner
Dr. Helmut Leier
D aimler Trucks
among the very first
adopters of the CAN net-
was creased to 667 kbit/s. The
Figure 1 shows that also in
the time between steps in
erties of classic CAN with
CAN  FD and Flexray dedi-
cated for trucks (for passen-
Daimler Research & working technology. In the architecture there is an in- ger cars it may differ). Since
Development beginning of the 1990s CAN crease of data transmission the automotive version of
Wilhelm-Runge-Str. 11 was introduced into the SK due to features that have Ethernet is a switched net-
DE-89081 Ulm (schwere klasse: heavy to be added to an existing working technology that
class) truck. In the first ap- architecture. does not support shared
Matthias Zerzawy plication (Euro 2 engines) media, it is not included into
Tobias Dunke there were only two CAN Networks for future this comparison. The over-
Jürgen Dorner ECUs (electronic control truck architectures view distinguishes between
Daimler Trucks units) running at 125 kbit/s CAN with ≤500 kbit/s (the
Mercedesstr. 123 with a special truck low- For the next step in truck ar- past at Daimler Trucks) and
DE-70327 Stuttgart speed physical layer (ISO chitectures, networks run- CAN with ≥500 kbit/s (the
11992). Since then, with ev- ning only with classic CAN present situation at Daimler
Link ery step in the evolution of will not be able to keep up Trucks).
www.daimler.com the electronic architecture with the growing demand The main aspects are:
the number of CAN net- for the bandwidth. More ◆◆ Bandwidth: Classic CAN
works, CAN ECUs and the powerful networking tech- will not provide enough
Abstract total amount of transmitted nologies that could be used bandwidth in future.
This article gives an overview data increased as shown in in future truck architectures CAN FD will increase
about safe-guarding CAN  Figure 1. In the current ar- are CAN FD (a further de- the available bandwidth.
FD for applications in trucks. chitecture (“New Actros”), velopment of the CAN pro- Flexray would have the
The present situation of CAN which was introduced in tocol), Flexray (already suc- most potential with re-
networks in Daimler trucks 2011, there might be up to cessfully introduced into spect to bandwidth.
is described. Furthermore 12 CAN networks in one ve- passenger cars), and Ether- ◆◆ Cost: It can be expect-
capabilities and implications hicle (depending on the ve- net (Broadcom automotive ed, that CAN FD will cost
for the future usage of hicle configuration ordered), 100-Mbit/s Ethernet that is approximately as much
CAN  FD in truck architectures the bit-rate is at least 500 just about to have its debut as classic CAN. Flexray
are shown from the physical kbit/s and on some dedi- in passenger cars). Figure 2 would be more cost in-
layer point of view. cated CAN networks it is in- gives a comparison of prop- tensive due to additional

10 Mbit /s
average amount of data
on all CAN buses

1 Mbit /s

500 kbit /s

100 kbit /s

year
1990 2000 2010 2020

1992: SK 1996: Actros 1 2002: Actros 2 2011: New Actros


• 1 x CAN • 4 x CAN • up to 10 x CAN • up to 12 x CAN
• 2 ECUs • more than 10 ECUs • more than 25 ECUs • more than 30 ECUs
• 125 kbit/s • 125 kbit/s + 500 kbit/s • 125 kbit/s + 500 kbit/s • 500 kbit/s + 667 kbit/s
• ISO 11992 • ISO 11992 + ISO 11898 • ISO 11992 + ISO 11898 • ISO 11898

Figure 1: Evolution of CAN networks at Daimler Trucks

12 CAN Newsletter 1/2013


Visit us at BAUMA
Hall A5, Stand 307
advanced control system products for
tough, rugged and extreme conditions

epec 5050 control unit epec 3606 control unit epec 3724 control unit
based on 32 bit processor based on 16/32 bit processor based on 16/32 bit processor
memory: memory: memory:
• flash 8 mbyte • flash 1,6 mbyte • flash 1,6 mbyte
• ram 4 mbyte /8 mbyte • ram 1 mbyte • ram 1 mbyte
• non volatile: 512 kbyte • plcopen application max size • non volatile: 8 kbyte
• plcopen application max size • 768 kbyte • plcopen application max size
• 1 mbyte / 3 mbyte • temperature range up to +85°c • 768 kbyte
• temperature range -40°c ... +70°c • temperature range up to +85°c

sae j1939 e17

epec oy |
past present future future of truck and bus architec-
Improved CAN

tures. To give a first estima-


tion of the obtainable band-
width, two example topolo-
Architecture based on:
CAN2.0B CAN2.0B CAN2.0B + CAN2.0B + gies taken from real vehi-
500kbit/s 500kbit/s CANFD FlexRay cles are examined. The ex-
Bandwidth -- 0 + ++ ample is taken from one of
the five main CAN networks
Cost ++ ++ ++ 0 of the vehicle. It is connect-
ing ECUs on the truck as
Limitations for truck topology
+ -- + + shown in Figure 3. There
– Possible line lengths is one common electron-
Flexibility over vehicle
0 + ++ 0
ic architecture for all vehi-
lifespan cles using the same type of
Flexibility for vehicle diversity ++ ++ ++ 0 ECUs performing the same
functions. However, depen-
Hardware availability ++ ++ 2016 ? + ding on the vehicle type, the
physical structure of the to-
Diagnosis / Flashing -- 0 ++ + pology can be very diverse.
The example truck topology
Figure 2: Comparison of CAN, CAN FD and Flexray for trucks (9-m vehicle) uses a clas-
sic CAN network with stubs
expenses for software sions. Secondly, there ing CAN FD products. in this case. In an articu-
and physical layer. is a broad diversity of To use these in the next lated bus (20-m vehicle) it
◆◆ Transmission line length: different vehicles (light architecture step these is a passive double star
For trucks and especially trucks, heavy trucks, products have to be topology.
omnibuses the possibil- omnibuses, special-pur- ready for production in Typical characteristics
ity to use long transmis- pose vehicles etc.) and 2016. of truck and omnibus to-
sion line lengths is an markets (Europe, North ◆◆ Diagnosis and flash- pologies are long transmis-
important criterion. CAN America, South Amer- ing: Flashing can be sion line lengths (up to 50
using up to 500 kbit/s al- ica, Asia etc.). The in- quite slow using classic m between two ECUs) and
lows for adequate trans- tention is to reuse the CAN. It could be acceler- large number of ECUs with-
mission line lengths, core of the electronic ated significantly using in one vehicle and within
whereas CAN with more architecture for all ve- CAN FD especially due one physical CAN network.
than 500 kbit/s is sig- hicles and markets and to the extended payload CAN allows to handle the
nificantly limited with re- to adopt it to the respec- frames. However this re- variety of topologies, but
spect to transmission tive needs. This can be quires that the link into the physical layer in large
line length. CAN  FD and handled flexibly using the vehicle also supports topologies is challenging.
also Flexray will allow CAN or CAN FD, howev- CAN FD. Using Flexray, Figure 4 shows the struc-
for longer transmission er finding one common the flashing speed de- ture of the example topolo-
line lengths comparable Flexray communication pends mainly on the de- gies in detail on the left side.
with the classic CAN net- schedule would be a sign of the communica- On the right side a CAN sig-
works running at up to challenging job. Working tion schedule. nal integrity graph is shown,
500 kbit/s. with vehicle-dependent which can be used to eval-
◆◆ Flexibility: In the elec- communication sched- Signal integrity of uate the physical charac-
tronic architecture from ules would be even truck CAN physical teristics of a CAN topology.
the truck it has two di- more complicated. layer The articulated bus topol-
mensions. Firstly, truck ◆◆ Hardware availability: It ogy might also have some
architectures have a is very good for CAN and The question has to be optional ECUs (not shown
long life span (might be is also good for Flexray. answered whether CAN in Figure 3). All calculations
twice the life span of a There are promising an- FD will be suitable for the are based on the topology
passenger car architec- nouncements for com- physical characteristics shown in Figure 4.
ture), in which they have
to be extendable for new
features or regulations.
CAN FD would maintain example:
flexibility in this case articulated bus 20m
because it is as easy to
handle as classic CAN
and provides enough
bandwidth. Flexray re-
quires a complete pre- CAN ECU
definition of the com- example:
passive star
munication schedule, truck frame 9m
bus line
which could be a difficult
and ineffective job with
regard to future exten- Figure 3: Example truck and omnibus architecture

14 CAN Newsletter 1/2013


Automotive Electronics Bosch offers a broad portfolio of
IP modules for automotive and

Smart and innovative IP solutions industrial application. Our certified


IP modules are ready for integration,
for embedded systems making the perfect adaption of micro-
controllers to your needs easy.

The Bosch IP product range includes:


▶ communication controller IPs for
CAN, LIN and FlexRay bus
▶ scalable timer modules for flexible
use in multiple domains

Visit our booth at embedded sys-


tems in Nuremberg and see CAN FD
live demo. Find out more at:
www.bosch-semiconductors.com

safe clean &


economical
To evaluate a CAN sult shows two areas: The ably more delay due to the jitter have to be considered
Improved CAN

topology dozens of sig- red area comprises all an- more complex structure of (grey bars) and the CC de-
nals have to be checked alog bus waveforms that the topology. lay (dark blue bar) has to
and, if done manually, the can be found in the net- be added. Oscillator toler-
worst-case signal might be work; overshoots, ringing or Round trip delay ances in the ECUs have a
missed. Therefore Daim- the shape of the transitions similar effect that can be
ler R&D developed the sig- from dominant to reces- A relevant value for the expressed as an addition-
nal integrity graph (Figure sive can be examined. The CAN protocol controller is al delay; the respective val-
4 right side). One topology blue-shaded area includes the maximum round trip ues are added as grey bars
is described in one graph all Rx signal slopes rela- delay in the network be- at the sample point posi-
that shows all relevant to- tive to the Tx slope. Thus, tween the ECUs, which can tions. In the example (Fig-
pology characteristics in- the position and extent of be extracted directly from ure 5) a direct clocking of
cluding the worst-cases. In the blue-shaded area di- the signal integrity graph. the controller by a crys-
order to get the signal integ- rectly corresponds to the The maximum round trip tal is assumed. In case a
rity graph all physical signal minimum and maximum values of both example to- PLL (phase-locked looped)
relationships between all propagation delay between pologies are plotted in a clock is used, the clock tol-
nodes in the network have the nodes. The truck topol- bar graph shown in Figure erance might be larger. The
to be measured or simulat- ogy shows comparatively 5. They represent the typ- maximum bit-rate in the
ed. All analog bus and digi- clean bus signals, ringing ical case (light blue bar). network is limited by the
tal Rx (receive) signals are decays quickly and there is For worst-case estima- maximum round trip delay.
synchronized on the falling only a little delay. However tions, the temperature-de- It has to be smaller than the
edge of the Tx (transmit) the articulated bus topology pendent tolerances of the time position of the sample
signal and plotted in an in- shows more ringing, reflec- transceiver and EMI (elec- point within one bit-time. If
tersected manner. The re- tions and it has consider- tromagnetic interference) the round trip delay is too
large, the arbitration and
acknowledge mechanism
truck topology example 3 6 does not work anymore re-
5 sulting in error frames on
the network. These limits
diff. bus voltage (V)

2 uBus 4
RxD

TxD/RxD (V)
TxD
3 are shown in Figure 4 for
1 BUSon-RxD 2 different bit-rates and sam-
1m 1m BUSoff-RxD
1 ple points.
m m 0 0 The resulting safety
T 10m 2m 6m 2m 2m T 500 kbit/s
-1
margins in Figure 5 show,
-1 -2
that the truck topology
t (s) 0,0 1,0 2,0 3,0
would work with 800 kbit/s,
articulated bus topology example 3 6 though only with a small
5
safety margin. The articu-
diff. bus voltage (V)

uBus
8m 3m
2
RxD
4
lated bus topology will only
TxD/RxD (V)

1m TxD 3
work safely with 500 kbit/s.
1m 24m 1m 1 BUSon-RxD 2
This calculation shows that
1
1m 1m BUSoff-RxD in trucks and omnibuses
4m 0 0
the maximum acceptable
1m passive star 3m T -1
T 500 kbit/s bit-rate (500 kbit/s and 667
-1 -2
t (s) 0,0 1,0 2,0 3,0 kbit/s) is already reached.
Further increase with the
classic CAN network will
Figure 4: Truck and omnibus topology with signal integrity graph

1 MBit/s 800 kBit/s 667 kBit/ s 500 kBit/s


limitation for arbitration / acknowledge 81% SP 80% SP 83 % SP 81 % SP

133 ns safety margin


E MC

transceiver 375 ns
CC

truck topology example


rou nd t rip d elay

correction 744 ns
EM C

transceiver
CC

articulated bus topology example


346 ns
correction

typical round trip delay


f osc f osc f osc f osc

0 200ns 400ns 600ns 800 ns 1 s 1,2 s 1,4 1,6 s

Figure 5: Round trip delay and bit-timing

16 CAN Newsletter 1/2013


a) 3 6 b) 3 6 c) 3 6
uBus 5 uBus 5 uBus 5

TxD/RxD (V)
diff. bus voltage (V) 2 RxD 4 2 RxD 4 2 RxD 4
TxD TxD TxD
3 3 3
BUSonRxD BUSonRxD BUSonRxD
1 2 1 2 1 2
BUSonRxD
1 BUSonRxD
1 BUSonRxD
1
0 0 0 0 0 0
-1 -1 -1
500 kbit/s 1 Mbit/s 2 Mbit/s
-1 -2 -1 -2 -1 -2
t (s) 0,0 1,0 2,0 3,0 t (s) 0,0 1,0 2,0 3,0 t (s) 0,0 1,0 2,0 3,0

d) example:
example:2Mbit/s
2Mbit/stransmission onon
transmission truck
busexample topology
and stub structure
3 6
diff. bus voltage (V)

TxD/RxD (V)
T xD
2 RxD 4

1 uBus 2

0 0

1 2 3 4 5 6 t (s) 7 8 9 10 11

Figure 6: Signal integrity graphs

a) arbitration 500 kbit/s b) arbitration 667 kbit/s c) arbitration 800 kbit/s


2,0 2,0 2,0
average bitrate (Mbit/s)

average bitrate (Mbit/s)

average bitrate (Mbit/s)


8 byte data 8 byte data 8 byte data

1,5 1,5 1,5

1,0 1,0 1,0


11-bit ID 11-bit ID 11-bit ID
29-bit ID 29-bit ID 29-bit ID
0,5 0,5 0,5
0,5 1 2 3 4 0,5 1 2 3 4 0,5 1 2 3 4
bit rate data phase (Mbit/s) bit rate data phase (Mbit/s) bit rate data phase (Mbit/s)

d) arbitration 500 kbit/s e) arbitration 667 kbit/s


3,0 3,0
average bitrate (Mbit/s)
average bitrate (Mbit/s)

29 bit ID 29 bit ID
payload length payload length
2,5 2,5
8 byte 8 byte
2,0 12 byte 2,0
12 byte
1,5 16 byte 1,5 16 byte
32 byte
32 byte
1,0 64 byte 1,0 64 byte
0,5 0,5
0,5 1 2 3 4 0,5 1 2 3 4
bit rate data phase (Mbit/s) bit rate data phase (Mbit/s)

Figure 7: Average bit-rate with CAN FD protocol

not be possible. The limit- tleneck of classic CAN en- does not change and the The first simulation
ing factor is the round trip abling more data throughput relative delay time stays the results show, that even in
propagation delay between without changing topologies same. Only the steady state truck and omnibus topolo-
the nodes. and physical layer hard- part of the bit is contracted. gies approximately up to 2
ware. Figure 6 shows what The lower graph in Figure 6d Mbit/s for the data phase of
Improved CAN

happens to the CAN signals shows a detail of a CAN bit the CAN FD protocol would
The potential when the bit-rate is accel- stream with 2 Mbit/s in the be possible using the cur-
of the CAN FD erated, e.g. in the fast data example topology. It can be rent transceivers and cur-
physical layer phase of a CAN FD frame. seen that the analog wave- rent topology structures.
However, today’s CAN The calculation uses the forms as well as the digital For the arbitration phase
physical layer (high-speed) truck example topology (Fig- Rx signals are well transmit- today’s common bit-rates
has the potential for higher ure 3 and Figure 4). The sig- ted over the physical layer. of 500 kbit/s to 667 kbit/s
speeds. The bit-rate is only nal integrity graphs show an At approximately 2 Mbit/s, have to be maintained to
limited by the arbitration increase of the bit-rate from the extent of the bit in rela- ensure correct arbitra-
and acknowledge mecha- 500 kbit/s to 1 Mbit/s and fi- tion to the extent of the sig- tion and acknowledge. Of
nism, not by signal integrity nally to 2 Mbit/s (Figure 6a nal slopes shows, that a fur- course, these theoretically
on the network. CAN FD can to Figure 6c). It can be seen ther increase would not be calculated results still have
overcome the bit-timing bot- that the shape of the slopes reasonable. to be confirmed by mea-

CAN Newsletter 1/2013 17


surements with real hard-
Improved CAN

10-ms messages CAN (29-bit CAN FD std. CAN FD extd. CAN FD extd.
ware. CAN-ID) arb. 667 kbit/s arb. 667 kbit/s arb. 667 kbit/s

detail of communication cycle


667 kbit/s data 2 Mbit/s data 667 kbit/s data 2 Mbit/s
8-byte frames 64-byte frames 64-byte frames
Increased data only
throughput with
CAN FD 18 x 8-byte
msg.
18 x 8-byte msg. 2 x 8-byte msg. 2 x 8-byte msg.
2,088 ms 0,405 ms 0,232 ms
3,537 ms
The calculations above give
a first estimation of possible 1 x 32-byte msg. 1 x 32-byte msg.
0,497 ms 0,214 ms
arbitration phase and data
phase speeds in the CAN 1 x 48-byte msg. 1 x 48-byte msg.
FD message. These val- 0,689 ms 0,278 ms
ues permit to estimate the
1 x 64-byte msg. 1 x 64-byte msg.
average data throughput 0,881 ms 0,342 ms
that can be achieved with
CAN FD under these phys- 3,537ms 2,088 ms 2,472 ms 1,066 ms
ical layer conditions. The
upper three graphs in Fig- estimation not including stuff bits
ure 7 are plotted for arbitra-
tion speeds of 500 kbit/s to
800 kbit/s. The horizontal Figure 8: Example of different CAN FD configurations
axis represents the bit-rate
in the fast data phase of a estimation does not include age bit-rate. However, when and allows more data to be
CAN FD frame, while on the stuff bits. using the whole 64 bytes of transmitted on the network.
vertical axis the resulting Apart from the fast- the payload, the yield is a lit-
average bit-rate is plotted, er bit-rate in the data seg- tle higher than a 1,5-Mbit/s Next steps
assuming that only 8 byte ment, CAN FD also enables average (Figure 7d). This
payload frames are used. In transmission of frames with means an increase of ap- In order to safeguard the
this case no changes to the a payload of up to 64 bytes. proximately 50 % of the av- CAN FD technology for the
application software would The two lower graphs in Fig- erage bit-rate. Also this es- integration into vehicles,
be necessary when using ure 7 show the effect of the timation neglects stuff bits. real hardware for testing is
CAN FD, besides an adop- extended payload length, Using more than 8 bytes necessary. Until now micro-
tion of the CAN driver soft- assuming that all trans- of payload will have a di- controllers with integrated
ware. Figure 7a shows that mitted frames make com- rect impact on the applica- CAN FD controller are not
the average bit-rate could pletely use of the respec- tions and the ECU’s oper- available. A CAN FD IP is al-
be nearly doubled for an ar- tive payload. It is evident, ating system as these are ready available from Bosch
bitration speed of 500 kbit/s that the gain in average currently developed to deal as a VHDL code. Therefore
and 2 Mbit/s for the data bit-rate is maximized when with 8 bytes of payload only. Bosch, Daimler and NXP
phase using only 8-byte frames with long payload Especially applications us- jointly developed a sam-
data frames and the 29-bit are used. For example, in a ing the J1939-based pro- ple gateway device based
CAN-IDs (identifiers), which truck network with an arbi- tocols and vehicle flashing on an FPGA implementa-
is common in trucks. There tration speed of 500 kbit/s applications could benefit tion. It can be used to build
could be more gain in aver- and a data-phase speed from the extended payload up entire CAN FD networks
age bandwidth for networks of 2 Mbit/s with 8 bytes of length. and perform hardware tests
using the 11-bit CAN-IDs payload would make a little Figure 8 shows an ex- of topologies, signal integri-
e.g. in passenger cars. The less than a 1-Mbit/s aver- ample, which is taken from ty and EMC as well as soft-
a real truck communication ware tests such as gateway
cycle. Only the messages algorithms. According to the
that are transmitted cyclical- company, the ECU in Figure
ly every 10 ms are shown. 9 represents the world’s first
Some ECUs need to trans- CAN FD-compatible ECU
mit more than 8 bytes of suitable for usage in vehi-
payload resulting in a burst cles. It is powered by a 32-
of frames that take approx- bit CPU from Renesas run-
imately 3,5 ms to be trans- ning with Autosar. Two CAN
mitted. Figure 8 shows the FD IP cores are running on
reduction in transmission an Altera FPGA, which is
time achievable using CAN interconnected to the CPU
FD with an 8-byte payload using the memory bus. Dif-
and fast transmission of the ferent CAN transceivers are
data, with extended pay- included and selectable for
load but without fast trans- CAN FD or classic CAN.
mission of the data and The power supply unit, con-
with both mechanisms com- nectors, size and housing
bined. In all configurations are designed to use it in a
CAN FD reduces the nec- laboratory or vehicle envi-
Figure 9: CAN FD sample gateway device essary transmission time ronment.

18 CAN Newsletter 1/2013


The sample gateway vehicles. This enables ex-
device will be used to con- tension of the life time cycle
firm the first simulation re- of existing electronic archi-
sults given in this article. tectures.
Furthermore it will be used At Daimler, CAN FD
to perform various inves- currently has the status of
tigations to answer open a predevelopment project.
questions and finally derive To use CAN FD in the next
design rules for the CAN FD vehicle generation in ap-
networks. It is not intend- proximately 2016 and 2017,
ed to go into series produc- a dependable roadmap of
tion and will only be used micro-controllers with in-
for R&D purposes. Some of cluded CAN FD IP must be
the topics to be investigated available by mid of 2013.
are: Especially, the availability of
a micro-controller suitable
fusion
◆◆ Clock/jitter tolerance for gateway applications
◆◆
◆◆
EMC emissions
Robustness against
with at least four CAN FD
controllers is a precondition – the safety
◆◆
EMC
Robustness of transceiv-
er delay compensation
for the series introduction.
controller
◆◆ Signal integrity, asym-
metric delay
◆◆ Qualification of trans-
ceivers
advanced + safe
◆◆ Interoperability of differ- PL d Cat. 3 according to EN ISO 13849
ent bit-time and clock

◆◆
settings
Interoperability of differ-
powerful + safe
ent controllers redundant 32 bit CPU and FPU
◆◆ Software tests
◆◆ Gateway strategies
flexible + safe
A final validation of the safe I/O extensions
CAN FD technology and its
possibilities will be made
when it has passed these
adaptable + safe
tests. safe and standard program
w/o feedback
Conclusion
CAN FD is a promising
bus technology that allows
designing cost-optimized
and flexible architectures
for trucks and omnibuses in
the future. First estimations
show that in typical truck
and omnibus networks bit-
rates in the data field of ap-
proximately 2 Mbit/s would
be possible without chang-
ing the physical layer and
the network topology. In
combination with the ex-
tended payload the aver- 3
age data throughput could ,booth 32
Register now hall A4
be increased by a factor of
three depending on the ap- for the premiere at:
plication. The main advan-
tage of CAN FD for trucks
www.intercontrol.de/en/bauma
is the increase of average info@intercontrol.de
data throughput for the ap- Tel. +49 911 9522-851
plications, which will main-
tain flexibility for future ex-
tensions and diversity of

You might also like