The radar PTZ camera detects people, vehicle, or other objects which enter
and loiter in a predefined virtual region to trigger intrusion alarm, and some certain
actions can be taken when the alarm is triggered.
Figure 1 API Calling Flow of
Configuring Radar Intrusion Alarm
-
Call NET_DVR_STDXMLConfig to transmit /ISAPI/System/capabilities or /ISAPI/Smart/capabilities by GET method for getting device
or smart capability to check.
-
Check whether the device supports radar intrusion detection.
It supports and continue the following steps when the nodes
<isSupporFieldDetection> and
<isSupportRadarFieldDetection> is returned
in the XML_DeviceCap and their values are "true".
\
-
It supports and continue the following steps when the node
<isSupportFieldDetection> is returned in the
XML_SmartCap and its value is "true".
-
It does not support and end this task when neither the XML_DeviceCap nor the XML_SmartCap contains node
<isSupporFieldDetection.
- Optional:
Call NET_DVR_STDXMLConfig to transmit /ISAPI/Smart/RadarChannels/<ID>/radarFieldDetection/capabilities?format=json by GET method for getting configuration
capability of radar intrusion detection.
-
Call NET_DVR_STDXMLConfig to transmit /ISAPI/Smart/RadarChannels/<ID>/radarFieldDetection?format=json by PUT method and set lpInputParam to JSON_RadarFieldDetection for setting radar intrusion detection parameters of a
channel.
-
Call NET_DVR_STDXMLConfig to transmit /ISAPI/Smart/RadarChannels/<ID>/radarFieldDetection/regions/<regionID>?format=json or /ISAPI/Smart/RadarChannels/<ID>/radarFieldDetection/regions?format=json by PUT method and set lpInputParam to JSON_RegionInfo or JSON_RegionListrespectively, for setting parameters of one or all detection
region(s).
- Optional:
Call NET_DVR_STDXMLConfig to transmit /ISAPI/Event/channels/<ID>/capabilities or /ISAPI/Event/channels/capabilities by GET method for getting event capability of
one or all channel(s).
-
Call NET_DVR_STDXMLConfig to transmit /ISAPI/Event/schedules/radarFieldDetections/<ID> or /ISAPI/Event/schedules/radarFieldDetections by PUT method, set
<ID> in the single configuration URI to
"radarFieldDetection-<channelID>" (e.g.,
/ISAPI/Event/schedules/radarFieldDetections/radarFieldDetection-101), and set
lpInputParam to XML_RadarFieldDetectionScheduleList or XML_Schedule respectively, for setting arming schedules of one or all
channel(s).
- Optional:
Call NET_DVR_STDXMLConfig to transmit /ISAPI/Event/triggersCap by GET method for getting linkage capability
of radar intrusion alarm.
-
Call NET_DVR_STDXMLConfig to transmit /ISAPI/Event/triggers/<eventType>-<channelID> by PUT method, set
<ID> in the URI to
"radarFieldDetection-<channelID>" (e.g.,
/ISAPI/Event/triggers/radarFieldDetection-101), and set lpInputParam to XML_EventTrigger for setting linkage action of a radar intrusion alarm.
Note:
To receive alarm in the platform, the linkage action must be
set to "center" (upload to center).
- Optional:
Set lCommand to "COMM_ALARM_RULE" (command
No.: 0x1102) and set wEventTypeEx to
"ENUM_VCA_EVENT_INTRUSION" for receiving radar intrusion alarm in arming mode
(see Receive Alarm/Event in Arming Mode) or listening mode (see Receive Alarm/Event in Listening Mode) when alarm is triggered.
Call NET_DVR_Logout and NET_DVR_Cleanup to log out and release resources.