NET_DVR_CONTROL_PARAM

Control Parameter Structure

Member

Data Type

Description

dwSize

DWORD

Structure size.

sDeviceID

Array of BYTE

ID of device to be controlled, you can set it to "NULL". The maximum size is 32 bytes (value of macro definition "NAME_LEN").

wChan

WORD

Channel to be controlled, it is invalid, set to 0.

byIndex

BYTE

No. of different control objects, it varies with different control commands (dwCommand) in the API NET_DVR_RemoteControl, see details in Table 1.

byRes1

BYTE

Reserved, set to 0.

dwControlParam

DWORD

Control parameters, which are different according to different control commands, see details in Table 2.

byMandatoryAlarm

BYTE

Whether to force arming: 0-no, 1-yes.

byRes2

BYTE

Reserved, set to 0.

wZoneIndex

WORD

Zone No.

byOperatorCode

Array of BYTE

Control No. The maximum size is 16 bytes.

dwPlanNo

DWORD

4-byte plan No.

byRes3

Array of BYTE

Reserved, set to 0. The maximum size is 8 bytes.

Table 1 Control Object No. Corresponding to Different Control Commands

dwCommand

byIndex

Command Description

NET_DVR_OPEN_PLAN

Plan No.

Control plan.

NET_DVR_TURNON_LED

Invalid

Enable LED.

NET_DVR_TURNOFF_LED

Invalid

Disable LED.

NET_DVR_SET_LED_BRIGHTNESS

Serial No., which is ranging from 0 to n (determined by device capability).

Manually set the brightness of LED.

NET_DVR_CLOSE_SUBSYSTEM_FAULT_ALARM

Partition No., which starts from 1, 0xffffffff-all partitions.

Turn off the prompt sound of partition fault.

NET_DVR_SET_SUBSYSTEM_BYPASS

Partition No., which starts from 1, 0xffffffff-all partitions.

Perform bypass on partition.

NET_DVR_CANCEL_SUBSYSTEM_BYPASS

Partition No., which starts from 1, 0xffffffff-all partitions.

Perform bypass recovered on partition.

NET_DVR_ARM_ALARMHOST_SUBSYSTEM

Partition No., which starts from 1, 0xffffffff-all partitions.

Arm the partition by different arming types.

Table 2 Control Parameters Corresponding to Different Control Commands

dwCommand

dwControlParam

NET_DVR_OPEN_PLAN

1-plan started, 2-plan ended

NET_DVR_TURNON_LED

Invalid, set to 0.

NET_DVR_TURNOFF_LED

Invalid, set to 0.

NET_DVR_SET_LED_BRIGHTNESS

Brightness value, which is ranging from 0 to 15.

NET_DVR_CLOSE_SUBSYSTEM_FAULT_ALARM

Invalid, set to 0.

NET_DVR_SET_SUBSYSTEM_BYPASS

Invalid, set to 0.

NET_DVR_CANCEL_SUBSYSTEM_BYPASS

Invalid, set to 0.

NET_DVR_ARM_ALARMHOST_SUBSYSTEM

Arming types: 1-away arming, 2-instant arming, 3-stay arming.