81 lines
2.0 KiB
XML
81 lines
2.0 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
||
<packet extend="base">
|
||
<req>
|
||
|
||
<command>
|
||
<hex>99</hex>
|
||
</command>
|
||
<data extend="data">
|
||
|
||
<certiContentLen len="4" :value="certiContentLen()" cn="认证内容长度">
|
||
认证内容长度
|
||
</certiContentLen>
|
||
|
||
<certiContent cn="认证内容">
|
||
认证内容
|
||
</certiContent>
|
||
|
||
<tailSep len="1" :if=" null != $packet.data.tail " cn="尾分隔">
|
||
可选项。如果显示消息尾域,则该域必须显示。值为
|
||
“X’19”。
|
||
<hex>19</hex>
|
||
</tailSep>
|
||
|
||
<tail maxLen="32" required="false" cn="尾部">
|
||
可选项。最大长度为 32个字符。
|
||
</tail>
|
||
</data>
|
||
|
||
</req>
|
||
<res>
|
||
|
||
<command>
|
||
<hex>9A</hex>
|
||
</command>
|
||
<data>
|
||
<error len="2" cn="错误码" format="X" :catch="catchError('%s')">
|
||
<options>
|
||
<option cn="无错误">
|
||
<hex>00</hex>
|
||
</option>
|
||
</options>
|
||
</error>
|
||
|
||
<equipType len="16" cn="设备型号" >
|
||
设备型号
|
||
</equipType>
|
||
|
||
<equipNo len="16" cn="设备序号" >
|
||
设备序号
|
||
</equipNo>
|
||
|
||
<authenCodeLen len="4" cn="认证码长度">
|
||
认证码长度
|
||
</authenCodeLen>
|
||
|
||
<authenCode :len="authenCodeLen()" cn="认证码" >
|
||
认证码
|
||
</authenCode>
|
||
|
||
<tailSep len="1" required="false" cn="尾分隔">
|
||
可选项。如果显示消息尾域,则该域必须显示。值为 “X’19”。
|
||
<hex>19</hex>
|
||
</tailSep>
|
||
|
||
<tail maxLen="32" required="false" cn="尾部">
|
||
可选项。最大长度为 32个字符。
|
||
</tail>
|
||
</data>
|
||
|
||
</res>
|
||
<script>
|
||
function certiContentLen(){
|
||
var data = $packet.data;
|
||
return data.certiContent.length;
|
||
}
|
||
|
||
function authenCodeLen(){
|
||
return Util.a2i( $final.getSection('data').getSection('authenCodeLen') )
|
||
}
|
||
</script>
|
||
</packet> |