<!DOCTYPE Tree SYSTEM "IPSA.dtd">
<Tree chk="93056885" type="Script" onEnd="default" onBackExit="back">
<Header>
<IFile>
<FileName name="script_telexx_updateaction">
</FileName>
<Modif date="07/01/2013" user="vteboul" site="THESAU">
</Modif>
</IFile>
<ITool name="ime2" revision="7.3.2.2" exedate="11/12/2012">
</ITool>
</Header>
<precel>
<TreeInfo posc=1 posl=1 ident=10>
<Comment>Action de update TeleXX_TPM
</Comment>
</TreeInfo>
</precel>
<cel>
<Start posc=5 posl=2 destc=5 destl=4 ident=11>
</Start>
<End posc=43 posl=22 ident=14>
</End>
<Act posc=39 posl=22 destc=43 destl=22 ident=15>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="TELEXX_PROCEED_ACTION_RETURN">
</TextBuffer>
</Destination>
</Clear>
<Assignment>
<Source>
<TextBuffer name="TELEXX_UPDATE_ACTION_RETURN">
</TextBuffer>
</Source>
<Destination>
<TextBuffer name="TELEXX_PROCEED_ACTION_RETURN">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Switch posc=11 posl=4 ident=16>
<Source>
<TextBuffer name="TELEXX_UPDATE_ACTION_RETURN">
</TextBuffer>
</Source>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="OK">
</ASCIIString>
</Source>
<TargetCell destc=11 destl=18>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="FAILED">
</ASCIIString>
</Source>
<TargetCell destc=39 destl=22>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="COM_ERROR">
</ASCIIString>
</Source>
<TargetCell destc=39 destl=22>
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc=39 destl=22>
</TargetCell>
</DefaultSwitchTarget>
</Switch>
<SubTree posc=11 posl=26 destc=23 destl=22 ident=26 FileName="script_telexx_prepareTPM_auto.s" IsCritical="NO">
<FilePath path="TeleXX_TPM">
</FilePath>
</SubTree>
<Test posc=23 posl=22 destyesc=25 destyesl=8 destnoc=39 destnol=22 ident=41>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="EQUAL">
<Source>
<TextBuffer name="TPM_STEP_STATUS">
</TextBuffer>
</Source>
<Source>
<ASCIIString value="OK">
</ASCIIString>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<Act posc=7 posl=4 destc=11 destl=4 ident=42>
<TeleXX_TPM>
<TeleXX_Proceed_Action_TPM>
<TeleXX_Update_TPM>
</TeleXX_Update_TPM>
</TeleXX_Proceed_Action_TPM>
</TeleXX_TPM>
</Act>
<Test posc=5 posl=22 destyesc=5 destyesl=26 destnoc=7 destnol=4 ident=43>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="EQUAL">
<Source>
<TextBuffer name="NEED_TELECODING_INDEX">
</TextBuffer>
</Source>
<Source>
<ASCIIString value="YES">
</ASCIIString>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<Act posc=5 posl=26 destc=7 destl=4 ident=44>
<ECUCommunication>
<ReadECUData>
<ECUParameter Name="CONFIG_INDICE_TELECODAGE" Format="Processed">
<Destination>
<FloatVar name="V0">
</FloatVar>
</Destination>
</ECUParameter>
</ReadECUData>
</ECUCommunication>
</Act>
<Switch posc=11 posl=18 ident=46>
<Source>
<TextBuffer name="OPERATION_TYPE">
</TextBuffer>
</Source>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="Download">
</ASCIIString>
</Source>
<TargetCell destc=11 destl=20>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="Telecoding">
</ASCIIString>
</Source>
<TargetCell destc=11 destl=24>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="GenericTrace">
</ASCIIString>
</Source>
<TargetCell destc=11 destl=22>
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc=11 destl=20>
</TargetCell>
</DefaultSwitchTarget>
</Switch>
<Act posc=25 posl=8 destc=25 destl=6 ident=48>
<Comment>Demande de Déverouillage - Demandé tout le temps
</Comment>
<TeleXX>
<TeleXX_SetUnlockDemand_TPM>
</TeleXX_SetUnlockDemand_TPM>
</TeleXX>
</Act>
<Switch posc=25 posl=6 ident=49>
<Source>
<TextBuffer name="TELEXX_UPDATE_ACTION_RETURN">
</TextBuffer>
</Source>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="OK">
</ASCIIString>
</Source>
<TargetCell destc=39 destl=22>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="FAILED">
</ASCIIString>
</Source>
<TargetCell destc=39 destl=22>
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc=39 destl=22>
</TargetCell>
</DefaultSwitchTarget>
</Switch>
<Act posc=5 posl=4 destc=5 destl=8 ident=50>
<MathAndLogic>
<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>
<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=5 posl=8 destc=5 destl=10 ident=51>
<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>
<Act posc=5 posl=10 destc=5 destl=12 ident=52>
<Comment>STCAPI::GetNextUri
</Comment>
<TeleXX_TPM>
<TeleXX_GetNextURI_TPM validityCode="NO">
</TeleXX_GetNextURI_TPM>
</TeleXX_TPM>
</Act>
<Test posc=5 posl=12 destyesc=5 destyesl=14 destnoc=39 destnol=22 ident=53>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="EQUAL">
<Source>
<FloatVar name="VCHK">
</FloatVar>
</Source>
<Source>
<HexaInt>3
</HexaInt>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<Act posc=5 posl=16 destc=5 destl=18 ident=54>
<Comment>PrepareUpdate
</Comment>
<TeleXX_TPM>
<TeleXX_Proceed_Action_TPM>
<TeleXX_PrepareUpdate_TPM>
</TeleXX_PrepareUpdate_TPM>
</TeleXX_Proceed_Action_TPM>
</TeleXX_TPM>
</Act>
<Switch posc=5 posl=14 ident=55>
<Source>
<FloatVar name="VMEM">
</FloatVar>
</Source>
<SwitchTest type="EQUAL">
<Source>
<FloatNumber>0
</FloatNumber>
</Source>
<TargetCell destc=39 destl=22>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<FloatNumber>1
</FloatNumber>
</Source>
<TargetCell destc=1 destl=14>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<FloatNumber>2
</FloatNumber>
</Source>
<TargetCell destc=5 destl=16>
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc=39 destl=22>
</TargetCell>
</DefaultSwitchTarget>
</Switch>
<Switch posc=1 posl=14 ident=56>
<Source>
<TextBuffer name="GET_NEXT_URI_FILE_TYPE">
</TextBuffer>
</Source>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="TXT">
</ASCIIString>
</Source>
<TargetCell destc=1 destl=8>
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc=1 destl=8>
</TargetCell>
</DefaultSwitchTarget>
</Switch>
<Act posc=1 posl=8 destc=5 destl=8 ident=57>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="DOWNLOAD_FILE_CODE">
</TextBuffer>
</Destination>
</Clear>
<EvalExpression>
<Expression value="%%LBT_GET_NEXT_URI_DIRECTORY%%%%ADD%%%%LBT_GET_NEXT_URI_FILE_NAME%%">
</Expression>
<Destination>
<TextBuffer name="DOWNLOAD_FILE_CODE">
</TextBuffer>
</Destination>
</EvalExpression>
</MathAndLogic>
</Act>
<Switch posc=11 posl=22 ident=58>
<Comment>DOWNLOAD 48 TELECODING 49 SETTINGS 80
</Comment>
<Source>
<TextBuffer name="TELEXX_UPDATE_TYPE">
</TextBuffer>
</Source>
<SwitchTest type="EQUAL">
<Source>
<TextBuffer name="TELEXX_STCAPI_CONSTANT_SERVICES_DOWNLOAD">
</TextBuffer>
</Source>
<TargetCell destc=25 destl=8>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<TextBuffer name="TELEXX_STCAPI_CONSTANT_SERVICES_TELECODING">
</TextBuffer>
</Source>
<TargetCell destc=11 destl=24>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<TextBuffer name="TELEXX_STCAPI_CONSTANT_SERVICES_SETTINGS">
</TextBuffer>
</Source>
<TargetCell destc=25 destl=8>
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc=11 destl=26>
</TargetCell>
</DefaultSwitchTarget>
</Switch>
<Switch posc=11 posl=20 ident=59>
<Comment>Switch en fonction du type d'update
</Comment>
<Source>
<TextBuffer name="TELEXX_UPDATE_TYPE">
</TextBuffer>
</Source>
<SwitchTest type="EQUAL">
<Source>
<TextBuffer name="TELEXX_STCAPI_CONSTANT_SERVICES_DOWNLOAD">
</TextBuffer>
</Source>
<TargetCell destc=25 destl=8>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<TextBuffer name="TELEXX_STCAPI_CONSTANT_SERVICES_TELECODING">
</TextBuffer>
</Source>
<TargetCell destc=11 destl=24>
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc=25 destl=8>
</TargetCell>
</DefaultSwitchTarget>
</Switch>
<Test posc=11 posl=24 destyesc=11 destyesl=26 destnoc=25 destnol=8 ident=61>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="EQUAL">
<Source>
<TextBuffer name="TELECODING_TYPE">
</TextBuffer>
</Source>
<Source>
<ASCIIString value="TPM">
</ASCIIString>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<Switch posc=5 posl=18 ident=62>
<Source>
<TextBuffer name="TELEXX_UPDATE_ACTION_RETURN">
</TextBuffer>
</Source>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="FAILED">
</ASCIIString>
</Source>
<TargetCell destc=39 destl=22>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="COM_ERROR">
</ASCIIString>
</Source>
<TargetCell destc=39 destl=22>
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc=5 destl=22>
</TargetCell>
</DefaultSwitchTarget>
</Switch>
</cel>
</Tree>
