Controller Area Network: Process Master Title Format
Controller Area Network: Process Master Title Format
ZVW3, 02.03.01
© Robert Bosch GmbH reserves all rights even in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties
Introduction to CAN
The Necessity
• Usage of more and more electronics in Modern Motor Vehicles
ZVW3, 02.03.01
© Robert Bosch GmbH reserves all rights even in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties 2
Introduction to CAN
ENGINE ANTI-LOCK
CO NTROL BREAKING
ACTIVE AIR
SUSPENSION BAGS
• DISADVANTAGES
• Unreliability
• More material cost and
• More production time
ZVW3, 02.03.01
© Robert Bosch GmbH reserves all rights even in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties 3
Introduction to CAN
The Solution
• Adopting Bus communication instead of point to point communication
• The various vehicle bus protocols available are “CAN”, “A-BUS” from
Peugeot and Renault, and J1850 from Chrysler, General Motors and
Ford
CAN BUS
ZVW3, 02.03.01
© Robert Bosch GmbH reserves all rights even in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties 4
Introduction to CAN
ZVW3, 02.03.01
© Robert Bosch GmbH reserves all rights even in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties 5
The Basic Concepts
C B A BUS
D D D D
CAN BUS
D D R D
D R D D
D R R D
R D D D
R T R T R T R D R D
R R D D
R R R R
NODE A NODE B NODE C
ZVW3, 02.03.01
© Robert Bosch GmbH reserves all rights even in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties 6
The Basic Concepts
Characteristics of ‘CAN’
• Can is a multi-master Bus
•Theoriticaly No limitation on the number of nodes
• Configuration flexibility - No node addressing
• Prioritization of messages through “Identifiers”
• Multicast reception with the time synchronization
• System wide data consistency
• Guarantee of latency times
• Error detection and error signaling
• automatic retransmission of corrupted messages as soon as the bus
is idle again
• Distinction between temporary errors and permanent failures of
nodes and autonomous switching off of defect nodes
ZVW3, 02.03.01
© Robert Bosch GmbH reserves all rights even in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties 7
The Protocol
• Physical layer
ZVW3, 02.03.01
© Robert Bosch GmbH reserves all rights even in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties 8
The Protocol
ZVW3, 02.03.01
© Robert Bosch GmbH reserves all rights even in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties 9
The Basic Concepts
B 0 1 0 1
• Advantages
• No Collision
• Transmission of highest priority message within the latency time
ZVW3, 02.03.01
© Robert Bosch GmbH reserves all rights even in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties 10
The Protocol
Frame Formats
• Standard Frame - 11bit Identifier
• Extended Frame - 29 bit Identifier
Frame Types
• Data Frame
• Remote Frame
• Error Frame
• Overload Frame
ZVW3, 02.03.01
© Robert Bosch GmbH reserves all rights even in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties 11
The Protocol
RTR
SOF
IDE
11 Bit Identifier DLC (4) 0 to 64 Bits 15 Bits 7 Bits 3 Bits
r0
Bus Idle
CRC Delimiter
Bus Idle
Ack Slot
Ack Delimiter
Extended Data Frame Format
Arbitration Field Control Field Data Field
RTR
SRR
SOF
IDE
r1
r0
Difference between Standard Frame and Extended Frame
• Differs only in Arbitration field and Control field
ZVW3, 02.03.01
© Robert Bosch GmbH reserves all rights even in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties 12
The Protocol
RTR
SOF
IDE
11 Bit Identifier DLC (4) 15 Bits 7 Bits 3 Bits
r0
CRC Delimiter
Ack Slot
Ack Delimiter
• Consists of all the fields except data field as compared to a data frame
ZVW3, 02.03.01
© Robert Bosch GmbH reserves all rights even in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties 13
The Protocol
• Error flag can start within the frame that is currently being transmitted
ZVW3, 02.03.01
© Robert Bosch GmbH reserves all rights even in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties 14
TEC<=255
Error Handling
ERROR BUS
REC <= 127
ACTIVE OR
OFF
TEC <= 127
REC <= 127
OR
TEC <= 127
Re-
Initialization
only
ZVW3, 02.03.01
© Robert Bosch GmbH reserves all rights even in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties 15
Overload Frame Format
Condition under which overload frame is transmitted
• Receiver requires a delay to receive next Data or Remote frame
• Detection of a ‘dominant bit at the first or second bit of Intermission
• Detection of a ‘dominant’ bit at the 8th bit of an Error or overload Delimiter
Superposition of Overload
Overload Delimiter
Flag
• Overload frame always starts within the Intermission slot of previous frame
ZVW3, 02.03.01
© Robert Bosch GmbH reserves all rights even in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties 16
Interframe Spacing
• The space separating Data / Remote frames from any preceding
frame
After the transmission of a frame by an Error Active
node
Previous Frame Interframe Spacing Next frame
3 Bits
Inter-
Bus idle
mission
3 Bits 8 Bits
Inter- Suspend
Bus idle
mission Transmission
ZVW3, 02.03.01
© Robert Bosch GmbH reserves all rights even in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties 17
Message Validation
• For transmitter the message is valid, if there is no error until the EOF
• For receiver the message is valid, if there is no error until last but one bit
of the EOF
Types of Error
• CRC Error
• Acknowledge Error
• Form Error
• Bit Error
• Stuff Error
ZVW3, 02.03.01
© Robert Bosch GmbH reserves all rights even in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties 18
Message Coding
Non-Return-to-Zero coding
• Keeps the frequency of the signal on the bus to minimum.
“1”
“0”
1 1 0 1 0 0 1 1 ………………..
Bit-Stuffing
• Ensures sufficient Recessive and Dominant edges for Re-Synchronization.
Data Stream
1 1 2 3 4 5 6 7 8 9 101 2 3 1 2 1 2 3 4 5 6 1 2
Bit Stream
1 1 2 3 4 5 S 6 7 8 9 10S 1 2 3 1 2 1 2 3 4 5 S 6 1 2
ZVW3, 02.03.01
© Robert Bosch GmbH reserves all rights even in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties 19
Bus Synchronization
• Hard Synchronization at Start of Frame Bit
All nodes synchronize on leading edge of SOF
bit
Intermission or Bus
idle
Bit Stream
1 1 2 3 4 5 S 6 7 8 9 10S 1 2 3 1 2 1 2 3 4 5 S 6 1 2
ZVW3, 02.03.01
© Robert Bosch GmbH reserves all rights even in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties 20
Bit Construction
CAN frame
1 Time Quantum
Phase Buffer Segment 2 (1 to 8 Bits)
1 Bit Time
Sample Point
ZVW3, 02.03.01
© Robert Bosch GmbH reserves all rights even in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties 21
Process master title format
ZVW3, 02.03.01
© Robert Bosch GmbH reserves all rights even in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to third parties