Skip to content
This SDK only works with devices released within the past 3 years. We regularly optimize and update the SDK to ensure compatibility and performance. We do not guarantee compatibility or provide technical support for devices older than 3 years.

# NET_SDK_N9000_ALARM_TYPE

### Enum Definition

C++C#

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    enum NET_SDK_N9000_ALARM_TYPE
    {
        NET_SDK_N9000_ALARM_TYPE_RANGE_BEGIN,
        NET_SDK_N9000_ALARM_TYPE_MOTION = 0x01,
        NET_SDK_N9000_ALARM_TYPE_SENSOR,
        NET_SDK_N9000_ALARM_TYPE_VLOSS,
        NET_SDK_N9000_ALARM_TYPE_FRONT_OFFLINE,
        NET_SDK_N9000_ALARM_TYPE_OSC,
        NET_SDK_N9000_ALARM_TYPE_AVD,
        NET_SDK_N9000_ALARM_TYPE_AVD_SCENE,
        NET_SDK_N9000_ALARM_TYPE_AVD_CLARITY,
        NET_SDK_N9000_ALARM_TYPE_AVD_COLOR,
        NET_SDK_N9000_ALARM_TYPE_PEA_TRIPWIRE,
        NET_SDK_N9000_ALARM_TYPE_PEA_PERIMETER,
        NET_SDK_N9000_ALARM_TYPE_VFD,
        NET_SDK_N9000_ALARM_TYPE_CDD,
        NET_SDK_N9000_ALARM_TYPE_IPD,
        NET_SDK_N9000_ALARM_TYPE_CPC,
        NET_SDK_N9000_ALARM_TYPE_FACE_MATCH,
        NET_SDK_N9000_ALARM_TYPE_FACE_MATCH_FOR_IPC,
        NET_SDK_N9000_ALARM_TYPE_PEA_FOR_IPC,
        NET_SDK_N9000_ALARM_TYPE_TRAJECT,
        NET_SDK_N9000_ALARM_TYPE_VEHICE,
        NET_SDK_N9000_ALARM_TYPE_AOIENTRY,
        NET_SDK_N9000_ALARM_TYPE_AOILEAVE,
        NET_SDK_N9000_ALARM_TYPE_PASSLINE,
        NET_SDK_N9000_ALARM_TYPE_TRAFFIC,
        NET_SDK_N9000_ALARM_TYPE_DOOR_BELL,
        NET_SDK_N9000_ALARM_TYPE_PVD,
        NET_SDK_N9000_ALARM_TYPE_LOITER,
        NET_SDK_N9000_ALARM_TYPE_ASD,
        NET_SDK_N9000_ALARM_TYPE_EXCEPTION = 0x41,
        NET_SDK_N9000_ALARM_TYPE_IP_CONFLICT,
        NET_SDK_N9000_ALARM_TYPE_DISK_IO_ERROR,
        NET_SDK_N9000_ALARM_TYPE_DISK_FULL,
        NET_SDK_N9000_ALARM_TYPE_RAID_SUBHEALTH,
        NET_SDK_N9000_ALARM_TYPE_RAID_UNAVAILABLE,
        NET_SDK_N9000_ALARM_TYPE_ILLEIGAL_ACCESS,
        NET_SDK_N9000_ALARM_TYPE_NET_DISCONNECT,
        NET_SDK_N9000_ALARM_TYPE_NO_DISK,
        NET_SDK_N9000_ALARM_TYPE_SIGNAL_SHELTER,
        NET_SDK_N9000_ALARM_TYPE_HDD_PULL_OUT,
        NET_SDK_N9000_ALARM_TYPE_ALARM_OUT = 0x51,
        NET_SDK_N9000_ALARM_TYPE_DISARM,
        NET_SDK_N9000_ALARM_TYPE_ARM,
        NET_SDK_N9000_ALARM_TYPE_TEMPERATURE_ALARM = 0x61,
        NET_SDK_N9000_ALARM_TYPE_FIREPOINT,
        NET_SDK_N9000_ALARM_TYPE_BINOCULARCOUNT_OVERMAN,
        NET_SDK_N9000_ALARM_TYPE_BINOCULARCOUNT_REVERSE,
        NET_SDK_N9000_ALARM_TYPE_FRONT_ONLINE,
        NET_SDK_N9000_ALARM_TYPE_VLOSS_OFF,
        NET_SDK_N9000_ALARM_TYPE_AVD_OFF,
        NET_SDK_N9000_ALARM_TYPE_DISK_IO_ERROR_OFF,
        NET_SDK_N9000_ALARM_TYPE_DISK_FULL_OFF,
        NET_SDK_N9000_ALARM_TYPE_NO_DISK_OFF,
        NET_SDK_N9000_ALARM_TYPE_TAMPER,
        NET_SDK_N9000_ALARM_TYPE_DOORCONTACT_ALARM,
        NET_SDK_N9000_ALARM_TYPE_DOORCONTACT_STATUS,
        NET_SDK_N9000_ALARM_TYPE_DOORLOCK_STATUS,
        NET_SDK_N9000_ALARM_TYPE_UNLOCKING_EVENT,
        NET_SDK_N9000_ALARM_TYPE_RANGE_END = 0xFF,
    };

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    public enum NET_SDK_N9000_ALARM_TYPE
    {
        NET_SDK_N9000_ALARM_TYPE_RANGE_BEGIN,
        NET_SDK_N9000_ALARM_TYPE_MOTION = 0x01,
        NET_SDK_N9000_ALARM_TYPE_SENSOR,
        NET_SDK_N9000_ALARM_TYPE_VLOSS,
        NET_SDK_N9000_ALARM_TYPE_FRONT_OFFLINE,
        NET_SDK_N9000_ALARM_TYPE_OSC,
        NET_SDK_N9000_ALARM_TYPE_AVD,
        NET_SDK_N9000_ALARM_TYPE_AVD_SCENE,
        NET_SDK_N9000_ALARM_TYPE_AVD_CLARITY,
        NET_SDK_N9000_ALARM_TYPE_AVD_COLOR,
        NET_SDK_N9000_ALARM_TYPE_PEA_TRIPWIRE,
        NET_SDK_N9000_ALARM_TYPE_PEA_PERIMETER,
        NET_SDK_N9000_ALARM_TYPE_VFD,
        NET_SDK_N9000_ALARM_TYPE_CDD,
        NET_SDK_N9000_ALARM_TYPE_IPD,
        NET_SDK_N9000_ALARM_TYPE_CPC,
        NET_SDK_N9000_ALARM_TYPE_FACE_MATCH,
        NET_SDK_N9000_ALARM_TYPE_FACE_MATCH_FOR_IPC,
        NET_SDK_N9000_ALARM_TYPE_PEA_FOR_IPC,
        NET_SDK_N9000_ALARM_TYPE_TRAJECT,
        NET_SDK_N9000_ALARM_TYPE_VEHICE,
        NET_SDK_N9000_ALARM_TYPE_AOIENTRY,
        NET_SDK_N9000_ALARM_TYPE_AOILEAVE,
        NET_SDK_N9000_ALARM_TYPE_PASSLINE,
        NET_SDK_N9000_ALARM_TYPE_TRAFFIC,
        NET_SDK_N9000_ALARM_TYPE_DOOR_BELL,
        NET_SDK_N9000_ALARM_TYPE_PVD,
        NET_SDK_N9000_ALARM_TYPE_LOITER,
        NET_SDK_N9000_ALARM_TYPE_ASD,
        NET_SDK_N9000_ALARM_TYPE_EXCEPTION = 0x41,
        NET_SDK_N9000_ALARM_TYPE_IP_CONFLICT,
        NET_SDK_N9000_ALARM_TYPE_DISK_IO_ERROR,
        NET_SDK_N9000_ALARM_TYPE_DISK_FULL,
        NET_SDK_N9000_ALARM_TYPE_RAID_SUBHEALTH,
        NET_SDK_N9000_ALARM_TYPE_RAID_UNAVAILABLE,
        NET_SDK_N9000_ALARM_TYPE_ILLEIGAL_ACCESS,
        NET_SDK_N9000_ALARM_TYPE_NET_DISCONNECT,
        NET_SDK_N9000_ALARM_TYPE_NO_DISK,
        NET_SDK_N9000_ALARM_TYPE_SIGNAL_SHELTER,
        NET_SDK_N9000_ALARM_TYPE_HDD_PULL_OUT,
        NET_SDK_N9000_ALARM_TYPE_ALARM_OUT = 0x51,
        NET_SDK_N9000_ALARM_TYPE_DISARM,
        NET_SDK_N9000_ALARM_TYPE_ARM,
        NET_SDK_N9000_ALARM_TYPE_TEMPERATURE_ALARM = 0x61,
        NET_SDK_N9000_ALARM_TYPE_FIREPOINT,
        NET_SDK_N9000_ALARM_TYPE_BINOCULARCOUNT_OVERMAN,
        NET_SDK_N9000_ALARM_TYPE_BINOCULARCOUNT_REVERSE,
        NET_SDK_N9000_ALARM_TYPE_FRONT_ONLINE,
        NET_SDK_N9000_ALARM_TYPE_VLOSS_OFF,
        NET_SDK_N9000_ALARM_TYPE_AVD_OFF,
        NET_SDK_N9000_ALARM_TYPE_DISK_IO_ERROR_OFF,
        NET_SDK_N9000_ALARM_TYPE_DISK_FULL_OFF,
        NET_SDK_N9000_ALARM_TYPE_NO_DISK_OFF,
        NET_SDK_N9000_ALARM_TYPE_TAMPER,
        NET_SDK_N9000_ALARM_TYPE_DOORCONTACT_ALARM,
        NET_SDK_N9000_ALARM_TYPE_DOORCONTACT_STATUS,
        NET_SDK_N9000_ALARM_TYPE_DOORLOCK_STATUS,
        NET_SDK_N9000_ALARM_TYPE_UNLOCKING_EVENT,
        NET_SDK_N9000_ALARM_TYPE_RANGE_END = 0xFF,
    }

### Function Description

Alarm type, used in conjunction with callback `NET_MESSAGE_CALLBACK`, `NET_MESSAGE_CALLBACK_EX` (recommended)

### Member Description

Enum name | Value | Remark
--- | --- | ---
NET_SDK_N9000_ALARM_TYPE_RANGE_BEGIN | 0 | Start sign.
NET_SDK_N9000_ALARM_TYPE_MOTION | 0x01 | Motion detection alarm input.
NET_SDK_N9000_ALARM_TYPE_SENSOR | 0x2 | Sensor alarm input.
NET_SDK_N9000_ALARM_TYPE_VLOSS | 0x3 | Video loss alarm input.
NET_SDK_N9000_ALARM_TYPE_FRONT_OFFLINE | 0x4 | Front-end device offline alarm.
NET_SDK_N9000_ALARM_TYPE_OSC | 0x5 | Object guarding detection alarm.
NET_SDK_N9000_ALARM_TYPE_AVD | 0x6 | Video anomaly detection alarm.
NET_SDK_N9000_ALARM_TYPE_AVD_SCENE | 0x7 | Video scene change, (IPC only).
NET_SDK_N9000_ALARM_TYPE_AVD_CLARITY | 0x8 | Video is blurry, (IPC only).
NET_SDK_N9000_ALARM_TYPE_AVD_COLOR | 0x9 | Video color changes, (IPC only).
NET_SDK_N9000_ALARM_TYPE_PEA_TRIPWIRE | 0xa | Cross-border detection alarm.
NET_SDK_N9000_ALARM_TYPE_PEA_PERIMETER | 0xb | Area intrusion detection alarm.
NET_SDK_N9000_ALARM_TYPE_VFD | 0xc | Face detection.
NET_SDK_N9000_ALARM_TYPE_CDD | 0xd | Crowdy density.
NET_SDK_N9000_ALARM_TYPE_IPD | 0xe | People intrusion.
NET_SDK_N9000_ALARM_TYPE_CPC | 0xf | People counting.
NET_SDK_N9000_ALARM_TYPE_FACE_MATCH | 0x10 | Face matching alarm for nvr 9000. // No longer used, face matching is a smart event
NET_SDK_N9000_ALARM_TYPE_FACE_MATCH_FOR_IPC | 0x11 | Face matching alarm for ipc.
NET_SDK_N9000_ALARM_TYPE_PEA_FOR_IPC | 0x12 | Cross-border detection and area intrusion detection.
NET_SDK_N9000_ALARM_TYPE_TRAJECT | 0x13 | Target tracking trajectory (Event event). // No longer used
NET_SDK_N9000_ALARM_TYPE_VEHICE | 0x14 | License plate recognition (Event event). for ipc (Event event)
NET_SDK_N9000_ALARM_TYPE_AOIENTRY | 0x15 | Enter the area.
NET_SDK_N9000_ALARM_TYPE_AOILEAVE | 0x16 | Leave the area.
NET_SDK_N9000_ALARM_TYPE_PASSLINE | 0x17 | Line crossing statistics. for ipc // no longer used
NET_SDK_N9000_ALARM_TYPE_TRAFFIC | 0x18 | Traffic statistics (specified area). for ipc
NET_SDK_N9000_ALARM_TYPE_DOOR_BELL | 0x19 | Doorbell alarm only IPC.
NET_SDK_N9000_ALARM_TYPE_PVD | 0x1a | Illegal parking detection.
NET_SDK_N9000_ALARM_TYPE_LOITER | 0x1b | Loitering detection.
NET_SDK_N9000_ALARM_TYPE_ASD | 0x1c | The audio is abnormal.
NET_SDK_N9000_ALARM_TYPE_EXCEPTION | 0x41 | Abnormal alarm, //No event is thrown
NET_SDK_N9000_ALARM_TYPE_IP_CONFLICT | 0x42 | IP address conflict.
NET_SDK_N9000_ALARM_TYPE_DISK_IO_ERROR | 0x43 | Disk IO error.
NET_SDK_N9000_ALARM_TYPE_DISK_FULL | 0x44 | The disk is full.
NET_SDK_N9000_ALARM_TYPE_RAID_SUBHEALTH | 0x45 | Array sub-health.
NET_SDK_N9000_ALARM_TYPE_RAID_UNAVAILABLE | 0x46 | The array is unavailable.
NET_SDK_N9000_ALARM_TYPE_ILLEIGAL_ACCESS | 0x47 | Illegal access.
NET_SDK_N9000_ALARM_TYPE_NET_DISCONNECT | 0x48 | The network is disconnected.
NET_SDK_N9000_ALARM_TYPE_NO_DISK | 0x49 | There are no disks in the disk group.
NET_SDK_N9000_ALARM_TYPE_SIGNAL_SHELTER | 0x4a | Signal blocking. // Currently not available
NET_SDK_N9000_ALARM_TYPE_HDD_PULL_OUT | 0x4b | Pull out the front panel hard disk.
NET_SDK_N9000_ALARM_TYPE_ALARM_OUT | 0x51 | The type of alarm output, the alarm output also has status that needs to be managed.
NET_SDK_N9000_ALARM_TYPE_DISARM | 0x52 | Device disarm alarm.
NET_SDK_N9000_ALARM_TYPE_ARM | 0x53 | Device arming alarm.
NET_SDK_N9000_ALARM_TYPE_TEMPERATURE_ALARM | 0x61 | AI alarm, temperature detection.
NET_SDK_N9000_ALARM_TYPE_FIREPOINT | 0x62 | AI alarm and fire point detection.
NET_SDK_N9000_ALARM_TYPE_BINOCULARCOUNT_OVERMAN | 0x63 | AI alarm, binocular statistics overcrowding alarm, currently only supports IPC.
NET_SDK_N9000_ALARM_TYPE_BINOCULARCOUNT_REVERSE | 0x64 | AI alarm, binocular statistics reverse alarm, currently only supports IPC.
NET_SDK_N9000_ALARM_TYPE_FRONT_ONLINE | 0x65 | Front-end devices are online.
NET_SDK_N9000_ALARM_TYPE_VLOSS_OFF | 0x66 | Video loss alarm output is turned off.
NET_SDK_N9000_ALARM_TYPE_AVD_OFF | 0x67 | Video abnormal detection alarm output is turned off.
NET_SDK_N9000_ALARM_TYPE_DISK_IO_ERROR_OFF | 0x68 | Disk IO error alarm output is turned off.
NET_SDK_N9000_ALARM_TYPE_DISK_FULL_OFF | 0x69 | Disk full alarm output is turned off.
NET_SDK_N9000_ALARM_TYPE_NO_DISK_OFF | 0x6a | No disk alarm output is turned off under the disk group.
NET_SDK_N9000_ALARM_TYPE_TAMPER | 0x6b | Anti-tamper alarm, (IPC only).
NET_SDK_N9000_ALARM_TYPE_DOORCONTACT_ALARM | 0x6c | Door magnetic alarm, (IPC only).
NET_SDK_N9000_ALARM_TYPE_DOORCONTACT_STATUS | 0x6d | The door magnetic status alarm, the status value corresponds to the status attribute of `NET_SDK_ALARMINFO_EX`, 0: Unknown 1: Open the door 2: Close the door (IPC only).
NET_SDK_N9000_ALARM_TYPE_DOORLOCK_STATUS | 0x6e | Door lock status alarm, the status value corresponds to the status attribute of `NET_SDK_ALARMINFO_EX`, 0: Automatic 1: Normally open 2: Normally closed, (IPC only).
NET_SDK_N9000_ALARM_TYPE_UNLOCKING_EVENT | 0x6f | Access control door open alarm (IPC only).
NET_SDK_N9000_ALARM_TYPE_RANGE_END | 0xFF | This value cannot be exceeded, otherwise an error will occur.

Error Code