Can FD
Can FD
Can FD
1 Overview
2 Introduction
3 Physical and Data Link Layer
4 Types of frames
5 Frame Formats
6 Bit timings
7 Example Configuration for Bit Timing
8 Transmission Duration
9 Bandwidth Utilization
10 Oscilloscope Images
11 Error Handling
12 Register Configuration
13 Changes involved in migration
14 CAN-FD in Diagnostics
15 CAN-FD in Flashing
16 Microcontroller support
17 Vector Hardware support
18 Sample CAN-FD DBC
19 CAN-FD demo
20 Questions
CAN CAN- FD
▪ It includes almost all feature's of Classical CAN along with few additional
improvements .
When?
▪ CAN-FD was invented by BOSCH in the year 2011.
▪ Saw its commercial use during 2012.
What ?
▪ CAN-FD switches between two baud-rates during frame transmission unlike Classical CAN
and other communication protocols which works with single baud rate.
▪ Arbitration baud rate Range ( <1mbps).
▪ Data rate Range (1mbps – 8 mbps).
▪ CAN-FD supports transmission of up to 64 bytes of data in contrast to Classical CAN which
can handle only 8 Data bytes.
▪ Follows ISO 11898-1
▪ Support for both 11 and 29 bit identifiers similar to Classical CAN.
▪ DIFFERENCES:
▪ The ISO CAN FD format includes a counter for the stuff bits that is also transmitted as part
of the frame. The CRC polynomial calculation is more robust in the ISO CAN FD than the
non-ISO CAN FD.
▪ NOTE:
▪ These protocols can’t intercommunicate with each other.
▪ Transmission medium comprising of CAN-H and CAN-L twisted cables with terminating
resistance of 120ohms is identical to Classical CAN.
▪ Recessive and Dominant voltage levels are also carried forward from Classical CAN.
- All frame formats of Classical CAN with exception of Remote frame are supported.
▪ Both share the same addressing for Standard and Extended formats.
▪ CAN FD removes the RTR bit and maintains an always dominant r1 bit.
▪ There are three kinds of OVERLOAD conditions, which lead to the transmission of an
OVERLOAD FLAG:
▪ The internal conditions of a Receiver, which requires a delay of the next DATA FRAME or
REMOTE FRAME.
▪ Detection of a dominant bit at the first or second bit of INTERMISSION.
▪ If a CAN FD node samples a dominant bit at the eighth bit (the last bit) of an ERROR
DELIMITER or OVERLOAD DELIMITER, or if a CAN FD Receiver samples a dominant bit
at the last bit of END OF FRAME, it will start transmitting an OVERLOAD FRAME (not an
ERROR FRAME). The Error Counters will not be incremented.
▪ The concepts of Time Quantum and Sampling point are same as Classical CAN.
▪ Another set of hardcoded values are configured to accommodate for the additional
baud rate.
▪ NOTE: Sampling happens between Phase_Segment 1 and Phase_Segment2
▪ • The INFORMATION PROCESSING TIME is less than or equal to 2 TIME QUANTA(N) long.
▪ • The INFORMATION PROCESSING TIME is less than or equal to 2 TIME QUANTA(D) long
▪ Table comparing transmission durations of Classical CAN frame with CAN-FD with varying
Lower and Higher Baud rate configurations.
▪ Classical CAN
▪ In most automotive applications, bandwidth utilization varies between 60-80% ,also bus load is
not allowed to exceed 90%.
▪ A typical Classical CAN frame with 11-bit identifier along with stuff bits has a size of about 16
bytes of data out of which only 8 bytes is used for effective data transmission.
▪ Hence for Classical CAN, the effective bandwidth used for data transmission comes down to
30-40%.
▪ CAN-FD
▪ For a CAN-FD frame with a 11-bit identifier ,we have 64 effective data bytes with same
overhangs of 16bytes.
▪ Hence Even with 60-80% of bandwidth utilization, more than 120% of the same can be used for
effective data transmission.
▪ There is a multifold increase in volume of data being transported as expected.
› Classical CAN
› CAN-FD
▪ Hardware Changes
▪ Traditional trans receivers and Controllers must be upgraded to ones supporting CAN-FD.
▪ NOTE: All CAN-FD hardware's work as a hybrid setup supporting both Classical CAN and
CAN-FD, hence there is room for backward compatibility.
▪ For most modern Controllers and trans receivers supporting CAN-FD, the price gap when
compared to ones supporting Classical CAN is less ,same can’t be said about ones
supporting Flexray/Ethernet.
› Software Changes :
▪ Major reason for choosing CAN-FD for upgrade from CAN
would be savings in Software R&D cum Development costs.
▪ As shown in AUTOSAR BSW architecture ,both Classical CAN
and CAN-FD share a common slot due to minimal changes
and the fact that CAN-FD supports backward compatibility.
▪ Major changes with CAN-FD includes configuration of BRT2
register in MCAL layer and changes in packing and unpacking
of signals in COM layer.
▪ In case of Flexray and Ethernet, major overhaul of all functions
across MCAL, ECU abstraction and sessions layer must be
carried out further adding to development costs.
▪ Backward compatibility is not supported by Flexray/Ethernet.
- CAN-FD
* Twice the Estimated time as only about 50% of time is spent in transmission of useful data.
NOTE : This is just a rough theoretical estimation.
› Examples:
▪ VN1610
▪ VN1611
▪ VN1630A
▪ VN1640A
▪ VN7600
▪ VN7610
› MFC510 cfg
▪ CAN-FD Configuration creation and demo with MFC510 SW.
› VECTOR cfg
▪ Sample Cfg for CAN-FD from VECTOR found in below path:
▪ C:\Users\Public\Documents\Vector\CANoe\10.0 (x64)\CANoe Sample
Configurations\CAN\CAN_FD.