Professional Documents
Culture Documents
ilker.demirkol@upc.edu
Driven by Mercedes-Benz for networking of 3 ECUs with reqs:
Error-resistance to cope with strong EMI
Prioritized communication (e.g. for safety critical applications)
Fast data rate (Class C network: 125 kbit/s – 1 Mbit/s)
Cost-effectiveness for wires and nodes
1999 Explosion of CAN-linked equipment in all motor vehicle and industrial apps
2003 ISO 11898 becomes a standard series (ISO 11898-1, 11898-2, ...)
2004 TTCAN becomes ISO 11897-4
2012 Bosch released the CAN FD 1.0 (flexible data rate: data rates up to 5 Mbit/s)
CAN Bus for Powertrain and Chassis (500 Kbps) Media oriented system transport (MOST) network
CAN Bus for Body Electronics (125 Kbps) Local interconnect networks (LINs)
(Ref: “Automotive communications-past, current and future”, 2005) 9
Open System Interconnection (OSI) model vs. CAN:
No. of
ISO/OSI ref model CAN protocol specification
layer
6 Presentation
5 Session
Optional:
4 Transport Higher Layer Protocols (HLP)
3 Network
2 Data Link
CAN protocol
1 Physical (with free choice of medium)
Obj: Data bit translation into hardware-specific operations
Main functions:
(De-)modulation of the bits to communication signal
Channel coding: Insertion of redundant information for error detection/correction
Synchronisation: Determination of a common time basis
Responsible for Point-to-Point/Point-to-Multipoint transfer
Main functions:
Framing (i.e. sequence of bits)
Addressing
Error detection & recovery
Flow control
Medium access
Medium Access
Control
Deterministic Stochastic
15
Bus topology
ISO 11898-2/3 uses twisted pair
Two wires w/ voltages CAN_H, CAN_L
Max. 30 connected nodes
17
What happens if simultaneously:
2 Bit-1’s are sent?
2 Bit-0’s are sent?
1 Bit-1 and 1 Bit-0 is sent?
1 1 1
0 0
1 1 1 0 1
1 0 1 0 1
18
Clock drift and hence time sync. is a challenge for low-cost solutions
CAN:
No global time source/clock signal
No difference bw. bit-1 and not sending anything (bus idle), both correspond to recessive
Bit time known due to uniform clock rate for every node (e.g. 1μs for 1Mbps)
But, where are the bit edges?
recessive
dominant Bus idle Bus idle
CAN message
Synchronization by edge detection in CAN signal
2 types of synchronization:
▪ Hard synchronization with first recessive-to-dominant edge (Start Of Frame (SOF)
bit) after bus idle
▪ Continuous re-synchronization at every recessive-to-dominant edge transition
Synchronization Re-synchronization
1 bit
recessive
SOF
CAN message