Sunteți pe pagina 1din 8

CAN  FD from an OEM’s

System design

point of view
CAN FD provides bit-rates higher than 1 Mbit/s and payloads larger than
8 byte. Nevertheless, it is a proven technology: robust and reliable. With
these characteristics CAN FD meets the requirements of carmakers.

Authors
Dr.-Ing. Marc Schreiner
Daimler AG – Research and
B ecause vehicle network-
ing is not an infrastruc-
ture that is directly percep-
capacity without large chang-
es in the existing sys-
tems like brake systems or
does not include stuff bits.
The upper graphs in Figure
5 are plotted for arbitration
Development tible by the customer, it is a engine controllers. speeds between 500  kbit/s
Wilhelm-Runge-Straße 11 balancing act between eco- The next evolutional and 800  kbit/s. The x-axis
DE-89081 Ulm nomical pressure and tech- step, automotive Ethernet, represents the bit-rate in
nical innovation that requires will have an impact on CAN. the fast data phase of a
Haytham Elwy Mahmoud the adequate use of specific On the one hand there will CAN FD frame, while on the
Martin Huber technologies. Along the lines be a need for more band- y-axis the resulting average
Daimler AG – Research and of “as few as possible, as width in architectures like bit-rate is plotted, assum-
Development much as necessary” Figure Figure 4. Such an architec- ing that only 8 byte payload
Bela-Barenyi-Str. 1 2 shows a simplified sche- ture and especially Ethernet frames are used. Figure 5a
DE-71063 Sindelfingen matic of the E/E-architec- itself requires sub-networks shows that the average bit-
ture of the current S-Class with payloads of more than rate could be nearly dou-
Serhan Koç (launched in 2013) and Fig- 8 byte. bled by an arbitration speed
Dr.-Ing. Jan Waldmann ure 3 the current Actros truck of 500  kbit/s and 2  Mbit/s for
Daimler AG – Truck Development (launched in 2011). CAN FD physical the data phase using only
Mercedesstr. 123 Both architectures fol- layer 8-byte data frames and 29-
DE-70372 Stuttgart low the idea of grouping bit IDs. There is more gain
communicating systems of The average bit-rate de- in average bandwidth using
Tel.: +49-711-170 the same domain in their pends on payload length only 11-bit IDs.
Fax: +49-711-1722244 own network systems to re- and identifier length (11- The lower graphs
dialog@daimler.com duce overall busload. Es- bit or 29-bit). The correla- in Figure 5 show the ef-
pecially in truck systems tions are given in Figure fect of the extended pay-
Link a large amount of inter- 5, where the average bit- load length, assuming that
domain communication re- rate can directly be com- all transmitted frames make
www.daimler.com quirement (e.g. brake and pared with today’s CAN  bit- complete use of the re-
powertrain system) remains, rates, e.g. 500  kbit/s. Please spective payload. It is evi-
which cannot be satisfied by note that this estimation dent that the gain in average
introducing just another CAN
network system. On the oth-
Keynote speech of Dr. Schreiner at er hand the introduction of
the 14th iCC on Youtube non-CAN communication
would require a big change
References of today’s software and com-
[1] CAN with Flexible Data-Rate - munication implemented
Florian Hartwich, CAN in within truck systems. The
Automation, iCC 2012 introduction of CAN  FD [1]
[2] Safeguarding CAN FD for appli- for these busload-critical
cations in trucks - M. Schreiner, H. CAN-networks seems to Figure 1: Evolution of in-vehicle networking: different
Leier, M. Zerzawy, T. Dunke and J. be a perfect solution to evolutional steps in terms of in-vehicle networks from its
Dorner, CAN Newsletter March 2013 achieve higher network early days to the present using the example of the E-Class.

26 CAN Newsletter 2/2014


CANopen extension
for SIMATIC® S7-1200

Figure 2: Current passenger car architecture

IXXAT

CM CANopen
Communication module for connecting CAN-based
Figure 3: Current truck architecture
field devices with the SIMATIC® S7-1200 world

 Comprehensive CANopen functionality for


master or slave mode
 Transparent CAN 2.0A mode for the support
of alternative protocols
 Easy PLC programming within the TIA Portal
using pre-programmed function blocks
 Intuitive Microsoft Windows application for the
CANopen network configuration included

With CM CANopen HMS offers under the brand IXXAT a module for the
Figure 4: Future passenger car architecture easy integration of CANopen and CAN-based I/O modules, drives or
sensors into SIMATIC S7-1200 controllers as well as in PROFIBUS and
bit-rate is maximized when data-rate as shown in Fig- PROFINET networks.
frames with long payloads ure 5d. This means an in-
are used: e.g. in a network crease of approximately
with an arbitration speed of 50 % in an average data-
500  kbit/s and a speed of rate. Also available: 1 SI CANopen
2 Mbit/s in the data phase CANopen module with CAN 2.0A support for
using 8 bytes payload would Designing CAN FD SIMATIC ET200S decentralized peripheral systems
give just a little less than a networks
1 Mbit/s average bit-rate. SIMATIC, STEP 7, TIA Portal and images of the S7-1200 and ET200S are intellectual property of
Siemens AG Germany and copyright protected.
However using only 64  byte The most important key pa-
of payload yields a little more rameter for evaluating CAN 
than 1,5  Mbit/s average networks is the propaga- HMS Industrial Networks GmbH
Emmy-Noether-Str. 17 · 76131 Karlsruhe
+49 721 989777-000 · info@hms-networks.de
www.anybus.com · www.ixxat.com · www.netbiter.com
System design

Figure 5: CAN  FD average bit rate depending on data phase speed and ID length

tion delay in the network. erances, EMC or tempera- will cause communication er- for other ECU software so-
This value is limited by the ture influences. rors due to erroneous sam- lutions. All Daimler vehicles
CAN protocol mechanisms In the phase of acce- pling of the bits. The total (trucks, buses or passenger
and the respective bit time lerated data transmission of asymmetry is a combination cars) make use of several
settings. In simple terms all a CAN  FD frame, the delay of the intrinsic asymme- network systems that are in-
nodes within a network need values are not relevant as all try of the transceivers and terconnected via gateways.
to receive the response of other nodes are already syn- the specific characteristics Thus not only the commu-
all other nodes to their own chronized and just listen to of the topology. Up to now nication within one net-
signal within a bit time. If the the transmitted data. How- there is no official tolerance work but also the routing be-
delay is too long, CAN-ar- ever other key parameters range of the intrinsic asym- tween several CAN networks
bitration and acknowledge can be identified for CAN FD metry of the transceivers (which might be CAN FD and
mechanisms fail and as a frames that have not been themselves. Just like sym- CAN ) or between other net-
consequence the communi- considered for CAN  even metric delay values in CAN  works systems like Ethernet
cation in the CAN-network though the effects are pres- implementations there has or Flexray has to be consid-
breaks down completely. ent in CAN -networks as well. to be an adequately defined ered for the introduction of
To make sure that this does Most important is the asym- safety margin for the asym- CAN FD.
not happen under any cir- metric delay of the received metric delay to account for
cumstance, all communica- signals in the network that tolerances, EMC or temper- Scenario 1
tion relationships in a net- becomes relevant especial- ature influences.
work between all nodes are ly for higher bit-rates. This The first scenario considers
assessed, e.g. by means effect is due to the fact that Integrating CAN FD an increased communica-
of measurement or physi- the rising and the falling into E/E architecture tion speed, while maintain-
cal layer network simulation. edges of a dominant signal ing an 8-byte payload per
The maximum delay time in have different physical pre- Especially passenger cars frame. This scenario, called
the network (TX to RX) is ex- conditions, i.e. the reces- use the Autosar (automo- CAN FD 8 (payload re-
tracted and the signal integ- sive to dominant edge is tive open system architec- mains limited to 8-byte), will
rity of the network is checked driven actively whereas the ture) software stack in their be introduced for the Auto-
as well in order to make sure dominant to recessive edge ECU software. Autosar fol- sar release 4.1.1. Figures
that the predicted values are is just released. In the end, lows the principle: cooper- 8, 10 and 14 show the Au-
stable. If there is ringing in depending on the trans- ate on standards, compete tosar software stack. Blue
the network that could fur- ceiver, used dominant or re- on implementation. In the shaded boxes indicate that
ther enlarge the delay time, cessive bits shrink or grow. following, three introduc- the respective component
the predicted delay values The exact value may even tion scenarios for CAN FD has to be adopted. In Sce-
have to be adopted. Fig- be dependent on the previ- into ECU software are dis- nario 1 only the communi-
ure 6 shows how the evalu- ously transmitted signals. cussed. In addition, the im- cation speed is increased,
ation can be done by means Figure 7 gives an example of pact on the ECU software is all other communication
of a signal integrity chart. Of bit asymmetry measured in a explained exemplarily for the software mechanisms are
course, there will always be real network. Autosar software stack used maintained. As shown in
an adequately defined safe- Depending on the bit in passenger cars in which Figure 8 the only soft-
ty margin to account for tol- time settings, bit asymmetry the principle is also valid ware component that is af-

28 CAN Newsletter 2/2014


fected is the CAN driver pro- “frame routing” is easy to
gram: implement and contained
◆◆ Expansion of the CAN- in communication standard
driver to enable the con- software stacks. The rout-
figuration of the second ing mechanism to other USB-to-CAN V2
bit-rate, network systems such as
◆◆ Additional attributes
required in the sys-
Ethernet or FlexRay would
be maintained as well with-
The good just got better!
tem description (bit time out changes.
settings). It has been shown
Low busload reserves that CAN  FD 8 would
do not occur on all CAN net- approximately double the
works simultaneously which average bit-rate compared
might result in a mixed CAN to today’s CAN. Thus, Sce-
FD / classic CAN struc- nario 1 might be a first step
ture inside passenger cars towards the introduction of
or trucks. As long as a pay- CAN FD.
load length of 8-byte is used
in all CAN networks, routing Scenario 2
between CAN FD and clas-
sic CAN  networks is easy, as The second scenario as-
shown in Figure 9. sumes an increased com-
PDUs (protocol data munication speed and a
unit = bare payload of an ap- 64-byte payload per frame.
plication / CAN-frame with- Frames with extended pay-
out any additional control load (CAN  FD 64) provide
information) can be routed significant additional band-
from CAN FD to CAN  and width, which is why the
vice versa without further extension of the payload to
considerations and even 64 bytes will be addressed
the same CAN-IDs could in Autosar 4.2.1. As shown in
be used on both networks. Figure 10, this scenario has
This type of routing called an extensive impact on sev- The new generation of

IXXAT CAN Interfaces


 For mobile analysis and configuration of
CAN systems as well as for sophisticated
simulation and control applications
 Up to two CAN interfaces
(optional low-speed CAN and LIN)
 Built-in version with slot bracket
 USB 2.0 Hi-Speed for minimal latency
and high data throughput
 Drivers (32/64 bit) for Windows XP,
Figure 6: Signal integrity diagram Windows 7/8, Linux, QNX, INtime, RTX

The latest generation of IXXAT USB/CAN interfaces from HMS is even


more powerful and versatile – and all for a really low price.
The interfaces are available in different variants, from the „compact“
version to the universal „professional“ and „automotive“ variants.
HMS supports all versions with analysis and configuration tools as well
as with drivers, e.g. for CAN, CANopen and SAE J1939.

Figure 7: Example for bit asymmetry in a topology with


CAN FD 2 Mbit/s HMS Industrial Networks GmbH
Emmy-Noether-Str. 17 · 76131 Karlsruhe
+49 721 989777-000 · info@hms-networks.de
www.anybus.com · www.ixxat.com · www.netbiter.com
eral software components in large PDUs efficiently using
System design

the ECU software stack. 64-byte CAN FD frames.


In detail the following Generally, PDUs should
changes have to be applied: be filled with signals that are
◆◆ Expansion of the CAN transmitted with identical cy-
driver to enable the con- cle times and not by differ-
figuration of the second ent software components in
bit-rate, order to be able to map the
◆◆ Expansion of the CAN relocatability of functions on
modules, PDUR, COM a network level. Due to dif-
and RTE to support ferent senders, transmission
64-byte payload, types, cycle times etc. there
◆◆ Expansion of the System is no point in combining
Description / ECU ex- arbitrary signals of an
tracts the ECU to support Figure 8: Software stack changes using CAN  FD 8 ECU into large PDUs in
64-byte payload, applications.
◆◆ Expansion of the configu- In trucks and busses,
ration tools and genera- communication is based to a
tors to support 64-byte greater extent on cyclic sig-
payload. nals and due to technical
As for CAN the payload Figure 9: Routing scenario with CAN  FD 8 or legislative requirements,
length is limited to 8 bytes, more data has to be ex-
generally multiple messages changed between systems
have to be used to transport (e.g. exhaust relevant com-
the original PDU from a CAN munication between engine
FD frame. Unfortunately this controller and exhaust after
type of routing is not imple- treatment control unit to en-
mented in current commu- sure Euro IV conformity).
nication standard software Thus, Scenario 2 theo-
stacks, which means that ev- retically offers the possibility
ery single CAN-signal con- to make use of the extended
tained in the original PDU payload frames CAN FD of-
has to be treated separately fers, however depending on
by the routing mechanisms. the grown structure of the ve-
On the other hand, the pos- hicles’ software applications
sibility to realize separate and the needed communica-
and independent transmis- tion relations between sys-
sion cycles for the CAN-ID1 Figure 10: Software stack changes using CAN  FD 64 tems, only a certain increase
to CAN-IDn frames can be of network capacity can be
achieved in the CAN  net- achieved. Therefore, the
work, bought dearly by an ability to map multiple PDUs
increased router processor dynamically into one CAN
load. Ongoing standardiza- FD frame appears to be an
tion tends to implement this additional requirement.
routing scheme within Auto-
sar specification based on a Senario 3
signal routing scheme in the Figure 11: Routing scenario with CAN FD 64
router. The third scenario in-
A slightly different situ- a CAN  FD frame to multi- vehicle architectures with volves expanded commu-
ation occurs if the PDU def- ple CAN  frames. But here CAN  and CAN FD networks. nication facilities with flexi-
inition is changed in CAN a fixed relation between the Currently the Autosar ble PDU mapping. As a first
FD networks. Originally, the PDUs in the CAN FD frames software has the limitation step, multiple 8-byte PDUs
PDU identifies the frame and the routed CAN  PDUs/ that only one single PDU could be mapped statical-
content of a CAN-message frames can be realized. can be mapped to one sin- ly onto one single CAN FD
minus the control informa- This PDU routing scheme gle CAN-frame. If this re- frame. However the efficien-
tion like e.g. message ID, can be implemented with- striction is maintained, it cy of such a solution would
acknowledge bit or stuff in communication standard will be very difficult to use be poor with the transmis-
bits. For the simplification software stacks with a high CAN FD effectively. In pas- sion mechanisms specified
of the CAN  FD to CAN  rout- reduction of routing proces- senger cars, most appli- in the present Autosar soft-
ing, the basic idea is a CAN ser interrupt load, resulting cations currently using the ware package. As an exam-
FD frame containing multi- in an increased routing ca- CAN  network only gener- ple: In case that four PDUs
ple PDUs with a DLC (data pacity. Furthermore, there ate a comparatively small are statically mapped to
length code) of 8 if compat- is a static relation between amount of data that is de- one CAN FD frame and only
ible to CAN  messages. CAN  FD frames and their signed to effectively use one of the PDUs has been
As shown in Figure 12, contained PDUs. This pro- 8-byte PDUs today. Only a updated, this solution would
the routing scheme looks the cedure could be used as certain amount of applica- imply that the entire CAN FD
same as in Figure 11, routing a migration strategy for tions could really generate frame has to be transmitted

30 CAN Newsletter 2/2014


VN8900 – The Future of
Network Interfaces
The modular network interface with integrated real-time computer
and standalone functionality!

Take advantage of the features:

> Optimal performance for CANoe/CANalyzer/CANape real-time applications


with FlexRay/CAN FD/LIN/J1708/K-Line access and up to 8 channels
> Minimal latency times and synchronized interfaces
> Best suited for MiniHIL applications
> High performance data throughput
> Integrated interface for analog/digital interfaces
> Easy to configure via USB plug & play interface
> Fast SSD memory and rugged keypad for standalone operating mode

The VN8900 network interface can be used in multiple application areas like
system simulations or bypassing applications with Simulink, remaining bus
le
icab
simulations, gateway implementations and test executions (MiniHIL).
es t appl on-
b C
nit: Noe
More information: www.vector.com/vn8900
Base U nsive CA r huge
912 o
VN8 exte ions
with simulat
NEW stands B
st ATL A ents
at te ions, M nvironm
rat te
f igu tor y tes
r a
labo

Vector Informatik GmbH


Germany • USA • Japan • France • Italy •
UK • Sweden • China • Korea • India • Brasil
Facts
Bus Interfaces

VN8900
Modular FlexRay/caN/LIN/J1708/K-Line Network Interface with up to 8 channels
What is VN8900 technical Data

the VN8900 system is a modular designed Base Units VN8910a VN8912


hardware interface with various possible application areas > mobile, stationary, standalone > stationary, standalone
channel combinations for caN, LIN, Flex- > access to several bus channels, I/Os > access to several bus channels, I/Os
Ray, J1708 and K-Line. a particular focus > suitable for environments with > high performance data throughput
here is on parallel access to multiple bus voltage dips and extreme temperature > test stands with extensive caNoe con-
conditions figurations or MatLaB simulations
channels and I/Os with high requirements
> huge laboratory test environments
on real-time and latencies also in standalo-
ne operating mode. cPU Intel atOM E680t Intel core-i7 3517UE
suitable plug-in modules VN8950 / VN8970
Ethernet ports 1 x GbEtH 2 x GbEtH
Overview of advantages
UsB host interface 2 x UsB 2.0 4 x UsB 3.0
> Keypad for standalone operating mode UsB client interface 1 x UsB 2.0 1 x UsB 3.0
> Modular network interface with integra- Hardware sync. 1x
ted real-time computer
solide state drive (ssD) 4GB 8GB (cFast)
> Optimal performance for caNoe/caNape/
caNalyzer applications with caN, caN FD KeyPad and LED back side front side
FlexRay, LIN, J1708 and K-Line bus access Input voltage 6...36V 10...36V
> ssD/cFast memory temperature range -40...+60°c 0...+50°c
> Integrated analog/digital I/O interface cooling passive active fan
> Minimal latency times and synchronized Driver library XL-Driver Library for FlexRay/caN/LIN via UsB or Ethernet
interfaces
Operating system Windows XP (32 bit), Windows 7/8 (32 and 64 bit)
> Easy to configure via UsB plug & play
interface
Plug-in Modules VN8950 VN8970
Microcontroller atMEL at91R40008 32 bit 64 MHz atMEL at91saM9, 32Bit, 400MHz
channels 4 channels caN or LIN, FlexRay caN/caN FD LIN/K-Line*
1 digital/analog IO channel, 1 6 -
configurable with piggyback 1 5 1
1 4 2
- 8 -
7 1
6 2
5 3*
4 4*
additionally 1 digital/analog IO channel
configurable with piggyback;
* max. 2 K-Line channels possible
caN controller FPGa-based Vector caN controller (caN FD capable with VN8970 module),
full support of all caNoe.caN functions, e.g. send Errorframes,
measurement of bus load and ListenOnly mode
VN8912 and VN8910a base units with plug-in FlexRay cluster - 1 (with 2 channel a & B)
modules and transceiver piggybacks FlexRay controller (analysis) - Bosch E-Ray (FPGa)
FlexRay controller (startup) - Fujitsu MB88121
FlexRay send buffer - 2 MB
Base Units and Plug-in Modules
LIN controller Vector LIN-controller (FPGa) compatible to LIN1.3, LIN2.0, LIN2.1 and J2602,
a VN8900 system consists of a base unit and a full support of all caNoe.LIN functions, e.g. conformity tests,
plug-in module stress functions, and flash mode of 7269 transceiver.
supported transceiver support of all magnetically/capacitive decoupled piggybacks,
Available Base Units:
as well as J1708opto piggyback.
> VN8910A: Interface with integrated Intel IO expandability I0piggy8642
atOM processsor digital: 8 inputs, 4 outputs / analog: 4 inputs, 2 outputs
> VN8912: High performance interface with Onboard transceiver - 4 x NXP tJa1051 (caN Highspeed)
integrated Intel core-i7 processor with electrical isolation
Available Plug-in Modules: temerature range Operating: 0...+50 °c Operating: -40...+60°c
> VN8950: caN/LIN/J1708 module with shipping and storage: -40...+85 °c shipping and storage: -40...+85°c
analog/digital IO expandability Power consumption typ. 3,5 W typ. 7W
> VN8970: FlexRay/caN/caN FD/LIN/J1708/ Power supply with base unit
K-Line module with analog/digital IO time stamp accuracy 1 μs
expandability

www.vector.com/contact
V1.2 2014-01
including three PDUs with- is combined from multiple
out new information. Like CAN  frames depending on
Scenario 2 this solution the PDU arrangement and
would make ineffective the router scheme (PDU
use of CAN FD possibili- routing or signal routing).
ties. Therefore, as a sec- But another aspect
ond step, a so-called PDU- rises up as for the case of
Header (similar to what is Figure 12: Routing scenario with CAN FD 64 DLC > 8 or multiple PDUs
currently specified in Eth- on CAN FD: the timing of the
ernet) could be introduced, arriving CAN  frames needs
see Figure 13. to be considered. Multiple
The introduction of approaches may be used
this PDU header allows a varying in routing latency for
dynamic mapping of PDUs the different PDUs. Depen-
onto CAN FD frames. In this ding on the specific appli-
case only those PDUs are cation of the routed signals,
transmitted in a CAN FD the appropriate routing tim-
frame whose contents have ing scheme has to be se-
actually changed. There is lected (e.g. starting routing
no redundant transmission process at first incoming
of unchanged PDUs. The Figure 13: PDU header concept CAN  frame, starting after
PDUs that are contained arrival of last incoming CAN  
in a current CAN FD frame frames). In every case, buf-
can be identified clearly by fer memory for single sig-
means of the PDU head- nals or complete PDUs has
er. Furthermore the length to be provided within the
of the CAN  FD frame can router.
be adapted dynamically
depending on the current
communication needs. This
method allows using the
possibilities of the CAN FD
technology in a quite effec-
tive manner, even though
some bandwidth gets lost
for the additional PDU
headers. Secondly, it fits
into the grown structures of Figure 14: Software stack changes using CAN FD 64 and
the ECU software structure. PDU routing Routing of CAN-frames between networks
Figure 14 again highlights containing CAN FD and classic CAN using the PDU
the software components header concept is shown in Figure 15.
that have to be adopted.
It has to be mentioned
that the PDU header con-
cept also implies the loss of
bandwidth due to the PDU
headers in the CAN-mes-
sage’s payload. E.g. if five
8-byte PDUs are transmit- Figure 15: Routing scenario with CAN FD 64 and PDU
ted in an 64-byte CAN FD header concept
frame, 60 bytes of the frame
are really used and anoth- Figure 15 shows the table for the selection of the
er 20 bytes get lost for the routing of a CAN FD frame destination network (e.g.
PDU headers resulting in an with a DLC > 8 from a CAN-ID1 should be rout-
effective usage of 62,5 % CAN FD network towards ed to CAN  network No. 1,
System design

compared to the complete a classic CAN network. In while CAN-ID2 should be


usage of 64-byte payload. this case, the router gains routed to classic CAN  net-
This would especially apply more flexibility and reduc- work No. 2 only). Of course
to the grown applications es lookup table memory re- this destination network in-
in the E/E-architecture, quirements as the CAN FD formation also has to be
whereas new applications frame can carry the clas- available at the router in the
could make use of larg- sic CAN  destination CAN- previous discussed rout-
er PDUs where the loss is ID information within the ing schemes. Discussing
much less, e.g. approxi- PDU header. Only in case the routing schemes from a
mately 93 % efficiency for of a multi-router with more CAN  network to a CAN FD
a single 60-byte PDU and than two CAN-networks, network, the principle stays
4-byte header. the router needs a lookup the same. A CAN FD frame

CAN Newsletter 2/2014 33

S-ar putea să vă placă și