XML_EventNotificationAlert_TrafficIncidentAlarmMsg

XML message about traffic incident alarm details

<EventNotificationAlert version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
  <ipAddress><!--dependent, xs: string, alarm device IPv4 address--></ipAddress>
  <ipv6Address><!--dependent, xs: string, alarm device IPv6 address--></ipv6Address>
  <portNo><!--optional, xs: integer, alarm device port No.--></portNo>
  <protocol><!--optional, xs: string, protocol type: HTTP, HTTPS--></protocol>
  <macAddress><!--optional, xs: string; Mac address--></macAddress>
  <channelID><!--dependent, xs: string, device channel No. that triggers alarm--></channelID>
  <dateTime><!--required, xs: datetime, alarm triggering time based on ISO8601 time format, e.g., 2017-04-22T15:39:01+08:00--></dateTime>
  <activePostCount><!--required, xs: integer, event occurred times--></activePostCount>
  <eventType><!--required, xs: string, event type, here it should be set to "AID"--></eventType>
  <eventState><!--required, xs: string, event triggering status: "active"-triggered, "inactive"-not triggered (refers to heartbeat data)--></eventState>
  <eventDescription><!--required, xs: string--></eventDescription>
  <channelName><!--optional, xs: string, channel name (or camera name)--></channelName>
  <deviceID><!--optional, xs: string, device ID--></deviceID>
  <AID><!--dependent, this node is valid when <eventType> is "AID" -->
    <illegalTrafficEvent>
      <!--required, xs: string, "illegalParking,wrongDirection,crossLane,congestion,pedestrian,objectDroppedDown,smoke,turnRound,laneChange,vehicleExist,edfManual,trafficAccident,construction,roadBlock,abandonedObject,parallelParking, fogDetection,lowSpeed,dragRacing,SSharpDriving,unknown"-->
    </illegalTrafficEvent>
    <VehicleInfo><!--optional, vehicle information-->
      <vehicleSpeed><!--optional, xs: integer, vehicle speed, which is between 0 and 255, unit: km/h--></vehicleSpeed>
      <vehicleEnterState><!--optional, xs: string, "vehicleEnter, vehicleExit"--></vehicleEnterState>
      <vehicleConfidence><!--optional, xs: float, vehicle picture confidence, which is between 0 and 100.0--></vehicleConfidence>
    </VehicleInfo>	
    <PlateInfo><!--optional, license plate information-->
      <plate><!--required, xs: string, license plate number--></plate>
      <plateType>
        <!--required, xs: string, "unknown,92TypeCivil,arm,upDownMilitay,92TypeArm,leftRightMilitay,02TypePersonalized,yellowTwoLine,04NewMilitay,embassy,oneLineArm,twoLineArm,yellow1225FarmVehicle,green1325FarmVehicle,yellow1325FarmVehicle,motorola,coach,tempTravl,trailer,consulate,hongKongMacao,tempEntry,civilAviation,newEnergy"-->
      </plateType>
      <plateColor>
	<!--required, xs: string, "white,yellow,blue,black,green,civilAviationBlack,civilAviationGreen"-->
      </plateColor>
      <licenseBright><!--optional, xs: integer, brightness of license plate picture, which is between 0 and 255--></licenseBright>
      <confidence><!--optional, xs: float, confidence of license plate picture, which is between 0 and 100.0--></confidence>
    </PlateInfo>	
    <region><!--optional, xs: string, region--></region>
    <country><!--optional, xs: string, country--></country>
    <parkingSerialNo>
      <!--dependent, xs: integer, parking ID, which consists of up to 16 characters with numerics and letters, this node is valid when <illegalTrafficEvent> is "parallelParking"-->
    </parkingSerialNo>
    <targetType>
      <!--dependent, xs: string, detection target type, this node is valid when the <illegalTrafficEvent> is "pedestrian, twoWheelVehicle, threeWheelVehicle"-->
    </targetType>
    <AIDGPSInfo><!--optional, GPS information of the AID event (congestion event is not included)-->
      <longitudeType><!--required, xs:string, longitude, "E,W"--></longitudeType>
      <latitudeType><!--required, xs:string, latitude, "S,N"--></latitudeType>
      <Longitude><!--required, longitude information-->
        <degree><!--required, xs:integer--></degree>
        <minute><!--required, xs:integer--></minute>
        <sec><!--required, xs:float, accurate to 6 decimal places--></sec>
      </Longitude>
      <Latitude><!--required, latitude information-->
        <degree><!--required, xs:integer--></degree>
        <minute><!--required, xs:integer--></minute>
        <sec><!--required, xs:float, accurate to 6 decimal places--></sec>
      </Latitude>
    </AIDGPSInfo>
    <CongestionHeadGPSInfo><!--optional, GPS information of the front of the congestion-->
      <longitudeType><!--required, xs:string, longitude, "E,W"--></longitudeType>
      <latitudeType><!--required, xs:string, latitude, "S,N"--></latitudeType>
      <Longitude><!--required, longitude information-->
        <degree><!--required, xs:integer--></degree>
        <minute><!--required, xs:integer--></minute>
        <sec><!--required, xs:float, accurate to 6 decimal places--></sec>
      </Longitude>
      <Latitude><!--required, latitude information-->
        <degree><!--required, xs:integer--></degree>
        <minute><!--required, xs:integer--></minute>
        <sec><!--required, xs:float, accurate to 6 decimal places--></sec>
      </Latitude>
    </CongestionHeadGPSInfo>
    <CongestionTailGPSInfo><!--optional, GPS information of the end of the congestion-->
      <longitudeType><!--required, xs:string, longitude, "E,W"--></longitudeType>
      <latitudeType><!--required, xs:string, latitude, "S,N"--></latitudeType>
      <Longitude><!--required, longitude information-->
        <degree><!--required, xs:integer--></degree>
        <minute><!--required, xs:integer--></minute>
        <sec><!--required, xs:float, accurate to 6 decimal places--></sec>
      </Longitude>
      <Latitude><!--required, latitude information-->
        <degree><!--required, xs:integer--></degree>
        <minute><!--required, xs:integer--></minute>
        <sec><!--required, xs:float, accurate to 6 decimal places--></sec>
      </Latitude>
    </CongestionTailGPSInfo>
    <OtherVehicleInfoList><!--optional, information list of other vehicles (vehicle information above is not included); this node is returned only when there are two or more vehicles in the AID event; pictures of the vehicles in this list cannot be uploaded-->
      <OtherVehicleInfo><!--list, information of other vehicle (single vehicle), picture of this vehicle cannot be uploaded-->
        <VehicleInfo><!--optional, vehicle information-->
          <vehicleSpeed><!--optional, xs:integer, vehicle speed, value range: [0,255], unit: km/h--></vehicleSpeed>
          <vehicleEnterState><!--optional, xs:string, "vehicleEnter,vehicleExit"--></vehicleEnterState>
          <vehicleConfidence><!--optional, xs:float, vehicle confidence, value range: [0,100.0]--></vehicleConfidence>
          <vehicleType><!--optional, xs:string, vehicle type--></vehicleType>
          <vehicleColor><!--optional, xs:string, vehicle color--></vehicleColor>
        </VehicleInfo>
        <PlateInfo><!--optional, license plate information-->
          <plate><!--required, xs:string, license plate number--></plate>
          <plateType><!--required, xs:string, license plate type: "unknown,92TypeCivil,arm,upDownMilitay,92TypeArm,leftRightMilitay,02TypePersonalized,yellowTwoLine,04NewMilitay,embassy,oneLineArm,twoLineArm,yellow1225FarmVehicle,green1325FarmVehicle,yellow1325FarmVehicle,motorola,coach,tempTravl,trailer,consulate,hongKongMacao,tempEntry,civilAviation,newEnergy"--></plateType>
          <plateColor><!--required, xs:string, license plate color: "white,yellow,blue,black,green,civilAviationBlack,civilAviationGreen"--></plateColor>
          <licenseBright><!--optional, xs:integer, brightness of the license plate, value range: [0,255]--></licenseBright>
          <confidence><!--optional, xs:float, license plate confidence, value range: [0,100.0]--></confidence>
        </PlateInfo>
      </OtherVehicleInfo>
    </OtherVehicleInfoList>
    <CRIndex><!--optional, xs:integer, country or region index, "0"-generic--></CRIndex>
    <Position><!--optional, target center offset relative to the camera (unit: meter), it is represented by X-coordinate and Y-coordinate. For the X-coordinate, the left direction along the X-axis is negative and the right direction is positive. For the Y-coordinate, the upward direction along the Y-axis is positive and there is no negative value. The midpoint of the horizontal line (it is perpendicular to the lane) where the camera is located is the origin, which is also the midpoint of all lanes-->
      <x><!--required, xs:float, X-coordinate--></x>
      <y><!--required, xs:float, Y-coordinate--></y>
    </Position>
  </AID>
  <detectionPictureTransType><!--optional, xs: string, picture transmission mode: "url, binary"--></detectionPicture>
  <detectionPicturesNumber>
    <!--optional, xs: string, number of alarm pictures, this node will be returned only when the pictures exist in the alarm information-->
  </detectionPicturesNumber>
  <PictureURLInfoList><!--dependent, picture URL list, this node is valid when <detectionPictureTransType> is "url"-->
    <PictureURLInfo><!--optional-->
      <pictureName><!--required, xs: string--><pictureName>
      <pictureURL><!--required, xs: string--></pictureURL>
    </PictureURLInfo>
  </PictureURLInfoList>
  <monitoringSiteID><!--optional, xs:string, camera No.--></monitoringSiteID>
  <monitorDescription><!--optional, xs:string, camera information--></monitorDescription>
  <SceneInfo><!--optional, scene information-->
    <scenesID><!--optional, xs:string, scene ID, value range: [1,16]--></scenesID>
    <sceneName><!--optional, xs:string, scene name, the maximum size is 32 bytes--></sceneName>
    <PTZPos><!--optional, PTZ information-->
      <elevation><!--optional, xs:integer, value range: [-900,2700]--></elevation>
      <azimuth><!--optional, xs:integer, value range: [0,3600]--></azimuth>
      <absoluteZoom><!--optional, xs:integer, value range: [0,1000]--></absoluteZoom>
    </PTZPos>
  </SceneInfo>
  <detectDir><!--optional, xs:integer, detection direction: 1-upward, 2-downward, 3-bidirectional, 4-from east to west, 5-from south to north, 6-from west to east, 7-from north to south, 8-others--></detectDir>
  <UUID><!--optional, xs:string, UUID (general unique identification code), it is used to link the same capture across servers--></UUID>
</EventNotificationAlert>

Interaction Example of Receiving Traffic Incident Alarm in Arming Mode

GET /ISAPI/Event/notification/alertStream HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: en-US
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
Accept-Encoding: gzip, deflate
Host: 10.17.133.46
DNT: 1
Connection: Keep-Alive
Cookie: language=zh; sdMarkMenu=8%3Avehicle; sdMarkTab_1_0=0%3AsettingBasic; sdMarkTab_6_0=5%3AeventException; sdMarkTab_6_1=6%3AsmartLoiterDetection; sdMarkTab_7_0=1%3AplanCapture; sdMarkTab_7_1=0%3AstorageManageHarddisk; sdMarkTab_8=0%3AvehicleParam; WebSession=f81610c130711300cf30

HTTP/1.1 200 OK
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=boundary

--boundary
Content-Type: application/xml; charset="UTF-8"
Content-Length: 480

<EventNotificationAlert version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
  <ipAddress>172.6.64.7</ipAddress>
  <ipv6Address>fe80::4080:c199:f513:3ebf%13</ipv6Address>
  <portNo>8000</portNo>
  <macAddress>01:17:24:45:D9:F4</macAddress>
  <channelID>1</channelID>
  <dateTime>2017-04-22T15:39:01+08:00</dateTime>
  <activePostCount>1</activePostCount>
  <eventType>AID</eventType>
  <eventState>active</eventState>
  <eventDescription>automatic incident detection</eventDescription>
  <channelName>Camera1</channelName>
  <AID>      
    <illegalTrafficEvent>illegalParking</illegalTrafficEvent>
    <VehicleInfo>
      <vehicleSpeed>60</vehicleSpeed>
      <vehicleEnterState>vehicleEnter</vehicleEnterState>
      <vehicleConfidence>99.9</vehicleConfidence>
    </VehicleInfo>	
    <PlateInfo>
      <plate>XA12345</plate>
      <plateType>92TypeCivil</plateType>
      <plateColor>blue</plateColor>
      <licenseBright>100</licenseBright>
      <confidence>99.9</confidence>
    </PlateInfo>	
    <region>1</region>
    <country>1</country>
    <parkingSerialNo>1</parkingSerialNo>
    <relatedLaneNo>1</relatedLaneNo>
  </AID>
  <detectionPictureTransType>binary</detectionPicture>
  <detectionPicturesNumber>1</detectionPicturesNumber>
  <PictureURLInfoList>        
    <PictureURLInfo>                 
      <pictureName>detectionPicture<pictureName>                 
      <pictureURL></pictureURL>
    </PictureURLInfo>
  </PictureURLInfoList>
</EventNotificationAlert>
--boundary
Content-Disposition: form-data; 
Content-Type: image/pjpeg
Content-Length: 480

......JFIF.....`.`.....C........... .
..
................. $.' ",#..(7),01444.'9=82<.342...C. ....

.2!.!22222222222222222222222222222222222222222222222222......q.<.."..................................... 
.....................}........!1A..Qa."q.2....#B...R..$3br. 
.....%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz....................................................................................................... 
.....................w.......!1..AQ.aq."2...B.... #3R..br.
.$4.
--boundary--

Interaction Example of Receiving Traffic Incident Alarm in Listening Mode

POST /test HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: en-US
Content-Type: multipart/form-data; boundary=---------------------------7e13971310878
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept-Encoding: gzip, deflate
Host: 10.10.36.29:8080
Content-Length: 9907
Connection: Keep-Alive
Cache-Control: no-cache

--boundary
Content-Disposition: form-data; name="aid.xml";filename="aid.xml";
Content-Type: text/xml
Content-Length: 150


<EventNotificationAlert/>
--boundary
Content-Disposition: form-data; name="detectionPicture.jpg";filename="detectionPicture.jpg";
Content-Type: image/pjpeg
Content-Length: 9907


......JFIF.....`.`.....C........... .
..
................. $.' ",#..(7),01444.'9=82<.342...C. ....

.2!.!22222222222222222222222222222222222222222222222222......q.<.."..................................... 
.....................}........!1A..Qa."q.2....#B...R..$3br. 
.....%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz....................................................................................................... 
.....................w.......!1..AQ.aq."2...B.... #3R..br.
.$4.
--boundary--
HTTP/1.1 200 OK
test: mime
Connection: Keep-Alive
Content-Length: 183
Cache-Control: no-store