Professional Documents
Culture Documents
CAN FD Measurement CiA PressArticle 201409 EN
CAN FD Measurement CiA PressArticle 201409 EN
Tools
reprogramming
The complexity of the CAN FD technology is equivalent to the regular CAN
network but it offers a significantly increased bandwidth. It is therefore an
alternative to Flexray or Ethernet networks.
Author
Armin Happel
Erik Sparrer
tics over IP (DoIP) per ISO layer that is used, the the-
13400-2 is also well-suited oretically attainable trans-
for fast reprogramming of mission rate in flashing
ECUs. In testing 100 Mbit over CAN FD is 270 kB/s to
Ethernet and a typical mi- 370 kB/s at 4 Mbit/s in the
crocontroller with a pure CAN FD data phase. How-
flash write rate of 180 kB/s, ever, real measured values
results were largely a func- lie well below this (Figure
tion of the buffer size of the 4). Surprisingly, the com-
Transfer-Data service. A 16 pression and pipelining op-
KiB buffer enables through- timization strategies were
put of around 150 kB/s, counterproductive for CAN
which is already near the FD in the test environment
limit of the flash memory that was used. The reason
used in the test. is that, in the laboratory set-
up used, the programming
Figure 2: Measured and calculated CAN FD data Reprogramming via time for the internal flash
throughput in ECU measurement CAN FD memory became the lim-
iting factor in the flashing
fast network protocols. In pipelined programming. Al- Since semiconductor man- process. So this made op-
the three flash phases “de- though compression by an ufacturers do not offer any timizations to the download
lete”, “download/program” LZSS (Lempel-Ziv-Storer- microcontrollers that pro- phase ineffective. Howev-
and “verify”, the download Szymanski) algorithm re- vide CAN FD support yet, er, further tests with more
time is a key factor in con- duces the volume of data network specialists at Vec- powerful CPUs are need-
ventional CAN systems, to be transmitted, its effi- tor used a microcontroller ed to arrive at more gener-
that can be accelerated by ciency is highly dependent in which the CAN FD con- al conclusions about data
faster bus systems such as on the data structure, and troller was implemented in throughput and the effec-
Flexray, Ethernet and CAN data extraction in the ECU an FPGA for their CAN FD tiveness of optimizations. A
FD. generates additional CPU measurements. The soft- key finding of the measure-
Regardless of the load that need to be tak- ware stack on the board ments is that CAN FD de-
transmission protocol, it en into account. Pipelined consists of a standard Vec- livers a significantly higher
makes sense to use addi- programming, on the other tor UDS bootloader. The data throughput than CAN
tional optimization strate- hand, represents a type of ISO 15765-2 transport lay- (Figure 4), and the effort
gies for downloading, such parallelization: while a data er and CAN driver were ex- required for migration is
as data compression and segment is still being writ- tended for support of CAN negligible.
ten in the ECU, transmis- FD. To permit a quick test
Table 3: Calculated data sion of the next segment is setup process for download Summary and
throughputs of data already started. Therefore, testing, the CANoe simu- outlook
measurement with XCP on the potential performance lation and testing tool was
CAN FD (fA=500 kbit/s) gain from this method is used, because the tool al- Overall, it is still difficult to
the greatest when program- ready offers CAN FD sup- arrive at an objective com-
ming times are shorter than port. This software uses parison of the serial bus
data transmission times. an external DLL which pro- systems CAN FD, Flexray
Flexray offers a trans- vides the flash program- and Ethernet due to their
mission rate of 10 Mbit/s, ming procedure and trans- different microcontrollers
but it is not fully available port layer functions. In the and constraints, but certain
for (re-) programming. In future, the Vector vFlash tendencies can be clear-
Table 4: Comparison of the periodic communica- flash tool will become avail- ly discerned. In the case
measured data throughputs tion sequence of the time- able for CAN FD. of Flexray, high download
of data measurement with triggered protocol, all PDUs
XCP on CAN and CAN FD (Protocol Data Unit) are
predefined in fixed slots. If
many slots are reserved for
diagnostic service requests
such as for download, this
reduces bandwidth for the
useful data. Realistic con-
Table 5: Measured data figurations provide for
throughputs of a data 4 PDUs to 8 PDUs with
measurement with XCP on 42 bytes to 255 bytes each
CAN FD (fA=500 kbit/s). per cycle for diagnose ser-
vices. Vector engineers
have measured download
rates of 40 to 60 kB/s when
pipelined programming is Figure 3: Faster data transmission by multiple XCP
used. packets combined in one CAN FD frame