NET_DVR_DEVICEINFO_V40

Device Parameter Structure (V40)

Member

Data Type

Description

struDeviceV30

NET_DVR_DEVICEINFO_V30

Device parameters

bySupportLock

BYTE

Whether supports locking function: 1-support.

byRetryLoginTime

BYTE

Remaining login attempts, it is valid when the user name or password is incorrect and the bySupportLock is 1.

byPasswordLevel

BYTE

Password strength: 0-invalid, 1-default password, 2-valid password, 3-risky password. For default password or risky password, the users are reminded to change password.

byProxyType

BYTE

Proxy type: 0-no proxy, 1-standard proxy, 2-EHome proxy.

dwSurplusLockTime

DWORD

Remaining locking time, unit: second. It is valid only when bySupportLock is 1. During the locing time, if the user try to log in to again, the remaining locking time will resume to 30 minutes.

byCharEncodeType

BYTE

Character encodings. 0-no decoding information, 1-GB2312 (Simplified Chinese), 2-GBK, 3-BIG5 (Traditional Chinese), 4-Shift_JIS (Japanese), 5-EUC-KR (Korean), 6-UTF-8, 7-ISO8859-1, 8-ISO8859-2, 9-ISO8859-3, …, 21-ISO8859-15 (Western European)

bySupportDev5

BYTE

Whether to support getting the parameters of devices that support HCNetSDK version 5.0 or above, the size of device name and type name are extended to 64 bytes.

bySupport

BYTE

Whether it supports uploading changes, it depends on the result of bitwise AND (&) operation: 0-not support, 1-support. The result of bySupport&0x1 indicates that this member is reserved; the result of bySupport&0x2 indicates that whether it supports uploading changes: 0-not support, 1-support. This member is the capability set extension.

byLoginMode

BYTE

Login mode: 0-login via private protocol, 1-login via text protocol. For private protocol, the default login port number is 8000, and for text protocol, the default login port number is 80 or 443.

dwOEMCode

DWORD

OEM code.

iResidualValidity

int

Remaining valid days of the user's password, unit: day. If the negative number is returned, it indicates that the password being used has expired. For example, if -3 is returned, it indicates that the password being used has expired for three days.

byResidualValidity

BYTE

Whether the member iResidualValidity is valid: 0-invalid, 1-valid.

bySingleStartDTalkChan

BYTE

Start channel No. for connecting independent audio tracks to the device. The value 0 is reserved and invalid. The channel No. of audio tracks cannot start from 0.

bySingleDTalkChanNums

BYTE

Total number of channels of the device connected with independent tracks, 0-not support.

byPassWordResetLevel

BYTE

Whether to prompt the non-admin user to change the password: 0 (invalid), 1 (If the administrator creates a non-admin user account with an initial password, the non-admin user will be prompted "Please change the initial password" each time he/she logs in to the device until he/she changes the initial password), 2(If the non-admin user's password has been changed by the administrator, the non-admin user will be prompted "Please set a new password" each time he/she logs in to the device until he/she changes the password).

bySupportStreamEncrypt

BYTE

Whether it supports stream encryption, it depends on the result of bitwise AND (&) operation: 0-no, 1-yes. The result of bySupportStreamEncrypt&0x1 indicates whether to support RTP/TLS streaming, the result of bySupportStreamEncrypt&0x2 indicates whether to support SRTP/UDP streaming, and the result of bySupportStreamEncrypt&0x4 indicates whether to support SRTP/MULTICAST streaming.

byRes2

Array of BYTE

Reserved, set to 0.

Remarks

  • Four character types are allowed in the password, including digits, lowercase letters, uppercase letters and symbols. The maximum password length is 16 bits, and there are four password strength levels, see details below:
    • Level 0 (Risky Password): The password length is less than 8 bits, or only contains one kind of the character types. Or the password is the same with the user name, or is the mirror writing of the user name.

    • Level 1 (Weak Password): The password length is more than or equal to 8 bits, and contains two kinds of the character types. Meanwhile, the combination should be (digits + lowercase letters) or (digits + uppercase letters).

    • Level 2 (Medium Password): The password length is more than or equal to 8 bits, and contains two kinds of the character types. Meanwhile, the combination cannot be (digits + lowercase letters) and (digits + uppercase letters).

    • Level 3 (Strong Password): The password length is more than or equal to 8 bits, and at least contains three kinds of the character types.

  • For login via text protocol, the following parameters are not supported: bySupportLock, byRetryLoginTime, byPasswordLevel, byProxyType, dwSurplusLockTime, byCharEncodeType, and bySupportDev5.