- CAN control area network
- Introduced by "Robert Bosch"
- It has 3 layers of OSI model:
- Physical layer (CAN Transceiver SN65HVD233)
- Data link layer (CAN Controller MCP2515)
- Application layer (Higher level protocols are implemented
Specifications:
ISO 11898
Specification is related to only following two layers
- Physical layer
- Data link layer
Physical connection:
2 wire interface
uC <---SPI 4---> CAN controller <---Tx & Rx ---> CAN Transceiver <--CANH & CANL
two 120ohm termination resistors are connected on the basis of transmission line theory.
CAN packet description:
- Standard
SOF(1) + ID(11) + RTR(1) + IDE(1) + RB0(1) + DLC(4) + DataFrame(8*n where 0<=n<=8) + CRC(15) + CRCdel(1) + ACK slot(1) + ACKdel(1) + EOF(7) + IFS(3)
- Extended
SOF(1) + ID(11) + SRR(1) + IDE(1) + ID(18) + RTR(1) + RB1(1) + RB0(1) + DLC(4) + DataFrame(8*n where 0<=n<=8) + CRC(15) + CRCdel(1) + ACK slot(1) + ACKdel(1) + EOF(7) + IFS(3)
Dominant bit = 0 logic
Recessive bit = 1 logic
Bit stuffing - if there are more than 5 consecutive dominant bits then bit stuffing mechanism is used to send a recessive bit so as to maintain the synchronization
CAN frame types:
- standard
- extended
- remote request
- errror (active & passive)
- CRC error
- acknowledgement error
- form error
- bit error
- stuff error
- overload
CANOpen
Its a application layer protocol
- Communication profile (CiA DS-301): The communication profile provides the means to configure devices and communication data and defines how data is communicated between devices.
- Device profile (CiA DSP-401):
No comments:
Post a Comment