Obtain related information of the device, such as language and baud rate.
Device number.
Type of the information to be obtained. The value ranges from 1 to 68 (except for 65).
Values:
1 Maximum number of administrators. Generally, return 500.
2 Device number
3 Language: The return values received by dwValue are as follows:
0 Language with suffix "E", usually representing English
1 Others
2 Language with suffix "T", usually representing traditional Chinese
3 Language with suffix "L", usually representing Thai language
4 Idle duration (minutes). That is, the device enters standby state or is powered off after keeping idle for a period specified by this value.
5 Lock duration, namely, driver lock duration
6 Number of attendance record alarms. That is, the device reports an alarm when the number of attendance records reaches this value.
7 Number of operation record alarms. That is, the device reports an alarm when the number of operation records reaches this value.
8 Repeated record time, that is, the minimum interval of opening the same attendance record by the same user
9 Baud rate in RS232/RS485 communication
The return values received by dwValue are as follows:
0 1200bps
1 2400
2 4800
3 9600
4 19200
5 38400
6 57600
Others: 115200
10 Parity check. Generally, return 0.
11 Stop bit. Generally, return 0.
12 Date separator. Generally, return 1.
13 Whether network function is enabled. Values: 1: enabled, 0: disabled
14 Whether RS232 is enabled
15 Whether RS485 is enabled
16 Whether voice function is supported
17 Whether high-speed comparison is performed
18 Idle mode, that is, the state that the device enters after idle period. Values: 87: power-off, 88: hibernate
19 Automatic power-off time point. The default value is 255, that is, the device does not power off automatically.
20 Automatic power-on time point. The default value is 255, that is, the device does not power on automatically.
21 Automatic hibernation time point. The default value is 255, that is, the device does not hibernate automatically.
22 Automatic ring time point. The default value is 65535, that is, the device does not ring automatically.
23 1:N match threshold
24 Match threshold during registration
25 1:1 match threshold
26 Whether to display match score during verification
27 Number of concurrent unlock users
82 Verify only card number
29 Network speed
The return values received by dwValue are as follows:
1 100M-H
4 10M-F
5 100M-F
8 AUTO
Others: 10M-H
30 Whether the card must be registered
31 Waiting time before the device automatically returns when there is temporarily
no operation
32 Waiting time before the device automatically returns when no response is
returned after the PIN is input
33 Waiting time before the device automatically returns when there is response
after entering the menu
34 Time format
35 Whether 1:1 match must be used
36—40 Automatic ring time points 2, 3, 4, 5, and 6. The default values are 65535, that is, the device does not ring automatically.
41—56 Automatic state change time points 1 to 16. The default values are -1, that is, the device does not change state automatically.
57 Wiegand failure ID
58 Wiegand threaten ID
59 Wiegand region-position code
60 Wiegand output pulse width
61 Wiegand output pulse interval
62 Start sector of Mifare card for storing fingerprints
63 Total sectors of Mifare card for storing fingerprints
64 Number of fingerprints stored on Mifare card
66 Whether to display attendance state
67 Not available temporarily
68 Not supported
8999 In this case, dwValue is used as both input and output parameters. As the input parameter, dwValue represent the name of another option to be obtained.
As the output parameter, dwValue represents the value of the option (in this case, dwValue is similar to GetSysOption).
Note: The return values of the preceding time points are numerals. To convert the numeral into the time point, convert the value into a binary numeral where the lowest eight bits represent minute and the highest bits represent hour. For example, if the return value is 2860, it can be converted into 101100101100 in binary, of which the lowest eight bits 00101100 (that is, 44) and the highest eight bits are 00001011 (that is, 11), that is, the actual time point is 11:44.
Value described by dwInfo.
Return True if it is successful, or return False.
SetDeviceInfo
private void GetDeviceInfo(int dwInfo = 1, int dwValue = 2, string IP = "10.0.0.44", int Port = 4370, int MachineNumber = 1) { //Create Standalone SDK class dynamicly. zkemkeeper.CZKEMClass axCZKEM1 = new zkemkeeper.CZKEMClass(); axCZKEM1.Connect_Net(IP, Port); int idwErrorCode = 0; if (axCZKEM1.GetDeviceInfo(MachineNumber, dwInfo, ref dwValue)) { MessageBox.Show("Successfully, the device Info: " + dwValue, "Success"); } else { axCZKEM1.GetLastError(ref idwErrorCode); MessageBox.Show("Operation failed,ErrorCode=" + idwErrorCode.ToString(), "Error"); } }
Private Sub GetDeviceInfo(Optional dwInfo As Integer = 1, Optional dwValue As Integer = 2, Optional IP As String = "10.0.0.44", Optional Port As Integer = 4370, Optional MachineNumber As Integer = 1) Dim idwErrorCode As Integer = 0 'Create Standalone SDK class dynamicly. Dim axCZKEM1 As New zkemkeeper.CZKEM axCZKEM1.Connect_Net(IP, Convert.ToInt32(Port)) If axCZKEM1.GetDeviceInfo(MachineNumber, dwInfo, dwValue) = True Then MsgBox("Successfully, the device information: " & dwValue.ToString(), MsgBoxStyle.Information, "Success") Else axCZKEM1.GetLastError(idwErrorCode) MsgBox("Operation failed,ErrorCode=" & idwErrorCode.ToString(), MsgBoxStyle.Exclamation, "Error") End If End Sub