CAN 통신 구성


날 개같이 엿먹이던 CAN 통신.. 


그냥 어떻게 구성되고 동작하느지만 알았어도 이렇게 고생하지 않았을것을.. 

젠장.. 너무 기뻐서 wiki에 5000원 기부했다.. Thanks wiki


Base frame format

The frame format is as follows:
Field nameLength (bits)Purpose
Start-of-frame1Denotes the start of frame transmission
Identifier11A (unique) identifier for the data which also represents the message priority
Remote transmission request (RTR)1Dominant (0) (see Remote Frame below)
Identifier extension bit (IDE)1Must be dominant (0). Optional
Reserved bit (r0)1Reserved bit (it must be set to dominant (0), but accepted as either dominant or recessive)
Data length code (DLC)*4Number of bytes of data (0–8 bytes)
Data field0–64 (0-8 bytes)Data to be transmitted (length in bytes dictated by DLC field)
CRC15Cyclic redundancy check
CRC delimiter1Must be recessive (1)
ACK slot1Transmitter sends recessive (1) and any receiver can assert a dominant (0)
ACK delimiter1Must be recessive (1)
End-of-frame (EOF)7Must be recessive (1)

[edit]Extended frame format

The frame format is as follows:
Field nameLength (bits)Purpose
Start-of-frame1Denotes the start of frame transmission
Identifier A11First part of the (unique) identifier for the data which also represents the message priority
Substitute remote request (SRR)1Must be recessive (1). Optional
Identifier extension bit (IDE)1Must be recessive (1). Optional
Identifier B18Second part of the (unique) identifier for the data which also represents the message priority
Remote transmission request (RTR)1Must be dominant (0)
Reserved bits (r0, r1)2Reserved bits (it must be set dominant (0), but accepted as either dominant or recessive)
Data length code (DLC)*4Number of bytes of data (0–8 bytes)
Data field0–64 (0-8 bytes)Data to be transmitted (length dictated by DLC field)
CRC15Cyclic redundancy check
CRC delimiter1Must be recessive (1)
ACK slot1Transmitter sends recessive (1) and any receiver can assert a dominant (0)
ACK delimiter1Must be recessive (1)
End-of-frame (EOF)7Must be recessive (1)

댓글

이 블로그의 인기 게시물

CE인증을 받았는데 왜 CB를 걸까?

PEMS, MEMS의 의미, ME Equipment

의료기기 제품의 신뢰성 시험