What Is CAN-FD
What Is CAN-FD
What Is CAN-FD
CAN-FD
Flexible Data Rate CAN
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
V 1.1 2012-08-27
Agenda
What is CAN-FD?
Basic Concepts
CAN-FD Specifics
Data Frame
Operating Modes/States
Summary
References
FAQ
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 3
Why CAN-FD?
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 4
Why CAN-FD?
CAN bus speed also limited due to the In-Frame Response (IFR)
mechanism
ACK generation delay in CAN controller +
Propagation delay through the transceiver +
Propagation delay over wire ≤ 1 bit time
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 5
Agenda
Why CAN-FD?
Basic Concepts
CAN-FD Specifics
Data Frame
Operating Modes/States
Summary
References
FAQ
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 6
What is CAN-FD?
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 7
What is CAN-FD?
Legacy SW usable
Data fields up to 8 bytes in length
Slide: 8
Agenda
Why CAN-FD?
What is CAN-FD?
CAN-FD Specifics
Data Frame
Operating Modes/States
Summary
References
FAQ
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 9
Basic Concepts
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 10
Basic Concepts
Summary:
CAN-FD is superset of CAN that:
Maintains CAN arbitration scheme
Maintains ACK scheme
Has mode that conforms with CAN 2.0/ISO11898-1
And adds:
Higher data bit rates
Larger data fields (up to 64 bytes)
Larger CRC polynomials to handle larger data fields
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 11
Agenda
Why CAN-FD?
What is CAN-FD?
Basic Concepts
Data Frame
Operating Modes/States
Summary
References
FAQ
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 12
CAN-FD Specifics
Messages:
Fixed format - similar to “standard or enhanced” CAN
Message length is longer, but still finite
Standard CAN-FD ~ 581 bits/message for 512 bits of data*
Extended CAN-FD ~ 606 bits/message for 512 bits of data*
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 13
CAN-FD Specifics
Messages:
Increasing data rate also increases effective message rate
Standard CAN message with:
4X Data phase ~ 2.2x increase*
8X Data phase ~ 2.5x increase*
*- calculated using 11 bit identifier and 8 byte data field excluding stuff bits – scales linearly
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 14
CAN-FD Specifics
ACK
ACK Delimiter
r1
RTR
r0
SOF
CRC Delimiter
Identifier DLC Data CRC EOF IFS
1 11 1 1 1 4 0..64 15 1 1 1 7 3
BRS
ACK
r1
EDL
r0
ESI
SOF
CRC Delimiter
ACK Delimiter
Identifier DLC Data CRC EOF IFS
1 11 1 1 1 1 1 1 4 0..512 17 / 21 1 1 1 7 3
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 16
CAN-FD Specifics
IDE
r1
ACK
r0
SRR
RTR
SOF
CRC Delimiter
ACK Delimiter
Identifier Extended r0 r1 DLC Data CRC EOF IFS
Identifier
1 11 11 1 18 11 11 11 4 0..64 15 1 11 1 7 3
r1
BRS
ACK
EDL
r0
ESI
SRR
ACK Delimiter
SOF
CRC Delimiter
Identifier Extended DLC Data CRC EOF IFS
Identifier
1 11 11 1 18 1 1 1 1 1 4 0..512 17 / 21 1 1 1 7 3
Slide: 17
Agenda
Why CAN-FD?
What is CAN-FD?
Basic Concepts
CAN-FD Specifics
Operating Modes/States
Physical Layer Considerations
Summary
References
FAQ
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 22
Data Frame
Data Frame:
Data frames are used to transmit data on the CAN-FD bus
Consist of two phases – Arbitration and Data
CAN-FD
Base Data Frame*
BRS
ACK
ACK Delimiter
ESI
IDE
EDL
CRC Delimiter
r1
r0
SOF
1 11 1 1 1 1 1 1 4 0..512 17 / 21 1 1 1 7 3
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 23
Data Frame
Data Frame:
… and seven different bit fields – SOF, Arbitration, Control,
Data, CRC, ACK, EOF
CAN-FD
Base Data Frame*
BRS
ACK
ACK Delimiter
ESI
IDE
EDL
CRC Delimiter
r1
r0
SOF
1 11 1 1 1 1 1 1 4 0..512 17 / 21 1 1 1 7 3
Frame Frame
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 24
Data Frame
Start of Frame
CAN and CAN-FD use the same SOF – a single “dominant” bit
CAN
Base Data frame
Recessive
r0
r1
RTR
SOF
Identifier DLC Data
Bit state
1 11 1 1 1 4 0..64
Dominant
CAN-FD
Base Data frame
Recessive
IDE
r0
BRS
r1
EDL
ESI
SOF
Bit state
1 11 1 1 1 1 1 1 4 0..512
Dominant
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 25
Data Frame
Arbitration Field
Little difference between CAN and CAN-FD arbitration fields
Both share the same addressing for Base and Extended formats
CAN-FD removes the RTR bit and maintains an always
dominant r1 bit r1
r0
RTR
SOF
BRS
r1
EDL
r0
ESI
SOF
CAN-FD
Base Data frame
1 11 1 1 1 1 1 1 4 0..512
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 26
Data Frame
Control Field:
CAN and CAN-FD share the following bits:
IDE, r0 and the DLC bits
IDE
BRS
r1
EDL
r0
ESI
SOF
1 11 1 1 1 1 1 1 4 0..512
Slide: 27
Data Frame
Control Field:
Data Length Code (DLC)
4 bits used for both formats
CAN-FD compatible with CAN at data lengths ≤ 7
CAN ignores 3 lsb if DLC = 8, CAN-FD does not
For lengths ≥ 8, CAN-FD uses the following DLCs:
1000 = 8 1100 = 24
1001 = 12 1101 = 32
1010 = 16 1110 = 48
1011 = 20 1111 = 64
IDE
BRS
ACK
r1
EDL
r0
ESI
ACK Delimiter
SOF
CRC Delimiter
Identifier DLC Data CRC EOF IFS
0-8, 12, 16, 20, 24
32, 48, or 64 bytes
1 11 1 1 1 1 1 1 4 0..512 17 / 21 1 1 1 7 3
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 28
Data Frame
Data Field:
0-8 bytes in CAN
0-8, 12, 16, 20, 24, 32, 48, or 64 bytes in CAN-FD
Bytes are transferred msb first
No data field if DLC = 0
IDE
BRS
ACK
r1
EDL
r0
ESI
SOF
CRC Delimiter
ACK Delimiter
Identifier DLC Data CRC EOF IFS
0-8, 12, 16, 20, 24
32, 48, or 64 bytes
1 11 1 1 1 1 1 1 4 0..512 17 / 21 1 1 1 7 3
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 29
Data Frame
CRC Field:
ACK
CRC Delimiter
ACK Delimiter
Data CRC EOF IFS
0..512 17 / 21 1 1 1 7 3
Slide: 30
Data Frame
ACK Field:
ACK
CRC Delimiter
ACK Delimiter
Data CRC EOF IFS
0..512 17 / 21 1 1 1 7 3
End of Frame:
Both Data Frames and Remote Frames are delimited by a group
of 7 recessive bits
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 31
Data Frame
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 32
Agenda
Why CAN-FD?
What is CAN-FD?
Basic Concepts
CAN-FD Specifics
Data Frame
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 36
Operating Modes/States
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 37
Operating Modes/States
Idle
If ready for Start-of-Frame
Switches to either Receiver or Transmitter mode
Receiver
Receives data if active bus detected and is not transmitting
Transmitter
When originating a message, and does not change until bus is idle
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 38
Agenda
Why CAN-FD?
What is CAN-FD?
Basic Concepts
CAN-FD Specifics
Data Frame
Operating Modes/States
Summary
References
FAQ
Vector‘s Roadmap for CAN FD
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 39
Physical Layer Considerations
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 41
Physical Layer Considerations
Node Node
A D
Node Node
B E
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 42
Physical Layer Considerations
Node Node
A D
Node Node
B E
Node Node
C F
60Ω 5% - 1/4W
Termination Resistor
Slide: 43
Physical Layer Considerations
EMC Considerations
Faster bus speeds faster bit rise and fall times
e.g. 1Mb/s rise times ~ 50 – 100 nsec. (5–10 MHz)
e.g. 10Mb/sec rise times ~ 5-10 nsec. (50-100 MHz)
Bus should be designed for the Data Phase frequency, not the
Arbitration Phase frequency
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 44
Summary
CAN 2.0 nodes and CAN-FD nodes can communicate with each
other as long as the CAN-FD frame format is not used
CAN-FD format allows migration to CAN-FD from CAN
CAN-FD nodes on a CAN bus can communicate with external CAN-FD
devices as long as the CAN nodes remain in a stand-by state.
For example, a CAN-FD node communicating with and external PC
as part of a module flash operation
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 45
References
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 46
FAQ
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 47
FAQ
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 48
FAQ
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 49
FAQ
CAN systems with high bus loads (>50%) are good candidates
to migrate to CAN FD
The higher data rate and payload of CAN FD may help to avoid
splitting CAN systems with high bus loads
Split CAN networks can be combined into a single CAN FD
network in order to avoid gateway latencies
For migration purposes it may make sense to mix CAN with
CAN FD in a single network
Legacy CAN ECUs will require an adapted controller that
ignores CAN FD frames
It is not yet clear if mixed CAN - CAN FD networks will be
common in future vehicles
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 50
Thank you for your attention.
Author:
Lotoczky, Rick
© 2012 . Vector CANtech, Inc.. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
Slide: 51