重庆大学硕士学位论文基于CAN总线的汽车仪表研究姓名:袁强申请学位级别:硕士专业:控制工程指导教师:熊庆宇;陶世宏20060501-I-CANCANCANCANCANCANMC9S12H256CANPCA82C50,,EMCucos/IIMC9S12H256J1939CANCANCANCAN-II-ABSTRACTAlongwithpeoplefocustowardsautomobilereliableandcomfortablerequirementmoreandmorehighlyanddevelopingofmicro_electronicstechnology,,automobileelectronicshasbecomedomesticandinternationalconcernedfocus.CANfieldbusisatechnologywhichefficientlysupportsdistributedreal-timewithaveryhighlevelofsecurity,Itattractedattentionwithaveryhighlevelofcapabilityandaveryhighlevelofsecurityandaverybetterofanti-jammingandaveryfastofcommunicationspeedandaverylowofmaintenancecostandaparticulardesign,Itwasregardedafieldbuswithexpansibility.Withrapid-developingoffieldbustechnology,thetraditionalautomobileinstrumentwillbeaffected,anditwillbereplacedwiththeinstrumentbasedonfieldbus.TheinstrumentbasedoncanBUSwillbecometheinevitableandepowerfulproduct.Sotheresearchanddevelopmentoftheautomobileinstrumenthaveveryrealisticmeaning.AnalyzedcharacteristicoftheautomobileelectronicsespcialyautomobileinstrumentandCanprotocol,thetechnologyofCANbusinstrumentisstudiedindetail.Thedesignedprojectaboutautomobilehardwareorsoftwareismainlydiscussed.Embeddedmotorinstrumentisdesignedsuccessfully,hardwareandsoftwarehavealsobeendesignedsuccessfully.Withreliableandpracticalitydesignedprinciple,motorinstrumentbasedonmcumc9s12h256andCANmodulePA82C250hasbeendesignedsuccessfully.Tachometerandodometercollectingpulsesignalisdesigned.thepressuremeterandtemperaturemetercollectinganalogsingnalsalsohasbeendesignedsuccessfully.Themethodsofant-Emcofautomileinstrumentandcorraltivetestmeansisputup.Theoperatingsystemofu/cosIIisreplantedtoMC9S12H256.thestepperisdrivedbyshiftmethodeanalogsignalcollectinganddataobtainfromCANbusmoduleisimplemented,communicationfunctionsbyCANbusbasedonJ1939protocolisrealizedByrunningofinstrument,itisprovedthatstabilityandreal-timeandprecisionofinstrumentbasedonCANfieldbusarebetterthantraditionalinstrument.Theerror-delayinganddata-switchingandsystem-managingandanti-jammingofcontrolsystembasedonCANfieldbusinstrumentsarebetterthanthesystembasedontraditionalinstruments.-III-Inthisdissertation,anEmbeddedmotorinstrumentApplicationSystembasedonCANBusisproposedaswellasdesigned.Hardwareandsoftwarehasbeendesignedsuccessfully.Thisembeddedsystemcanbemadetomorecomplexsystembyimprovementofthesoftware.ThisnewlyApplicationmotorinstrumentdesignedwithANTI-EMCprovidesanpowerfulandhighintegratedandeconomicalsolutionKeywords:embeddedsystemmotorelectronicsintergratedinstrumentCANBUSEMC1-1-11.1[]IDB-1394MOST()FlexRAYTTCAN()CANIDB-CGMLANSWC()J1850LIN()Keywrod2000ISO9141()[]:(1)(2)()1.280CANSAEJ1850PALMNETABUSAUTOCANISOVANBENZBMWRORSCHEROLLSROYCEJAGUARVOLVOA620001-2-B5BORAPOLOFIATPALIOSIENACANSAEJ1850J1939ABUSPSAVANAutoCANBOSCHCAN[],VANN7VANCAN307FullCANCANCAN[4]LINCANCANLIN1.31-3-[4]ECU[1]ECUECU[4]DVD1-4-CAN[]CANCAN[4]1.42,-5-22.1.CANLINlexRayMOST2.2CAN2.2.1CANCAN19862RobertBoschSAECANControllerAreaNetworkCAN1987IntelCAN82526Philips82C200CANPhilipsBasicCANIntelFullCANFullCANBasicCAN[5]2090BoschCANCAN2.0VANVehicleAreaNetwork199311CANISO11898CAN1992CANCAN[6]CAN,2,-6-CANCANCAN[7]CAN,CANIDCANIDCRCCRC[]CANCAN1Mbps/40m10km/40Kbps[09](ABS)(ASR)()2.2.2CANCANCANCANCAN2,-7-,CAN8,CAN2.0A,8.CAN,CANCAN,,CAN,,(40m)(1Mbit/s)10000m(5kbits/s)NRZ-Non-Return-to_Zero2.2.3CANCAN3CAN1Mbps/40m,50Kbps/10Km,110CANCS-MA/CA,,[]0CAN10CAN8CS-MA/CA1Mbps0.15CAN5CAN2,-8-4.7X10-11,CANCANCANCANCANCANCANCANI/O[05]2.2.4CANCANCANCTXOCTX1[03]CANCANCANCANCAN,CAN4N27CANKbit/S6N137CAN2.2.5CANCANCANCANCANCANCPUCANCANCPUCPUCANCPUCANCANMCUMCURAMCAN2,-9-2.32.3.1LIN(LIN,LINCANCANLINCAN[08]LINLIN/12VUSART20kbps40m[09]LINCANCANLINCANCANLINLIN(SCI)/12VLINLINLIN(EMC)LINCANCANLINCAN[09]2,-10-2.3.2FlexRayFlexRayFlexRay5(V2.1)2005FlexRay(1)210Mbps,FlexRay10MbpsCAN10-40[0](2),FlexRay0.5s10s(1-2s)(3),(4)FlexRay(5)FlexRay()()FlexRayFlexRay(1)CANCANCANFlexRay(2)FlexRay(3)FlexRay(4)FlexRay()[0]2,-11-2.3.3MOSTMOST90DaimlerChryslerHarman/BeckerOasisSiliconSystems1998MOSTMOSTOSI[1]1mmPMMAOEM650nmLED50Mbaud24.8Mbps[]MOSTMOST64MOST.MOSTPass-throughtMOST512b1644.1kHz22.67ms2.3.4LINCANCANLINCANCANFlexrayMOSTLINCANCANLINCANLINMOSTMOSTCANABSLINFlexRay2,-12-FlexRayFlexRayCAN[0]2.42.4.1SAEJ1939SAEJ1939SAEJ1939SAEJ1939OSICANCAN,CANSAEJ1939CSAEJ1939()[2]J1939SAEJ1939J1939J1939OSIJ1939C19391CANJ1939ID,J19392J1939(TP-BAM)TP-CMJ19393OSIJ1939J1939J19392,-13-J1939/814PGNJ1939J1939HALCANHAL[13]CANSAEJ1939MCU.ANSICCANAddressClaimingCommandedAddressparametergroupRequesPGapplication-specificPGsPG2.4.2CANopenCANopenCAN-in-Automation(CiA)CANopenCANCANopen[14]CANCANopenODObjectDictionaryASCIIEDSDCF[3]CANopenCALCMSboot-upNodeGuardingCALNMTCALCMS2,-14-howwhatCANopenCANopenCALCALCANopenCANopenODObjectDictionaryProfibusInterbus-SCALCANopenCANopenCANopen3CANopenCANopenIDSDONMT[13]2.5CANLINFlexRayMOSTCANJ1939CANopen3-15-3(MCU)IC:[14]3.1MCUMCUMCULANx-by-wire()ABS/SAFF-by-wire()GPSROMRAMCPUI/OCPU48163264RISC(ReducedInstructionSetComputer)CISC(ReducedInstructionSetComputer),(Compiler)3:148SFR3-16-;:/;