sydapi/DProto/OC.xml
2021-06-29 11:32:24 +08:00

113 lines
3.2 KiB
XML
Raw Permalink 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>OC</hex>
</command>
<data extend="data">
<print cn="打印域">
; 分隔多个打印域
</print>
<delimiter len="1" cn="分隔符">
值为“|”。
</delimiter>
<zmkSolution len="1" cn="密钥方案ZMK" >
ZMK 下加密密钥的方案。
</zmkSolution>
<lmkSolution len="1" cn="密钥方案LMK" >
ZMK 下加密密钥的方案。
</lmkSolution>
<keyCheckType len="1" cn="密钥校验值类型">
密钥校验值计算方式。
0KCV 向后兼容。
1KCV 6H。
</keyCheckType>
<businessKey len="1" cn="业务标识">
取值 N可选当选定此标识时表示密钥加密方案采用默认方式
</businessKey>
<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>OD</hex>
</command>
<data>
<error len="2" cn="错误码" format="X" :catch="catchError('%s')">
<options>
<option cn="无错误">
<hex>00</hex>
</option>
<option cn="密钥奇偶校验错">
<hex>01</hex>
</option>
<option cn="LMK 错误">
LMK 错误;报告给管理员。
<hex>13</hex>
</option>
<option cn="输入数据错">
<hex>15</hex>
</option>
<option cn="打印机没有准备好">
<hex>16</hex>
</option>
<option cn="不在授权状态">
<hex>17</hex>
</option>
<option cn="没有装载格式定义">
<hex>18</hex>
</option>
<option cn="输入数据长度错误">
<hex>80</hex>
</option>
</options>
</error>
<keyHead len="1" cn="zmk 头">
如果是 'Z' zmk 16 个字节长
如果是 'X,U,S' zmk 32 个字节长
如果是 'Y,T' zmk 48 个字节长
</keyHead>
<key :len="Len()" cn="ZMK成份">
LMK对0405变种下加密的ZMK成份。
</key>
<tailSep len="1" required="false" cn="尾分隔">
可选项。如果显示消息尾域,则该域必须显示。值为 “X19”。
<hex>19</hex>
</tailSep>
<tail maxLen="32" required="false" cn="尾部">
可选项。最大长度为 32个字符。
</tail>
</data>
</res>
<script>function Len() {
return Util.lenChoice($final.getSection('data').getSection('keyHead').getValue() )
}
</script>
</packet>