Professional Documents
Culture Documents
The CAN-bus Protocol
The CAN-bus Protocol
1
Ep1190
Data frame
Start of frame
1. Start of frame.
The start of frame or start field
2. Status field.
indicates to the receiver(s) that a
3. Check field.
message (information) is on its way.
4. 1 bit not used.
This field always exists of one
5. Data field.
dominant bit.
6. Second check field.
7. Acknowledged (ACK) field.
8. End of frame (EOF).
Ep1197
1. Start of frame.
2
Status field
Ep1198
2. Status field.
3
Check field The Traction Control Torque
Request frame contains, among
The amount of data is registered in other signals, the Traction Control
the check field, which allows a Torque Request signal (16 bits), the
check for the receiver if all the data Actual Vehicle Acceleration signal
has been received. (12 bits) and the Brake Pedal Driver
Applied Pressure signal (8 bits).
These three signals use 36 bits of
the possible 64, so there are 28 bits
left over for other information.
3. Check field.
Data field
Ep1200
5. Data field.
4
Second check field, confirmation
field and end of frame field
Ep1201
5
1.2 Dominant and Recessive
1. Dominant
2. Recessive
6
1.3 Prioritising As already mentioned, the status
field contains an identifier to
organise the priority. The bits, which
In the CAN protocol it is nessesary
represent this identifier, are
to assign a specific priority to the
arranged such that the identifier
individual data frames.
with the highest priority has the
• If an important data frame has
most dominant / higher-order bits (0)
to be transmitted, this is done
at the beginning. Consequently the
immediately after the end of the
identifier with the highest priority is
transmission of the current data
always to be transmitted earliest.
frame. Less important data has
to wait.
Example:
• If, however, a less important
data frame is ready for
transmission and the bus Priority Data protocol Status field
becomes free, this is sent 1 ABS 00110100000
immediately. 2 Engine 01010000000
• Only if really important data 3 AT transmission 10001000000
frame is present there is a
waiting time.
7
All three control units begin sending After the ABS/TC control unit has
their data frame simultaneously. At finished sending its data protocol,
the same time they compare bit for the others again try to send their
bit on the data bus line. If a control data protocols.
unit sends a recessive (lower-order)
bit and detects a dominant (higher- Naturally the capacity of the bus is
order) one, it stops sending and dimensioned so that low-priority
starts receiving. data frames are not permanently
excluded from transmission. The
First bit: “bus load” must not reach 100% for
• Control unit for ABS/TC sends a long periods of time; the
dominant bit. recommended average is 40%.
• Control unit for the Engine also In addition, a minimum waiting time
sends a dominant bit. is always observed between the
• Control unit for Automatic individual data frames for the same
Transmission sends a recessive data frame during which
bit and detects a dominant bit lower-priority data frames also get a
on the data bus line. It therefore look-in.
loses its allocation and becomes
a receiver.
Second bit:
• Control unit for ABS/TC sends a
dominant bit.
• Control unit for the Engine sends
a recessive bit and detects a
dominant bit on the data bus
line. It therefore loses its
allocation and becomes a
receiver.
Third bit:
• Control unit for ABS/TC is the
only unit transmitting, it
completes its message.
8
1.4 Error Processing 1.5 Wake-up methods
9
1.5.2 Wake-up of LSCAN
10