Control and Operation

You can arming or disarm the partitions in the zones, perform bypass or bypass recovered on the zones of security control panels, clear alarms, and control the relays via different integration methods, i.e., calling API with command and calling API to transmit request URI with messages.

Function

Description

Get Operation and Control Capability

Call NET_DVR_STDXMLConfig to transmit the request URI: /ISAPI/SecurityCP/control/capabilities?format=json, and the capability is returned in the response message of JSON_HostControlCap.

Zone Bypass and Bypass Recovered

Bypass

Call NET_DVR_BypassAlarmChan and set the input parameter pointer (lpInter) to the structure NET_DVR_ALARMIN_SETUP.

Call NET_DVR_STDXMLConfig to transmit the request URI: PUT /ISAPI/SecurityCP/control/bypass/<ID>?format=json. This operation is for a single zone.

Call NET_DVR_STDXMLConfig to transmit the request URI: PUT /ISAPI/SecurityCP/control/bypass?format=json, and set the request message to JSON_List_ID. This operation is for multiple zones.

Bypass Recovered

Call NET_DVR_UnBypassAlarmChan and set the input parameter pointer (lpInter) to the structure NET_DVR_ALARMIN_SETUP.

Call NET_DVR_STDXMLConfig to transmit the request URI: PUT /ISAPI/SecurityCP/control/bypassRecover/<ID>?format=json. This operation is for a single zone.

Call NET_DVR_STDXMLConfig to transmit the request URI: PUT /ISAPI/SecurityCP/control/bypassRecover?format=json, and set the request message to JSON_List_ID. This operation is for multiple zones.

Arm and Disarm Partition

Arm

(Recommended) Call NET_DVR_RemoteControl with the command of NET_DVR_ARM_ALARMHOST_SUBSYSTEM (command No.: 2036), and set the input parameter pointer (lpInBuffer) to the structure of NET_DVR_CONTROL_PARAM for stay arming, instant arming, or away arming.

Call NET_DVR_AlarmHostSubSystemSetupAlarmChan.

Call NET_DVR_STDXMLConfig to transmit the request URI: PUT /ISAPI/SecurityCP/control/arm/<ID>?ways=<string>&format=json, and set the query parameter (ways) to "stay" or "away".

Disarm

(Recommended) Call NET_DVR_RemoteControl with the command of NET_DVR_ALARMHOST_CLOSE_SUBSYSTEM (command No.: 2082), and set the input parameter pointer (lpInBuffer) to the structure of NET_DVR_CONTROL_PARAM.

Call NET_DVR_AlarmHostSubSystemCloseAlarmChan.

Call NET_DVR_STDXMLConfig to transmit the request URI: PUT /ISAPI/SecurityCP/control/disarm/<ID>?format=json.

Clear Alarm

Call NET_DVR_AlarmHostClearAlarm.

Call NET_DVR_STDXMLConfig to transmit the request URI: PUT /ISAPI/SecurityCP/control/clearAlarm/<ID>?format=json.

Control Relay

Call NET_DVR_SetAlarmHostOut.

Call NET_DVR_STDXMLConfig to transmit the request URI: PUT /ISAPI/SecurityCP/control/outputs/<ID>?format=json, and set the request message to JSON_OutputsCtrl. This operation is for a single relay.

Call NET_DVR_STDXMLConfig to transmit the request URI: POST /ISAPI/SecurityCP/control/outputs?format=json, and set the request message to JSON_OutputsCtrl. This operation is for multiple relays.

Control Siren

Call NET_DVR_STDXMLConfig to transmit the request URI: POST /ISAPI/SecurityCP/control/siren/<ID>?format=json, and set lpInBuffer of lpInputParam to the message JSON_SirenCtrl.

Pircam Capture

Get Picture Captured by Pircam in Synchronous Mode

Call NET_DVR_STDXMLConfig to transmit the request URI: GET /ISAPI/SecurityCP/pircam/picture/channels/<ID>?format=json, and the URI of the picture captured by the pircam is returned in the message JSON_Picture by lpOutputParam.

Get Capability of Controlling Pircam to Capture Pictures or Record Videos in Asynchronous Mode

Call NET_DVR_STDXMLConfig to transmit the request URI: GET /ISAPI/SecurityCP/pircam/picture/mode/capabilities?format=json, and the capability is returned in the message JSON_Cap_PircamMode by lpOutputParam.

Control Pircam to Capture Pictures in Asynchronous Mode

Call NET_DVR_STDXMLConfig to transmit the request URI: PUT /ISAPI/SecurityCP/pircam/picture/channels/<ID>/mode?format=json and set lpInputParam to the message JSON_PircamMode.

Get Pircam Capture Parameters Being Added Currently in Asynchronous Mode

Call NET_DVR_STDXMLConfig to transmit the request URI: GET /ISAPI/SecurityCP/pircam/picture/channels/<ID>/currentAddAsyn?format=json, and the parameters are returned in the message JSON_Pircam by lpOutputParam.