Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Downloaded from SAE International by University of Auckland, Saturday, August 04, 2018

2016-01-0060
Published 04/05/2016
Copyright © 2016 SAE International
doi:10.4271/2016-01-0060
saepcelec.saejournals.org

CAN FD Network Design Hints and Recommendations


Holger Zeltwanger
CAN in Automation

ABSTRACT
The CAN FD protocol internationally standardized in ISO 11898-1:2015 just describes how to implement it into silicon. The ISO
11898-2:2016 standard specifies the physical media attachment (PMA) sub-layer of the CAN (FD) physical layer. The design of CAN
FD networks is not in the scope of these standards. In general, the physical layer design of CAN FD networks requires more attention
compared with Classical CAN networks. First recommendations have been developed. Different standardization bodies have already
specified or are in the process of specifying higher-layer protocols, for example ISO for on-board diagnostic, ASAM for calibration, etc.

CITATION: Zeltwanger, H., "CAN FD Network Design Hints and Recommendations," SAE Int. J. Passeng. Cars – Electron. Electr. Syst.
9(1):2016, doi:10.4271/2016-01-0060.

INTRODUCTION And, there are some other additional transceiver values to be


considered. The bit-width variations, caused by the network topology
The CAN FD protocol is an extension of the well-known (Classical)
and the transceiver features are relevant. The bit-width variation is
CAN data link layer. The main benefits are a higher throughput and
determined by the interface between the CAN controller (often
longer data frames with up to 64 byte. One part of the CAN data
integrated in the micro-controller) and the CAN transceiver, the CAN
frame is transmitted optionally with higher bit-rate exceeding the
transceiver itself (asymmetry of transmitting and receiving), and the
former limitation of 1 Mbit/s. Designing CAN FD networks has some
reflections depending on the chosen network topology and the
impacts on the physical layer design as well as the software
impedance of the selected components (e.g. cable and connectors, etc.).
architecture as known from the Classical CAN approach.

Edition 2016 of the ISO 11898-2 standard (merging the legacy ISO
THE CAN FD PROTOCOL AND ITS IMPACTS 11898-2, -5, and -6 standards) specifies the transceiver characteristics.
ON THE PHYSICAL LAYER There are three new parameters of interest: the loop-delay from TxD
to RxD, the Tx delay, and the Rx delay. The transceiver loop-delay is
The CAN FD protocol introduces a second bit-rate to be used in the
the time between receiving the bit at TxD and transmitting it at RxD
data phase, when just one node is transmitting bits. All other nodes in
from the viewpoint of the transceiver. The recessive-to-dominant
the network are receivers. This means, it is not necessary to be
edge is measured at 30 percent and the dominant-to-recessive edge at
synchronized. In this phase there is no in-bit time sampling required
70 percent. The symmetry for both delays is important for the
as in the arbitration phase, when several nodes are transmitting
transmitting node. The most critical situation is the recessive bit after
identifier bits or the ACK (acknowledge) bit. This means, the bit-rate
five dominants. If the transceiver is very asymmetric, the recessive
is not dependent on the network length. The network and transceiver
bit-time is shortened or expanded in relation to the nominal bit-time.
propagation delays are not more relevant. The bit-time setting for the
Therefore the ISO 11898-2:2016 standard specifies the minimum and
data-phase is similar to the arbitration phase. The user needs to
maximum values for recessive bits as shown in Table 1. The values
configure the time-quantum, the SYNC segment and the sample-
are given for a network load on the bus-lines (CAN_H and CAN_L)
point. ISO 11898-1:2015 provides just a framework for the bit-time
of 60 Ω and 100 pF.
settings, e.g. to use the same oscillator frequency in all nodes. In
order to keep the quantization error as small as possible, it is Table 1. Loop-delay symmetry (source: ISO 11898-2:2016)
recommended to use an equal time-quantum length for both bit-rates.
ISO 11898-1 contains some formulas to calculate the maximum
allowed oscillator frequency tolerance at a given data-phase bit-rate.
When the ratio of data-phase bit-rate and arbitration bit-rate is low
(e.g. 6:1) the Classical CAN oscillator tolerance is sufficient. For
higher ratios, the tolerance needs to be calculated using the
referenced formulas.

89
Downloaded from SAE International by University of Auckland, Saturday, August 04, 2018

90 Zeltwanger / SAE Int. J. Passeng. Cars – Electron. Electr. Syst. / Volume 9, Issue 1 (May 2016)

The allowed transmitter supply voltage tolerance, the network load, CAN FD NODE DESIGN
and temperature effects cause this asymmetry. In order to reduce the RECOMMENDATIONS
emission the transmitter controls the slew-rate of the falling and rising
Besides using CAN transceivers compliant with ISO 11898-2:2016,
edge to the lowest value possible at a given bit-rate. Table 2 shows the
the CiA 601-1 specification gives further hints and recommentations
specified values as given in ISO 11898-2:2016 for a network load on
on the design of CAN FD connectable electronic control units (ECU).
the bus-lines (CAN_H and CAN_L) of 60 Ω and 100 pF.
Figure 2 shows a typical communication network with a transmitting
Table 2. Transceiver Tx delay symmetry (source ISO 11898-2:2016) node, a receiving node and the wire in between. The symmetry of the
RxD signal on the receiving node is defined by the symmetry
performance of the transmitting and receiving node. To guarantee a
robust communication between two or more nodes in a network, the
transceiver Tx delay symmetry of the transmitting node and the
transceiver Rx delay symmetry of the receiving node shall be very
accurate. The loop-delay symmetry cannot cover this in total. It could
be that one ECU in the network has a transceiver with a very
symmetric transmitter part and an asymmetric receiver part. The
The transceiver Rx delay depends on production dispersion, behavior of a transceiver from another supplier may behave vice
temperature variation, receiver thresholds, supply voltage variation, versa. Therefore, in CiA 601-1 additional parameters are defined for
and the slew rate. The delay is a calculated value as given in Table 3. the transmitter and receiver symmetry.
The ΔtRec(min) value shortens the recessive bit-length and ΔtRec(max)
lengthens the recessive bit-length.

Table 3. Transceiver Rx delay symmetry

Figure 2. Important delays in a CAN FD network (source: CiA 601-1)

Table 4 provides the resulting min and max values for the recessive
Figure 1 shows the impacts between the TxD signal of the bit length seen by a receiving node. They are valid for a 60- Ω and
transmitting node, the Vdiff differential bus voltage, and the possible 100-pF busload. The following effects are not considered in this part
recessive bit-time duration at the RxD pin of the receiving node. The of the document, but in the CiA 601-4 specification (not yet released):
rising edges can jitter, and the falling edges are stable. the behavior of the network itself such as ringing or additional
propagation delay of the dominant to recessive transition, and clock
tolerances.

Table 4. Recessive bit-time at the receiving node’s RxD pin (source: CiA
601-1)

Figure 1. Jitter of the rising edge at a receiving node’s RxD pin (source: CiA
601-1)

The range marked in green is the variation of the transmitter and the
range marked in yellow is the variation of the receiver. To calculate
the worst-case scenario, both parameters are added [2].

CAN FD nodes with configured data-phase bit-rate of 1 or 2 Mbit/s The sample-point of the data-phase bit-rate is independent of the
should use transceiver chips compliant to ISO 11898-2:2016 qualified arbitration point-rate sample-point. The setting depends on the
for 2 Mbit/s. Nodes using a data-phase bit-rate of 5 Mbit/s should transmitting node delay (TD). The TD is the delay from the CAN
implement transceivers qualified for 5 Mbit/s as specified in ISO controller’s transmit flip-flop (FF) to its receive flip-flop. This means,
11898-2:2016 or for higher bit-rates (not yet standardized in ISO when the CAN controller sends a bit, this bit appears at the CAN
11898-2:2016). controller’s input after TD. This TD is the sum of the following delays:

• Propagation delay from CAN controller Tx-FF output to TxD


micro-controller port,
• Propagation delay from TxD micro-controller port to TxD
transceiver port,
Downloaded from SAE International by University of Auckland, Saturday, August 04, 2018

Zeltwanger / SAE Int. J. Passeng. Cars – Electron. Electr. Syst. / Volume 9, Issue 1 (May 2016) 91

• Transceiver loop delay TxD to RxD, (printed circuit board) capacitance. Te typical value for this is 10 ns
• Propagation delay from RxD transceiver port to RxD micro- for the transmitting and receiving node. Also the chosen topology
controller port, may cause bit asymmetry, which is not included in the transceiver
• Propagation delay from RxD micro-controller port to CAN asymmetry values. Some relalistic values are given in [6]. They and
controller Rx-FF output, other research results will be summarized in the CiA 601-3 CAN FD
system design recommendation, which is under development.
• Propagation delay of the galvanic isolation devices (if
available).
If the sample-point is within the phase margin, it is necessary to use
the secondary sample-point (SSP) as defined in ISO 11898-1:2015. It
If there are any additional components in the interface between
is recommended to configure the SSP, so that it is somewhere in the
transceiver and micro-controller, the delay increases. At higher
middle of the remaining bit (this is the time after phase-margin A and
bit-rates the transmitting node shall compensate the TD to be able to
before phase-margin B).
compare its transmitted bits to the current bit on the CAN network.
The feature in the transmitting node that allows compensating the TD
Another critical point is the ringing on the bus-line. It can be reduced
is called transmitting node delay compensation (TDC). TD does not
by using a bus-line topology with very short stub-lines (daisy-chain).
affect receiving nodes.
But even, when there is ringing, dedicated circuitry may reduce the
ringing. One option is the ringing suppression circuitry (RSC) as
The recessive-to-dominant edge observed at the RxD pin of a
proposed in CiA 601-4 [3]. The RSC adjusts dynamically the network
transceiver is rather stable but the dominant-to-recessive edge can
overall impedance. It reduces the impedance for configured time. The
shift. The components between CAN transceiver and CAN controller
most critical nodes needs to be equipped with such circuitry. The
have a low impact on the stability of the edge. Consequently, the
RSC may be integrated in CAN transceiver chips.
measurement of the TD is performed at a recessive-to-dominant edge.
In case TDC function is enabled, a CAN controller acting as
Unfortunately, there is not sufficient experience available to give
transmitter measures the TD based on the recessive-to-dominant edge
general guidelines for all topologies. Additional research is necessary.
from FDF-bit to res-bit. It performs the measurement once within
It seems that star topologies with ferrties are possible for data-phase
each FD frame that uses bit-rate switching. The CAN controller
bit-rates up to 2 Mbit/s [5].
compares its transmitted bit to the received bit at the secondary
sample point (SSP).
The SAE develops currently recommended practices for the design of
high-speed CAN (HSC) for vehicle applications at 500 kbit/s with
CAN FD data-phase bit-rates of 2 Mbit/s respecively 5 Mbit/s
(J2284-4 and J2284-5). The 2-Mbit/s approach is indented for
bus-line topology, while the 5-Mbit/s solution is intended for
point-topoint communication.

IMPACTS OF CAN FD ON HIGHER-LAYER


PROTOCOLS
The CAN FD protocol has just a few impacts on high-layer protocols.
Figure 3. Sampling of a recessive bit at the transmitting node (only operational
with TDC) Most obvious is the longer data field of up to 64 byte. Another change
is that CAN remote frames are not more supported. But this is not
Figure 3 shows the sampling of a recessive bit an example with and critical, because most of the automotive applications do not use them.
without TDC. In case the TD is not compensated, the transmitting
CAN node evaluates a bit error, as it detects a dominant bit level One of the general trends in in-vehicle network software designs is
instead of a recessive. In case the TDC is enabled, it detects the the introduction of Autosar. This middleware supports since version
correct bit level (recessive). The phase margin (colored part of the 4.2.1 already CAN FD with frames length of up to 64 byte. The
bit) is caused by several effects: quantization error, shift due to concept of multi PDU (protocol data unit) mapping allows dynamic
oscillator tolerance, bit asymmetry due to the above mentioned mapping, because the content of the PDU is identified by the PDU
physical layer components, and instability of the RX signal due to header. This requires more protocol overhead, but it requires less
ringing on the bus lines caused by impedance mis-matches [4]. The CAN identifiers. The multi PDU approach simplifis low-level
first two effects are bit-rate dependent and the other two effects do software driver designs [1]. In the CiA 602-2 application layer (J1939
not depend on the bit-rate. on CAN FD) several i-PDUs containing legacy J1939 parameter
groups can be mapped into a single CAN FD frame [6]. The CAN-ID
The bit asymmetry is not just caused by the transceiver, but also by contains the Source Address (SA), the remaining elements of the
all other physical layer components. This includes also the signals PDU identification are in the 24-bit i-PDU header. There is also an
exchanged between the state machine in the CAN FD controller and optional safety/security trailer specified. This approach is an example
the transceiver. They are affected by asmmetry resulting from the how to migrate from Classical CAN to CAN FD. First simulation
input/output switching pads of the controller chip and the PCB results have shown that in 500 kbit/s / 2 Mbit/s networks, the busload
Downloaded from SAE International by University of Auckland, Saturday, August 04, 2018

92 Zeltwanger / SAE Int. J. Passeng. Cars – Electron. Electr. Syst. / Volume 9, Issue 1 (May 2016)

can be reduced by the factor of 3 compared with legacy J1939 network. Therefore, it is necessary to design the network with more
network running at 500 kbit/s. Another impact is the reduced number care as Classical CAN networks. It could be already critical to use
of interrupt requests. The CiA 602 series is intented to be submitted cables with temperature-dependent isolation material. SAE’s and
to SAE to be released as a joint CiA/SAE specification. CiA’s recommendations (J2284 series and CiA 601 series) will give
also not so experienced users a chance to design CAN FD networks
properly. In general, you need to optimize network topology, in order
to reduce the ringing. Additionally, the bit-timing should be
optimized, in order to minimize the bit-rate dependent part of the
phase margin. Of course, a careful selection of physical layer
components (e.g. cable, connectors, PCB layout, transceiver,
micro-controller ports) is necessary, to avoid bit asysmmetry.

To improve the software design, a standardized time-stamping of


CAN FD messages would be helpful. This is currently under
development and will be introduced in the CiA 603 specification
intented to be submitted for ISO standardization.
Figure 4. Structure of the J1939 i-PDUs; multiple of them can be mapped into
a CAN FD data frame, which provides in the CAN-ID the Source Address
REFERENCES
(SA)
1. Decker Peter: CAN FD with dynamic multi-PDU-to-frame mapping. In:
iCC proceedings 2015, Vienna. CAN in Automation (CiA), Nuremberg,
In passenger cars, there are implemented mainly proprietary Germany.
CAN-based HLPs. How they make use of CAN FD is OEM-specific. 2. Hell Magnus-Maria: The physical layer in the CAN FD. In: iCC
But there are some exceptions: proceedings 2015, Vienna. CAN in Automation (CiA), Nuremberg,
Germany.
3. Horii Yuki, Mori Yasuhiro: Ringing suppression technology to achieve
• ISO 16845-2 CAN transport protocol (TP) for diagnostic higher data rate using CAN FD. In: iCC proceedings 2015, Vienna. CAN
purposes and downloading of software in Automation (CiA), Nuremberg, Germany.
4. Dr. Mutter Arthur: Robustness of a CAN FD bus system - About
• Asam’s MCD-1 XCP extended calibration protocol for oscillator tolerance and edge deviations designs. In: iCC proceedings
calibrating ECUs 2013, Hambach Castle. CAN in Automation (CiA), Nuremberg,
Germany.
5. Dr. Schreiner Marc: CAN FD from an OEM’s point of view. In: CAN
For these two HLPs, the CAN FD adaptation is already finished. The Newsletter 2/2014, page 26 ff. CAN in Automation (CiA), Nuremberg,
ISO TP will be released as soon as the referenced ISO 11898-1 data Germany.
link layer is published. The XCP version 1.2 introduces in the CAN 6. Dr. Schreiner Marc: CAN FD system design. In: iCC proceedings 2015,
Vienna. CAN in Automation (CiA), Nuremberg, Germany.
TLAML for the ASAP2 file the necessary entries to support CAN FD 7. Zeltwanger Holger: CAN FD for commercial vehicles - Chances and
(e.g. additional DLCs, second bit-rate, and SSP). challenges. In: iCC proceedings 2015, Vienna. CAN in Automation
(CiA), Nuremberg, Germany.
Another standardized CAN network is the CiA 447 CANopen
application profile for special-purpose car (ambulances, police cars,
CONTACT INFORMATION
taxi, etc.) add-on devices. It is listed as ISO 20935 project. The CiA
301 CANopen application layer is currently under review and will be Holger Zeltwanger
published as version 5.0, which will support CAN FD. This may lead CAN in Automation (CiA)
to an update of CiA 447 respectively ISO 20935. Kontumazgarten 3
90429 Nuremberg (Germany)
headquarters@can-cia.org
SUMMARY AND OUTLOOK www.can-cia.org
The impacts of CAN FD on the software design is not so challenging Phone +49-911-9288190
as on the physical layer design. Any violation of the above mentioned
physical layer design recommendations may cause malfunction of the

All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or
otherwise, without the prior written permission of SAE International.

Positions and opinions advanced in this paper are those of the author(s) and not necessarily those of SAE International. The author is solely responsible for the content of the paper.

You might also like