Please enable JavaScript.
Coggle requires JavaScript to display documents.
CAN characteristic, CAN protocol, CAN pros & cons - Coggle Diagram
Overall
-
-
-
A msg-based protocol:
- Each msg contains a ID that identifies
- Each msg is tagged with a priority
-
-
-
-
CAN protocol
- CAN arbitration
(Trọng tài)
-
-
-
-
-
- CAN data protection -
Error detection
Bit monitoring
Compare every bit on CAN bus with actual bus level,
except arbitration and ACK field
-
Bit error occurs when
Sender send a D bit, but detect an R on bus
Sender send a R bit, but detect an D on bus
-
-
Form check
-
-
Detection of a dominant delimiter bit (CRC delimiter, ACK delimiter) or a dominant bit within EOF indicates a format error
Cyclic redundancy check
-
-
Receiver task
-
Receiver calculate the CRC from received data, then compare to transmitter's CRC
-
- Overload frame
(request delay in transmission)
- Error frame
(sent by a node that detect error)
-
A node detect and error in msg => it sends error frame => cause other nodes send error frame => transmission is terminated and that msg is retransmitted later
- Data frame
(transmit data)
-
-
Notes
-
-
-
-
DLC: provide data length in byte, not in bit
- Remote frame
(request data transmission)
Same as data frame, except
-
-
A node send a remote frame with a specific ID, then another node respond with data frame with that ID
-