CAN通讯协议介绍

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

IntrepidControlSystems,Inc.:+86-137-6464-9956Email:qinwen@intrepidcs.comIntrepidControlSystems,Inc.LearnthebasicsoftheCANprotocolUnderstandwhatmakesupaCANnetworkUnderstandwhatmakesupaCANnodeLearnhowCANcomparestocompetitiveprotocolsLearnhowtouseaCANtesttoolandaCANDatabase(DBC)filetomonitorandtransmitCANmessagesandsignalsIntrepidControlSystems,Inc.Part1:LearnthehighlevelCANfeaturesPart2:UnderstandtheCANmessagePart3:UnderstandhowmessagesarecommunicatedbetweenCANnodesIntrepidControlSystems,Inc.Standsfor:Controller–AreaNetworkDevelopmentoftheCAN-busstartedoriginallyin1983atRobertBoschGmbHTheprotocolwasofficiallyreleasedin1986attheSocietyofAutomotiveEngineers(SAE)congressinDetroitIntrepidControlSystems,Inc.•Speedupto1Mbps•Non-destructivemessagearbitration•Allnodesreceiveallmessages•NoguaranteedmessagelatencyIntrepidControlSystems,Inc.[bps]20K1M10M25MIntrepidControlSystems,Inc.•CANismuchfaster:upto1Mbps•LINoffersatimedeterministicmodel•CANoffersamorepowerfulchecksum•UsesLDFinsteadofDBCfilesfordatabasesIntrepidControlSystems,Inc.•FlexRaynetworkstartupmorecomplicated•FlexRayofferstimedeterministiccommunications•FlexRayoffersfaulttoleranceusingvariousmechanisms•FlexRayofferslargerdataframes•UsesFIBEXinsteadofDBCfilesIntrepidControlSystems,Inc.•MOSTistargetedatinfotainmentapplications•MOSToffersdedicatedtransfersinaringnetworkat25MbpsOptical,50MbCopper,and150MbpsopticalphysicallayersIntrepidControlSystems,Inc.•Moderatecostsiliconimplementation•RequireshardwareCANcontrollerandCANtransceiver•RequireshardwareCANtransceiverMicroprocessorCANTransceiverCANControllerCANHighCANLowGroundIntrepidControlSystems,Inc.(TrueorFalse)‏2.CANrequireshardwarecontrollers.(TrueorFalse)‏3.CANissimilartoLIN:bothhaveverydefinedmessagestructure.(TrueorFalse)‏4.WhatisthemaximumnumberofbytescanbeinaCANmessage?IntrepidControlSystems,Inc.•HighSpeedCAN:upto1Mbps•LowSpeedFaultTolerantCAN:upto125kbps•SingleWireCAN:upto83.3kbpsIntrepidControlSystems,Inc.•SingleWirePlusGround•Two120Ohmterminationresistors•Buslengthto40meters@1Mbps,•Slower=longer.SWPhysicalLayerIntrepidControlSystems,Inc.•TwistedPair(CANH/CANL)plusGround•Two120Ohmterminationresistors•Buslengthto40meters@1Mbps,•Slower=longer.IntrepidControlSystems,Inc.•MultipleversionsofCANaresupportedinValueCANandneoVIFIRE:HighSpeedCAN,LSFTCAN,SingleWireCAN•VehicleSpyprovidesfullCANsupport:CANmessageandsignaldecoding,logging,CANnodesimulationIntrepidControlSystems,Inc.•GetfamiliarwithIntrepidCAN/LINboard•FindUSBpowerconnector•FindCANandneoVIpowerconnector•LocateLINandCANtransceiversontheboard•ConnectUSBandpowercables•ConnectneoVItotheboardIntrepidControlSystems,Inc.•TwoidenticalconnectedCANnodes•PowerissuppliedthroughUSB•CANconnectorsforneoVIandValueCAN•PowerconnectorforneoVIIntrepidControlSystems,Inc.•TwoCANtransceiverswithtestpoints•TworesetbuttonsIntrepidControlSystems,Inc.(TrueorFalse)‏2.CANrequiresthreelines:CANlow,CANHighandground(TrueorFalse)‏3.SinglewireCANisingeneraltheslowestCANtype.(TrueorFalse)‏IntrepidControlSystems,Inc.•TypicalCANmessageiscalleddataframe•Numberofdatabytes:0-8CANDataFrameProtocolOverheadDataBytesProtocolOverheadIntrepidControlSystems,Inc.•ArbitrationfieldrepresentsframeID•Controlfieldhasdefinesframelength•CRCstandsforCyclicRedundancyCheck:thisisCANframechecksum•ACKisacknowledgefield:confirmsframereceptionCANDataFrameDataBytesArbitrationFieldControlFieldCRCACKIntrepidControlSystems,Inc.•Identifierassigns11bitIDtoCANframes•RemoteTransmitRequest(RTR)bit•CANnodesendsCANframewithrecessiveRTRbit(logical1)whenthenoderequestsdatafromothernodesDataBytesControlFieldIdentifierRTR111ArbitrationFieldCRCACKIntrepidControlSystems,Inc.•IdenticaltotheDataFrame,exceptthereisnodatabytes•RTRbitisrecessive(logical1)‏ControlFieldCRCACKArbitrationFieldIntrepidControlSystems,Inc.•DLCspecifiesnumberofdatabytes:0-8•RB0bitissettological0andreservedfo

1 / 56
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功