Escolar Documentos
Profissional Documentos
Cultura Documentos
Serial
Communication
Links
Sensors Nozzles
ECUs NOZZLE
ECU
Data
Logging GPS
A Simple CAN Application (Serial Bus)
Sensors Nozzles
ECUs NOZZLE
ECU
Data Bus
Data Bus
Data
Logging GPS
CAN - Introduction
Network structure
Intended as a bus, but other physical implementations are
possible
Limitations No Tees
An overview of CAN based networking
CAN - Elements
CSMA/CA
Bitwize priority access strategy
Uses distributed synchronization of bit timing
Non-destructive collisions
Message components
Identifier / Data
Bus Access - Arbitration / Prioritization
Error Detection / Error Confinement
Filtering
Other features
In Frame Acknowledgement
RTR
Message structure
Message frame contains:
11/29 bit Identifier
Data length
0-8 bytes data
CRC
In-frame acknowledgement
CAN Frame Format - CAN 2.0B
S S I R E
Identifier ACK
O Identifier R D T r r DLC Data Field CRC O
Ext. 1 0
F R E R Field F
Bits 1 11 1 1 18 1 1 1 4 0 - 64 15 1 2 7
No Bit
Bit Stuffing
Stuffing
Typical ECU Components
Power
C o n d itio n in g
C AN C AN
M ic r o - C o n tr o lle r P ro to c o l Bus
C o n tr o lle r D r iv e r
M e m o ry In te rfa c e
I/O
ECU Connection to the bus
Power
ECU 1 Pow er
ECU 2
C o n d itio n in g C o n d itio n in g
M e m o ry In te rfa c e M e m o ry In te rfa c e
I/O I/O
TBC_PWR
CAN_H
Terminator CAN_L Terminator
TBC_RTN
Physical network structure
Message
Communications Bus
Message Components
V C AN _H
V d if f ISO 11878
V C AN _L
r e c e s s iv e d o m in a n t r e c e s s iv e
ISO 7498
Message Filtering - Example
Accept if:
(ID AND MASK) XOR MATCH = 0
11100000000 MASK
10100000000 = ID AND MASK