31-4 Industrial Communication Systems
A.CAN.base.frame.message.begins.with.the.start.bit.called.start of frame.(SOF)..is.bit.is.followed.by.
the.arbitration eld,.which.consist.of.the.identier.and.the.remote transmission request.(RTR).bit.used.
to.distinguish.between.the.data.frame.and.the.data.request.frame.called.remote.frame..e.following.
control eld.contains.the.identier extension.(IDE).bit.to.distinguish.between.the.CAN.base.frame.and.
the.CAN.extended.frame,.as.well.as.the.data.length.code.(DLC).used.to.indicate.the.number.of.following.
data.bytes.in.the.data eld..If.the.message.is.used.as.a.remote.frame,.the.DLC.contains.the.number.of.
requested.data.bytes..e.data.eld.that.follows.is.able.to.hold.up.to.8.bytes..e.integrity.of.the.frame.is.
guaranteed.by.the.following.cyclic redundant check.(CRC).sum..e.acknowledge.(ACK).eld.comprises.
the.ACK.slot.and.the.ACK.delimiter..e.bit.in.the.ACK.slot.is.sent.as.a.recessive.bit.and.is.overwritten.
as.a.dominant.bit.by.those.receivers.which.have.at.this.time.received.the.data.correctly..Correct.mes-
sages
.are.acknowledged.by.the.receivers.regardless.of.the.result.of.the.acceptance.test..e.end.of.the.
message.is.indicated.by.end of frame.(EOF)..e.intermission frame space.(IFS).is.the.minimum.time.in.
equivalent.number.of.bits.separating.consecutive.messages..Unless.another.station.starts.transmitting,.
the.bus.remains.idle.aer.this.
Associated
.with.every.CAN.message.there.is.a.unique.message.identier.that.denes.its.content.and.
also.the.priority.of.the.message..Bus.access.conicts.are.resolved.by.a.nondestructive.bitwise.arbitration.
scheme.where.the.identiers.of.the.involved.messages.are.observed.bit-by-bit.by.all.nodes,.in.accordance.
with.the.wired-AND.mechanism,.by.which.the.dominant.state.overwrites.the.recessive.state..All.those.
nodes.with.recessive.transmission.and.dominant.observation.lose.the.competition.for.bus.access..e.
nodes.that.lost.the.arbitration.automatically.become.receivers.of.the.message.with.the.highest.priority.
and.do.not.reattempt.transmission.until.the.bus.is.available.again..In.this.way,.transmission.requests.are.
handled.in.order.of.their.importance.for.the.system.as.a.whole.
31.2.3 Detecting and Signaling Errors
A.CAN.node.does.not.acknowledge.message.reception,.instead.it.signals.errors.immediately.as.they.
occur..For.error.detection.the.CAN.protocol.implements.three.mechanisms.at.the.message.level:
•
. Cyclic redundancy check—is. mechanism. accounts. for.message. corruption.. e. transmitter.
node.computes.the.CRC.and.transmits.it.within.the.message..e.receiver.decodes.the.message.
and.recomputes.the.CRC.and.if.they.do.not.match,.there.has.been.a.CRC.error.
•
. Frame check—is.mechanism.detects.message.format.violations,.i.e.,.it.checks.each.eld.against.
the.xed.format.and.the.frame.size.
•
. Acknowledge errors—Since.the.receivers.of.a.message.must.issue.an.acknowledgement.bit.in.the.
ACK.eld,.if.the.transmitter.does.not.receive.an.acknowledgment.an.ACK.error.is.indicated,.thus.
allowing.a.node.to.detect.isolation.from.the.network.
Besides
.error.detection.at.the.message.level,.the.CAN.protocol.also.implements.mechanisms.for.error.
detection.at.the.bit.level:
•
. Transmission monitoring—Each.node.transmitting.a.message.also.monitors.the.bus.level.to.be.
able.to.detect.dierences.between.the.bit.sent.and.the.bit.received..is.mechanism.allows.distin-
guishing
.global.errors.from.errors.local.to.the.transmitter.only.
Start
1 bit
Identier
11 bits
RTR
1 bit
IDE
1 bit
r0
1 bit
DLC
4 bits
Data
0.8 bytes
CRC
15 bits
ACK
2 bits
EOF
7 bits IFS
…
FIGURE 31.1 CAN.base.frame.format.
© 2011 by Taylor and Francis Group, LLC