uds-bootloader-论文

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

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

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

资源描述

Bootloaderwithreprogrammingfunctionalityforelectroniccontrolunitsinvehicles:Analysis,designandImplementationDavidPehrssonJesúsGarzaEXAMWORK2012ELECTRICALENGINEERINGThisthesisworkisperformedatJönköpingUniversity,SchoolofEngineering,withinthesubjectareaElectricalEngineering.Theworkispartofthetwoyearmaster’sdegreeprogrammewiththespecializationinEmbeddedSystems.Theauthorisresponsibleforthegivenopinions,conclusionsandresults.Examiner:ShashiKumarSupervisor:AlfJohanssonScope:30credits(secondcycle)Date:2012-12-18iAcknowledgementsWewouldliketothankeveryoneatQRTECHforthehelptheyhavegivenusandwewouldespeciallyliketothankAndreasKäckforthetechnicalsupportheprovidedwhenweneededit.WewillalsoliketothankLarsCarlssononQRTECHforallthehelpregardingthemasterthesis.WewouldalsoliketothanktheteachersatJTH,AlfJohanssonandShashiKumarfortheirsupport.AbstractiiAbstractInanautomotivecontexttoday’sneedoftestingfunctionswhileinfactory,correctingfaultsintheworkshoporaddingextravalueintheaftermarketmakesitveryimportanttoeasilybeabletodownloadnewsoftwaretotheelectroniccontrolunitsinvehicles.IntheplatformforstandardautomotivesoftwaredevelopmentcalledAUTOSAR,twoknownprotocolsarepresentedtospecifytheprocedureonhowtoimplementthisdownloadoperation:UnifiedDiagnosticServices(UDS)andtheUniversalMeasurementandCalibrationProtocol(XCP).HoweverthepartoftheUDSandXCPstandardsthatisaboutreprogrammingisnotcompletelyapartoftheAUTOSARstandardyet.Inthisthesis,UDSandXCPhavebeencomparedtoevaluatewhichofthetwothathasmostsupportinAUTOSARtodayandaremostlikelytobefullyintegratedintoAUTOSARinthefuture.SinceUDSalreadyhassupportinAUTOSARforsomeofthefunctionsneededforreprogrammingandbecauseofthefactthatUDSisapartoftheextensivelyusedOn-boardDiagnosticstandard(OBD-II),UDSischosentobethemostsuitableprotocolforimplementingreprogrammingfunctionalityaccordingtoAUTOSAR.AbootloaderwiththeabilitytodownloaddatahasbeendevelopedusingonlyrelevantfunctionsfromUDSandfollowingtheAUTOSARspecificationswhereitisapplicable.SammanfattningiiiSammanfattningFörattkunnatestafordonsfunktionerifabriken,åtgärdamjukvarufelunderserviceellerförattuppgraderafordonetmednyafunktionerärdetviktigtattkunnaladdanernymjukvaratillfordonetsstyrsystem.Denstandardiserademjukvaruplattformenförfordonsindustrin,AUTOSAR,innehållertvåprotokollsombådaspecificerarhurmjukvarakanladdasner:UnifiedDiagnosticServices(UDS)ochUniversalMeasurementandCalibrationProtocol(XCP).TyvärrärdedelarnaavUDSochXCPsombeskrivermjukvarunerladdninginteendelavAUTOSARän.IdethärexamensarbetetharUDSochXCPjämförtsförattutvärderavilkenavdebådasomidagslägetharstörststödförnerladdningavmjukvaraiAUTOSARochvilkensomtroligastkommerattbliendelavAUTOSARiframtiden.EftersomAUTOSARredanstödjernågraavdefunktioneriUDSsombehövsförnerladdningavmjukvarasamtpågrundavattUDSärendelavbranschstandardenförfordonsdiagnostikOBD-II,harUDSvaltssomdenmestlämpadeattidagslägetanvändasförattimplementeranerladdningavmjukvaraenligtAUTOSAR.EnbootloadersomstödjernerladdningavmjukvaraviaUDSharsedanimplementeratsenligtAUTOSAR-specifikationensålångtsommöjligt.KeywordsivKeywordsAUTOSARUDSXCPBootloaderReprogrammingECUSoftwareDownloadsCANTableofContentsvTableofContents1Introduction.............................................................................11.1BACKGROUND.............................................................................................................................11.2PURPOSEANDRESEARCHQUESTIONS..........................................................................................11.3DELIMITATIONS..........................................................................................................................21.4OUTLINE.....................................................................................................................................22Theoreticalbackground..........................................................32.1BOOTLOADER..............................................................................................................................32.2CONTROLLERAREANETWORK...................................................................................................52.2.1ConceptofCAN................................................................................................................52.3AUTOSAR.................................................................................................................................62.4UNIFIEDDIAGNOSTICSERVICES(UDS)......................................................................................92.4.1RelationshipbetweenUDSandAUTOSAR....................................................................142.4.2AnUDSusecase:FlashReprogramming......................................................................192.5UNIVERSALMEASUREMENTANDCALIBRATIONPROTOCOL(XCP)..........................................202.5.1Packets............................................................................................................................212.5.2Security........................

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

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

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

×
保存成功