<!DOCTYPE Tree SYSTEM "IPSA.dtd">
<Tree chk="-398229064" type="Script" onEnd="default" onBackExit="back">
<Header>
<IFile>
<FileName name="script_telexx_updatedownloadfiatactionpreparation">
</FileName>
<Modif date="17/04/2012" user="cduteil" site="THESAU">
</Modif>
</IFile>
<ITool name="ime2" revision="7.3.2.0" exedate="02/04/2012">
</ITool>
</Header>
<precel>
<TreeInfo posc=7 posl=1 ident=11>
<Comment>Recherche du bon scenario d'update
</Comment>
</TreeInfo>
</precel>
<cel>
<Start posc=13 posl=3 destc=13 destl=5 ident=12>
</Start>
<Act posc=13 posl=7 destc=13 destl=9 ident=21>
<Comment>GetUpdateActionParameters
</Comment>
<TeleXX_TPM>
<TeleXX_GetUpdateActionParameters_TPM>
</TeleXX_GetUpdateActionParameters_TPM>
</TeleXX_TPM>
</Act>
<Act posc=13 posl=15 destc=13 destl=17 ident=22>
<Comment>STCAPI::GetNextUri
</Comment>
<TeleXX_TPM>
<TeleXX_GetNextURI_TPM validityCode="NO">
</TeleXX_GetNextURI_TPM>
</TeleXX_TPM>
</Act>
<End posc=13 posl=55 ident=29>
</End>
<Test posc=13 posl=9 destyesc=13 destyesl=11 destnoc=17 destnol=9 ident=30>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="EQUAL">
<Source>
<FloatVar name="VCHK">
</FloatVar>
</Source>
<Source>
<HexaInt>3
</HexaInt>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<Switch posc=13 posl=11 ident=31>
<Source>
<FloatVar name="VMEM">
</FloatVar>
</Source>
<SwitchTest type="EQUAL">
<Source>
<FloatNumber>1
</FloatNumber>
</Source>
<TargetCell destc=13 destl=13>
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc=27 destl=53>
</TargetCell>
</DefaultSwitchTarget>
</Switch>
<Test posc=13 posl=17 destyesc=13 destyesl=19 destnoc=27 destnol=53 ident=32>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="EQUAL">
<Source>
<FloatVar name="VCHK">
</FloatVar>
</Source>
<Source>
<HexaInt>3
</HexaInt>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<Switch posc=13 posl=19 ident=33>
<Source>
<FloatVar name="VMEM">
</FloatVar>
</Source>
<SwitchTest type="EQUAL">
<Source>
<FloatNumber>0
</FloatNumber>
</Source>
<TargetCell destc=27 destl=53>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<FloatNumber>1
</FloatNumber>
</Source>
<TargetCell destc=9 destl=19>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<FloatNumber>2
</FloatNumber>
</Source>
<TargetCell destc=13 destl=21>
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc=27 destl=53>
</TargetCell>
</DefaultSwitchTarget>
</Switch>
<Act posc=27 posl=55 destc=25 destl=55 ident=36>
<Comment>Aquittement négatif Serav
</Comment>
<TeleXX_TPM>
<TeleXX_SetActionAck_TPM>
<actionName>
<TextBuffer name="TELEXX_CURRENT_ACTION_NAME">
</TextBuffer>
</actionName>
<ackCode>
<TextBuffer name="TELEXX_ACK_CODE">
</TextBuffer>
</ackCode>
<ackLevel>
<TextBuffer name="TELEXX_ACK_LEVEL">
</TextBuffer>
</ackLevel>
<ackComment>
<TextBuffer name="TELEXX_ACK_COMMENT">
</TextBuffer>
</ackComment>
</TeleXX_SetActionAck_TPM>
</TeleXX_TPM>
</Act>
<Act posc=13 posl=5 destc=13 destl=7 ident=37>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="TELEXX_CONTENT_INJECTION_RETURN">
</TextBuffer>
</Destination>
</Clear>
<Clear>
<Destination>
<TextBuffer name="TELEXX_CURRENT_ACTION_NAME">
</TextBuffer>
</Destination>
</Clear>
<Clear>
<Destination>
<TextBuffer name="TELEXX_ACK_CODE">
</TextBuffer>
</Destination>
</Clear>
<Clear>
<Destination>
<TextBuffer name="TELEXX_ACK_LEVEL">
</TextBuffer>
</Destination>
</Clear>
<Clear>
<Destination>
<TextBuffer name="TELEXX_ACK_COMMENT">
</TextBuffer>
</Destination>
</Clear>
<Clear>
<Destination>
<TextBuffer name="DOWNLOAD_FILE_PRM">
</TextBuffer>
</Destination>
</Clear>
<Clear>
<Destination>
<TextBuffer name="DOWNLOAD_FILE_BIN">
</TextBuffer>
</Destination>
</Clear>
<Assignment>
<Source>
<ASCIIString value="OK">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="TELEXX_CONTENT_INJECTION_RETURN">
</TextBuffer>
</Destination>
</Assignment>
<Assignment>
<Source>
<ASCIIString value="UPDATE">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="TELEXX_CURRENT_ACTION_NAME">
</TextBuffer>
</Destination>
</Assignment>
<Assignment>
<Source>
<ASCIIString value="CHFFF">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="TELEXX_ACK_CODE">
</TextBuffer>
</Destination>
</Assignment>
<Assignment>
<Source>
<ASCIIString value="E">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="TELEXX_ACK_LEVEL">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Act posc=13 posl=48 destc=13 destl=50 ident=38>
<Comment>Demande de Déverouillage - Demandé tout le temps
</Comment>
<TeleXX>
<TeleXX_SetUnlockDemand_TPM>
</TeleXX_SetUnlockDemand_TPM>
</TeleXX>
</Act>
<Test posc=13 posl=50 destyesc=13 destyesl=52 destnoc=27 destnol=53 ident=39>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="EQUAL">
<Source>
<FloatVar name="VCHK">
</FloatVar>
</Source>
<Source>
<HexaInt>3
</HexaInt>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<Switch posc=13 posl=52 ident=40>
<Source>
<FloatVar name="VMEM">
</FloatVar>
</Source>
<SwitchTest type="EQUAL">
<Source>
<FloatNumber>0
</FloatNumber>
</Source>
<TargetCell destc=27 destl=53>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<FloatNumber>1
</FloatNumber>
</Source>
<TargetCell destc=13 destl=55>
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc=27 destl=53>
</TargetCell>
</DefaultSwitchTarget>
</Switch>
<SubTree posc=17 posl=33 destc=17 destl=38 ident=41 FileName="initcomm_can.s" IsCritical="NO">
<FilePath path="Vehicle\gen">
</FilePath>
</SubTree>
<Test posc=17 posl=38 destyesc=13 destyesl=48 destnoc=27 destnol=53 ident=42>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="EQUAL">
<Source>
<StandardValue name="TRUE">
</StandardValue>
</Source>
<Source>
<TextBuffer name="TELE_X250_FULLPROCEDURE">
</TextBuffer>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<Act posc=13 posl=21 destc=13 destl=23 ident=46>
<Comment>PrepareUpdate : setTeleFamille
</Comment>
<TeleXX_TPM>
<TeleXX_Proceed_Action_TPM>
<TeleXX_PrepareUpdateDownloadMMC_TPM>
</TeleXX_PrepareUpdateDownloadMMC_TPM>
</TeleXX_Proceed_Action_TPM>
</TeleXX_TPM>
</Act>
<Test posc=13 posl=23 destyesc=13 destyesl=25 destnoc=27 destnol=53 ident=47>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="EQUAL">
<Source>
<FloatVar name="VCHK">
</FloatVar>
</Source>
<Source>
<HexaInt>3
</HexaInt>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<Switch posc=13 posl=25 ident=48>
<Source>
<FloatVar name="VMEM">
</FloatVar>
</Source>
<SwitchTest type="EQUAL">
<Source>
<FloatNumber>0
</FloatNumber>
</Source>
<TargetCell destc=27 destl=53>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<FloatNumber>1
</FloatNumber>
</Source>
<TargetCell destc=13 destl=27>
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc=27 destl=53>
</TargetCell>
</DefaultSwitchTarget>
</Switch>
<Act posc=13 posl=13 destc=13 destl=15 ident=49>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="GET_NEXT_URI_FILE_TYPE">
</TextBuffer>
</Destination>
</Clear>
<Clear>
<Destination>
<TextBuffer name="GET_NEXT_URI_DIRECTORY">
</TextBuffer>
</Destination>
</Clear>
<Clear>
<Destination>
<TextBuffer name="GET_NEXT_URI_FILE_NAME">
</TextBuffer>
</Destination>
</Clear>
<Clear>
<Destination>
<TextBuffer name="GET_NEXT_URI_VALIDITY_CODE">
</TextBuffer>
</Destination>
</Clear>
</MathAndLogic>
</Act>
<Switch posc=9 posl=19 ident=50>
<Source>
<TextBuffer name="GET_NEXT_URI_FILE_TYPE">
</TextBuffer>
</Source>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="PRM">
</ASCIIString>
</Source>
<TargetCell destc=3 destl=13>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="BIN">
</ASCIIString>
</Source>
<TargetCell destc=5 destl=13>
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc=27 destl=53>
</TargetCell>
</DefaultSwitchTarget>
</Switch>
<Act posc=3 posl=13 destc=13 destl=13 ident=55>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="DOWNLOAD_FILE_PRM">
</TextBuffer>
</Destination>
</Clear>
<EvalExpression>
<Expression value="%%LBT_GET_NEXT_URI_DIRECTORY%%%%ADD%%%%LBT_GET_NEXT_URI_FILE_NAME%%">
</Expression>
<Destination>
<TextBuffer name="DOWNLOAD_FILE_PRM">
</TextBuffer>
</Destination>
</EvalExpression>
</MathAndLogic>
</Act>
<Act posc=5 posl=13 destc=13 destl=13 ident=56>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="DOWNLOAD_FILE_BIN">
</TextBuffer>
</Destination>
</Clear>
<EvalExpression>
<Expression value="%%LBT_GET_NEXT_URI_DIRECTORY%%%%ADD%%%%LBT_GET_NEXT_URI_FILE_NAME%%">
</Expression>
<Destination>
<TextBuffer name="DOWNLOAD_FILE_BIN">
</TextBuffer>
</Destination>
</EvalExpression>
</MathAndLogic>
</Act>
<MsgScreen posc=17 posl=55 destc=13 destl=55 ident=61 EnableBackJumps="DEFAULT" Printable="NO" EscapeBtn="NO" BackBtn="NO" OkBtn="YES" MsgType="INFO" WindowStyle="POPUP">
<Comment>Ecran 19 : couper et remettre le contact
</Comment>
<MsgItem>
<LabelContent>
<Paragraph>
<ThesauRequest>@P2138-POLUXXPERT
</ThesauRequest>
</Paragraph>
</LabelContent>
</MsgItem>
</MsgScreen>
<Act posc=13 posl=27 destc=13 destl=29 ident=65>
<ECUCommunication>
<ECUFunctionCall name="ISPROTOCOLCAN">
<Destination>
<TextBuffer name="TYPE_OF_PROTOCOL">
</TextBuffer>
</Destination>
</ECUFunctionCall>
</ECUCommunication>
</Act>
<Test posc=13 posl=31 destyesc=7 destyesl=31 destnoc=13 destnol=33 ident=66>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="EQUAL">
<Source>
<TextBuffer name="TYPE_OF_PROTOCOL">
<Position>
<ValPos>1
</ValPos>
</Position>
<Length>9
</Length>
</TextBuffer>
</Source>
<Source>
<ASCIIString value="IS_CAN|02">
</ASCIIString>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<Test posc=13 posl=29 destyesc=13 destyesl=31 destnoc=27 destnol=53 ident=67>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="EQUAL">
<Source>
<FloatVar name="VCHK">
</FloatVar>
</Source>
<Source>
<HexaInt>3
</HexaInt>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<Test posc=13 posl=33 destyesc=17 destyesl=33 destnoc=9 destnol=33 ident=68>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="EQUAL">
<Source>
<TextBuffer name="TYPE_OF_PROTOCOL">
<Position>
<ValPos>1
</ValPos>
</Position>
<Length>9
</Length>
</TextBuffer>
</Source>
<Source>
<ASCIIString value="IS_CAN|01">
</ASCIIString>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<SubTree posc=9 posl=33 destc=9 destl=38 ident=69 FileName="initcomm_k.s" IsCritical="NO">
<FilePath path="Vehicle\gen">
</FilePath>
</SubTree>
<Test posc=9 posl=38 destyesc=13 destyesl=48 destnoc=27 destnol=53 ident=70>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="EQUAL">
<Source>
<StandardValue name="TRUE">
</StandardValue>
</Source>
<Source>
<TextBuffer name="TELE_X250_FULLPROCEDURE">
</TextBuffer>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<SubTree posc=7 posl=31 destc=7 destl=38 ident=72 FileName="step1-ega_MCV.s" IsCritical="NO">
<FilePath path="Vehicle\gen">
</FilePath>
</SubTree>
<Test posc=7 posl=38 destyesc=13 destyesl=48 destnoc=27 destnol=53 ident=73>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="EQUAL">
<Source>
<StandardValue name="TRUE">
</StandardValue>
</Source>
<Source>
<TextBuffer name="TELE_MCV_FULLPROCEDURE">
</TextBuffer>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<SubTree posc=27 posl=53 destc=27 destl=55 ident=75 FileName="script_telexx_updateError.s" IsCritical="NO">
<FilePath path="TeleXX_TPM">
</FilePath>
</SubTree>
<Act posc=25 posl=55 destc=17 destl=55 ident=76>
<Comment>Création du message d'erreur
</Comment>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="TELEXX_ERROR_TYPE">
</TextBuffer>
</Destination>
</Clear>
<Assignment>
<Source>
<ASCIIString value="COM">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="TELEXX_ERROR_TYPE">
</TextBuffer>
</Destination>
</Assignment>
<Assignment>
<Source>
<ASCIIString value="@P1880-POLUXXPERT">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="DOWNLOAD_ERROR">
</TextBuffer>
</Destination>
</Assignment>
<Assignment>
<Source>
<ASCIIString value="@\n">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="SEPARATOR_ERROR_MSG">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
<TeleXX_TPM>
<TeleXX_GetMessageFromCode_TPM auto="NO">
<actionName>
<TextBuffer name="TELEXX_CURRENT_ACTION_NAME">
</TextBuffer>
</actionName>
<errorType>
<TextBuffer name="TELEXX_ERROR_TYPE">
</TextBuffer>
</errorType>
<errorCode>
<TextBuffer name="TELEXX_ACK_CODE">
</TextBuffer>
</errorCode>
<errorLevel>
<TextBuffer name="TELEXX_ACK_LEVEL">
</TextBuffer>
</errorLevel>
<errorComment>
<TextBuffer name="TELEXX_ACK_COMMENT">
</TextBuffer>
</errorComment>
<messageResult>
<TextBuffer name="TELEXX_ERROR_MSG_RESULT">
</TextBuffer>
</messageResult>
</TeleXX_GetMessageFromCode_TPM>
</TeleXX_TPM>
<MathAndLogic>
<EvalExpression>
<Expression value="%%LBT_DOWNLOAD_ERROR%%%%ADD%%%%LBT_SEPARATOR_ERROR_MSG%%%%ADD%%%%LBT_TELEXX_ERROR_MSG_RESULT%%">
</Expression>
<Destination>
<TextBuffer name="ERROR_MSG">
</TextBuffer>
</Destination>
</EvalExpression>
</MathAndLogic>
</Act>
<Switch posc=17 posl=9 ident=77>
<Source>
<FloatVar name="VMEM">
</FloatVar>
</Source>
<SwitchTest type="EQUAL">
<Source>
<FloatNumber>0
</FloatNumber>
</Source>
<TargetCell destc=27 destl=53>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<FloatNumber>2
</FloatNumber>
</Source>
<TargetCell destc=27 destl=53>
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc=27 destl=53>
</TargetCell>
</DefaultSwitchTarget>
</Switch>
</cel>
</Tree>
