设备网络SDK开发使用手册


<?xml version="1.0" encoding="utf-8"?>
<!--req, POS能力集描述 -->
<POSAbility version="2.0">
  <FilterRule>
    <maxFilterNum>4</maxFilterNum>
    <!--req,设备支持的最大可配规则数-->
    <enable opt ="true,false"/>
    <!--req,规则使能-->
    <!--req,0-UTF-8,1-GB2312,2-Latin-1,3-Latin-2,4-Latin-3,5-Latin-4,6-Cyrillic,7-Arabic,8-Greek,9-Hebrew,10-Turkish,
    11-Nordic,12-Thai,13-Latin-7,14-Latin-8,15-Latin-9,16-Latin-10,17-CentralEuropean,18-CyrillicScript-->
    <characterSetType opt="UTF-8,GB2312,Latin-1,Latin-2,Latin-3,Latin-4,Cyrillic,Arabic,Greek,Hebrew,Turkish,
                      Nordic,Thai,Latin-7,Latin-8,Latin-9,Latin-10,CentralEuropean,CyrillicScript,Hebrew"/>
    <!--req,设备支持的字符集类型-->
    <protocalType opt="Generic, AVE VSI-ADD,AVE Vnet,EPSON,NUCLEUS"/>
    <Generic>
      <!--req,Generic协议配置-->
      <caseSensitive opt="true,false"/>
      <!--req,是否支持大小写敏感-->
      <GenericStartCond>
        <exclusive opt="true,false"/>
        <!--req,是否包含标志本身,目前设备只支持起始标志位,用起始标志位同时控制起始和结束标志位-->
        <maxSignalDataLen>128</maxSignalDataLen>
        <!--req,最大标志数据长度-->
        <supportAnyChar opt="true,false"/>
        <!--req,是否支持任意字符,true-支持,false-不支持-->
        <supportHex opt="true,false"/>
        <!--req,是否支持十六进制表示,true-支持,false-不支持-->
      </GenericStartCond>
      <GenericEndCond>
        <exclusive opt="true,false"/>
        <!--req,是否包含标志本身-->
        <maxSignalDataLen>128</maxSignalDataLen>
        <!--req,最大标志数据长度-->
        <moreLine min="0" max="4"/>
        <!--req,匹配到交易结束后继续查找行数-->
        <supportHex opt="true,false"/>
        <!--req,是否支持十六进制表示,true-支持,false-不支持-->
      </GenericEndCond>
      <GenericLineSpaceCond>
        <maxSignalDataLen>128</maxSignalDataLen>
        <!--req,最大标志数据长度-->
        <supportHex opt="true,false"/>
        <!--req,是否支持十六进制表示,true-支持,false-不支持-->
      </GenericLineSpaceCond>
      <GenericIgnoreCond>
        <maxSignalDataLen>128</maxSignalDataLen>
        <!--req,最大标志数据长度-->
      </GenericIgnoreCond>
    </Generic>
    <AVE>
      <!--req,AVE协议配置-->
      <posAddr min="0" max="10"/>
      <!--req,pos地址编号范围-->
    </AVE>
    <NUCLEUS>
      <!--opt, NUCLEUS协议配置-->
      <employeeNo min="" max=""/>
      <!--opt, 员工编号-->
      <terminalNo min="" max=""/>
      <!--opt, POS机编号-->
      <shiftNo min="" max=""/>
      <!--opt, 轮班编号-->
    </NUCLEUS>
  </FilterRule>
  <ConnectMode>
    <!--req,连接方式能力-->
    <enbale opt = "true,false"/>
    <!--req,是否支持-->
    <!--req,0-TCPMonitor-监听模式(TCP),1-TCPRecv-TCP网络接受,2-Serial-串口连接,3-UDPMonitor-监听模式(UDP),
    4-Sniff-网络侦听,5-MultiCast-多播,6-USBToRS232 USB转232-->
    <connectMode opt="TCPMonitor,TCPRecv,Serial232,UDPMonitor,Sniff,MultiCast,USBToRS232"/>
    <TCPMonitor>
      <!--req,TCP模式网络监听-->
      <port min="0" max="65535"/>
      <!--req,允许配置的端口范围-->
      <restrictRemoteIPv4 opt="true,false"/>
      <!--opt,远程访问IP限制-->
    </TCPMonitor>
    <UDPMonitor>
      <!--req,UDP网络监听-->
      <port min="0" max="65535"/>
      <!--req,允许配置的端口范围-->
      <restrictRemoteIPv4 opt="true,false"/>
      <!--opt,远程访问IP限制-->
    </UDPMonitor>
    <Sniff>
      <!--req,网络侦听-->
      <enableSourcePort opt="true,false"/>
      <!--req,是否支持数据源端口过滤-->
      <enableDestAddr opt="true,false"/>
      <!--req,是否支持对目标地址过滤-->
      <enableDestPort opt="true,false"/>
      <!--req,是否支持数目标地址端口过滤-->
      <sourcePort min="0" max="65535"/>
      <!--req,数据源端口范围-->
      <destPort min="0" max="65535"/>
      <!--req,目标地址端口范围-->
    </Sniff>
    <multiCast>
      <!--req,多播-->
      <port min="0" max="65535"/>
      <!--req,允许配置的端口范围-->
    </multiCast>
    <USBToSerial232>
      <!--req,USB转232串口方式-->
      <baudRate opt="50,75,110,150,300,600,1200,2400,4800,9600,19200,38400,57600,76800,115200"/>
      <!--req设备支持的波特率,0-50,1-75,2-110,3-150,4-300,5-600,6-1200,7-2400,8-4800,9-9600,10-19200,11-38400,12-57600,13-76800,14-115.2k-->
      <dataBit opt="5,6,7,8"/>
      <!--req,数据有几位 0-5位,1-6位,2-7位,3-8位-->
      <stopBit opt="1,2"/>
      <!--req,停止位0-1位,1-2位-->
      <parity opt="none,odd,even"/>
      <!--req,校验方式 none-无校验,odd-奇校验,even-偶校验-->
      <flowcontrol opt="none,hard,soft"/>
      <!--req,流控方式 none-无,hard-硬流控,soft-软流控-->
      <virtualSerialPort min="0" max="254"/>
      <!--req,虚拟串口编号-->
    </USBToSerial232>
  </ConnectMode>
  <ChanAssociationRule>
    <!--req,通道与规则关联能力-->
    <fontSize opt="8*16,16*32,32*64"/>
    <!--req,设置支持的字体大小:0-8*16,1-16*32,2-32*64-->
    <showPosInfo opt="true,false"/>
    <!--req,设备支持码流中叠加pos信息-->
    <overlayMode opt="scroll,page"/>
    <!--req,字符叠加显示方式-->
    <delayTime min="5" max="3600"/>
    <!--req,OSD叠加消失时间,单位s-->
    <supportOSDColor opt="true,false"/>
    <!--req,是否支持颜色配置-->
    <timeOut min="5" max="3600"/>
    <!--opt,POS数据接收超时时间,单位s-->
  </ChanAssociationRule>
  <ExceptionHandle>
    <alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp,uploadcloud"/>
    <!--req,处理类型,picture:抓图并邮件(此处由于早期能力缺少uploadftp,后才加上,此处若解析不到该字符串,判断是否支持抓图传FTP再解析设备软硬件能力中的UploadFTP节点)-->
  </ExceptionHandle>
</POSAbility>