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.

# DD_DEVICE_INFO

### Structure 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
    typedef struct _dd_device_info_
    {
        unsigned int iSize;
        unsigned int deviceID;
        char deviceNo[DD_MAX_SERIAL_NUMBER_LEN];
        char deviceName[DD_MAX_NAME_LEN];
        char firmwareVersion[DD_MAX_VERSION_BUF_LEN];
        char firmwareBuildDate[DD_MAX_VERSION_BUF_LEN];
        char hardwareVersion[DD_MAX_VERSION_BUF_LEN];
        char kernelVersion[DD_MAX_VERSION_BUF_LEN];
        char mcuVersion[DD_MAX_VERSION_BUF_LEN];
        unsigned char audioNum;
        unsigned char localVideoInNum;
        unsigned char netVideoInNum;
        unsigned char sensorInNum;
        unsigned char relayOutNum;
        unsigned char rs232Num;
        unsigned char rs485Num;
        unsigned char networkPortNum;
        unsigned char diskCtrlNum;
        unsigned char DiskNum;
        unsigned char vgaNum;
        unsigned char usbNum;
    } DD_DEVICE_INFO;

     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
    [StructLayout(LayoutKind.Sequential, Pack = 4)]
    public struct DD_DEVICE_INFO
    {
        public UInt32 iSize;
        public UInt32 deviceID;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 64)]
        public byte[] deviceNo;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 64)]
        public byte[] deviceName;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 64)]
        public byte[] firmwareVersion;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 64)]
        public byte[] firmwareBuildDate;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 64)]
        public byte[] hardwareVersion;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 64)]
        public byte[] kernelVersion;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 64)]
        public byte[] mcuVersion;
        public byte audioNum;
        public byte localVideoInNum;
        public byte netVideoInNum;
        public byte sensorInNum;
        public byte relayOutNum;
        public byte rs232Num;
        public byte rs485Num;
        public byte networkPortNum;
        public byte diskCtrlNum;
        public byte DiskNum;
        public byte vgaNum;
        public byte usbNum;
    }

### Function Description

Device information: The content contained can be used for configuration and query of device information.

### Member Description

Member | Type | Remark
--- | --- | ---
iSize | unsigned int | The length of this structure.
deviceID | unsigned int | Device ID (0~255).
deviceNo | char[DD_MAX_SERIAL_NUMBER_LEN] | The device serial number, which may be alphabetical.
deviceName | char[DD_MAX_NAME_LEN] | Device name (take into account double-byte characters).
firmwareVersion | char[DD_MAX_VERSION_BUF_LEN] | Software version number.
firmwareBuildDate | char[DD_MAX_VERSION_BUF_LEN] | Date the software was created.
hardwareVersion | char[DD_MAX_VERSION_BUF_LEN] | Hardware version.
kernelVersion | char[DD_MAX_VERSION_BUF_LEN] | System kernel version.
mcuVersion | char[DD_MAX_VERSION_BUF_LEN] | MCU version.
audioNum | unsigned char | Number of audios.
localVideoInNum | unsigned char | Number of local video input channels.
netVideoInNum | unsigned char | Number of network video input channels.
sensorInNum | unsigned char | Enter the number of sensors.
relayOutNum | unsigned char | Number of output relays.
rs232Num | unsigned char | 232 remote sensing channels.
rs485Num | unsigned char | 485 remote sensing channels.
networkPortNum | unsigned char | Number of network ports.
diskCtrlNum | unsigned char | The number of hard disk controls.
DiskNum | unsigned char | Number of hard disks.
vgaNum | unsigned char | Number of monitors.
usbNum | unsigned char | Number of USB ports.

Error Code