sydapi/DProto/90.xml
2021-09-16 16:20:40 +08:00

97 lines
2.5 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8" ?>
<packet extend="base">
<req>
<command>
<hex>90</hex>
</command>
<data extend="data">
<equipType len="16" cn="设备型号">
设备型号
</equipType>
<equipNo len="16" cn="设备序号">
设备型号
</equipNo>
<equipSkLen len="4" :value="equipSkLen()" cn="设备密钥私钥长度">
设备密钥私钥长度
</equipSkLen>
<equipSk cn="设备密钥私钥">
设备密钥私钥
</equipSk>
<equipPkLen len="4" :value="equipPkLen()" cn="设备密钥公钥长度">
设备密钥公钥长度
</equipPkLen>
<equipPk cn="设备密钥公钥">
设备密钥公钥
</equipPk>
<manuPkLen len="4" :value="manuPkLen()" cn="厂商公钥长度">
厂商公钥长度
</manuPkLen>
<manuPk cn=" 厂商公钥">
厂商公钥
</manuPk>
<authSign len="64" cn="授权签名">
授权签名
</authSign>
<tailSep len="1" :if=" null != $packet.data.tail " cn="尾分隔">
可选项。如果显示消息尾域,则该域必须显示。值为
“X19”。
<hex>19</hex>
</tailSep>
<tail maxLen="32" required="false" cn="尾部">
可选项。最大长度为 32个字符。
</tail>
</data>
</req>
<res>
<command>
<hex>91</hex>
</command>
<data>
<error len="2" cn="错误码" format="X" :catch="catchError('%s')">
<options>
<option cn="无错误">
<hex>00</hex>
</option>
</options>
</error>
<tailSep len="1" required="false" cn="尾分隔">
可选项。如果显示消息尾域,则该域必须显示。值为 “X19”。
<hex>19</hex>
</tailSep>
<tail maxLen="32" required="false" cn="尾部">
可选项。最大长度为 32个字符。
</tail>
</data>
</res>
<script>
function equipSkLen(){
var data = $packet.data;
return data.equipSk.length;
}
function equipPkLen(){
var data = $packet.data;
return data.equipPk.length;
}
function manuPkLen(){
var data = $packet.data;
return data.manuPk.length;
}
</script>
</packet>