Вы находитесь на странице: 1из 7

7/14/2016

AutomotiveCANBusSystemExplained|KirilMucevski|Pulse|LinkedIn

Designed by Kiril Mucevski

Automotive CAN Bus System Explained


Published on December 8, 2015

Kiril Mucevski Follow

Automotive Engineer, Service Advisor at Porsche Macedonia

862

150

193

AutomotiveController Area Network System


TheControllerAreaNetwork(CAN,alsoknownasCANBus)isavehiclebusstandard
designedtoallowelectroniccontrolunitsanddevicestocommunicatewitheachother
inapplicationswithoutahostcomputer.Asanalternativetoconventionalmultiwire
looms,CANBusallowsvariouselectroniccomponents(suchas:electroniccontrol
units,microcontrollers,devices,sensors,actuatorsandotherelectroniccomponents
throughoutthevehicle)tocommunicateonasingleordualwirenetworkdatabusupto
1Mb/s.
TheCANBusisamessagebasedprotocol,designedoriginallyformultiplexelectrical
wiringwithinmotorvehicles,butalsocanbeusedinmanyothercontexts.
Figure1showsasimplifiedschematicdiagramoftheCANsystemandshowssomeof
thepossibleunits/devicesthatcanbeconnectedontotheCANbus.

https://www.linkedin.com/pulse/automotivecanbussystemexplainedkirilmucevski?trk=hpfeedarticletitlepplfollow

1/7

7/14/2016

AutomotiveCANBusSystemExplained|KirilMucevski|Pulse|LinkedIn

Figure1.CANSystemSchematicDiagram
1.EngineManagementElectronicControlUnit
2.TransmissionElectronicControlUnit
3.AntiLockBrakingElectronicControlUnit
4.TractionControlElectronicControlUnit
5.AirbagElectronicControlUnit
6.PowerSteeringElectronicControlUnit
7.OnBoardDiagnostic(OBD)Connector
8.ControllerAreaNetwork(CANBus)

CAN Bus Components and Output Signal


TypicallytheCANBusismadeuptwowires,CANH(CANHigh)andCANL(CAN
Low)whichconnecttoallthedevicesinthenetwork.ThesignalsonthetwoCANlines
havethesamesequenceofdata,buttheiramplitudesareopposite.Soifapulseonthe
CANHlinegoesfrom2.5Vto3.75VthenthecorrespondingpulseontheCANLline
goesfrom2.5Vto1.25V(oppositethanCANH).Bysendingthedatainequaland
oppositewayslikethisallowsforgreaternoiseimmunityandthereforelesschanceof
thedatabeingcorrupted.

Figure2.CANHandCANLDifferentialOutput
Statusofbitwiththevalue0=2.5Vdifferentialvoltage=dominantstate
Statusofbitwiththevalue1=0Vdifferentialvoltage=recessivestate

https://www.linkedin.com/pulse/automotivecanbussystemexplainedkirilmucevski?trk=hpfeedarticletitlepplfollow

2/7

7/14/2016

AutomotiveCANBusSystemExplained|KirilMucevski|Pulse|LinkedIn

Figure3showsanexampleoftwoconnecteddevicesaswellasthecomponentsthat
makeupaCANBus:CANcontroller,CANtransceiver,twodatabusterminals(R)and
twodatabuslines(CANHighlineandCANLowline).

Figure3.CANBusComponents
CANControllerreceivesthetransferdatafromthemicrocomputerintegratedinthe
controlunit/device(alsoknownasCANNode).TheCANcontrollerprocessesthisdata
andrelaysittotheCANtransceiver.Also,theCANcontrollerreceivesdatafromthe
CANtransceiver,processesitandrelaysittothemicrocomputerintegratedinthe
controlunit/device(CANNode).
CANTransceiverisatransmitterandreceiverinone.Itconvertsthedatawhichthe
CANcontrollersuppliesintoelectricalsignalsandsendsthisdataover
thedatabuslines.Also,itreceivesdataandconvertsthisdatafortheCANcontroller.
CANDataBusTerminalisaresistor(R)typicallyof120ohms.Itpreventsdatasent
frombeingreflectedattheendsandreturningasanecho.

CAN Data Transfer Process and Message Structure


TheCANdatatransferprocessconsiststhefollowingstages:supplyingdata,sending
data,receivingdata,checkingdataandacceptingdata.

Home

Profile

MyNetwork

Jobs

Searchforpeople,jobs,companies,andmore...

Advanced

Interests

BusinessServices

TryPremiumforfree

Figure4.CANBusDataTransferProcess
SupplyingData:TheCANNodeprovidesdatatotheCANcontrollerfortransfer.
https://www.linkedin.com/pulse/automotivecanbussystemexplainedkirilmucevski?trk=hpfeedarticletitlepplfollow

3/7

7/14/2016

AutomotiveCANBusSystemExplained|KirilMucevski|Pulse|LinkedIn

SendingData:TheCANtransceiverreceivesdatafromtheCANcontroller,convertsit
intoelectricalsignalsandsendsthembackintothenetwork.
ReceivingData:AllotherCANNodesnetworkedwiththeCANdatabusbecome
receivers.
CheckingData:TheCANNodecheckswhethertheyrequirethedatatheyhave
receivedfortheirfunctionsornot.
AcceptingData:Ifthereceiveddataisimportant,itisacceptedandprocessed.Ifnot,
thereceiveddataisignored.
TherearetwodifferentISOstandardsforCANsystemsthatrelatetothephysicallayer:
ISO118983lowspeedCANupto125kb/s(distanceupto500m)andISO118982
highspeedCANupto1Mb/s(distanceupto40m).
TheCANsystemisfurtherdividedintotwoformatsforthemessageframes2.0Aand
2.0B,thetwostandardsdifferinthesizeoftheidentifiers(ID):
StandardCAN(version2.0A)uses11bitidentifiersinthearbitrationfield.Extended
CAN(version2.0B)supportsalengthof29bitsfortheidentifier,madeupofthe11bit
identifier(baseidentifier)andan18bitextension.
Figure5showstheCANBusdatamessagestructure.Thebasicstructureofthemessage
isthesameforbothstandardandextendedversion.

Figure5.CANBusDataMessageStructure
SF=StartField:indicatesthebeginningofamessagewithadominantbit.Sothis
fieldmarksthestartofthedataprotocol.Abitwith3.75V(dependingontheused
system)issentovertheCANHlineandabitwith1.25VissentovertheCANL
line,i.e.thedifferentialvoltageis2.5V(seefigure2).
MessageIdentifier:definesthelevelofpriorityofthedataprotocol.If,forinstance,
twoCANNodeswanttosendtheirdataprotocolsimultaneously,theCANNodewith
thehigherprioritytakesprecedence.Thelowerthevaluethehigherthepriorityofthe
message.Asstatedearlier,dependingonthestandardbeingused,thelengthofthe

framescanbeintwoformats:standard,whichusesan11bitarbitrationID,and
Searchforpeople,jobs,companies,andmore...

Home

Profile

MyNetwork

Advanced

Jobs
Interests
extended,whichusesa29bitarbitrationID.

BusinessServices

TryPremiumforfree

Control,alsoknownasCheckField:displaysthenumberofitemsofinformation
containedinthedatafield.Thisfieldallowsanyreceivertocheckwhetherithas
receivedalltheinformationtransferredtoit.
DataField:inthisfieldtheinformationistransferredtotheotherCANNodes.
CRC=CyclicRedundancyCheck,alsoknownasSafetyField:Contains15bitcyclic
redundancycheckcodeandarecessivedelimiterbit.TheCRCfieldisusedfortransfer
https://www.linkedin.com/pulse/automotivecanbussystemexplainedkirilmucevski?trk=hpfeedarticletitlepplfollow

4/7

7/14/2016

AutomotiveCANBusSystemExplained|KirilMucevski|Pulse|LinkedIn

faultsdetection.
ACK=AcknowledgeField,alsoknownasConfirmationField:Inthisfieldthe
receiverssignaltothetransmitterthattheyhavecorrectlyreceivedthedataprotocol.If
anerrorisdetected,thereceiversnotifythetransmitterofthisimmediately.The
transmitterthensendsthedataprotocolagain.
EF=EndField:thisfieldmarkstheendofthedataprotocol.Thisisthelastpossibility
toindicateerrorswhichleadtoarepeattransfer.

Summary: How the CAN System Works


Asstatedearlier,attheCANsystemthereisnomasterthatcontrolswhenindividual
CANNodeshaveaccesstoreadandwritedataontheCANBus.WhenaCANNodeis
readytotransmitdata,itcheckstoseeiftheBusisbusyandthensimplywritesaCAN
frame(message)ontothenetwork.TheCANframesthataretransmitteddonotcontain
addressesofeitherthetransmittingnodeoranyoftheintendedreceivingnode(s).
Instead,anarbitrationIDthatisuniquethroughoutthenetworklabelstheframe.
AllCANNodesontheCANnetworkreceivetheCANframe,anddependingonthe
arbitrationIDofthattransmittedframe,eachCANNodeonthenetworkdecides
whethertoacceptorignorethereceivedframe.
IfmultipleCANNodestrytotransmitamessageontotheCANBusatthesametime,
thenodewiththehighestpriority(lowestarbitrationID)automaticallygetsBusaccess.
LowerpriorityCANNodesmustwaituntiltheBusbecomesavailablebeforetryingto
transmitagain.Inthisway,youcanimplementCANnetworkstoensuredeterministic
communicationamongCANNodes.
Thetablebelowshowsanexampleofhowtheinformationofenginecoolant
temperaturecanbetransferredwith1,2and3consecutivebitsandrespectively2,4and
8possiblevariations:

Home

Profile

MyNetwork

Jobs

Searchforpeople,jobs,companies,andmore...

Advanced

Interests

BusinessServices

TryPremiumforfree

Thehigherthenumberofbits,themoreitemsofinformationcanbetransferred.The
numberofpossibleitemsofinformationdoubleswitheachadditionalbit.

Thankyouforreadingmyarticle!Ifyouenjoyedreadingthisorfounduseful,please
https://www.linkedin.com/pulse/automotivecanbussystemexplainedkirilmucevski?trk=hpfeedarticletitlepplfollow

5/7

7/14/2016

AutomotiveCANBusSystemExplained|KirilMucevski|Pulse|LinkedIn

letmeknow,provideyourfeedbackorjustclickthelikebutton.
Ifyouwouldliketoreadsimilarautomotivearticles,repairtipsortestingprocedures,
youarewelcometovisitmyLinkedInarticlepage:
OBDIIConnectorandFaultCodesExplained
InductiveandHallEffectRPMSensorsExplained
IgnitionSystemwithInductiveSender
IgnitionSystemwithHallEffectSender
EngineOilPressureSwitchExplained
FuelInjectorOperatingPrinciplesandDiagnostics
AutomotiveRelaysFundamentalsandTesting
MotorVehicleBrakeFluidFundamentalsandTesting
BrakeBleedingMethods
6TipstoPrepareYourVehicleforSummerDriving
64TitlesofDashboardWarningLights
WhatDoDashboardWarningLightsMean?
MarkingofPassengerCarTiresandTheirMeaning
DesignedandpublishedbyKirilMucevski
AutomotiveEngineerwithmorethan15yearsexperiencein:
VehicleDiagnostics,Maintenance&Repair
RoadsideAssistance,TrainingsforVehicleDiagnostics&Breakdowns
BuildingRaceEngines,EngineModification,Development&Testing
ResearchesinthefieldofICEngines,PropulsionFuels,MotorOils&Additives
SalesofTires&AlloyWheels,ResolvingWarrantyIssues
WritingandPublishingAutomotiveTechnicalBooks,Manuals&Articles
Ifyouwouldliketoreadmyfutureposts,pleaseclick"Follow"orevenbetter,sendme
aLinkedIninvitation,I'mgladtoexpandmynetworkwithnewconnections.

Report this

Tagged in: embedded systems,can bus,automotive electrical systems

Kiril Mucevski

Automotive Engineer, Service Advisor at Porsche Macedonia

Searchforpeople,jobs,companies,andmore...
18 posts
Home

Profile

MyNetwork

Jobs

Advanced

Interests

150comments

Follow

BusinessServices

TryPremiumforfree

Recommended

Leave your thoughts here

Kiril Mucevski

6mo

Automotive Engineer, Service Advisor at Porsche Macedonia

Thanks for your input Janez.


I searched on google and found the suggested article in pdf format. More interesting and more indepth information are provided. Also, there is and second part SSP 269: Data transfer on CAN data bus
https://www.linkedin.com/pulse/automotivecanbussystemexplainedkirilmucevski?trk=hpfeedarticletitlepplfollow

6/7

7/14/2016

AutomotiveCANBusSystemExplained|KirilMucevski|Pulse|LinkedIn

II. Both included great graphics and illustrations.


My article, where are provided only the fundamentals, is just introduction and short explanat
See more
Like

Reply

13

John Anderson

7mo

National Sales Manager at GlasWeld systems

Great post Kiril,


Can anyone suggest where I could get some training on this subject.
Like

Reply

Kiril Mucevski

7mo

Automotive Engineer, Service Advisor at Porsche Macedonia

Thank you John for the support and connection.


At the moment I have not some suggestions. If I hear or see something that you prefer, I'll let
you know.
Like

Reply

Rajkumar R

7mo

C - Suite Executive with SME in Automotive Electronics

Vector Informatik GmbH - Check it out!


Like

Reply

There are 148 other comments.Show more.

Don't miss more posts by Kiril Mucevski

Brake Bleeding Methods

64 Titles of Dashboard Warning Lights

Ignition System with Hall Eect Sender

Kiril Mucevski on LinkedIn

Kiril Mucevski on LinkedIn

Kiril Mucevski on LinkedIn

Looking for more of the latest headlines on LinkedIn?


Discover more stories

Home
HelpCenter

Profile
About

MyNetwork
Careers

LinkedInCorporation2016

Jobs

Advertising

UserAgreement

Searchforpeople,jobs,companies,andmore...

Advanced

Interests

TalentSolutions
PrivacyPolicy

BusinessServices
SalesSolutions

AdChoices

SmallBusiness

CommunityGuidelines

Mobile

Language

CookiePolicy

TryPremiumforfree

UpgradeYourAccount

CopyrightPolicy

SendFeedback

https://www.linkedin.com/pulse/automotivecanbussystemexplainedkirilmucevski?trk=hpfeedarticletitlepplfollow

7/7

Вам также может понравиться