设备网络SDK开发使用手册


<EventNotificationAlert version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
  <ipAddress>
    <!--dep, xs:string, 设备IPv4地址-->
  </ipAddress>
  <ipv6Address>
    <!--dep, xs:string, 设备IPv6地址-->
  </ipv6Address>
  <portNo>
    <!--opt, xs:integer, 设备端口号-->
  </portNo>
  <protocol>
    <!--opt, xs:string, "HTTP,HTTPS", 协议类型-->
  </protocol>
  <macAddress>
    <!--opt, xs:string, MAC地址-->
  </macAddress>
  <channelID>
    <!--dep, xs:string, 通道号-->
  </channelID>
  <dateTime>
    <!--req, xs:datetime ios8601, eg:2017-04-22T15:39:01+08:00-->
  </dateTime>
  <activePostCount>
    <!--req, xs:integer, 激活端口次数, 代表着设备对同一个目标触发的报警次数-->
  </activePostCount>
  <eventType>
    <!--req, xs:string, "AID"表示AID交通事件报警信息-->
  </eventType>
  <eventState>
    <!--req, xs:string, "active,inactive", 报警上报时为active, 心跳上报时为inactive-->
  </eventState>
  <eventDescription>
    <!--req, xs:string, 事件描述-->
  </eventDescription>
  <channelName>
    <!--opt,xs:string, "通道名称"-->
  </channelName>
  <AID>
    <!--dep, if <eventType> is "AID" -->
    <illegalTrafficEvent>
      <!--req,xs:string, "违章事件类型: illegalParking(违停),wrongDirection(逆行),crossLane(压线),
      congestion(拥堵),pedestrian(行人检测),objectDroppedDown(物体坠落),smoke(烟雾),turnRound(掉头),
      laneChange(变道),vehicleExist(机占非),edfManual(手动取证),trafficAccident(交通事故检测),
      construction(施工),roadBlock(路障),abandonedObject(抛洒物),parallelParking(侧方位停车),fogDetection(烟雾检测), 
      unknown(未知)"-->
    </illegalTrafficEvent>
    <VehicleInfo>
      <!--opt,车辆信息-->
      <vehicleSpeed>
        <!--opt,xs:integer,"车辆时速[0~255km/h]"-->
      </vehicleSpeed>
      <vehicleEnterState>
        <!--opt,xs:string,"车辆出入状态: vehicleEnter(车辆驶入),vehicleExit(车辆驶出)"-->
      </vehicleEnterState>
      <vehicleConfidence>
        <!--opt,xs:float,"车辆置信度[0~100.0]"-->
      </vehicleConfidence>
    </VehicleInfo>
    <PlateInfo>
      <!--opt,车牌信息-->
      <plate>
        <!--req,xs:string,"车牌号码,例如:浙A12345"-->
      </plate>
      <plateType>
        <!--req,xs:string,"车牌类型: unknown(未知),92TypeCivil(92式民用车),arm(警车),upDownMilitay(上下军车),
        92TypeArm(92式武警车),leftRightMilitay(左右军车),02TypePersonalized(02式个性化车),yellowTwoLine(黄色双行尾牌),
        04NewMilitay(04式新军车),embassy(使馆车),oneLineArm(一行结构的新武警车),twoLineArm(两行结构的新武警车),
        yellow1225FarmVehicle(黄色1225农用车),green1325FarmVehicle(绿色1325农用车),yellow1325FarmVehicle(黄色1325结构农用车),
        motorola(摩托车),coach(教练车),tempTravl(临时行驶车),trailer(挂车),consulate(领馆汽车),hongKongMacao(港澳入出车),
        tempEntry(临时入境车),civilAviation(民航车牌),newEnergy(新能源车牌)"-->
      </plateType>
      <plateColor>
        <!--req,xs:string,"车牌颜色: white(白色),yellow(黄色),blue(蓝色),black(黑色),green(绿色),
        civilAviationBlack(民航黑色),civilAviationGreen(民航绿色)"-->
      </plateColor>
      <licenseBright>
        <!--opt,xs:integer,"车牌亮度值[0~255]"-->
      </licenseBright>
      <confidence>
        <!--opt,xs:float,"车牌置信度[0~100.0]"-->
      </confidence>
    </PlateInfo>
    <region>
      <!--opt,xs:string,"地区"-->
    </region>
    <country>
      <!--opt,xs:string,"国家"-->
    </country>
    <parkingSerialNo>
      <!--dep,xs:integer, 当<illegalTrafficEvent>为"parallelParking"时有效, 表示泊车编号, 可由数字与字母组成, 目前最大支持16个字符, 
      上层用户需确保唯一性,对应接口配置URL为:/ISAPI/Traffic/channels/<ID>/AID/<SID>/parallelParking -->
    </parkingSerialNo>
  </AID>
  <detectionPictureTransType>
    <!--opt,xs:string, "图片传输方式", "url(图片URL, 返回PictureURLInfoList节点), <BR/>
    binary(图片二进制数据, 图片数据见NET_DVR_AID_ALARM_V41结构体里面的dwPicDataLen、pImage参数)"-->
  </detectionPictureTransType>
  <detectionPicturesNumber>
    <!--opt,xs:string, "表示布防接收报警中包含的图片数量(目前每次只支持一张图片抓拍上传), 有图片返回, 没有图片不返回"-->
  </detectionPicturesNumber>
  <PictureURLInfoList>
    <!--dep, 图片URL信息列表, 当<detectionPictureTransType>为"url"时有效-->
    <PictureURLInfo>
      <!--opt,图片URL信息-->
      <pictureName>
        <!--req,xs:string,"图片名称: detectionPicture"-->
      </pictureName>
      <pictureURL>
        <!--req,xs:string,"图片URL"-->
      </pictureURL>
    </PictureURLInfo>
  </PictureURLInfoList>
</EventNotificationAlert>