You are on page 1of 63

<?xml version="1.0" encoding="EUC-KR"?

>
<toperations>
<toperation name="DiagPortLock">
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="DiagPortLock">
<req_struct>
<field name="cmd_code"
type="BYTE"
value="161"/>
<field name="sub_cmd_code"
type="WORD"/>
<field name="sub_cmd_code2"
type="BYTE"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
type="BYTE"
check="161"/>
<field name="sub_cmd_code"
type="WORD"/>
<field name="ret_stat_code"
type="BYTE"/>
<field name="buffer"
type="BYTE[500]"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="DloadEMMCImagePartitionErase">
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="DloadEMMCImagePartitionErase">
<req_struct>
<field name="cmd_code"
type="BYTE"
value="53"/>
<field name="err_code"
type="BYTE"/>
<field name="partition_cmd"
type="DWORD"/>
<field name="partition_number"
type="DWORD"/>
<field name="partition_name"
type="BYTE[20]"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
type="BYTE"
check="53"/>
<field name="err_code"
type="BYTE"/>
<field name="partition_cmd"
type="DWORD"/>
<field name="partition_number"
type="DWORD"/>
<field name="partition_name"
type="BYTE[20]"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="TrfSecCodeCommand">
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="TrfSecCodeCommand">
<req_struct>

TE"

<field name="CmdCode"

type="BY

<field name="SecCode"

type="DW

</req_struct>
<rsp_struct>
<field name="CmdCode"

type="BY

value="159"/>

ORD"/>

TE"

check="159"/>
</rsp_struct>
</cmd_struct>

TE"

</tcall>
</toperation>
<toperation name="SimpleCommand">
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="SimpleCommand">
<req_struct>
<field name="CmdCode"
value=""/>
</req_struct>
<rsp_struct>
<field name="CmdCode"

type="BY

type="BY

TE"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="DiagNoOperation">
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="2000" />
<cmd_struct name="NoOperationCmd">
<req_struct>
<field name="CmdCode"
TE"
value="6"/>
</req_struct>
<rsp_struct>
<field name="CmdCode"
TE"
value="2"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="DiagTestModeSimpleCommand">
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="30000" />
<cmd_struct name="DiagTestModeSimpleCommand">
<req_struct>
<field name="cmd"
TE" value="250"/>
<field name="sub_cmd"
RD"/>
<field name="test_mode"
RD"/>
</req_struct>
<rsp_struct>
<field name="cmd"
TE" check="250"/>
<field name="sub_cmd"
RD"/>
<field name="ret_stat_code"
TE"/>

type="BY

type="BY

type="BY
type="WO
type="WO

type="BY
type="WO
type="BY

<field name="dummy"

type="BY

TE[64]"/>
</rsp_struct>
</cmd_struct>

TE"

</tcall>
</toperation>
<!-- ================ Pre-paid Phone Setting =================-->
<toperation name="DiagPrePaidPhoneCmd">
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="PrePaidPhoneCmd">
<req_struct>
<field name="CmdCode"
type="BY
value="204"/>
<field name="SubCmd"
type="BY

TE"/>
<field name="is_ok"

type="BY

<field name="mark_key"

type="BY

TE"/>
TE"

value="97"/>
</req_struct>
<rsp_struct>
<field name="CmdCode"

TE"

type="BY

value="204"/>
<field name="SubCmd"

type="BY

<field name="is_ok"

type="BY

<field name="prepay_flag"

type="BY

TE"/>
TE"/>
TE"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<!-- ======================= SRD Type ========================-->
<toperation name="DiagDLTimeType">
<tcall class="comm" method="SetCmdStructData">
<packet_struct name="DLTimeType">
<field name="Year"
type="WORD"/>
<field name="Month"
type="WORD"/>
<field name="Day"
type="WORD"/>
<field name="Hour"
type="WORD"/>
<field name="Minute"
type="WORD"/>
<field name="Second"
type="WORD"/>
</packet_struct>
</tcall>
</toperation>
<toperation name="DiagDLInfoType">
<tcall class="comm" method="SetCmdStructData">
<packet_struct name="DLInfoType">
<field name="DLL_Ver"
type="BYTE[32]"/
>
<field name="FW_Ver"

type="BYTE[32]"/

<field name="PRL_Ver"

type="BYTE[32]"/

<field name="Script_Ver"

type="BYTE[32]"/

<field name="DLTime"

type="DLTimeType

<field name="Reserved1"

type="BYTE[32]"/

>
>
>
"/>

>
<field name="Reserved2"

type="BYTE[32]"/

<field name="Reserved3"

type="BYTE[32]"/

>
>

TE"
TE"
ORD"
ORD"
ORD"

TE"
TE"
ORD"

</packet_struct>
</tcall>
</toperation>
<toperation name="DiagSRDDIDInit">
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="SRDDIDInit">
<req_struct>
<field name="CmdCode"
value="249"/>
<field name="SubCmd"
value="4"/>
<field name="ErrCode"
value="0"/>
<field name="PacketVersion"
value="0x1000"/>
<field name="Size"
value="0x0e"/>
</req_struct>
<rsp_struct>
<field name="CmdCode"
check="249"/>
<field name="SubCmd"
check="4"/>
<field name="ErrCode"
check="0"/>
<field name="PacketVersion"

type="BY
type="BY
type="DW
type="DW
type="DW

type="BY
type="BY
type="DW
type="DW

ORD"/>
<field name="Size"

type="DW

<field name="BackupUsed"

type="BY

<field name="BinaryClass"

type="BY

<field name="FactoryRest"

type="BY

<field name="DLInfo"

type="DL

ORD"/>
TE"/>
TE"/>
TE"/>
InfoType"/>
</rsp_struct>
</cmd_struct>

TE"
TE"
ORD"

</tcall>
</toperation>
<toperation name="DiagSetExtraNVBackupItem">
<getenv name="Operation"/>
<getenv name="NVEnum"/>
<getenv name="Nam"/>
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="3000"/>
<cmd_struct name="SetExtraNVBackupItem">
<req_struct>
<field name="CmdCode"
value="249"/>
<field name="SubCmd"
value="2"/>
<field name="ErrCode"
value="0"/>

type="BY
type="BY
type="DW

ORD"

value="0x1000"/>

ORD"

value="0x97"/>

TE"

value="$Operation"/>

ORD"

value="$NVEnum"/>

ORD"

value="$Nam"/>

<field name="PacketVersion"

type="DW

<field name="Size"

type="DW

<field name="Operation"

type="BY

<field name="NVEnum"

type="DW

<field name="Nam"

type="DW

<field name="Data"

type="BY

TE[128]"/>
</req_struct>
<rsp_struct>
<field name="CmdCode"
TE"

check="249"/>

TE"

check="2"/>

ORD"

check="0"/>

type="BY

<field name="SubCmd"

type="BY

<field name="ErrCode"

type="DW

<field name="PacketVersion"

type="DW

<field name="Size"

type="DW

<field name="Usage"

type="BY

<field name="NVEnum"

type="DW

<field name="Nam"

type="DW

<field name="Data"

type="BY

<field name="Buffer"

type="BY

ORD"/>
ORD"/>
TE"/>
ORD"/>
ORD"/>
TE[128]"/>
TE[1928]"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>

TE"
TE"
ORD"
ORD"
ORD"

<toperation name="DiagWriteExtraPRL">
<getenv name="more"/>
<getenv name="nam"/>
<getenv name="seq_num"/>
<getenv name="file_size"/>
<getenv name="PRLDataSize"/>
<getenv name="data"/>
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="3000"/>
<cmd_struct name="WriteExtraPRL">
<req_struct>
<field name="CmdCode"
value="249"/>
<field name="SubCmd"
value="3"/>
<field name="ErrCode"
value="0"/>
<field name="PacketVersion"
value="0x1000"/>
<field name="PacketSize"
value="0x81f"/>

type="BY
type="BY
type="DW
type="DW
type="DW

TE"

value="$more"/>

ORD"

value="$nam"/>

ORD"

value="$seq_num"/>

ORD"

value="$file_size"/>

ORD"

value="$PRLDataSize"/>

TE[2048]"

value="$data"

TE"

check="249"/>

TE"

check="3"/>

ORD"

check="0"/>

<field name="more"

type="BY

<field name="nam"

type="DW

<field name="SeqNum"

type="DW

<field name="PRLFileSize"

type="DW

<field name="PRLDataSize"

type="DW

<field name="Data"
valuetype="ARR"/>
</req_struct>
<rsp_struct>
<field name="CmdCode"

type="BY

type="BY

<field name="SubCmd"

type="BY

<field name="ErrCode"

type="DW

<field name="PacketVersion"

type="DW

<field name="Size"

type="DW

<field name="Operation"

type="BY

<field name="NVEnum"

type="DW

<field name="Nam"

type="DW

<field name="Data"

type="BY

ORD"/>
ORD"/>
TE"/>
ORD"/>
ORD"/>
TE[2048]"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>

TE"
TE"

<toperation name="DiagNVSelfRestoreEnvInfo">
<getenv name="Usage"/>
<getenv name="BinType"/>
<getenv name="FR"/>
<getenv name="SRDReset"/>
<getenv name="DLLVer"/>
<getenv name="BinVer"/>
<getenv name="PrlVer"/>
<getenv name="ScrVer"/>
<getenv name="Year"/>
<getenv name="Month"/>
<getenv name="Day"/>
<getenv name="Hour"/>
<getenv name="Second"/>
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="3000"/>
<cmd_struct name="NVSelfRestoreEnvInfo">
<req_struct>
<field name="CmdCode"
value="249"/>
<field name="SubCmd"
value="0"/>
<field name="ErrCode"

type="BY
type="BY
type="DW

ORD"

value="0"/>

ORD"

value="0x1000"/>

ORD"

value="0xfe"/>

TE"

value="$Usage"/>

TE"

value="$BinType"/>

TE"

value="$FR"/>

TE"

value="$SRDReset"/>

<field name="PacketVersion"

type="DW

<field name="Size"

type="DW

<field name="Usage"

type="BY

<field name="BinType"

type="BY

<field name="FR"

type="BY

<field name="SRDReset"

type="BY

<field
TE[32]" value="$DLLVer" valuetype="ARR"/>
<field
TE[32]" value="$BinVer" valuetype="ARR"/>
<field
TE[32]" value="$PrlVer" valuetype="ARR"/>
<field
TE[32]" value="$ScrVer" valuetype="ARR"/>
<field
RD"
value="$Year"/>
<field
RD"
value="$Month"/>
<field
RD"
value="$Day"/>
<field
RD"
value="$Hour"/>
<field
RD"
value="$Minute"/>
<field
RD"
value="$Second"/>
<field
TE[32]"/>
<field
TE[32]"/>
<field
TE[32]"/>
</req_struct>
<rsp_struct>
<field
TE"
check="249"/>
<field
TE"
check="0"/>
<field
ORD"
check="0"/>
<field
ORD"/>
<field
ORD"/>
<field
TE"/>
<field
TE"/>
<field
TE"/>
<field
InfoType"/>
<field

name="DllVer"

type="BY

name="BinVer"

type="BY

name="PrlVer"

type="BY

name="ScrVer"

type="BY

name="Year"

type="WO

name="Month"

type="WO

name="Day"

type="WO

name="Hour"

type="WO

name="Minute"

type="WO

name="Second"

type="WO

name="ComputerName"

type="BY

name="reserved2"

type="BY

name="reserved3"

type="BY

name="CmdCode"

type="BY

name="SubCmd"

type="BY

name="ErrCode"

type="DW

name="PacketVersion"

type="DW

name="Size"

type="DW

name="BackupUsed"

type="BY

name="BinaryClass"

type="BY

name="FactoryRest"

type="BY

name="DLInfo"

type="DL

name="Buffer"

type="BY

TE[1826]"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<!-- ======================= Fota Type =======================-->
<toperation name="FOTA_GetStartBlockInfo">
<tcall class="comm" method="SetCmdStructData">
<cmd_struct name="FOTA_GetStartBlockInfo">
<req_struct>
<field name="cmd_code"
type="BY
TE" value="245" />
<field name="sub_cmd"
type="BY
TE" value="0" />
<field name="start_block"
type="WO
RD"/>
<field name="delta_offset"
type="BY
TE"/>
<field name="limit_block"
type="WO
RD"/>
<field name="success"
type="BY
TE"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
type="BY
TE"/>
<field name="sub_cmd"
type="BY
TE"/>
<field name="start_block"
type="WO
RD"/>
<field name="delta_offset"
type="BY
TE"/>
<field name="limit_block"
type="WO
RD"/>
<field name="success"
type="BY
TE"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<!-- ======================= SMS Data Type =======================-->
<toperation name="DiagMtAddressType">
<tcall class="comm" method="SetCmdStructData">
<packet_struct name="MtAddressType">
<field name="smsAddrss"
type="BY
TE[49]"/>
<field name="addrLength"
type="BY
TE"/>
<field name="smsStatus"
type="BY
TE"/>
<field name="smsSentTime"
type="DWORD"/>
<field name="smsDelackTime"
type="DWORD"/>
</packet_struct>
</tcall>
</toperation>
<toperation name="DiagMtMessageType">
<tcall class="comm" method="SetCmdStructData">

<packet_struct name="MtMessageType">
<field name="pIS637Data"

type="BY

TE[20][256]"/>
<field name="uSizeofData"

type="WO

RD[20]"/>
<field name="isRead"
<field name="addressInfo0"

type="BYTE"/>
type="memtrans_a

<field name="addressInfo1"

type="memtrans_a

<field name="addressInfo2"

type="memtrans_a

<field name="addressInfo3"

type="memtrans_a

<field name="addressInfo4"

type="memtrans_a

<field name="addressInfo5"

type="memtrans_a

<field name="addressInfo6"

type="memtrans_a

<field name="addressInfo7"

type="memtrans_a

<field name="addressInfo8"

type="memtrans_a

<field name="addressInfo9"

type="memtrans_a

<field name="sms_save_type"

type="DWORD"/>

ddress_type"/>
ddress_type"/>
ddress_type"/>
ddress_type"/>
ddress_type"/>
ddress_type"/>
ddress_type"/>
ddress_type"/>
ddress_type"/>
ddress_type"/>
<!-- enum type-->
</packet_struct>
</tcall>
</toperation>
<toperation name="DiagMtGetSmsCount">
<tcall class="comm" method="SetCmdStructData">
<param name="waiting_time" value="3000" />
<cmd_struct name="MtGetSmsCount">
<req_struct>
<field name="CmdCode"
TE"
value="246"/>
<field name="SubCmd"
TE"
value="0"/>
<field name="Success"
TE"
value="0" />
<field name="InboxCount"
type="WORD"
value="0" />
<field name="OutboxCount"
RD"
value="0" />
<field name="DraftCount"
type="WORD"
value="0" />
<field name="SMSData"
MessageType"
value="0" />
</req_struct>
<rsp_struct>
<field name="CmdCode"
TE"
value="241"/>
<field name="SubCmd"
TE"
/>
<field name="Success"
TE"
/>
<field name="InboxCount"
type="WORD"
/>

type="BY
type="BY
type="BY

type="WO

type="Mt

type="BY
type="BY
type="BY

<field name="OutboxCount"
RD"

type="WO

/>
<field name="DraftCount"

type="WORD"

/>

MessageType"

/>

<field name="SMSData"
</rsp_struct>

type="Mt

</cmd_struct>
</tcall>
</toperation>
<toperation name="DiagMtReadSms">
<tcall class="comm" method="SetCmdStructData">
<param name="waiting_time" value="3000" />
<cmd_struct name="MtReadSms">
<req_struct>
<field name="CmdCode"
type="BY
TE"
value="246"/>
<field name="SubCmd"
type="BY
TE"
value="1"/>
<field name="Success"
type="BY
TE"
value="0" />
<field name="InboxCount"
type="WORD"
value="0" />
<field name="OutboxCount"
type="WO
RD"
value="0" />
<field name="DraftCount"
type="WORD"
value="0" />
<field name="SMSData"
type="Mt
MessageType"
value="0" />
</req_struct>
<rsp_struct>
<field name="CmdCode"
type="BY
TE"
value="241"/>
<field name="SubCmd"
type="BY
TE"
/>
<field name="Success"
type="BY
TE"
/>
<field name="InboxCount"
type="WORD"
/>
<field name="OutboxCount"
type="WO
RD"
/>
<field name="DraftCount"
type="WORD"
/>
<field name="SMSData"
type="Mt
MessageType"
/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<!-- ======================= WMC Data Type =======================-->
<toperation name="DiagWmcDateTimeType">
<tcall class="comm" method="SetCmdStructData">
<packet_struct name="WmcDateTimeType">
<field name="Year"
type="WORD"/>
<field name="Month"
type="WORD"/>
<field name="Day"
type="WORD"/>
<field name="Hour"
type="WORD"/>
<field name="Minute"
type="WORD"/>
<field name="Second"
type="WORD"/>
<field name="Millisecond"
type="WO
RD"/>
<field name="MinuteFromUTC"
type="DWORD"/>

</packet_struct>
</tcall>
</toperation>
<toperation name="DiagWmcRecurRuleType">
<tcall class="comm" method="SetCmdStructData">
<packet_struct name="WmcRecurRuleType">
<field name="Freq"
type="BYTE"/>
<field name="Interval"
type="DWORD"/>
<field name="Until"
type="WmcDateTim
eType"/>
<field name="Count"
type="DWORD"/>
<field name="MonthDayMinus"
type="DWORD"/>
<field name="MonthDayPlus"
type="DWORD"/>
<field name="Month"
type="WORD"/>
<field name="Day"
type="BYTE"/>
<field name="DayInterval"
type="BY
TE"/>
<field name="UntilLocalTime"
type="BYTE"/>
</packet_struct>
</tcall>
</toperation>
<toperation name="DiagWmcContactDataType3">
<tcall class="comm" method="SetCmdStructData">
<packet_struct name="WmcContactDataType3">
<field name="name"
type="BYTE[33]"/
>
<field name="groupIndex"
type="WO
RD"/>
<field name="email"
type="BYTE[2][49
]"/>
<field name="Ringone"
type="WORD"/>
<field name="MsgRingtone"
type="WORD"/>
<field name="PicIndex"
type="WORD"/>
<field name="Number"
type="BYTE[5][49
]"/>
<field name="DefaultNum"
type="BY
TE"/>
<field name="SpeedDial"
type="WO
RD[5]"/>
<field name="ID"
type="BY
TE[64]"/>
<field name="Rev"
type="WmcDateTim
eType"/>
<field name="street"
type="BYTE[33]"/
>
<field name="city"
type="BYTE[33]"/
>
<field name="state"
type="BYTE[33]"/
>
<field name="zip"
type="BYTE[12]"/
>
<field name="country"
type="BYTE[33]"/
>
<field name="im_provider"
type="WO
RD"/>
<field name="im_screen_name"
type="BYTE[49]"/
>
<field name="note"
type="BYTE[31]"/
>
</packet_struct>

</tcall>
</toperation>
<toperation name="DiagWmcEventType">
<tcall class="comm" method="SetCmdStructData">
<packet_struct name="WmcEventType">
<field name="description"
type="BY
TE[33]"/>
<field name="schCreated"
type="Wm
cDateTimeType"/>
<field name="schModified"
type="WmcDateTim
eType"/>
<field name="Id"
type="BY
TE[64]"/>
<field name="dtStart"
type="WmcDateTim
eType"/>
<field name="dtEnd"
type="WmcDateTim
eType"/>
<field name="rRule"
type="WmcRecurRu
leType"/>
<field name="schRing"
type="WORD"/>
<field name="schTriger"
type="WO
RD"/>
<field name="dtStartLocalTime" type="BYTE"/>
<field name="dtEndLocalTime"
type="BYTE"/>
</packet_struct>
</tcall>
</toperation>
<toperation name="DiagWmcGetEvent3">
<tcall class="comm" method="SetCmdStructData">
<param name="waiting_time" value="3000" />
<cmd_struct name="WmcGetEvent3">
<req_struct>
<field name="CmdCode"
type="BY
TE"
value="241"/>
<field name="SubCmd"
type="BY
TE"
value="50"/>
<field name="Index"
type="DW
ORD"
/>
<field name="Size"
type="DW
ORD"
value="0" />
<field name="Record"
type="WO
RD"
value="0" />
<field name="CalendarData"
type="Wm
cEventType"
/>
<field name="SizeOfData"
type="DWORD"
value="0" />
<field name="Dummy"
type="BY
TE[486]"
value="0" />
<field name="EventError"
type="WORD"
value="0" />
</req_struct>
<rsp_struct>
<field name="CmdCode"
type="BY
TE"
check="241"/>
<field name="SubCmd"
type="BY
TE"
/>
<field name="Index"
type="DW
ORD"
/>
<field name="Size"
type="DW
ORD"
/>

RD"

<field name="Record"

type="WO

<field name="CalendarData"

type="Wm

/>

cEventType"

/>

type="DWORD"

/>

TE[486]"

/>

type="WORD"

/>

<field name="SizeOfData"
<field name="Dummy"

type="BY

<field name="EventError"
</rsp_struct>

</cmd_struct>
</tcall>
</toperation>
<toperation name="DiagWmcSetEvent">
<tcall class="comm" method="SetCmdStructData">
<param name="waiting_time" value="3000" />
<cmd_struct name="WmcSetEvent">
<req_struct>
<field name="CmdCode"
TE"
value="241"/>
<field name="SubCmd"
TE"
value="51"/>
<field name="Index"
ORD"
/>
<field name="Size"
ORD"
value="0" />
<field name="Record"
RD"
value="0" />
<field name="CalendarData"
cEventType"
/>
<field name="SizeOfData"
type="DWORD"
value="0" />
<field name="Dummy"
TE[260]"
value="0" />
<field name="EventError"
type="WORD"
value="0" />
</req_struct>
<rsp_struct>
<field name="CmdCode"
TE"
check="241"/>
<field name="SubCmd"
TE"
/>
<field name="Index"
ORD"
/>
<field name="Size"
ORD"
/>
<field name="Record"
RD"
/>
<field name="CalendarData"
cEventType"
/>
<field name="SizeOfData"
type="DWORD"
/>
<field name="Dummy"
TE[260]"
/>
<field name="EventError"
type="WORD"
check="0,303"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="DiagWmcDeleteAllEvent">

type="BY
type="BY
type="DW
type="DW
type="WO
type="Wm

type="BY

type="BY
type="BY
type="DW
type="DW
type="WO
type="Wm

type="BY

<tcall class="comm" method="SetCmdStructData">


<param name="waiting_time" value="3000" />
<cmd_struct name="WmcDeleteAllEvent">
<req_struct>
<field name="CmdCode"
TE"
value="241"/>
<field name="SubCmd"
TE"
value="53"/>
</req_struct>
<rsp_struct>
<field name="CmdCode"
TE"
check="241"/>
<field name="SubCmd"
TE"
/>
<field name="Index"
ORD"
/>
<field name="Size"
ORD"
/>
<field name="Record"
RD"
/>
<field name="CalendarData"
cEventType"
/>
<field name="SizeOfData"
type="DWORD"
/>
<field name="Dummy"
TE[486]"
/>
<field name="EventError"
type="WORD"
check="0,303"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="DiagWmcGetContact3">
<tcall class="comm" method="SetCmdStructData">
<param name="waiting_time" value="3000" />
<cmd_struct name="WmcGetContact3">
<req_struct>
<field name="CmdCode"
TE"
value="241"/>
<field name="SubCmd"
TE"
value="41"/>
<field name="Index"
ORD"
/>
<field name="Size"
ORD"
value="0" />
<field name="ContactData"
cContactDataType3"
/>
<field name="SizeOfData"
type="DWORD"
value="0" />
<field name="PBCalError"
type="WORD"
value="0" />
</req_struct>
<rsp_struct>
<field name="CmdCode"
TE"
check="241"/>
<field name="SubCmd"
TE"/>
<field name="Index"
ORD"/>
<field name="Size"
ORD"/>

type="BY
type="BY

type="BY
type="BY
type="DW
type="DW
type="WO
type="Wm

type="BY

type="BY
type="BY
type="DW
type="DW
type="Wm

type="BY
type="BY
type="DW
type="DW

<field name="ContactData"

type="Wm

cContactDataType3"/>
<field name="SizeOfData"
type="DWORD"/>
<field name="PBCalError"
type="WORD"

check="0,303"/>
</rsp_struct>
</cmd_struct>

</tcall>
</toperation>
<toperation name="DiagWmcSetContact3">
<tcall class="comm" method="SetCmdStructData">
<param name="waiting_time" value="3000" />
<cmd_struct name="WmcSetContact3">
<req_struct>
<field name="CmdCode"
TE"
value="241"/>
<field name="SubCmd"
TE"
value="42"/>
<field name="Index"
ORD"
value="0" />
<field name="Size"
ORD"
value="0" />
<field name="ContactData"
cContactDataType3"
value="0" />
<field name="SizeOfData"
type="DWORD"
value="0" />
<field name="PBCalError"
type="WORD"
value="0" />
</req_struct>
<rsp_struct>
<field name="CmdCode"
TE"
check="241"/>
<field name="SubCmd"
TE"/>
<field name="Index"
ORD"/>
<field name="Size"
ORD"/>
<field name="ContactData"
cContactDataType3"/>
<field name="SizeOfData"
type="DWORD"/>
<field name="PBCalError"
type="WORD"
check="0"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="DiagWmcDeleteAllContact3">
<tcall class="comm" method="SetCmdStructData">
<param name="waiting_time" value="3000" />
<cmd_struct name="WmcDeleteAllContact3">
<req_struct>
<field name="CmdCode"
TE"
value="241"/>
<field name="SubCmd"
TE"
value="47"/>
<field name="Index"
ORD"
value="0" />

type="BY
type="BY
type="DW
type="DW
type="Wm

type="BY
type="BY
type="DW
type="DW
type="Wm

type="BY
type="BY
type="DW

ORD"

<field name="Size"

type="DW

<field name="ContactData"

type="Wm

value="0" />

cContactDataType3"

value="0" />
<field name="SizeOfData"

type="DWORD"

value="0" />

type="WORD"

value="0" />

<field name="PBCalError"
</req_struct>
<rsp_struct>
<field name="CmdCode"
TE"

type="BY

check="241"/>
<field name="SubCmd"

type="BY

<field name="Index"

type="DW

<field name="Size"

type="DW

<field name="ContactData"

type="Wm

TE"/>
ORD"/>
ORD"/>
cContactDataType3"/>
<field name="SizeOfData"
type="DWORD"/>
<field name="PBCalError"
type="WORD"

check="0"/>
</rsp_struct>
</cmd_struct>

TE"
TE"

TE"

</tcall>
</toperation>
<toperation name="DiagWmcGetDeviceInfo">
<tcall class="comm" method="SetCmdStructData">
<param name="waiting_time" value="3000" />
<cmd_struct name="WmcGetDeviceInfo">
<req_struct>
<field name="CmdCode"
value="241"/>
<field name="SubCmd"
value="10"/>
</req_struct>
<rsp_struct>
<field name="CmdCode"
check="241"/>
<field name="SubCmd"

type="BY
type="BY

type="BY
type="BY

TE"/>
<field name="Index"

type="DW

<field name="Size"

type="DW

<field name="szMDN"

type="BY

<field name="szESN"

type="BY

ORD"/>
ORD"/>
TE[22]"/>
TE[12]"/>
<field name="bActivated"
type="BYTE" />
<field name="szDeviceManufacturer"
type="BYTE[64]" />
<field name="szDeviceModel"
type="BYTE[64]" />
<field name="szDeviceRevision"
type="BYTE[64]" />
<field name="szDeviceHardwareRevision"

type="BYTE[64]" />
<field name="szDeviceBootloaderRevision"
type="BYTE[64]" />
<field name="szDriverRevision"
type="BYTE[64]" />
<field name="szMIN"

type="BY

<field name="HomeSID"

type="DW

TE[22]"/>
ORD" />
<field name="PRLVersion"
type="DWORD" />
<field name="ERIVersion"
type="DWORD" />
<field name="DeviceLocked"

type="BY

<field name="RadioOn"

type="BY

<field name="szOEMID"

type="BY

<field name="szMEID"

type="BY

TE" />
TE" />
TE[64]" />
TE[16]" />
<field name="ErrorStatus"
type="WORD" />
<field name="Ver"
type="BYTE[13]" />
</rsp_struct>
</cmd_struct>

TE"
TE"

TE"

</tcall>
</toperation>
<toperation name="DiagWmcGetFieldSize">
<tcall class="comm" method="SetCmdStructData">
<param name="waiting_time" value="3000" />
<cmd_struct name="WmcGetFieldSize">
<req_struct>
<field name="CmdCode"
value="241"/>
<field name="SubCmd"
value="40"/>
</req_struct>
<rsp_struct>
<field name="CmdCode"
check="241"/>
<field name="SubCmd"

type="BY
type="BY

type="BY
type="BY

TE"/>
<field name="Size"

type="DW

<field name="ContactName"

type="WO

<field name="PhoneNumber"

type="WO

<field name="EmailAddress"

type="WO

<field name="EventName"

type="WO

<field name="GroupName"

type="WO

ORD"/>
RD" />
RD" />
RD" />
RD" />
RD" />
<field name="RingerName"
type="WORD" />
<field name="PictureName"
type="WORD" />

<field name="PhoneBookRecords" type="DW


ORD" />
<field name="CalendarRecords"

type="DW

<field name="SMSLocations"

type="DW

ORD" />
ORD" />
<field name="CallEntryLocations"
type="DWORD" />
<field name="Status"

type="WO

RD" />
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="DiagNVDeactivate">
<getenv name="what_to_do"/>
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="DiagNVDeactivate">
<req_struct>
<field name="cmd_code"
TE" value="205"/>
<field name="what_to_do"
TE" value="$what_to_do"/>
<field name="what1"
RD" value="0"/>
<field name="what2"
RD" value="0"/>
<field name="what3"
TE" value="0"/>
<field name="what4"
TE" value="0"/>
<field name="what5"
TE" value="0"/>
<field name="ret"
TE" value="0"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
TE" check="205"/>
<field name="what_to_do"
type="BYTE" />
<field name="what1"
RD" />
<field name="what2"
RD" />
<field name="what3"
TE" />
<field name="what4"
TE" />
<field name="what5"
TE" />
<field name="ret"
TE" />
<field name="buffer"
TE[200]" />
</rsp_struct>
</cmd_struct>
</tcall>

type="BY
type="BY
type="WO
type="WO
type="BY
type="BY
type="BY
type="BY

type="BY

type="WO
type="WO
type="BY
type="BY
type="BY
type="BY
type="BY

</toperation>
<toperation name="DiagKey">
<getenv name="key_code"/>
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="DiagKey">
<req_struct>
<field name="cmd"
TE" value="32"/>
<field name="hold"
TE" value="0"/>
<field name="key"
TE" value="$key_code"/>
</req_struct>
<rsp_struct>
<field name="cmd"
TE" check="32"/>
<field name="hold"
TE"/>
<field name="key"
TE"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="DiagEFSRParam">
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="DiagEFSRParam">
<req_struct>
<field name="cmd"
e="89" />
<field name="sub_stat"
e="14" />
</req_struct>
<rsp_struct>
<field name="cmd"
eck="89" />
<field name="sub_stat"
<field name="fs_status"
TE"/>
<field name="klt_rev"
etype="ARR" />
<field name="fs_id"
etype="ARR" />
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="DiagNVPeek">
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="DiagNVPeek">
<req_struct>
<field name="cmd"
e="17"/>
<field name="address"
e="23"/>
<field name="length"
e="6"/>
</req_struct>
<rsp_struct>
<field name="cmd"

type="BY
type="BY
type="BY

type="BY
type="BY
type="BY

type="BYTE" valu
type="BYTE" valu

type="BYTE"

ch

type="BYTE"/>
type="BY
type="WORD" valu
type="WORD" valu

type="BYTE" valu
type="WORD" valu
type="BYTE" valu

type="BYTE"

ch

eck="17"/>
<field name="address"
<field name="length"
<field name="mem"

type="WORD"/>
type="BYTE"/>
type="BYTE[6]" v

aluetype="ARR"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="DiagFactoryReset">
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="30000" />
<cmd_struct name="DiagFactoryReset">
<req_struct>
<field name="cmd"
type="BY
TE" value="250"/>
<field name="sub_cmd"
type="WO
RD" value="50"/>
<field name="test_mode_1"
type="WORD" value="0"/>
<field name="test_mode_2"
type="WORD" value="0"/>
<field name="test_mode_3"
type="WORD" value="0"/>
</req_struct>
<rsp_struct>
<field name="cmd"
type="BY
TE" check="250"/>
<field name="sub_cmd"
type="WO
RD"/>
<field name="ret_stat_code"
type="BY
TE"/>
<field name="dummy"
type="BY
TE[64]"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="DiagFactoryResetCompleteCheck">
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="10000" />
<cmd_struct name="DiagFactoryResetCompleteCheck">
<req_struct>
<field name="cmd"
type="BY
TE" value="250"/>
<field name="sub_cmd"
type="WO
RD" value="50"/>
<field name="test_mode_1"
type="WO
RD" value="1"/>
</req_struct>
<rsp_struct>
<field name="cmd"
type="BY
TE" check="250"/>
<field name="sub_cmd"
type="WO
RD"/>
<field name="ret_stat_code"
type="BY
TE"/>
<field name="dummy"
type="BY
TE[64]"/>
</rsp_struct>

</cmd_struct>
</tcall>
</toperation>
<toperation name="DiagFactoryResetEx">
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="10000" />
<cmd_struct name="DiagFactoryResetEx">
<req_struct>
<field name="cmd"
type="BY
TE" value="250"/>
<field name="sub_cmd"
type="WO
RD" value="50"/>
<field name="sub_cmd2"
type="BY
TE" value="$sub_cmd2"/>
</req_struct>
<rsp_struct>
<field name="cmd"
type="BY
TE" check="250"/>
<field name="sub_cmd"
type="WO
RD"/>
<field name="ret_stat_code"
type="BY
TE"/>
<field name="buffer"
type="BY
TE[500]"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="DiagOfflineD">
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="DiagOfflineD">
<req_struct>
<field name="Cmd"
type="BYTE" valu
e="41"/>
<field name="Mode"
type="WORD" valu
e="1"/>
</req_struct>
<rsp_struct>
<field name="Cmd"
type="BYTE" ch
eck="41"/>
<field name="Mode"
type="WORD"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="DiagVerNO">
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="DiagVerNO">
<req_struct>
<field name="cmd_code" type="BYTE" valu
e="0"/>
</req_struct>
<rsp_struct>
<field name="cmd_code" type="BYTE" ch
eck="0"/>
<field name="comp_date"
type="BY
TE[11]"/>
<field name="comp_time"
type="BY
TE[8]"/>
<field name="rel_date"
type="BY

TE[11]"/>
<field name="rel_time"

type="BY

<field name="ver_dir"

type="BY

<field name="scm"

type="BY

<field name="mob_cai_rev"

type="BY

<field name="mob_model"

type="BY

<field name="mob_firm_rev"

type="WO

TE[8]"/>
TE[8]"/>
TE"/>
TE"/>
TE"/>
RD"/>
<field name="slot_cycle_index" type="BY
TE"/>
<field name="voc_maj"

type="BY

<field name="voc_min"

type="BY

TE"/>
TE"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="DiagReset">
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="DiagReset">
<req_struct>
<field name="Cmd"
type="BYTE" valu
e="41"/>
<field name="Mode"
type="WORD" valu
e="2"/>
</req_struct>
<rsp_struct>
<field name="Cmd"
type="BY
TE" check="41"/>
<field name="Mode"
type="WO
RD"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="EnableReadWriteAkey">
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="EnableReadWriteAkey">
<req_struct>
<field name="cmd"
type="BY
TE" value="251"/>
<field name="sub_cmd"
type="WO
RD" value="6"/>
<field name="reconditional"
type="BY
TE" value="2"/>
</req_struct>
<rsp_struct>
<field name="cmd"
type="BY
TE" check="251"/>
<field name="sub_cmd"
type="WO
RD"/>
<field name="reconditional"
type="BY
TE"/>
</rsp_struct>

</cmd_struct>
</tcall>
</toperation>
<toperation name="DiagSPCUnlock">
<getenv name="spc"/>
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="DiagSPCUnlock">
<req_struct>
<field name="cmd"
type="BY
TE" value="65"/>
<field name="sec_code"
type="BY
TE[6]" value="$spc" valuetype="ARR"/>
</req_struct>
<rsp_struct>
<field name="cmd"
type="BY
TE" check="65"/>
<field name="sec_code_ok"
type="BY
TE" check="1"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="DiagDload">
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="DiagDload">
<req_struct>
<field name="cmd"
type="BYTE" va
lue="0x3A"/>
</req_struct>
<rsp_struct>
<field name="cmd"
type="BYTE" ch
eck="0x3A"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="DiagTestModeTestScriptMode">
<getenv name="sub_cmd_code2" />
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="10000" />
<cmd_struct name="DiagTestModeTestScriptMode">
<req_struct>
<field name="cmd"
type="BY
TE" value="250"/>
<field name="sub_cmd"
type="WO
RD" value="48"/>
<field name="sub_cmd_code2"
type="WO
RD" value="$sub_cmd_code2"/>
<field name="union_dummy"
type="BY
TE[29]" value="0"/>
</req_struct>
<rsp_struct>
<field name="cmd"
type="BY
TE" check="250"/>
<field name="sub_cmd"
type="WO
RD" check="48"/>
<field name="ret_stat_code"
type="BY
TE"/>
<field name="factory_init"
type="BY
TE"/>

<field name="union_dummy"

type="BY

TE[63]" />
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="DiagTestModeManualTestEx">
<getenv name="sub_cmd_code2" />
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="10000" />
<cmd_struct name="DiagTestModeManualTestEx">
<req_struct>
<field name="cmd"
type="BY
TE" value="250"/>
<field name="sub_cmd"
type="WO
RD" value="36"/>
<field name="sub_cmd_code2"
type="WO
RD" value="$sub_cmd_code2"/>
<field name="union_dummy"
type="BY
TE[29]" value="0"/>
</req_struct>
<rsp_struct>
<field name="cmd"
type="BY
TE" check="250"/>
<field name="sub_cmd"
type="WO
RD" check="36"/>
<field name="ret_stat_code"
type="BY
TE"/>
<field name="union_dummy"
type="BY
TE[64]" />
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="DiagTestModeCheckDB">
<getenv name="cmd_type" />
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="10000"/>
<cmd_struct name="DiagTestModeEx">
<req_struct>
<field name="cmd"
type="BY
TE" value="250"/>
<field name="sub_cmd"
type="WO
RD" value="58"/>
<field name="cmd_type" type="BYTE" valu
e="$cmd_type"/> <!--0 : DB close, 1: DB status-->
</req_struct>
<rsp_struct>
<field name="cmd"
type="BY
TE" check="250"/>
<field name="sub_cmd"
type="WO
RD" check="58"/>
<field name="ret_stat_code"
type="BY
TE" valuetype="ARR"/> <!-- 0: TEST_OK, 1: TEST_FAIL, 2: TEST_NOT_SUPPORT-->
<field name="dummy"
type="BY
TE[67]"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>

<toperation name="DiagTestMode_HFAOff">
<getenv name="cmd_type" />
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="10000"/>
<cmd_struct name="DiagTestMode_HFAOff">
<req_struct>
<field name="cmd"
type="BY
TE" value="250"/>
<field name="sub_cmd"
type="WO
RD" value="52"/>
<field name="sub_cmd_code2"
type="BY
TE" value="$sub_cmd_code2"/>
</req_struct>
<rsp_struct>
<field name="cmd"
type="BY
TE" check="250"/>
<field name="sub_cmd"
type="WO
RD" check="52"/>
<field name="ret_stat_code"
type="BY
TE"/>
<field name="buffer"
type="BY
TE[500]"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="DiagTestModeVersion">
<getenv name="cmd_type" />
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="3000"/>
<cmd_struct name="DiagTestModeVersion">
<req_struct>
<field name="cmd"
type="BY
TE" value="250"/>
<field name="sub_cmd"
type="WO
RD" value="0"/>
<field name="cmd_type" type="BYTE" valu
e="$cmd_type"/>
</req_struct>
<rsp_struct>
<field name="cmd"
type="BY
TE" check="250"/>
<field name="sub_cmd"
type="WO
RD" check="0"/>
<field name="ret_stat_code"
type="BY
TE" valuetype="ARR"/> <!-- 0: TEST_OK, 1: TEST_FAIL, 2: TEST_NOT_SUPPORT-->
<field name="dummy"
type="BY
TE[67]"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>

<!-- ***************************************************************************
********************
********************************************* EFS *************************
********************
***************************************************************************

******************** -->
<toperation name="EFS_PrepFactImageDump">
<tcall class="comm" method="SetCmdStructData">
<cmd_struct name="PrepFactImageDump">
<req_struct>
<field name="CmdCode"
TE" value = "75"/>
<field name="SubSysID"
TE" />
<field name="SybSysCmdCode"
RD" value = "25"/>
</req_struct>
<rsp_struct>
<field name="CmdCode"
TE" check = "75"/>
<field name="SubSysID"
TE" />
<field name="SybSysCmdCode"
RD" check = "25"/>
<field name="Error"
ORD" check = "0"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="EFS_StartFactImageDump">
<tcall class="comm" method="SetCmdStructData">
<cmd_struct name="StartFactImageDump">
<req_struct>
<field name="CmdCode"
TE" value = "75"/>
<field name="SubSysID"
TE" />
<field name="SybSysCmdCode"
RD" value = "22"/>
</req_struct>
<rsp_struct>
<field name="CmdCode"
TE" check = "75"/>
<field name="SubSysID"
TE" />
<field name="SybSysCmdCode"
RD" check = "22"/>
<field name="Error"
ORD" check = "0"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="EFS_ReadFactImage">
<tcall class="comm" method="SetCmdStructData">
<cmd_struct name="ReadFactImage">
<req_struct>
<field name="CmdCode"
TE" value = "75"/>
<field name="SubSysID"
TE" value = "-"/>
<field name="SybSysCmdCode"
RD" value = "23"/>
<field name="StreamState"

type="BY
type="BY
type="WO

type="BY
type="BY
type="WO
type="DW

type="BY
type="BY
type="WO

type="BY
type="BY
type="WO
type="DW

type="BY
type="BY
type="WO

type="BYTE" value = "-"/>


<field name="InfoClusterSent"

type="BY

<field name="ClusterMapSeqNO"

type="WO

TE" value = "-"/>


RD" value = "-"/>
<field name="ClusterDataSeqNO" type="DW
ORD" value = "-"/>
</req_struct>
<rsp_struct>
<field name="CmdCode"

type="BY

TE" check = "75"/>


<field name="SubSysID"

type="BY

<field name="SybSysCmdCode"

type="WO

<field name="Error"

type="DW

TE" />
RD" check = "23"/>
ORD" check = "0"/>
<field name="StreamState"
type="BYTE" />
<field name="InfoClusterSent"

type="BY

<field name="ClusterMapSeqNO"

type="WO

TE" />
RD" />
<field name="ClusterDataSeqNO" type="DW
ORD" />
<field name="ReadImageData"

type="BY

TE[512]" />
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="EFS_EndFactImageDump">
<tcall class="comm" method="SetCmdStructData">
<cmd_struct name="EndFactImageDump">
<req_struct>
<field name="CmdCode"
TE" value = "75"/>
<field name="SubSysID"
TE" />
<field name="SybSysCmdCode"
RD" value = "24"/>
</req_struct>
<rsp_struct>
<field name="CmdCode"
TE" check = "75"/>
<field name="SubSysID"
TE" />
<field name="SybSysCmdCode"
RD" check = "24"/>
<field name="Error"
ORD" check = "0"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="EFS2_Close">
<getenv name="fd"/>
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="EFS2_Close">
<req_struct>

type="BY
type="BY
type="WO

type="BY
type="BY
type="WO
type="DW

TE"

value="75"/>

TE"

value="19"/>

RD"

value="3"/>

ORD"

value="$fd"

TE"

check="75"/>

TE"

check="19"/>

RD"

check="3"/>

ORD"

check="0"

<field name="cmd_code"

type="BY

<field name="subsys_id"

type="BY

<field name="subsys_cmd_code"

type="WO

<field name="fd"
valuetype="ARR"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"

type="DW

type="BY

<field name="subsys_id"

type="BY

<field name="subsys_cmd_code"

type="WO

<field name="error"
error="EFS_ERROR"/>
</rsp_struct>
</cmd_struct>

type="DW

</tcall>
</toperation>

TE"
TE"
RD"

<toperation name="SetCmdForEFS2_Close">
<tcall class="comm" method="SetCmdStructData">
<cmd_struct name="EFS2_Close">
<req_struct>
<field name="cmd_code"
value="75"/>
<field name="subsys_id"
value="19"/>
<field name="subsys_cmd_code"
value="3"/>
<field name="fd"

type="BY
type="BY
type="WO
type="DW

ORD"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
TE"

check="75"/>

TE"

check="19"/>

RD"

check="3"/>

ORD"

check="0"

type="BY

<field name="subsys_id"

type="BY

<field name="subsys_cmd_code"

type="WO

<field name="error"
error="EFS_ERROR"/>
</rsp_struct>
</cmd_struct>

type="DW

</tcall>
</toperation>

TE"
TE"

<toperation name="EFS2_CloseDir">
<getenv name="fd"/>
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="EFS2_CloseDir">
<req_struct>
<field name="cmd_code"
value="75"/>
<field name="subsys_id"
value="19"/>
<field name="subsys_cmd_code"

type="BY
type="BY
type="WO

RD"

value="13"/>

ORD"

value="$fd"

TE"

check="75"/>

TE"

check="19"/>

RD"

check="13"/>

ORD"

check="0"

<field name="fd"
valuetype="ARR"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"

type="DW

type="BY

<field name="subsys_id"

type="BY

<field name="subsys_cmd_code"

type="WO

<field name="error"
Error="EFS_ERROR"/>
</rsp_struct>
</cmd_struct>

type="DW

</tcall>
</toperation>

TE"
TE"
RD"

<toperation name="SetCmdForEFS2_CloseDir">
<tcall class="comm" method="SetCmdStructData">
<cmd_struct name="EFS2_CloseDir">
<req_struct>
<field name="cmd_code"
value="75"/>
<field name="subsys_id"
value="19"/>
<field name="subsys_cmd_code"
value="13"/>
<field name="fd"

type="BY
type="BY
type="WO
type="DW

ORD"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
TE"

check="75"/>

TE"

check="19"/>

RD"

check="13"/>

ORD"

check="0"

type="BY

<field name="subsys_id"

type="BY

<field name="subsys_cmd_code"

type="WO

<field name="error"
Error="EFS_ERROR"/>
</rsp_struct>
</cmd_struct>

type="DW

</tcall>
</toperation>
<toperation name="EFS2_GetCRC">
<getenv name="file_path"/>
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="EFS2_GetCRC">
<req_struct>
<field name="cmd_code"
TE"
value="75"/>
<field name="subsys_id"
TE"
value="19"/>
<field name="subsys_cmd_code"
RD"
value="129"/>
<field name="path"
TE[128]" value="$file_path" valuetype="ARR"/>
</req_struct>
<rsp_struct>

type="BY
type="BY
type="WO
type="BY

TE"

check="75"/>

TE"

check="19"/>

RD"

check="129"/>

<field name="cmd_code"

type="BY

<field name="subsys_id"

type="BY

<field name="subsys_cmd_code"

type="WO

<field name="crc"

type="DW

ORD"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="SetCmdForEFS2_GetCRC">
<tcall class="comm" method="SetCmdStructData">
<cmd_struct name="EFS2_GetCRC">
<req_struct>
<field name="cmd_code"
TE"
value="75"/>
<field name="subsys_id"
TE"
value="19"/>
<field name="subsys_cmd_code"
RD"
value="129"/>
<field name="path"
TE[128]"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
TE"
check="75"/>
<field name="subsys_id"
TE"
check="19"/>
<field name="subsys_cmd_code"
RD"
check="129"/>
<field name="crc"
ORD"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="EFS2_MkDir">
<getenv name="dir_path"/>
<getenv name="mode"/>
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="EFS2_MkDir">
<req_struct>
<field name="cmd_code"
TE"
value="75"/>
<field name="subsys_id"
TE"
value="19"/>
<field name="subsys_cmd_code"
RD"
value="9"/>
<field name="mode"
RD"
value="$mode"/>
<field name="path"
TE[128]" value="$dir_path" valuetype="ARR"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
TE"
check="75"/>

type="BY
type="BY
type="WO
type="BY

type="BY
type="BY
type="WO
type="DW

type="BY
type="BY
type="WO
type="WO
type="BY

type="BY

TE"

check="19"/>

RD"

check="9"/>

ORD"

check="0"

<field name="subsys_id"

type="BY

<field name="subsys_cmd_code"

type="WO

<field name="error"
Error="EFS_ERROR"/>
</rsp_struct>
</cmd_struct>

type="DW

</tcall>
</toperation>

TE"
TE"
RD"

<toperation name="SetCmdForEFS2_MkDir">
<tcall class="comm" method="SetCmdStructData">
<cmd_struct name="EFS2_MkDir">
<req_struct>
<field name="cmd_code"
value="75"/>
<field name="subsys_id"
value="19"/>
<field name="subsys_cmd_code"
value="9"/>
<field name="mode"

type="BY
type="BY
type="WO
type="WO

RD"/>
<field name="path"

type="BY

TE[128]"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
TE"

check="75"/>

TE"

check="19"/>

RD"

check="9"/>

ORD"

check="0"

type="BY

<field name="subsys_id"

type="BY

<field name="subsys_cmd_code"

type="WO

<field name="error"
Error="EFS_ERROR"/>
</rsp_struct>
</cmd_struct>

type="DW

</tcall>
</toperation>
<toperation name="EFS2_Open">
<getenv name="file_path"/>
<getenv name="mode"/>
<getenv name="oflag"/>
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="EFS2_Open">
<req_struct>
<field name="cmd_code"
type="BY
TE"
value="75"/>
<field name="subsys_id"
type="BY
TE"
value="19"/>
<field name="subsys_cmd_code" type="WO
RD"
value="2"/>
<field name="oflag"
type="DW
ORD"
value="$oflag"/> <!-- OPEN_RDONLY = 0, OPEN_RDWR = 2, OPEN_CREAT = 64
, OPEN_TCREAT = 65,
OPEN_TRUNC = 512, OPEN_APPEND = 1024 -->
<field name="mode"
ORD"
value="$mode"/>

type="DW

<field
TE[128]" value="$file_path" valuetype="ARR"/>
</req_struct>
<rsp_struct>
<field
TE"
check="75"/>
<field
TE"
check="19"/>
<field
RD"
check="2"/>
<field
ORD"
valuetype="ARR"/>
<field
ORD"
check="0"
Error="EFS_ERROR"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>

TE"
TE"
RD"

name="path"

type="BY

name="cmd_code"

type="BY

name="subsys_id"

type="BY

name="subsys_cmd_code"

type="WO

name="fd"

type="DW

name="error"

type="DW

<toperation name="SetCmdForEFS2_Open">
<tcall class="comm" method="SetCmdStructData">
<cmd_struct name="EFS2_Open">
<req_struct>
<field name="cmd_code"
value="75"/>
<field name="subsys_id"
value="19"/>
<field name="subsys_cmd_code"
value="2"/>
<field name="oflag"

type="BY
type="BY
type="WO
type="DW

ORD"/>
<field name="mode"

type="DW

<field name="path"

type="BY

ORD"/>
TE[128]"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
TE"

check="75"/>

TE"

check="19"/>

RD"

check="2"/>

type="BY

<field name="subsys_id"

type="BY

<field name="subsys_cmd_code"

type="WO

<field name="fd"

type="DW

ORD"/>
ORD"

check="0"

<field name="error"
Error="EFS_ERROR"/>
</rsp_struct>
</cmd_struct>

type="DW

</tcall>
</toperation>

TE"

<toperation name="EFS2_OpenDir">
<getenv name="dir_path"/>
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="EFS2_OpenDir">
<req_struct>
<field name="cmd_code"
value="75"/>
<field name="subsys_id"

type="BY
type="BY

TE"

value="19"/>

RD"

value="11"/>

<field name="subsys_cmd_code"
<field
TE[128]" value="$dir_path" valuetype="ARR"/>
</req_struct>
<rsp_struct>
<field
TE"
check="75"/>
<field
TE"
check="19"/>
<field
RD"
check="11"/>
<field
ORD"
valuetype="ARR"/>
<field
ORD"
check="0"
Error="EFS_ERROR"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>

name="path"

type="BY

name="cmd_code"

type="BY

name="subsys_id"

type="BY

name="subsys_cmd_code"

type="WO

name="fd"

type="DW

name="error"

type="DW

<toperation name="SetCmdForEFS2_OpenDir">
<tcall class="comm" method="SetCmdStructData">
<cmd_struct name="EFS2_OpenDir">
<req_struct>
<field name="cmd_code"
TE"
value="75"/>
<field name="subsys_id"
TE"
value="19"/>
<field name="subsys_cmd_code"
RD"
value="11"/>
<field name="path"
TE[128]"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
TE"
check="75"/>
<field name="subsys_id"
TE"
check="19"/>
<field name="subsys_cmd_code"
RD"
check="11"/>
<field name="fd"
ORD"/>
<field name="error"
ORD"
check="0"
Error="EFS_ERROR"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>

TE"

type="WO

<toperation name="EFS2_Read">
<getenv name="fd"/>
<getenv name="offset"/>
<getenv name="efs_read_buf_size"/>
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="EFS2_Read">
<req_struct>
<field name="cmd_code"
value="75"/>

type="BY
type="BY
type="WO
type="BY

type="BY
type="BY
type="WO
type="DW
type="DW

type="BY

TE"

value="19"/>

RD"

value="4"/>

ORD"

value="$fd"

ORD"
ORD"

TE"
TE"
RD"
ORD"

<field name="subsys_id"

type="BY

<field name="subsys_cmd_code"

type="WO

<field
valuetype="ARR"/>
<field
value="$efs_read_buf_size"/>
<field
value="$offset"/>
</req_struct>
<rsp_struct>
<field
check="75"/>
<field
check="19"/>
<field
check="4"/>
<field
valuetype="ARR"/>
<field

name="fd"

type="DW

name="nbyte"

type="DW

name="offset"

type="DW

name="cmd_code"

type="BY

name="subsys_id"

type="BY

name="subsys_cmd_code"

type="WO

name="fd"

type="DW

name="offset"

type="DW

ORD"/>
<field name="bytes_read"

type="DW

ORD"/>
ORD"

check="0"

fs_read_buf_size"

<field name="error"
Error="EFS_ERROR"/>
<field name="data"
valuetype="ARR"/>
</rsp_struct>
</cmd_struct>

type="DW
type="$e

</tcall>
</toperation>

TE"
TE"
RD"

<toperation name="SetCmdForEFS2_Read">
<getenv name="efs_read_buf_size"/>
<tcall class="comm" method="SetCmdStructData">
<cmd_struct name="EFS2_Read">
<req_struct>
<field name="cmd_code"
value="75"/>
<field name="subsys_id"
value="19"/>
<field name="subsys_cmd_code"
value="4"/>
<field name="fd"

type="BY
type="BY
type="WO
type="DW

ORD"/>
<field name="nbyte"

type="DW

<field name="offset"

type="DW

ORD"/>
ORD"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
TE"

check="75"/>

TE"

check="19"/>

RD"

check="4"/>

ORD"/>

type="BY

<field name="subsys_id"

type="BY

<field name="subsys_cmd_code"

type="WO

<field name="fd"

type="DW

<field name="offset"

type="DW

<field name="bytes_read"

type="DW

ORD"/>
ORD"/>
ORD"

check="0"

<field name="error"
Error="EFS_ERROR"/>
<field name="data"

type="DW
type="$e

fs_read_buf_size"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>

TE"
TE"
RD"
ORD"
ORD"

TE"
TE"
RD"

<toperation name="EFS2_ReadDir">
<getenv name="dirp"/>
<getenv name="seqno"/>
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="EFS2_ReadDir">
<req_struct>
<field name="cmd_code"
value="75"/>
<field name="subsys_id"
value="19"/>
<field name="subsys_cmd_code"
value="12"/>
<field name="dirp"
value="$dirp"/>
<field name="seqno"
value="$seqno"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
check="75"/>
<field name="subsys_id"
check="19"/>
<field name="subsys_cmd_code"
check="12"/>
<field name="dirp"

type="BY
type="BY
type="WO
type="DW
type="DW

type="BY
type="BY
type="WO
type="DW

ORD"/>
<field name="seqno"

type="DW

ORD"/>
ORD"

<field name="error"
Error="EFS_ERROR"/>
<field name="entry_Type"

check="0"

type="DW
type="DW

ORD"/>
<field name="mode"

type="DW

<field name="size"

type="DW

<field name="atime"

type="DW

<field name="mtime"

type="DW

<field name="ctime"

type="DW

<field name="szEntry_Name"

type="BY

ORD"/>
ORD"/>
ORD"/>
ORD"/>
ORD"/>
TE[128]" valuetype="ARR"/>
</rsp_struct>
</cmd_struct>
</tcall>

</toperation>

TE"
TE"
RD"

<toperation name="SetCmdForEFS2_ReadDir">
<tcall class="comm" method="SetCmdStructData">
<cmd_struct name="EFS2_ReadDir">
<req_struct>
<field name="cmd_code"
value="75"/>
<field name="subsys_id"
value="19"/>
<field name="subsys_cmd_code"
value="12"/>
<field name="dirp"

type="BY
type="BY
type="WO
type="DW

ORD"/>
<field name="seqno"

type="DW

ORD"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
TE"

check="75"/>

TE"

check="19"/>

RD"

check="12"/>

type="BY

<field name="subsys_id"

type="BY

<field name="subsys_cmd_code"

type="WO

<field name="dirp"

type="DW

<field name="seqno"

type="DW

<field name="error"

type="DW

<field name="entry_Type"

type="DW

<field name="mode"

type="DW

<field name="size"

type="DW

<field name="atime"

type="DW

<field name="mtime"

type="DW

<field name="ctime"

type="DW

<field name="szEntry_Name"

type="BY

ORD"/>
ORD"/>
ORD"/>
ORD"/>
ORD"/>
ORD"/>
ORD"/>
ORD"/>
ORD"/>
TE[128]"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>

TE"
TE"
RD"

<toperation name="EFS2_RmDir">
<getenv name="dir_path"/>
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="EFS2_RmDir">
<req_struct>
<field name="cmd_code"
value="75"/>
<field name="subsys_id"
value="19"/>
<field name="subsys_cmd_code"
value="10"/>

type="BY
type="BY
type="WO

<field name="path"
TE[128]" value="$dir_path" valuetype="ARR"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
TE"
check="75"/>
<field name="subsys_id"
TE"
check="19"/>
<field name="subsys_cmd_code"
RD"
check="10"/>
<field name="error"
ORD"
check="0"
Error="EFS_ERROR"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="SetCmdForEFS2_RmDir">
<tcall class="comm" method="SetCmdStructData">
<cmd_struct name="EFS2_RmDir">
<req_struct>
<field name="cmd_code"
TE"
value="75"/>
<field name="subsys_id"
TE"
value="19"/>
<field name="subsys_cmd_code"
RD"
value="10"/>
<field name="path"
TE[128]" />
</req_struct>
<rsp_struct>
<field name="cmd_code"
TE"
check="75"/>
<field name="subsys_id"
TE"
check="19"/>
<field name="subsys_cmd_code"
RD"
check="10"/>
<field name="error"
ORD"
check="0"
Error="EFS_ERROR"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="EFS2_Stat">
<getenv name="file_path"/>
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="EFS2_Stat">
<req_struct>
<field name="cmd_code"
TE"
value="75"/>
<field name="subsys_id"
TE"
value="19"/>
<field name="subsys_cmd_code"
RD"
value="15"/>
<field name="path"
TE[128]" value="$file_path" valuetype="ARR"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"

type="BY

type="BY
type="BY
type="WO
type="DW

type="BY
type="BY
type="WO
type="BY

type="BY
type="BY
type="WO
type="DW

type="BY
type="BY
type="WO
type="BY

type="BY

TE"

check="75"/>

TE"

check="19"/>

RD"

check="15"/>

ORD"

check="0"

<field name="subsys_id"

type="BY

<field name="subsys_cmd_code"

type="WO

<field name="error"
Error="EFS_ERROR"/>
<field name="mode"

type="DW
type="DW

ORD"/>
<field name="size"

type="DW

<field name="nlink"

type="DW

<field name="atime"

type="DW

<field name="mtime"

type="DW

<field name="ctime"

type="DW

ORD"/>
ORD"/>
ORD"/>
ORD"/>
ORD"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="SetCmdForEFS2_Stat">
<tcall class="comm" method="SetCmdStructData">
<cmd_struct name="EFS2_Stat">
<req_struct>
<field name="cmd_code"
TE"
value="75"/>
<field name="subsys_id"
TE"
value="19"/>
<field name="subsys_cmd_code"
RD"
value="15"/>
<field name="path"
TE[128]"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
TE"
check="75"/>
<field name="subsys_id"
TE"
check="19"/>
<field name="subsys_cmd_code"
RD"
check="15"/>
<field name="error"
ORD"/>
<field name="mode"
ORD"/>
<field name="size"
ORD"/>
<field name="nlink"
ORD"/>
<field name="atime"
ORD"/>
<field name="mtime"
ORD"/>
<field name="ctime"
ORD"/>
</rsp_struct>
</cmd_struct>
</tcall>

type="BY
type="BY
type="WO
type="BY

type="BY
type="BY
type="WO
type="DW
type="DW
type="DW
type="DW
type="DW
type="DW
type="DW

</toperation>
<toperation name="EFS2_Unlink">
<getenv name="file_path"/>
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="EFS2_Unlink">
<req_struct>
<field name="cmd_code"
TE"
value="75"/>
<field name="subsys_id"
TE"
value="19"/>
<field name="subsys_cmd_code"
RD"
value="8"/>
<field name="path"
TE[128]" value="$file_path" valuetype="ARR"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
TE"
check="75"/>
<field name="subsys_id"
TE"
check="19"/>
<field name="subsys_cmd_code"
RD"
check="8"/>
<field name="error"
ORD"
check="0"
Error="EFS_ERROR"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="SetCmdForEFS2_Unlink">
<tcall class="comm" method="SetCmdStructData">
<cmd_struct name="EFS2_Unlink">
<req_struct>
<field name="cmd_code"
TE"
value="75"/>
<field name="subsys_id"
TE"
value="19"/>
<field name="subsys_cmd_code"
RD"
value="8"/>
<field name="path"
TE[128]"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
TE"
check="75"/>
<field name="subsys_id"
TE"
check="19"/>
<field name="subsys_cmd_code"
RD"
check="8"/>
<field name="error"
ORD"
check="0"
Error="EFS_ERROR"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="EFS2_Write">
<getenv name="fd"/>
<getenv name="offset"/>

type="BY
type="BY
type="WO
type="BY

type="BY
type="BY
type="WO
type="DW

type="BY
type="BY
type="WO
type="BY

type="BY
type="BY
type="WO
type="DW

<getenv name="data"/>
<getenv name="efs_write_buf_size"/>
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="EFS2_Write">
<req_struct>
<field name="cmd_code"
TE"
value="75"/>
<field name="subsys_id"
TE"
value="19"/>
<field name="subsys_cmd_code"
RD"
value="5"/>
<field name="fd"
ORD"
value="$fd"
valuetype="ARR"/>
<field name="offset"
ORD"
value="$offset"/>
<field name="data"
fs_write_buf_size" value="$data" valuetype="ARR"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
TE"
check="75"/>
<field name="subsys_id"
TE"
check="19"/>
<field name="subsys_cmd_code"
RD"
check="5"/>
<field name="fd"
ORD"
valuetype="ARR"/>
<field name="offset"
ORD"/>
<field name="bytes_written"
ORD"/>
<field name="error"
ORD"
check="0"
Error="EFS_ERROR"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>

TE"
TE"
RD"

<toperation name="SetCmdForEFS2_Write">
<getenv name="efs_write_buf_size"/>
<tcall class="comm" method="SetCmdStructData">
<cmd_struct name="EFS2_Write">
<req_struct>
<field name="cmd_code"
value="75"/>
<field name="subsys_id"
value="19"/>
<field name="subsys_cmd_code"
value="5"/>
<field name="fd"

type="BY
type="BY
type="WO
type="DW
type="DW
type="$e

type="BY
type="BY
type="WO
type="DW
type="DW
type="DW
type="DW

type="BY
type="BY
type="WO
type="DW

ORD"/>
<field name="offset"

type="DW

<field name="data"

type="$e

ORD"/>
fs_write_buf_size"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
TE"

type="BY

check="75"/>
<field name="subsys_id"

type="BY

TE"

check="19"/>

RD"

check="5"/>

<field name="subsys_cmd_code"

type="WO

<field name="fd"

type="DW

<field name="offset"

type="DW

<field name="bytes_written"

type="DW

ORD"/>
ORD"/>
ORD"/>
ORD"

check="0"

<field name="error"
Error="EFS_ERROR"/>
</rsp_struct>
</cmd_struct>

type="DW

</tcall>
</toperation>

TE"
TE"
RD"
ORD"
ORD"
ORD"
ORD"
ORD"
ORD"
ORD"
ORD"
ORD"
ORD"

TE"
TE"
RD"

<toperation name="EFS2_Hello">
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="EFS2_Hello">
<req_struct>
<field name="cmd_code"
value="75"/>
<field name="subsys_id"
value="19"/>
<field name="subsys_cmd_code"
value="0"/>
<field name="targ_pkt_window"
value="0"/>
<field name="targ_byte_window"
value="0"/>
<field name="host_pkt_window"
value="0"/>
<field name="host_byte_window"
value="0"/>
<field name="iter_pkt_window"
value="0"/>
<field name="iter_byte_window"
value="0"/>
<field name="version"
value="0"/>
<field name="min_version"
value="0"/>
<field name="max_version"
value="0"/>
<field name="feature_bits"
value="0"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
check="75"/>
<field name="subsys_id"
check="19"/>
<field name="subsys_cmd_code"
check="0"/>
<field name="targ_pkt_window"

type="BY
type="BY
type="WO
type="DW
type="DW
type="DW
type="DW
type="DW
type="DW
type="DW
type="DW
type="DW
type="DW

type="BY
type="BY
type="WO
type="DW

ORD"/>
<field name="targ_byte_window" type="DW
ORD"/>
<field name="host_pkt_window"
ORD"/>

type="DW

<field name="host_byte_window" type="DW


ORD"/>
<field name="iter_pkt_window"

type="DW

ORD"/>
<field name="iter_byte_window" type="DW
ORD"/>
<field name="version"

type="DW

<field name="min_version"

type="DW

<field name="max_version"

type="DW

<field name="feature_bits"

type="DW

ORD"/>
ORD"/>
ORD"/>
ORD"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>

TE"
TE"
RD"
ORD"
ORD"
ORD"
ORD"
ORD"
ORD"
ORD"
ORD"
ORD"
ORD"

TE"
TE"
RD"

<toperation name="SetCmdForEFS2_Hello">
<tcall class="comm" method="SetCmdStructData">
<cmd_struct name="EFS2_Hello">
<req_struct>
<field name="cmd_code"
value="75"/>
<field name="subsys_id"
value="19"/>
<field name="subsys_cmd_code"
value="0"/>
<field name="targ_pkt_window"
value="0"/>
<field name="targ_byte_window"
value="0"/>
<field name="host_pkt_window"
value="0"/>
<field name="host_byte_window"
value="0"/>
<field name="iter_pkt_window"
value="0"/>
<field name="iter_byte_window"
value="0"/>
<field name="version"
value="0"/>
<field name="min_version"
value="0"/>
<field name="max_version"
value="0"/>
<field name="feature_bits"
value="0"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
check="75"/>
<field name="subsys_id"
check="19"/>
<field name="subsys_cmd_code"
check="0"/>
<field name="targ_pkt_window"

type="BY
type="BY
type="WO
type="DW
type="DW
type="DW
type="DW
type="DW
type="DW
type="DW
type="DW
type="DW
type="DW

type="BY
type="BY
type="WO
type="DW

ORD"/>
<field name="targ_byte_window" type="DW

ORD"/>
<field name="host_pkt_window"

type="DW

ORD"/>
<field name="host_byte_window" type="DW
ORD"/>
<field name="iter_pkt_window"

type="DW

ORD"/>
<field name="iter_byte_window" type="DW
ORD"/>
<field name="version"

type="DW

<field name="min_version"

type="DW

<field name="max_version"

type="DW

<field name="feature_bits"

type="DW

ORD"/>
ORD"/>
ORD"/>
ORD"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>

TE"
TE"
ORD"
TE"
YTE"

TE"

<toperation name="EFS_RestrictionFree">
<getenv name="req_Type"/>
<getenv name="randomkey_shakey"/>
<getenv name="time_stamp_disable"/>
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="EFS_RestrictionFree">
<req_struct>
<field name="cmd_code"
type="BY
value="254"/>
<field name="req_Type"
type="BY
value="$req_Type"/>
<field name="randomkey_shakey" type="DW
value="$randomkey_shakey"/>
<field name="is_ok"
type="BY
value="0"/>
<field name="time_stamp_disable" type="B
value="$time_stamp_disable"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
type="BY
check="254"/>
<field name="req_Type"
type="BY

TE"/>
<field name="randomkey_shakey" type="DW
ORD"/>
<field name="is_ok"

type="BY

TE"/>
<field name="time_stamp_disable" type="B
YTE"/>
<field name="randomkey_shakeyArr" type="
BYTE[16]"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="SetCmdForEFS_RestrictionFree">
<tcall class="comm" method="SetCmdStructData">

<cmd_struct name="EFS_RestrictionFree">
<req_struct>
<field name="cmd_code"
TE"

type="BY

value="254"/>
<field name="req_Type"

type="BY

TE"/>
<field name="randomkey_shakey" type="DW
ORD"/>
<field name="is_ok"
TE"

type="BY

value="0"/>
<field name="time_stamp_disable" type="B

YTE"/>

TE"

</req_struct>
<rsp_struct>
<field name="cmd_code"

type="BY

<field name="req_Type"

type="BY

check="254"/>

TE"/>
<field name="randomkey_shakey" type="DW
ORD"/>
<field name="is_ok"

type="BY

TE"/>
<field name="time_stamp_disable" type="B
YTE"/>
<field name="randomkey_shakeyArr" type="
BYTE[16]"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>

TE"

<toperation name="SetCmdForEFS_RestrictionFree2">
<tcall class="comm" method="SetCmdStructData">
<cmd_struct name="EFS_RestrictionFree2">
<req_struct>
<field name="cmd_code"
value="254"/>
<field name="req_Type"

type="BY
type="BY

TE"/>
<field name="randomkey_shakey" type="DW
ORD"/>
<field name="is_ok"
TE"

type="BY

value="0"/>
<field name="time_stamp_disable" type="B

YTE"/>
<field name="randomkey_shakeyArr" type="
BYTE[16]"/>

TE"

</req_struct>
<rsp_struct>
<field name="cmd_code"

type="BY

<field name="req_Type"

type="BY

check="254"/>

TE"/>
<field name="randomkey_shakey" type="DW
ORD"/>
<field name="is_ok"
TE"

type="BY

check="1"/>
<field name="time_stamp_disable" type="B

YTE"/>
<field name="randomkey_shakeyArr" type="

BYTE[16]"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="PRL_Write">
<getenv name="nam"/>
<getenv name="seq_num"/>
<getenv name="more"/>
<getenv name="num_bits"/>
<getenv name="prl_write_buf_size"/>
<getenv name="data"/>
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="PRL_Write">
<req_struct>
<field name="cmd_code"
TE"
value="72"/>
<field name="seq_num"
TE"
value="$seq_num"/>
<field name="more"
TE"
value="$more"/>
<field name="nam"
TE"
value="$nam"/>
<field name="num_bits"
RD"
value="$num_bits"/>
<field name="data"
TE[120]" value="$data" valuetype="ARR"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
TE"
check="72"/>
<field name="rl_status"
TE"/>
<field name="nv_stat"
RD"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="PRL_Read">
<getenv name="nam"/>
<getenv name="seq_num"/>
<getenv name="prl_read_buf_size"/>
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="PRL_Read">
<req_struct>
<field name="cmd_code"
TE"
value="73"/>
<field name="seq_num"
TE"
value="$seq_num"/>
<field name="nam"
TE"
value="$nam"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
TE"
check="73"/>
<field name="rl_status"
TE"/>
<field name="nv_stat"
RD"
check="0,5"/>

type="BY
type="BY
type="BY
type="BY
type="WO
type="BY

type="BY
type="BY
type="WO

type="BY
type="BY
type="BY

type="BY
type="BY
type="WO

<field name="seq_num"

type="BY

<field name="more"

type="BY

<field name="num_bits"

type="WO

TE"/>
TE"/>
RD"/>
<field name="data"
type="BY
valuetype="ARR"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="NV_ERI_TYPE">
<tcall class="comm" method="SetCmdStructData">
<packet_struct name="NV_ERI_TYPE">
<field name="eri_size"
type="DWORD"/>
<field name="user_eri_data"
type="BYTE[1400]"/>
</packet_struct>
</tcall>
</toperation>
<toperation name="ERI_Write">
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="ERI_Write">
<req_struct>
<field name="cmd_code"
type="BYTE"
value="254"/>
<field name="sub_code"
type="WORD"
value="8"/>
<field name="eri_data"
type="NV_ERI_TYPE"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
type="BYTE"
check="254"/>
<field name="sub_code"
type="WORD"
check="8"/>
<field name="status"
type="BYTE"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="ERI_Read">
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="ERI_Read">
<req_struct>
<field name="cmd_code"
type="BYTE"
value="254"/>
<field name="sub_code"
type="WORD"
value="7"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
type="BYTE"
check="254"/>
<field name="sub_code"
type="WORD"
check="7"/>
<field name="status"
type="BYTE"/>
<field name="eri_data"
type="NV_ERI_TYPE"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>

TE[120]"

<!-- *************************************************************************
**********************
******************************************** NV *************************
********************
***************************************************************************
******************** -->
<toperation name="NV_ReadNV">

<getenv name="enum"/>
<getenv name="nam"/>
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="nv_read">
<req_struct>
<field name="cmd"

type="BYTE" valu

e="38"/>
<field name="enum"

type="WORD" valu

<field name="nam"

type="BYTE" valu

e="$enum"/>
e="$nam"/>
<field name="item_data"

type="BY

TE[127]" valuetype="ARR"/>
<field name="state"

type="WORD" valu

e="0"/>
</req_struct>
<rsp_struct>
<field name="cmd_code" type="BYTE"
check="38"/>
<field name="enum"
type="WORD"/>
<field name="item_data"
type="BY
TE[128]" valuetype="ARR"/>
<field name="state"

type="WORD"

check ="0,5,6"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="NV_WriteNV">
<getenv name="enum"/>
<getenv name="item_data"/>
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="nv_write">
<req_struct>
<field name="cmd"
e="39"/>
<field name="enum"
e="$enum"/>
<field name="item_data"
TE[128]" value="$item_data" valuetype="ARR"/>
<field name="state"
e="0"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
check="39"/>
<field name="enum"
<field name="item_data"
TE[128]" valuetype="ARR"/>
<field name="state"
check ="0"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>

type="BYTE" valu
type="WORD" valu
type="BY
type="WORD" valu

type="BYTE"
type="WORD"/>
type="BY
type="WORD"

<!-- ***************************************************************************
********************
******************************************** TOT **************************
*******************

***************************************************************************
******************** -->
<toperation name="Flash_GetBIBInfoFromPhone">
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="3000" />
<cmd_struct name="GetBIBInfoFromPhone">
<req_struct>
<field name="cmd_code"
type="BY
TE" value="75"/>
<field name="subsys_id"
type="BYTE" value="19"/>
<field name="subsys_cmd_code" type="WO
RD" value="130"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
type="BY
TE" check="75"/>
<field name="subsys_id"
type="BYTE"/>
<field name="subsys_cmd_code" type="WO
RD"/>
<field name="code_end"
type="WO
RD"/>
<field name="efs_start"
type="WO
RD"/>
<field name="bib_crc"
type="DW
ORD"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="Flash_NandDevInfo_Alternate">
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="3000" />
<param name="fault_tolerance" value="TRUE" />
<cmd_struct name="NandDevInfo_Alternate">
<req_struct>
<field name="cmd_code"
type="BY
TE" value="75"/>
<field name="subsys_id"
type="BY
TE" value="62"/>
<field name="subsys_cmd_code" type="WO
RD" value="21"/>
<field name="pkt"
type="BY
TE[1024]" value="0"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
type="BY
TE" check="75"/>
<field name="dummy"
type="BY
TE[7]" />
<field name="total_no_of_blocks"
type="DWORD"/>
<field name="no_of_pages_per_block"
type="DWORD"/>
<field name="page_size"
type="DW
ORD"/>
<field name="total_page_size" type="DW
ORD"/>
<field name="maker_id"
type="DW

ORD"/>
<field name="device_id"
type="DWORD"/>
<field name="device_type"
type="BYTE"/>
<field name="device_name"

type="BY

TE[128]"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="Flash_NandDevInfo">
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="3000" />
<cmd_struct name="NandDevInfo">
<req_struct>
<field name="cmd_code"
type="BY
TE" value="75"/>
<field name="subsys_id"
type="BYTE" value="19"/>
<field name="subsys_cmd_code" type="WO
RD" value="21"/>
<field name="pkt"
type="BY
TE[1024]" value="0"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
type="BY
TE" check="75"/>
<field name="dummy"
type="BY
TE[7]" />
<field name="total_no_of_blocks"
type="DWORD"/>
<field name="no_of_pages_per_block"
type="DWORD"/>
<field name="page_size"
type="DW
ORD"/>
<field name="total_page_size" type="DW
ORD"/>
<field name="maker_id"
type="DW
ORD"/>
<field name="device_id"
type="DWORD"/>
<field name="device_type"
type="BYTE"/>
<field name="device_name"
type="BY
TE[128]"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="Flash_NandInitialize">
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="5000" />
<cmd_struct name="Flash_NandInitialize">
<req_struct>
<field name="cmd_code"
type="BY
TE" value="48"/>
<field name="err_code"
type="BY
TE" value="0"/>
<field name="addr"

type="DWORD" value="0"/>
<field name="max_block_cnt_info"
type="DWORD"

value="0"/>

type="DWORD"

value="0"/>

<field name="max_block_size_info"
ORD"

<field name="reserved"

type="DW

<field name="page_buf"

type="BY

</req_struct>
<rsp_struct>
<field name="cmd_code"

type="BY

<field name="err_code"

type="BY

value="0"/>

TE[512]"

TE"

value="0"/>

check="48"/>

TE"/>
<field name="addr"
type="DWORD"/>
<field name="max_block_cnt_info"
type="DWORD"/>
<field name="max_block_size_info"
type="DWORD"/>
<field name="reserved"

type="DW

ORD"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="Flash_DownloadInfo">
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="5000" />
<cmd_struct name="Flash_DownloadInfo">
<req_struct>
<field name="cmd_code"
type="BYTE" value="7"/>
<field name="protocol_id"
type="BYTE" value="0"/>
<field name="min_protocol_id"
type="BYTE" value="0"/>
<field name="max_write_size"
type="WO
RD" value="0"/>
<field name="dload_mob_model"
type="BYTE" value="0"/>
<field name="dummy1"
type="BYTE" value="0"/>
<field name="dummy2"
type="BYTE" value="0"/>
<field name="lg_dload_version"
type="BYTE" value="0"/>
<field name="lgdummy1"
type="BYTE" value="0"/>
<field name="lgdummy2"
type="BYTE" value="0"/>
<field name="lgdummy3"
type="BYTE" value="0"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
type="BYTE" check="8"/>
<field name="protocol_id"
type="BYTE"/>

<field name="min_protocol_id"
type="BYTE"/>
<field name="max_write_size"
RD"/>
<field name="dload_mob_model"
type="BYTE"/>
<field name="dummy1"
type="BYTE"/>
<field name="dummy2"
type="BYTE"/>
<field name="lg_dload_version"
type="BYTE"/>
<field name="lgdummy1"
type="BYTE"/>
<field name="lgdummy2"
type="BYTE"/>
<field name="lgdummy3"
type="BYTE"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="Flash_Write">
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="10000" />
<cmd_struct name="Flash_Write">
<req_struct>
<field name="cmd_code"
type="BYTE" value="57"/>
<field name="err_code"
type="BYTE" value="0"/>
<field name="sectorAddr"
type="DWORD" value="0"/>
<field name="numOfSector"
type="DWORD" value="0"/>
<field name="len"
type="DWORD" value="0"/>
<field name="need_ack"
type="BYTE" value="1"/>
<field name="compressed"
type="BYTE" value="0"/>
<field name="page_buf"
type="BYTE[262144]" value="0"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
type="BYTE" check="57"/>
<field name="err_code"
type="BYTE"
check="0"/>
<field name="sectorAddr"
type="DWORD"/>
<field name="numOfSector"
type="DWORD"/>
<field name="len"
type="DWORD"/>
<field name="need_ack"
type="BYTE"/>
<field name="compressed"
type="BYTE"/>
</rsp_struct>

type="WO

</cmd_struct>
</tcall>
</toperation>
<!-- ***************************************************************************
********************
****************************************Boot Status Check *****************
********************
***************************************************************************
******************** -->
<toperation name="BootCompleteStatus">
<getenv name="enum"/>
<getenv name="item_data"/>
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="5000"/>
<cmd_struct name="BootCompleteStatus">
<req_struct>
<field name="cmd"
type="BYTE" valu
e="250"/>
<field name="sub_cmd" type="WORD" valu
e="58"/>
<field name="sub_cmd2" type="WORD" valu
e="0"/>
</req_struct>
<rsp_struct>
<field name="cmd"
type="BYTE"
check="250"/>
<field name="sub_cmd" type="WORD"/>
<field name="status"
type="BYTE"/>
<field name="result"
type="BYTE"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<!-- ***************************************************************************
********************
****************************************dload command *********************
****************
***************************************************************************
******************** -->
<toperation name="DloadReset">
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="DloadReset">
<req_struct>
<field name="Cmd"
type="BYTE"
value="10"/>
</req_struct>
<rsp_struct>
<field name="State"
type="BYTE"
check="2"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="DownloadInitialize">
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="DownloadInitialize">
<req_struct>
<field name="Cmd"
type="BY
TE" value="33"/>
</req_struct>

<rsp_struct>
<field name="Cmd"
TE"

type="BY

check="33"/>
<field name="ErrorCode"

type="BY

<field name="Addr"

type="BY

<field name="Offset"

type="BY

TE"/>
TE[4]"/>
TE[2]"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="DownloadEraseCode">
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="DownloadEraseCode">
<req_struct>
<field name="Cmd"
TE" value="34"/>
</req_struct>
<rsp_struct>
<field name="Cmd"
TE" check="34"/>
<field name="ErrorCode"
TE"/>
<field name="Addr"
TE[4]"/>
<field name="Offset"
TE[4]"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="DownloadEraseEFS">
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="DownloadEraseEFS">
<req_struct>
<field name="Cmd"
TE" value="37"/>
</req_struct>
<rsp_struct>
<field name="Cmd"
TE" check="37"/>
<field name="ErrorCode"
TE"/>
<field name="Addr"
TE[4]"/>
<field name="Offset"
TE[4]"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="SetCmdForDownloadBurning">
<tcall class="comm" method="SetCmdStructData">
<cmd_struct name="DownloadBurning">
<req_struct>
<field name="Cmd"
TE"
value="35"/>
<field name="ErrorCode"

type="BY

type="BY
type="BY
type="BY
type="BY

type="BY

type="BY
type="BY
type="BY
type="BY

type="BY
type="BY

TE"

value="0"/>
<field name="Addr"

type="BY

<field name="Offset"

type="WO

<field name="Data"

type="BY

TE[4]"/>
RD"

value="16384"/>

TE[16384]"/>
</req_struct>
<rsp_struct>
<field name="Cmd"
TE"

check="35"/>

TE"

check="0"/>

type="BY

<field name="ErrorCode"

type="BY

<field name="Addr"

type="BY

<field name="Offset"

type="BY

TE[4]"/>
TE[2]"/>
</rsp_struct>
</cmd_struct>

TE"

TE"

</tcall>
</toperation>
<toperation name="SetCmdForPartitionInitialize">
<tcall class="comm" method="SetCmdStructData">
<cmd_struct name="PartitionInitialize">
<req_struct>
<field name="Cmd"
value="80"/>
</req_struct>
<rsp_struct>
<field name="Cmd"
check="80"/>
<field name="ErrorCode"

type="BY

type="BY
type="BY

TE"/>
<field name="Addr"

type="BY

<field name="Offset"

type="BY

TE[4]"/>
TE[2]"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<!-- ***************************************************************************
********************
******************************************** TOT **************************
*******************
***************************************************************************
******************** -->
<toperation name="SetCmdForNandImageBadCheck">
<tcall class="comm" method="SetCmdStructData">
<param name="waiting_time" value="5000" />
<cmd_struct name="NandImageBadCheck">
<req_struct>
<field name="cmd_code"
type="BY
TE"
value="52" />
<field name="addr"
type="DW
ORD" />
<field name="is_ecc"
type="BY
TE"
value="0" />
<field name="bad_blk"
type="BY

TE"

value="0" />
<field name="max_block_cnt_info"

type="DWORD"

value="0" />

type="DWORD"

value="0" />

type="DWORD"

value="0" />

<field name="max_block_size_info"
<field name="max_page_size_info"
<field name="done"
TE"

</req_struct>
<rsp_struct>
<field name="cmd_code"
TE"

type="BY

value="0" />
type="BY

check="52"/>
<field name="addr"

type="DW

<field name="is_ecc"

type="BY

<field name="bad_blk"

type="BY

ORD" />
TE" />
TE" />
<field name="max_block_cnt_info"
type="DWORD" />
<field name="max_block_size_info"
type="DWORD" />
<field name="max_page_size_info"
type="DWORD" />
<field name="done"

type="BY

TE" />
</rsp_struct>
</cmd_struct>

TE"

</tcall>
</toperation>
<toperation name="SetCmdForNandImageBlockErase">
<tcall class="comm" method="SetCmdStructData">
<param name="waiting_time" value="5000" />
<cmd_struct name="NandImageBlockErase">
<req_struct>
<field name="cmd_code"
value="51" />
<field name="addr"

type="BY
type="DW

ORD" />
TE"

value="0" />

TE"

value="0" />

<field name="is_ecc"

type="BY

<field name="bad_blk"

type="BY

<field name="max_block_cnt_info"
type="DWORD"

value="0" />

type="DWORD"

value="0" />

type="DWORD"

value="0" />

<field name="max_block_size_info"
<field name="max_page_size_info"
<field name="done"
TE"

</req_struct>
<rsp_struct>
<field name="cmd_code"
TE"

type="BY

value="0" />
type="BY

check="51"/>
<field name="addr"

type="DW

<field name="is_ecc"

type="BY

ORD" />
TE" />

<field name="bad_blk"

type="BY

TE" />
<field name="max_block_cnt_info"
type="DWORD" />
<field name="max_block_size_info"
type="DWORD" />
<field name="max_page_size_info"
type="DWORD" />
<field name="done"

type="BY

TE" />
</rsp_struct>
</cmd_struct>

TE"

</tcall>
</toperation>
<toperation name="SetCmdForNandImageWriteHugePage">
<tcall class="comm" method="SetCmdStructData">
<param name="waiting_time" value="5000" />
<cmd_struct name="NandImageWriteHugePage">
<req_struct>
<field name="cmd_code"
value="53" />
<field name="addr"

type="BY
type="DW

ORD" />
<field name="is_ecc"

type="BY

<field name="bad_blk"

type="BY

TE" />
TE"

value="0" />
<field name="max_block_cnt_info"

type="DWORD"

value="0" />

type="DWORD"

value="0" />

type="DWORD"

value="0" />

<field name="max_block_size_info"
<field name="max_page_size_info"
TE"

<field name="done"

type="BY

<field name="data"

type="BY

value="0" />

TE[16896]"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
TE"

type="BY

check="53"/>
<field name="addr"

type="DW

<field name="is_ecc"

type="BY

<field name="bad_blk"

type="BY

ORD" />
TE" />
TE" />
<field name="max_block_cnt_info"
type="DWORD" />
<field name="max_block_size_info"
type="DWORD" />
<field name="max_page_size_info"
type="DWORD" />
<field name="done"
TE" />
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="SetCmdForNandImageWritePage">

type="BY

TE"

<tcall class="comm" method="SetCmdStructData">


<param name="waiting_time" value="5000" />
<cmd_struct name="NandImageWritePage">
<req_struct>
<field name="cmd_code"
value="50" />
<field name="addr"

type="BY
type="DW

ORD" />
<field name="is_ecc"

type="BY

<field name="bad_blk"

type="BY

TE" />
TE"

value="0" />
<field name="max_block_cnt_info"

type="DWORD"

value="0" />

type="DWORD"

value="0" />

type="DWORD"

value="0" />

<field name="max_block_size_info"
<field name="max_page_size_info"
TE"

<field name="done"

type="BY

<field name="data"

type="BY

value="0" />

TE[2112]"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
TE"

type="BY

check="50"/>
<field name="addr"

type="DW

<field name="is_ecc"

type="BY

<field name="bad_blk"

type="BY

ORD" />
TE" />
TE" />
<field name="max_block_cnt_info"
type="DWORD" />
<field name="max_block_size_info"
type="DWORD" />
<field name="max_page_size_info"
type="DWORD" />
<field name="done"

type="BY

TE" />
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="FLASH_NandImageInit">
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="5000" />
<cmd_struct name="NandImageInit">
<req_struct>
<field name="cmd_code"
type="BY
TE" value="48"/>
<field name="addr"
type="DW
ORD" value="0"/>
<field name="isECC"
type="BY
TE" value="0"/>
<field name="bad_blk"
type="BY
TE" value="0"/>
<field name="max_block_cnt_info"
type="DWORD" value="0"/>

<field name="max_block_size_info"
type="DWORD"

value="0"/>

type="DWORD"

value="0"/>

<field name="max_page_size_info"
<field name="done"
TE"

type="BY

value="0"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"

TE"

type="BY

check="48"/>
<field name="addr"

type="DW

<field name="isECC"

type="BY

<field name="bad_blk"

type="BY

ORD" />
TE" />
TE" />
<field name="max_block_cnt_info"
type="DWORD" />
<field name="max_block_size_info"
type="DWORD" />
<field name="max_page_size_info"
type="DWORD" />
<field name="done"

type="BY

TE" />
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="FLASH_IsAvailableHugePage">
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="5000" />
<param name="fault_tolerance" value="TRUE" />
<cmd_struct name="IsAvailableHugePage">
<req_struct>
<field name="cmd_code"
TE" value="53"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
TE" check="53"/>
<field name="dummy"
TE[19]"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="FLASH_NandImageCmd">
<getenv name="cmd_code"/>
<getenv name="addr"/>
<getenv name="isECC"/>
<getenv name="bad_blk"/>
<getenv name="max_block_cnt_info"/>
<getenv name="max_block_size_info"/>
<getenv name="max_page_size_info"/>
<getenv name="max_page_cnt"/>
<getenv name="done"/>
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="5000" />
<param name="fault_tolerance" value="TRUE" />

type="BY

type="BY
type="BY

type="BYTE"
type="DWORD"
type="BYTE"
type="BYTE"
type="DWORD"
type="DWORD"
type="DWORD"
type="BYTE"
type="BYTE"

<cmd_struct name="NandImageCmd">
<req_struct>
<field name="cmd_code"
value="$cmd_code"/>
<field name="addr"
value="$addr"/>
<field name="isECC"
value="$isECC"/>
<field name="bad_blk"
value="$bad_blk"/>
<field name="max_block_cnt_info"
value="$max_block_cnt_info"/>
<field name="max_block_size_info"
value="$max_block_size_info"/>
<field name="max_page_size_info"
value="$max_page_size_info"/>
<field name="max_page_cnt"
value="$max_page_cnt"/>
<field name="done"
value="$done"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"

type="BYTE"/>
<field name="addr"
type="DWORD"/>
<field name="isECC"
type="BYTE"/>
<field name="bad_blk"
type="BYTE"/>
<field name="max_block_cnt_info"
type="DWORD"/>
<field name="max_block_size_info"
type="DWORD"/>
<field name="max_page_size_info"
type="DWORD"/>
<field name="max_page_cnt"
type="BYTE"/>
<field name="done"
type="BYTE"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<!-- ***************************************************************************
********************
************************************* Device Info *************************
********************
***************************************************************************
******************** -->
<toperation name="GetBinVersionD">
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="15000" />
<cmd_struct name="GetBinVersionD">
<req_struct>
<field name="Cmd"
type="BY
TE" value="250"/>
<field name="SubCmd"
type="WO
RD" value="71"/>
<field name="SubCmd2"
type="BY

TE"

value="0"/>
</req_struct>
<rsp_struct>
<field name="Cmd"

TE"

type="BY

check="250"/>
<field name="SubCmd"

type="WO

<field name="stat_code"

type="BY

<field name="buffer"

type="BY

RD"/>
TE"/>
TE[500]"/>
</rsp_struct>
</cmd_struct>

TE"
RD"
TE"

TE"

</tcall>
</toperation>
<toperation name="GetPIDD">
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="15000" />
<cmd_struct name="GetPIDD">
<req_struct>
<field name="Cmd"
value="250"/>
<field name="SubCmd"
value="70"/>
<field name="SubCmd2"
value="1"/>
</req_struct>
<rsp_struct>
<field name="Cmd"
check="250"/>
<field name="SubCmd"

type="BY
type="WO
type="BY

type="BY
type="WO

RD"/>
<field name="stat_code"

type="BY

<field name="buffer"

type="BY

TE"/>
TE[500]"/>
</rsp_struct>
</cmd_struct>

TE"
RD"
RD"

TE"

</tcall>
</toperation>
<toperation name="GetMEIDD">
<tcall class="comm" method="SendRecvPacket">
<cmd_struct name="GetMEIDD">
<param name="waiting_time" value="15000" />
<req_struct>
<field name="Cmd"
type="BY
value="250"/>
<field name="SubCmd"
type="WO
value="38"/>
<field name="item_enum"
type="WO
value="1943"/>
</req_struct>
<rsp_struct>
<field name="Cmd"
type="BY
check="250"/>
<field name="SubCmd"
type="WO

RD"/>
<field name="stat_code"

type="BY

<field name="nv_enum"

type="WO

TE"/>

RD"/>
<field name="itemenum"

type="QW

ORD"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="Key_LOCK">
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="15000" />
<cmd_struct name="Key_LOCK">
<req_struct>
<field name="Cmd"
type="BYTE" value="250"/>
<field name="SubCmd"
type="WORD" value="99"/>
<field name="SubCmd2"
type="BYTE" value="0"/>
</req_struct>
<rsp_struct>
<field name="Cmd"
type="BYTE" check="250"/>
<field name="SubCmd"
type="WORD"/>
<field name="ret_stat_code" type="BYTE"/>
<field name="dummy"
type="BYTE[64]"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="Key_UnLOCK">
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="15000" />
<cmd_struct name="Key_UnLOCK">
<req_struct>
<field name="Cmd"
type="BYTE" value="250"/>
<field name="SubCmd"
type="WORD" value="99"/>
<field name="SubCmd2"
type="BYTE" value="1"/>
</req_struct>
<rsp_struct>
<field name="Cmd"
type="BYTE" check="250"/>
<field name="SubCmd"
type="WORD"/>
<field name="ret_stat_code" type="BYTE"/>
<field name="dummy"
type="BYTE[64]"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="PowerOFF">
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="15000" />
<cmd_struct name="PowerOFF">
<req_struct>
<field name="Cmd"
type="BYTE" value="250"/>
<field name="SubCmd"
type="WORD" value="105"/>
<field name="SubCmd2"
type="BYTE" value="1"/>
</req_struct>
<rsp_struct>
<field name="Cmd"
type="BYTE" check="250"/>
<field name="SubCmd"
type="WORD"/>
<field name="ret_stat_code" type="BYTE"/>
<field name="dummy"
type="BYTE[64]"/>
</rsp_struct>
</cmd_struct>
</tcall>

</toperation>
<toperation name="FactoryResetColdBoot">
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="15000" />
<cmd_struct name="FactoryResetColdBoot">
<req_struct>
<field name="Cmd"
type="BYTE" value="250"/>
<field name="SubCmd"
type="WORD" value="50"/>
<field name="SubCmd2"
type="BYTE" value="3"/>
</req_struct>
<rsp_struct>
<field name="Cmd"
type="BYTE" check="250"/>
<field name="SubCmd"
type="WORD"/>
<field name="ret_stat_code" type="BYTE"/>
<field name="dummy"
type="BYTE[64]"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="BlueFactoryModeCheck">
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="15000" />
<cmd_struct name="BlueFactoryModeCheck">
<req_struct>
<field name="Cmd"
type="BYTE" value="250"/>
<field name="SubCmd"
type="WORD" value="333"/>
<field name="SubCmd2"
type="BYTE" value="0"/>
</req_struct>
<rsp_struct>
<field name="Cmd"
type="BYTE" check="250"/>
<field name="SubCmd"
type="WORD"/>
<field name="ret_stat_code" type="BYTE"/>
<field name="dummy"
type="BYTE[64]"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="SetCmdForDIAG_LRA_SCR_DOWNLOAD">
<tcall class="comm" method="SetCmdStructData">
<cmd_struct name="DIAG_LRA_SCR_DOWNLOAD">
<req_struct>
<field name="cmd_code"
type="BYTE"
value="253"/>
<field name="req_Type"
type="BYTE"/>
<field name="randomkey_shakey" type="DWORD"/>
<field name="is_ok"
type="BYTE"
value="0"/>
<field name="time_stamp_disable" type="BYTE"/>
<field name="randomkey_shakeyArr" type="BYTE[16]"/>
</req_struct>
<rsp_struct>
<field name="cmd_code"
type="BYTE"
check="253"/>
<field name="req_Type"
type="BYTE"/>
<field name="randomkey_shakey" type="DWORD"/>
<field name="is_ok"
type="BYTE"
check="1"/>
<field name="time_stamp_disable" type="BYTE"/>
<field name="randomkey_shakeyArr" type="BYTE[16]"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="DiagEnable">

<tcall class="comm" method="SendRecvPacket">


<param name="waiting_time" value="15000" />
<cmd_struct name="DiagEnable">
<req_struct>
<field name="Cmd"
type="BYTE" value="250"/>
<field name="SubCmd"
type="WORD" value="195"/>
<field name="SubCmd2"
type="BYTE" value="0"/>
</req_struct>
<rsp_struct>
<field name="Cmd"
type="BYTE" check="250"/>
<field name="SubCmd"
type="WORD"/>
<field name="ret_stat_code" type="BYTE"/>
<field name="dummy"
type="BYTE[64]"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
<toperation name="DiagDisable">
<tcall class="comm" method="SendRecvPacket">
<param name="waiting_time" value="15000" />
<cmd_struct name="DiagDisable">
<req_struct>
<field name="Cmd"
type="BYTE" value="250"/>
<field name="SubCmd"
type="WORD" value="195"/>
<field name="SubCmd2"
type="BYTE" value="1"/>
</req_struct>
<rsp_struct>
<field name="Cmd"
type="BYTE" check="250"/>
<field name="SubCmd"
type="WORD"/>
<field name="ret_stat_code" type="BYTE"/>
<field name="dummy"
type="BYTE[64]"/>
</rsp_struct>
</cmd_struct>
</tcall>
</toperation>
</toperations>

You might also like