TestFrontLoadinginEarlyStagesofAutomotive SoftwareDevelopmentBasedonAUTOSAR

AlexanderMichailidis,UweSpieth, StefanKowalewski ThomasRingler,andBerndHedenetz ChairofComputerScience11 GroupResearch&AdvancedEngineering RWTHAachenUniversity DaimlerAG,Sindelfingen,Germany Aachen,Germany {alexander.michailidis,uwe.spieth, [email protected]aachen.de thomas.ringler,bernd.hedenetz}@daimler.com Abstract—Embedded software development has become one of andpowerfultools[2].Inordertomeettheshortdevelopment the greatest challenges in the automotive domain, due to the time, a change in the development of the ECUsoftware of rising complexity of vehicle systems. A method to handle the vehiclesystemshasforseveralyearsbeentakingplace.Thisis complexity of automotive software is Model Based Design (MBD). characterized via a transition from the conventional software As MBD offers great advantages in early simulation and testing, it has become today’s mainstream method for automotive development (via hand coding) to model based development software engineering. However, some aspects can be initially methods. In model based development, the behaviour of the tested after the integration of software on real hardware diverse software contributions of a system is described by components (usually by the supplier) and when all parts of a graphicmodels.Theuseofmodelsmakesthetransitionfrom system (e.g. bus systems, sensors, actuators) are present. The the textual system specifications to the design of the ECU consequence is that the requirement specification of the software considerably easier. The model in this case receives according system possibly contains gaps that can lead to software the roll of a ‘executable specification,’ which serves as a defects. New technologies like the AUTOSAR standard enable common understanding of different groups of people in the additional potentials for the validation of model based developed systemdevelopment. Inaddition asimulationofthe software software. Due to the AUTOSAR software architecture it is possible for an OEM to realize an early „virtual” software behaviour is made possible via the feasibility of the model. integration with an acceptable effort and perform at next step a Therefore,inaveryearlystageofthedevelopment,gapsand front loading of system tests. In this paper we present an errors in the system specification can be recognized and approach that improves the quality of the requirement unnecessary iterations in the development process can be specification artifacts by using test front loading. In detail, we avoided. analyze the requirement engineering part of the software development process to identify aspects that can not be tested Up to now, the model based software contributions of a without having all system components. Afterwards, we classify system have been predominantly developed and tested these aspects and define an abstract test pattern that can be separately fromoneanother.Thesystemintegration and thus globally used for testing. Additionally, we illustrate our approach the observation of the interaction of the contributions both in a case study on an interior light system for the next Mercedes- among themselves and also with the hardware specific basic Benz M-Class generation. softwareontheECUsistakingplacelateinthedevelopment process. Previous projects have demonstrated that in the Keywords-model based design; validation and test; AUTOSAR; integration of model based developed software, integration virtual integration; front loading errorscouldnothavebeen avoidedtothesame extentunlike the case for the functional errors [3]. For the consistent I. INTRODUCTION continuation of the model based approach a “virtual The application of software in the automobile has integration”ofthedesignedsoftwarebasedonsystemmodels drastically increased over the last few years and represents isneeded.Thesetupofsuchmodelswasuntilnownottarget increasingly a set of criteria for the ability of a car leadingduetotheheterogeneousECUbasicsoftwareandthe manufacturertocompete.AccordingtoaMcKinseystudy[1] limited availability of hardware at this stage. With the automotivesoftwarefurthersapproximately 80%ofallfuture introduction of AUTOSAR (Automotive Open System innovations and its validation is just as important as the Architecture)[4],thedesignofsystemmodelswithajustifiable hardware. In addition to the growing software amount, the effort is possible for the first time. The standard AUTOSAR complexityofthevehiclesystems1isalsoincreasing.Insteadof software architecture and the decoupling of the application isolated functionality on separate electronic control units software from the hardware via a specific abstraction layer (ECUs), distributed systems located on several ECUs with a provide the basis. Due to the new standard, a market of highdegreeofinteractionareintroduced. AUTOSAR tools [5], [6] is developing which provides the design and simulation mechanisms for system models. The Important prerequisites for an accurate and efficient necessaryprerequisitesarethereforegiveninordertocarryout development for such electronic systems are defined furtheranalysisfromtheperspectiveofanOEMandtoidentify developmentprocessesaswellastheuseofpracticeorientated optimisationpotentialinthesystemdevelopmentprocess. 1 Inthepresentpaper,anapproachisbeingdevelopedwhich Electronicsystemsarecomposedofsoftwareandhardwarepartswhich focuses on the early improvement of the maturity degree of togetherrealizeaspecificfunctionalityinthevehicle.

978-3-9810801-6-2/DATE10 © 2010 EDAA system specifications and the resulting models of system System software contributions. The necessary principles for the new System test cases System approach are explained in the following section. There is an specification integration overview of current processes, technologies, and concepts. Interface Integration test Subsequently,therelevantaspects fora frontloading oftests tes t cases onthesystemdesignstagearedemonstrated.Theseincludea Mode- Model OEM ling test Software detailed analysis of the system requirements engineering OEM integration Supplier processpartfortheidentificationofscenarioswhicharebeing Module test cases tested lately, and the creation of abstract testpatterns for the Supplier Model Software generalisationoftheidentifiedscenarios.Withacasestudy,the implementation module test main ideas will be illustrated. Finally, there will be a conclusionandanoutlookonfurtheractivities. Itshouldbenotedthattheapproachelaboratedherefocuses Code generation onthemodelbasedsystemdevelopmentofthebodydomainat Daimler AG. Therefore only a section of the software development for embedded vehicle systems can be covered. Figure1. Modelbaseddesignprocessforbodyandcabinsystemsat This is however quite representative according to our DaimlerAG estimation. eachtestcase,theinputaswellastheexpectedoutputdatais II. BASIC PRINCIPLES specified. The output data generated from the test run is compared with the respective expected data. In case of a A. Model Based Design at Daimler deviation,anerrorhasoccurred. AtDaimlerAG modelbaseddevelopmentinparticularin For the functional validation on model level via dynamic theareaofbodyandcomfortisalreadybeingappliedforsome testmethods,intensive research workhas beencarriedout in years. For the current /Eclass software contributions are thepastfewyearsatDaimlerAG.Theseincludeamongothers implemented for approximately fifteen systems (e.g. interior the development of the classification tree method (CTM/ES) lights,exteriorlights,powernetworkmanagement).Sincethen, [8] and time partition testing (TPT) [9], the design of model amodellibraryisbeingbuildupandrolledoutinothervehicle basedtests[10],theanalysisofstructuralcoveragecriteriaon lines[3]. modellevel [11] andtheautomatedtestanalysiswithinback toback tests [12]. In the area of body and comfort, the TPT The procedure for model based system development is method is applied to the series development due to its good represented in Fig. 1 as a VModel. For all system software properties for the testing of reactive systems with continuous contributions such as interior light control, exterior light behaviour.InsectionIVtheTPTmethodisfurtherelaborated. control etc. independent models are designed (with Matlab/ [7]) based on a textual system specification andaresystematicallytestedonthebasisofadetailedtestplan C. AUTOSAR Standard (modelinloop,MIL).Afterasuccessfultest,themodelswill Theseriesdevelopmentdemonstratedthatforasuccessful be released for implementation and ECU integration. The realisationofthedevelopmentprocessdescribedaboveandfor models, together with the system specification, the test plan successful software integration, project specific coordination and the implemented model tests, will be handed over to the between the OEM and the respective suppliers regarding the supplier. The supplier is responsible for the model software interfaces, the software architecture, and the implementation, code generation, software module tests development process were necessary. With the publication of (softwareinloop,SIL)andintegrationofthesoftwaremodules the AUTOSAR standard [4], the essential elements for the intheECUstogetherwithbasicsoftware.Afterwards,theECU smooth integration of vehicle systems over OEMs and with the integrated software will be handed over back to suppliershavebeendefined and arenow availableas abasis DaimlerAGwherethecomponenttests(componenthardware forthedevelopmentofnewvehicles. inloop,CHIL),systemtests(systemhardwareinloop,SHIL) AUTOSARdefinesastandardisedsoftwarearchitecturefor and finally the integration into the vehicle with the ECUs, an integration process and the necessary exchange correspondingvehicleintegrationtestswillbeaccomplished. formats. The software architecture is distinguished in Forthefunctionaltestsofthedifferentdevelopmentstages applicationandbasicsoftwarepartswhich communicatewith thesinglesourceprincipleapplies,thismeansonlyoneartefact each other via a middleware (the RTE Real Time (thetextualsystemspecification)isusedasreference.Thus,the Environment)(seeFig.2).Theapplicationsoftware(thesetof testcasesofalldevelopmentstagesareearlyavailableandcan systemsoftware contributions on an ECU)isthereby divided thereforebeuniversallyused[3]. intomultiplesoftwarecomponents(SWCs).SWCsencapsulate andcharacterisethesoftwareandallowadataexchangeonly B. Methods for ModelTesting viawelldefinedinterfaces.Forthispurpose,portsarecreated thatarededicatedforaninterface. In the context of model development, there are different typesoftestmethodsforearlyvalidationofthesoftwarebeing At Daimler AG the first steps towards the AUTOSAR developed. The focus thereby is on the dynamic tests for the architecture for the next ECU generation in the area of body functionalvalidationofthemodels.Thebasisforsuchtestsis andcomfortarebeingcarriedout.Theexistingmodelsofthe theexecutionofthesoftwaretobetested(softwareundertest, system software contributions have been restructured and SUT) with systematically defined input data (testcases). For enhanced by AUTOSAR interfaces. The functionality which (1) Validation of distributed or neighbouring systems which Application Layer have functionally related SWCs on several ECUs. In particular the functional interaction of the SWCs can be validated and communication properties within defined AUTOSAR Runtime Environment (RTE) delaytolerancelimitscanbeanalyzed. System Memory - COM (2) Validation of functional aspects of SWCs as well as Services Services Services aspectsregardingtheaccesstoNVRAMandthechangeof Complex operatingmodes(startup,shutdown,etc.).Therefore,the ECU Abstraction Layer Drivers necessarybasicsoftwareserviceshavetobeidentifiedand implemented according to the AUTOSAR specification [15]. Microcontroller Abstraction Layer

III. REQUIREMENTS ENGINEERING ANALYSIS Microcontroller Due to the concept of virtual integration, it is possible to Figure2. AUTOSARsoftwarearchitecture furtherincreasethedegreeofmaturityofsystemspecifications and model based SWCs in early development stages. For waspreviouslyrealizedinahandcodedframesoftwarelayer 2 systemvalidationinreferencetotheusecasesdefinedabove, (e.g. signal conditioning) was included in the models. The additionaltestsarenecessaryintheearlydesignstageswhich standardsoftwarearchitectureisstillbasedontheestablished up to now could not be considered in the validation of Daimler standard core [13] and is amended by selected individualSWCs.Inordertodeterminesuchtests,ananalysis AUTOSAR software services such as NVRAM 3 ECUState of the requirements of existing system specifications was and COMManagement. For the development of the next carried out. Requirements which define implicit relationships Mercedes SClass generation, the implementation of a betweenSWCsthemselvesandthebasicsoftwareontheECUs completeAUTOSARbasicsoftwarestackisplanned[14]. weretherebyespeciallyinvestigated.Implicitrelationshipsare general preconditions for the system behaviour which in the Apartfromtheadaptationofthebehaviouralmodelsforthe earlydevelopmentstagesarenotyetcompleteandaretherefore system software contributions, a formal description of the not always specified as requirements. These implicit interfaces by means of SWCs and their interconnection is relationships often give freedom for erroneous interpretations according to AUTOSAR required for the construction of a atthefollowingdevelopmentphases. vehiclesystem.Incaseofdistributedsystems,communication artifacts(Kmatrices)alsohavetobeconsidered.Therefore,a A. Global Facts centraldatabaseisbeingmaintainedforsometimeatDaimler AG. In this database, interface and data type definitions are Asanassumptionfortheanalysisofsystemspecifications, storedbasedonAUTOSARandcanbeusedforthedefinition somebasicfactsarepresentedfirst: ofSWCports[14]. (1) System specifications comprise functional and non functionalrequirementswhichdescribethebehaviourofa D. Virtual Integration Concept system. The functional requirements are mostly signal The AUTOSAR conform model library which was orientedandspecifythetechnicalimplementation.Signal developed at Daimler AG and the formalized AUTOSAR orientatedrequirementsdescribethereactionbehaviourof system artifacts are already available in early development asystemwhichshouldresultfromavaluechangeofthe stages and build the basic elements for a virtual software systeminputsignals. integration. The Ccode generated out of the implementation (2) SWCs of a system are described in detail by individual models defines the system behaviour as it will be later on requirements. The requirements however do not always realizedintherealvehicle. describesignalsforindividualSWCsbutalsosignalsthat Inordertobeabletovirtuallyintegratethegeneratedcode, arecomposedofseveralSWCs. an appropriate tool is necessary in which the AUTOSAR (3) There are general requirements which must apply to an artifacts can be imported, configured, and eventually entire system. In addition, the requirements of supplemented. The tool must handle the communication and neighbouring systems must also apply (e.g. conditions schedulingmechanismwhichAUTOSARprovidesandshould suchasvehicleandclampstateswhichmustapplyforthe generatetheRTElayerautomatically.Inaddition,asimulation activationofneighbouringsystems). onaPChastobepossibletoallowavalidationofthespecified systemmodels.WiththeintroductionofAUTOSARsuchtools (4) TocheckaSWCagainstthespecification,atleastonetest areavailablewhichmeettheserequirements[5]. perrequirementwillbecarriedout. Through a virtual integration in the early development (5) Implicit relationships may result by requirements stages,thereisasetofusecasesthatarebecominginteresting. mentioned in (2) and (3). These relationships can not be ThemainusecasesarefromtheOEMperspective: testedin(4)sincenorequirementsaredefined.

B. Scenarios for System Validation Via the analysis of the system requirements, a number of 2 SoftwarelayerthatjointsOEMundsupplierspecifiedsoftware. scenariosweredevelopedwhichdescribeimplicitrelationships 3 NonVolatileRandomAccessMemory andarecurrentlydifficulttocheckintheearlystagesofsystem specification. The scenarios were classified by means of the Time states characteristicstobechecked,asfollows: guard 1 guard 2 guard 3 guard 4 … guard n-1 guard n (1) SWC and communication interfaces are specified by differentdevelopers.Thus,therearedifferentversionsof the interface descriptions regarding development time … whichdonotalwayshavetobesimultaneouslypresenton start action 1 action 2 action 3 action 4 action n2action n1 end allSWCs.Tocheckthedescriptionsforequality,astatic SUT output test can be carried out via AUTOSAR. However, the f handlingofvaluesbytheSWCbehaviourisnotchecked s (e.g.forsubsequentextensionsofSWCinterfaces). 2 (2) TheECUsarenotonlydependentamongthemselvesvia s1 buscommunicationbutarealsodependentfromeachother cp 1 cp2 cp 3 cp 4 cp n2 cp n1 t via hardware relationships. Individual ECUs can create appropriate function conditions for other ECUs, e.g. controlling of standbycurrent switches. Therefore, it is Figure3. TestpatternforthevalidationofSWCs necessary to examine whether all required SWCs for a system are in the same system state and whether not annotate actions through which the modification of the input definedstatescanarise. valuesoftheSUTiscarriedout.Thetransitionfromonestate machine state to another is triggered by a condition (guard). (3) ECUs are often powered in vehicle idle state and are in Mostly,timeconditionswillbeusedforthispurpose(e.g.wait sleep state. Via hardware or software initiated wakeup for10s).TheanalysisoftheoutputvaluesoftheSUTislimited methods they can switch into active state. By examining tothecorrespondingtimeintercepts(checkpoints)inwhichthe thewakeupfunctionalityinthedistributedsystem,itcan softwarebehaviourwhichistriggeredbyaspecificactioncan be shown that the system can be correctly enabled or bechecked.Inordertobeabletochecktheresultsofthetest disabled and that it does not come to an undesired run automatically, the expected software properties in these communicationduringsleepstates. time intercepts have to be specified. (e.g. due to python (4) Individual SWCs are partially dependent on data from assessmentscripts). neighbouring SWCs in order to represent the desired functionality. It must be validated whether the intended B. Adaption of TPT Pattern for System Tests functionality is reliably being carried out or terminated even at nondefined communication states. Specifically, Predominantly, only functional aspects were considered the execution of SWCs during the state change of a duringthetestingofindividualSWCsofasystem.Forthefront neighbouringSWCcanbeobserved. loading respectively to the identified scenarios additional aspects have to be comprised. This includes interface aspects (5) During inactive vehicle phases, the environmental for the composition of SWCs, control flow aspects for the conditions can change. However the data stored in the interactionofthe SWCs withthebasic softwareandnetwork NVRAMoftheECUispreserved.Hereistobevalidated aspectsforthecommunicationofdistributedsystems.Forthe whetherthesystemallowsnomisinterpretation. implementation of these aspects the test pattern which was (6) AsystemwhichisdistributedoverseveralECUsmaynot previouslyappliedisbeingadapted. be able to guarantee a strict synchronicity and therefore Interface-aspects: The validation of the interfaces in a fluctuate between being activated and deactivated with a composition of AUTOSARSWCs is being carried out as timedelay.Thebuscommunicationwillalsopossessdelay discussedinsectionIII.Bviaastaticcheck.Forthatpurpose, times. The additional system states that arise from these the interfaces and data elements of the connected ports are delayscanbecheckedforthedesiredbehaviour. checked for consistency. However, the handling of data element values through the SWC behaviour can not be IV. TEST PATTERNFOR FRONT LOADING validated by the static testing. A dynamic examination via a simulationoftheSWCcompositionisthusnecessary.Forthe Inordertodescribetheacquiredscenariosincoherencewith simulationthefunctionaltestcasesaresufficient.Therefore,no thetestmethodthatisdeployedintheareaofbodyandcomfort extensionofthetestpatternisnecessaryatthispoint. at Daimler AG, the test setup topic will be discussed in this section. For that purpose the TPT test method and the test Control flow aspects: For the interaction of SWCs with the scheme (pattern) which is currently being used are briefly ECUbasicsoftware,itisnecessarytoincludepartsofthebasic described and finally the necessary adaptations of the pattern software in the simulation model (see Fig. 4). The aim is to forthefrontloadinginthedevelopmentprocessarepresented. abstractasmuchaspossibleandtotakeintoaccountonlythe necessary AUTOSAR basic software modules. Hence, the A. Test Pattern for TPT configurationeffortofthemodulescanbekeptsmall.Forthe The description of the tests is carried out by the TPT selection of the necessary AUTOSAR modules regarding method using a special state machine notation via which the controlflowaspectsananalysiswasperformedin[15].Viathis statespaceoftheSUTbehaviourovertimecanbestripedinto analysistheAUTOSARservices:NVRAM,COM,andECU differentpartitions.Thegeneral patternforthemodellingand StateManager were identified. In order to control the analysisoftheTPTtestsisrepresentedinFig.3(forasimple simulationwiththeidentifiedservices sothat the desiredtest system with two states). The states of the state machine canberunthrough,astimulationoftheseservicesispartially necessary.FortheNVRAMManagement,theevaluationofthe Test model System model Network aspects: Due to the inclusion of communication properties in the simulation, not only time spots but also Main state machine SWC 1 SWC 3 specific time intervals ts (delay tolerance boundaries) are SWC 2 considered at the test assessment. The specification of the intervalscaneitherbespecifiedinthesystemspecificationor ECU state machine bedeterminedviathesimulation.Inthesecondcasethe new findingcanactasfeedbackforthesystemspecification. COM state machine ECU -State - NVRAM - COM - Manager Manager Manager V. EXPERIMENTAL EVALUATION Fortheillustrationoftheadaptedtestpattern,aninteriorlight systemmodelforthe next MercedesMClass generationwas Figure4. Simulationmodelforvalidationofsystems createdbasedonthe virtualintegration conceptintroduced in section II.D. The interior light system model is comprised of NVvaluesonthecorrespondingSWCinterfacesissufficient. fourSWCswhicharedistributedonthreedifferentbodyECUs However, the COM and ECUStateManager have to be andcommunicatewithoneanotherviaaCANandaLINbus stimulated in order to simulate the activation/deactivation of system(seeFig.6).TheILC(interiorlightcontrol)actshereas thebuscommunicationaswellasthestartup/shutdownofthe the master for the two clients (client front, ICF / client rear, ECUs.Therefore,tothemainstatemachineoftheprimarytest ICR)andtheoverheadcontrol(OHC). patterntwoadditionalteststatemachinesareadded(ECUand communication state machine) which are concurrently Themodelledinteriorlightsystemwastestedusingdiverse triggered by the actions of the main state machine via state simulation runs according to the scenarios worked out in requests (see Fig. 5). The ECU state machine determines the Section III.B. Of great interest is the run in Fig. 7 which currentstateoftheECUandpassesitthroughtotheSWCsvia particularly addresses scenarios (3), (4), and (6). In this test the simulated AUTOSARECUStateManager. For this run, cyclic activation requests of the master component ILC purposeeachSWChasaspecialsenderreceiverportaccording (topdiagram),leadtothecomputationofnominalPWMvalues to the AUTOSAR specification. The COM state machine (in percent) for the foot well light (ICF) and the dimmable determines whether or not the sending and receiving of ambient light (ICR) in the vehicle (bottom diagram). In the messages in a network at any given time is possible. The middle diagram the change of the ECU (0=off, 1=startup, signallingofthecommunicationstatestotheSWCsiscarried 2=run, 3=shutdown) and communication states (0=nocom, outviasocalledAUTOSARRTEStatusvalueswhichgivethe 1=com)isshown.Itcanbeobservedthattheexpectedsystem receiverstatusoftheSWCdataelements whosetransmission reaction takes place after the ECU is started up and the takes place via a bus. The generation of these status values communicationisactivated(time3s).Thereby,theILCandthe occursbythesimulatedAUTOSARCOMManager. ICFareintegratedontothesameECU,thereactionforthefoot welllighttakesplaceatthesametimeastheactivationrequest. Fortheambientlighthoweverthereisadelayof100msdueto ECU states COM states thetransmissionoftheILCoutputdataoveraCANbus.This req e1 req e2 req e3 req e4 req c1 req c3 delay represents the duration of one cycle run since the ILC outputdatawillbereadandprocessedbytheICFonecyclerun later. In case of communication bursts the transmission time willincreasesothatinaworstcasethedelaycanbe200msor off start run shut end no com end up down com evenmore. req e5 req c2 The assessment of the simulation run follows through a Time states Python script. Such a script is represented in Fig. 8 for the ambient light functionality of the interior light system. It is guard guard guard guard guard guard checkedwhetherthesystembehavesrespectivetotheECUand 1 2 3 4 … n-1 n the COMstatesasspecified.Inaddition,thetimedifferences areanalysedatthesystemresponse.I.e.whethertheresponse … timeiswithinthespecifieddelaytoleranceboundaries(t). init action 1 action 2 action 3 action 4 action n2action n1 end ICR ILC SUT output OHC f ICF s2 ECU ECU ECU mapping mapping ECU mapping s1 t1 t2 t3 t4 tn2 tn1 mapping

CBC LIN OHCM RBC cp 1 cp 2 cp 3 cp 4 cp n2 cp n1 t CAN

Figure5. AdaptionofTPTpatternforvalidationofsystems Figure6. SoftwarearchitectureandECUmappingforinteriorlightsystem reqs representedscenariosforsystemmodeltests.Forthatpurpose, 2 Illumination requests (ILC) a pattern based on the TPT method was defined and 1 0 s accordinglyadapted.Finally,theadaptedpatternwasdeployed 0 1 2 3 4 5 6 7 8 9 10 inacasestudyforthetestingofinteriorlightsystemmodel. states 3 ECU / COM states Duetothepresentedapproach,modeltestscanbereinforced 2 andthusthematuritydegreeofsystemspecificationsandSWC 1 modelscanbeincreasedintheearlystagesofdevelopment.In 0 s 0 1 2 3 4 5 6 7 8 9 10 anextsteptheapplicationoftheapproachisplannedinsystem series development. Thereby, our approach can be validated Footwell PWM (ICF) / Ambient PWM (ICR) % paralleltotheestablisheddevelopmentprocesswithrespectto 100 100ms the interaction of the several process stages and groups of people. 50 Finally,itmustbeemphasisedthattherearestillaspectsthat

100ms can only be tested with the availability of real hardware and 0 s other physical conditions. Therefore, only a partial front 0 1 2 3 4 5 6 7 8 9 10 loading cantakeplace.Thelatercomponent and system HIL Figure7. Simulationofambientandfootwellillumination testscanthereforenotbeomitted.

1: ### regular expressions for detection of rising edges REFERENCES 2: ### return value: array of according time intercepts 3: illumination_req = regexp([illumination(t) == 1]); [1] McKinsey: McKinsey Analysis. PTW HAWK survey, Institute for 4: ecu_com_active = regexp([ecu_state(t) == 2] and ProductionManagement,TechnicalUniversityofDarmstadt,2003. 5: [com_state(t) == 1]); 6: ambient_dimUp = regexp([ambient_light(t) > 0] and [2] J. Schäuffele, T. Zurawka: Automotive Software Engineering. ATZ 7: [ambient_light(t-0.1) == 0]); MTZFachbuch.Vieweg,Wiesbaden,2003. 8: [3] C. Dziobek, F. Wohlgemuth: Einsatz von AUTOSAR bei der 9: 10: ### check if ambient light ramped up correctly with respect to Modellierung von Komfort und Innenraumfunktionen, dSpace User 11: ### ECU/COM activation and a delay tolerance of 100ms Konferenz,München,2007. 12: during ecu_com_active: [4] AUTOSARGbR,Homepagehttp://www.autosar.org 13: if (abs(illumination_req[t].getStartTime() - 14: ambient_dimUp[t].getStartTime()) <= 0.1): [5] U.Eisenmann,D.Stichling,J.Stroop:EffizienteSoftwareEntwicklung 15: ambient_dimUp_ok := true; undVerifikationineinerAUTOSARWerkzeugkette.ATZElektronik, 16: ambient_dimUp_ok.setComment("ambient light ok"); 17: else: 2009. 18: ambient_dimUp_ok:= false; [6] M.Wernicke:AUTOSARaufdemWegindieSerie.ElektronikPraxis, 19: ambient_dimUp_ok.setComment("ambient light error"); 2008. [7] Matlab, Simulink, Stateflow, and RealTime Workshop. The Figure8. Assessmentscriptforthetestofambientlightfunctionality MathWorks,Homepagehttp://www.mathworks.com [8] M. Grochtmann, K. Grimm: Classification Trees for Partition Testing, The simulation run represented here describes typical Software testing, Verification & Reliability, Volume 3, Number 2, situations where system specification errors can occur which Wiley,pp.63–82,1993. untilnowwerefirstlycheckedinthesystemHIL.Throughthe [9] E. Lehmann: Time Partition Testing – Systematischer Test des kontinuierlichen Verhaltens eingebetteter Systeme, Ph.D. Thesis, simulationmodeldescribedhere,thisispossiblealreadyinthe TechnicalUniversityofBerlin,2003. systemdesignstage. [10] E. Bringmann, A. Krämer: Modellbasiertes Testen automobiler Steuergeräte. In: ICST, pp.485493, International Conference on VI. CONCLUSIONSAND FUTURE WORK SoftwareTesting,Verification,andValidation,2008. [11] A. Baresel, M. Conrad, S. Sadeghipour, J. Wegener: The Interplay Inthisstudy,scenariosforthemodeltestwererepresented betweenModelCoverageandCodeCoverage.In:Proc.of11.European from the system point of view. These scenarios describe Int.Conf.onSoftwareTesting,AnalysisandReview(EuroSTAR’03), implicit relationships of SWCs both among themselves and Amsterdam(NL),2003. also with the basic software on the ECUs. Up to now such [12] M. Conrad, I. Fey, H. Pohlheim: Automatisierung der Testauswertung für Steuergerätesoftware. In: 11. Internationaler Kongress „Elektronik relationshipshaveonlybeeninvestigatedinthelaterstagesof imKraftfahrzeug“(Tagungsband),VDIBerichte,Bd1789.Düsseldorf: development at component and system HIL. Due to the VDIVerlag,S299–315,2003. increasingcomplexityofthevehicleelectronicsystems,itwill [13] T.Weber,F.Wohlgemuth:DerDCStandardCoreSoftwareunddessen beinfuturenecessarytoconsidersuchscenariosearlierviaa Wertetreiber. Workshop Produktlinien und Architekturen für Software frontloadinginthedevelopmentprocess.Forthefrontloading imFahrzeug,2003. ofsystemtests,thesetupofcorrespondingsystemmodelsis [14] F.Wohlgemuth,C.Dziobek,T.Ringler:ErfahrungenbeiderEinführung needed. So far, the design of such models was not target der modellbasierten AUTOSARFunktionsentwicklung, Modellierung 2008,12.bis14.März–Berlin,2008. leading due to the great variety at the ECU software [15] A. Michailidis, B. Hedenetz, T. Ringler, S. Kowalewski: Virtuelle development.WiththepublicationoftheAUTOSARstandard, Integration von vernetzten Funktionen in frühen Entwicklungsphasen, the necessary artefacts andtoolsfordesignandsimulationof 28. Tagung „Elektronik im Kraftfahrzeug“, Dresden, Tagungsband “virtual”vehiclesystemswithreasonableeffortareforthefirst „ModerneElektronikimKraftfahrzeug“,2008. time available. In order to be able to test AUTOSAR system models,weintroducedanapproachthatformallydescribesthe