设备网络SDK开发使用手册


<?xml version="1.0" encoding="utf-8"?>
<!--req, 设备N+1能力集描述 -->
<NPlusOneAbility version="2.0">
  <!--req,配置工作模式,对应NET_DVR_N_PLUS_ONE_WORK_MODE_CFG-->
  <WorkModeCfg>
    <supportMode opt="0,1"/>
    <!--req, 支持模式:0-工作机,1-备机,不支持不显示-->
    <modeChangeReboot>true,false</modeChangeReboot>
    <!--req, true-模式改变后自动重启,不支持或不重启不显示-->
  </WorkModeCfg>
  
  <!--req, 添加删除设备,对应NET_DVR_N_PLUS_ONE_DEVICE_PARAM-->
  <AddOrDelDevice>
        <supportIP>true</supportIP>
        <!--req, 支持添加删除IP,不支持时不显示-->
        <addType opt="0,1"/>
        <!--req,添加类型 0-(工作机上)添加备机,1-(备机上)添加工作机-->
        <delType opt="0,1"/> <!--req,删除类型0-删除指定的机器(备机或工作机)1-全删-->
        <supportBackupDisable>true</supportBackupDisable> <!--req,备份功能使能开关,不支持不显示-->
        <supportPassword>true</supportPassword>
          <!--req,密码,不支持不显示-->
  </AddOrDelDevice>
  
  <!--req, 获取的N+1设备信息,对应NET_DVR_N_PLUS_ONE_DEVICE_INFO-->
  <DeviceInfo>
        <nPlusOneType opt="0,1"/>
        <!--req, N+1类型 0-备机,1-工作机-->
        <supportIP>true</supportIP>
        <!--req, 添加删除的IP地址,不支持不显示-->
        <WorkingDeviceInfo>
          <!--req, 工作机信息-->
          <linkStatus opt="0,1"/> <!--req, 连接状态 0-连接失败1-连接成功-->
          <workStatus opt="0,1"/> <!--req, 工作状态 0-正常1-异常-->
          <backupStatus opt="0,1"/> <!--req, 备份状态 0-不在备份1-正在备份-->
          <syncProgress min="0" max="100"/> <!--req, 录像同步进度-->
          <supportSyncBeginTime>true</supportSyncBeginTime> <!--req, 同步开始时间,不支持不显示-->
          <supportSyncEndTime>true</supportSyncEndTime> <!--req, 同步结束时间,不支持不显示-->
          <supportSerialNumber>true</supportSerialNumber> <!--req, 设备序列号,不支持不显示-->
          <supportSoftwareVersion>true</supportSoftwareVersion> <!--req, 设备软件版本,不支持不显示-->
              <supportDeviceType>true</supportDeviceType> <!--req, 设备类型,不支持不显示-->
              <supportGUID>true</supportGUID> <!--req, 设备GUID,不支持不显示-->
        </WorkingDeviceInfo>
        <RedundantDeviceInfo>
          <!--req, 备机机信息-->
          <workStatus opt="0,1"/> <!--req, 工作状态 0-正常1-异常-->
          <backupStatus opt="0,1,2,3"/><!--req, 备份状态:0-不在监控,1-正在监控,2-正在备份中,3-正在同步,4-正在同步和备份中-->
          <supportBackupPort>true</supportBackupPort ><!--req, 备份端口,不支持不显示-->
        </RedundantDeviceInfo>
  </DeviceInfo>
</NPlusOneAbility>