SB100BPC - OCX Specification 2.1 (2006/12/01)
SB100BPC - OCX Specification 2.1 (2006/12/01)
1 (2006/12/01)
Contents
Contents..................................................................................1
1.Structure of SB100BPC.OCX...............................................................2
2.Method..................................................................................4
2.1 Function “GetEnrollData”.............................................................4
2.2 Function “SetEnrollData”.............................................................5
2.3 Function “DeleteEnrollData”..........................................................5
2.4 Function “ReadSuperLogData”..........................................................6
2.5 Function “GetSuperLogData”...........................................................6
2.6 Function “ReadGeneralLogData”........................................................8
2.7 Function “GetGeneralLogData”.........................................................8
2.8 Function “ReadAllSLogData”..........................................................10
2.9 Function “GetAllSLogData”...........................................................10
2.10 Function “ReadAllGLogData”.........................................................11
2.11 Function “GetAllGLogData”..........................................................11
2.12 Function “GetDeviceStatus”.........................................................11
2.13 Function “GetDeviceInfo”...........................................................12
2.14 Function “SetDeviceInfo”...........................................................13
2.15 Function “EnableDevice”............................................................13
2.16 Function “EnableUser”..............................................................14
2.17 Function “SetDeviceTime”...........................................................14
2.18 Function “GetDeviceTime”...........................................................15
2.19 Function “PowerOnAllDevice”........................................................15
2.20 Function “PowerOffDevice”..........................................................15
2.21 Function “ModifyPrivilege”.........................................................16
2.22 Function “ReadAllUserID”...........................................................16
2.23 Function “GetAllUserID”............................................................16
2.24 Function “GetSerialNumber”.........................................................17
2.25 Function “ClearKeeperData”.........................................................17
2.26 Function “GetLastError”............................................................18
2.27 Function “GetBackupNumber”.........................................................18
2.28 Function “GetProductCode”..........................................................18
2.29 Function “EmptyEnrollData”.........................................................19
2.30 Function “EmptyGeneralLogData”.....................................................19
2.31 Function “EmptySuperLogData”.......................................................19
2.32 Function “GetUserName”.............................................................19
2.33 Function “SetUserName”.............................................................20
2.34 Function “GetCompanyName”..........................................................20
2.35 Function “SetCompanyName”..........................................................20
2.36 Function “GetDoorStatus”...........................................................21
2.37 Function “SetDoorStatus”...........................................................21
2.38 Function “GetBellTime”.............................................................22
2.39 Function “SetBellTime”.............................................................22
2.40 Function “ConnectSerial”...........................................................22
2.41 Function “ConnectTcpip”............................................................23
2.42 Function “Disconnect”..............................................................23
3.Property...............................................................................24
3.1 Property “ReadMark”.................................................................24
1.Structure of SB100BPC.OCX
Classific No Function Name Explanation
- 1 -
ation
Method
1 GetEnrollData It gets one of registered data from the terminal.
M
2 SetEnrollData It registers a user on the terminal.
It deletes one of the registered data from the
3 DeleteEnrollData
terminal.
It reads the newly-recorded management data from
4 ReadSuperLogData
the terminal.
It gets one of the management data from the
5 GetSuperLogData
internal memory.
It reads the newly-recorded attendance data from
6 ReadGeneralLogData
the terminal.
It gets one of the attendance data from the
7 GetGeneralLogData
internal memory.
It reads all of the management data from the
8 ReadAllSLogData
terminal.
It gets all of the management data from the
9 GetAllSLogData
internal memory.
It reads all of the management data from the
10 ReadAllGLogData
terminal.
It gets all of the attendance data from the
11 GetAllGLogData
internal memory.
It gets the current status of operation of the
12 GetDeviceStatus
terminal.
13 GetDeviceInfo It gets the setup information of the terminal.
- 2 -
It get the display name of a company from the
34 GetCompanyName
terminal.
It download the display name of a company to the
35 SetCompanyName
appointed terminal.
36 GetDoorStatus It get the current door status from the terminal.
It download a door status to the appointed
37 SetDoorStatus
terminal.
38 GetBellTime It get the bell time from the terminal.
It download the bell time to the appointed
39 SetBellTime
terminal.
It connects to the terminal via the serial port
40 ConnectSerial
(RS232, RS485).
It connects to the terminal via the network
41 ConnectTcpip
(TCP/IP).
It closes the connected session for communication
42 Disconnect
with the terminal.
Property 1 ReadMark Recorded data-reading mark.
- 3 -
2.Method
[Parameter]
dwMachineNumber : It stands for the ID number of the terminal which the
data will be read from.
dwEnrollNumber : Registration number of the data to get
dwEMachineNumber : ID number of the terminal which the data has been
registered on
dwBackupNumber : Backup number of the registration data to get.
Below are values of the backup numbers.
Value Meaning
Fingerprint data ranging from No.0
0~9
to No.9
10 Password data
11 Card data
- 4 -
The function gets the specified password data from the terminal if the value of
“dwBackupNumber” is 10 assigned when the function is accessed. At the moment,
the value of the variable designated by “dwEnrollData” has no meaning.
- 5 -
dwMachineNumber : It stands for the ID number of the terminal which the
data will be deleted from.
dwEnrollNumber : Registration number of the data to delete.
dwEMachineNumber : ID number of the terminal which the data has been
registered on.
dwBackupNumber : Backup number of the data to delete The values of the
backup numbers are as the following.
Value Meaning
Fingerprint data ranging from No.0
0~9
to No.9
10 Password data
11 Card data
12 All fingerprint and password data
13 All fingerprint data
[Return Value]
It is TRUE when the deletion command has accurately been transferred to the
specified terminal and successfully been executed on it.
It would be FALSE if the appointed terminal does not exist or the operation has
resulted in failure.
[Attention]
The function deletes, at a time, all the backup-registered fingerprint data of
the user designated by “dwEnrollNumber” and “dwEMachineNumber” when the value of
“dwBackupNumber” is 13; it, at a time, deletes the backup-registered fingerprint
and password data and card data of the user designated by “dwEnrollNumber” and
“dwEMachineNumber” when the value of “dwBackupNumber” is 12.
- 6 -
long* dwSMachineNumber,
long* dwGEnrollNumber,
long* dwGMachineNumber,
long* dwManipulation,
long* dwBackupNumber,
long* dwYear,
long* dwMonth,
long* dwDay,
long* dwHour,
long* dwMinute);
[Parameter]
dwMachineNumber : It stands for the ID number of the terminal to read the
data from.
dwTMachineNumber : A pointer to the Long-type variable receiving the value
of the ID number of the terminal the data belongs to
dwSEnrollNumber : A pointer to the Long-type variable receiving the value
of the registration number of the manager who conducted
operations.
The value of this parameter is 0 when there is no manager
registered.
dwSMachineNumber : A pointer to the Long-type variable receiving the value
of the ID number of the terminal the manager has been
registered on.
dwGEnrollNumber : A pointer to the Long-type variable receiving the value
of the registration number of the operated object for
management operations.
The value of this parameter is 0 when the operated object
is a terminal itself (in case of changing the system info
of the terminal).
dwGMachineNumber : A pointer to the Long-type variable receiving the value
of the ID number of the terminal the operated object has
been registered on.
The value of this parameter is 0 when the operated object
is a terminal itself (in case of changing the system info
of the terminal).
dwManipulation : A pointer to the Long-type variable receiving the value
of the mode of the management operation conducted on the
terminal.
Below are the values of the management operation.
Value Meaning
A new general user has been enrolled on
3
the terminal.
A new manager has been enrolled on the
4
terminal.
A fingerprint data has been deleted from
5
the terminal.
A password data has been deleted from the
6
terminal.
A card data has been deleted from the
7
terminal.
All of the record data have been deleted
8
from the terminal.
The system setup info has been changed on
9
the terminal.
The date/time has been changed on the
10
terminal.
The record setup info has been changed on
11
the terminal.
The communication setup info has been
12
changed on the terminal.
- 7 -
to No.9
10 Password data
11 Card data
When the value of “ReadMark Property” is TRUE, the data cannot, any longer, be
read out from the terminal using function “ReadSuperLogData” after getting them
from the memory by using “GetSuperLogData”. The newly-recorded management data
alone except those data will be able to be read when accessing function
“ReadSuperLogData” the next time.
If the user is reading the management data stored in the memory one by one, but
fails to read all for some reason, which leads the return value to FALSE, he/she
will be able to read those unread data again when accessing function
“ReadSuperLogData” the next time.
If the value of “ReadMark Property” is FALSE, the user is able to read the data
stored in the internal memory, using function “ReadSuperLogData” again even
after getting them by making use of “GetSuperLogData”.
- 8 -
Function “GetGeneralLogData” is used to get the newly-recorded attendance data
one by one in order from the internal memory.
[Format]
BOOL GetGeneralLogData(
long dwMachineNumber,
long* dwTMachineNumber,
long* dwEnrollNumber,
long* dwEMachineNumber,
long* dwVerifyMode,
long* dwYear,
long* dwMonth,
long* dwDay,
long* dwHour,
long* dwMinute);
[Parameter]
dwMachineNumber : It stands for the ID number of the terminal to read the
data from.
dwMachineNumber : ID number of the terminal to read the data from
dwTMachineNumber : A pointer to the Long-type variable receiving the value
of the ID number of the terminal the user passed through.
dwEnrollNumber : A pointer to the Long-type variable receiving the value
of the registration number of the user who came or left
dwEMachineNumber : A pointer to the Long-type variable receiving the value
of the ID number of the terminal the user has been
registered on.
dwVerifyMode : A pointer to the Long-type variable receiving the value
of the mode of verifying the user who came or left
Value Meaning
1 Fingerprint-based verification mode
2 Password-based verification mode
3 Card-based verification mode
51 In : Fingerprint-based verification mode
52 In : Password-based verification mode
53 In : Card-based verification mode
101 Out : Fingerprint-based verification mode
102 Out : Password-based verification mode
103 Out : Card-based verification mode
151 Extra: Fingerprint-based verification mode
152 Extra: Password-based verification mode
153 Extra: Card-based verification mode
10 Hand lock
11 Program lock
12 Program open
13 Program close
14 Auto recover
20 Lock over
21 Illegal open
- 9 -
dwDay : A pointer to the Long-type variable receiving the value
of the day of the date when the user came or left
dwHour : A pointer to the Long-type variable receiving the value
of the hour of the time when the user came or left
dwMinute : A pointer to the Long-type variable receiving the value
of the minute of the time when the user came or left
[Return Value]
It is TRUE when an efficient data has been read from the internal memory.
It would be FALSE if there is no efficient data in the memory or the data were
all read out already from it. The values of the parameters have no meaning when
the return value is FALSE.
[Attention]
This function, one by one in order, gets the data that function
“ReadGeneralLogData” read from the specified terminal and stored in the memory.
The function returns TRUE whenever it gets efficient data out. It returns FALSE
when it has gotten all of the data.
When the value of “ReadMark Property” is TRUE, the data cannot, any longer, be
read out from the terminal using function “ReadGeneralLogData” after getting
them from the memory by using “GetGeneralLogData”. The newly-recorded management
data alone except those data will be able to be read when accessing function
“ReadGeneralLogData” the next time.
If the user is reading the management data stored in the memory one by one, but
fails to read all for some reason, which leads the return value to FALSE, he/she
will be able to read those unread data again when accessing function
“ReadGeneralLogData” the next time.
If the value of “ReadMark Property” is FALSE, the user is able to read the data
stored in the internal memory, using function “ReadGeneralLogData” again even
after getting them by making use of “GetGeneralLogData”.
- 10 -
long* dwSEnrollNumber,
long* dwSMachineNumber,
long* dwGEnrollNumber,
long* dwGMachineNumber,
long* dwManipulation,
long* dwBackupNumber,
long* dwYear,
long* dwMonth,
long* dwDay,
long* dwHour,
long* dwMinute);
[Attention]
The function gets the data which function “ReadAllSLogData” read from the
specified terminal and stored in the internal memory.
The method of using this function is the same as that of “GetSuperLogData”.
Execution of this function has nothing to do with the value of “ReadMark
property”.
- 11 -
Execution of this function has nothing to do with the value of “ReadMark
property”.
[Return Value]
It is TRUE when the specified setup info has been gotten; it would be FALSE if
the operation resulted in failure.
[Attention]
- 12 -
The data acquired by this function are the same as those shown on the “Device
Setup” menu on the terminal excepting the date separators.
7 115,200 bps
- 13 -
2.15 Function “EnableDevice”
[Function]
Function “EnableDevice” is used to enable or forbid the specified terminal to
record the attendance data.
[Format]
BOOL EnableDevice(
long dwMachineNumber,
long bFlag);
[Parameter]
dwMachineNumber : ID number of the terminal
bflag : Flag indicating enabling or forbiddance
TRUE stands for enabling. FALSE forbiddance.
[Return Value]
Success returns TRUE; failure FALSE.
[Attention]
This function makes it possible to or impossible to input figures by the
keypad and to capture fingerprints on the individual terminals.
It is better to set the value of “bFlag” to FALSE before accessing this function
when the supervising computer exchanges the data with the terminal, and to set
the value of “bFlag” to TRUE before access when their exchange has been
finished. In other words, the user should suspend the terminal’s working, using
this function during an exchange of the data.
The function returns FALSE when the specified terminal lies in the status of
management operations or it has been powered off.
- 14 -
BOOL SetDeviceTime(
long dwMachineNumber);
[Parameter]
dwMachineNumber : ID number of the terminal
[Return Value]
Success returns TRUE; failure FALSE.
[Attention]
This function sets the date/time of the terminal to those of the supervising
computer.
[Return Value]
Success returns TRUE; failure FALSE.
- 15 -
2.20 Function “PowerOffDevice”
[Function]
Function “PowerOffDevice” is used to power off the specified terminal.
[Format]
BOOL PowerOffDevice(
long dwMachineNumber);
[Parameter]
dwMachineNumber : ID number of the terminal to power off
[Return Value]
Success returns TRUE; failure FALSE.
- 16 -
2.23 Function “GetAllUserID”
[Function]
Function “GetAllUserID” is used to get one by one the registration data of the
users from the internal memory.
[Format]
BOOL GetAllUserID(
long dwMachineNumber,
long* dwEnrollNumber,
long* dwEMachineNumber,
long* dwBackupNumber,
long* dwMachinePrivilege,
long* dwEnable);
[Parameter]
dwMachineNumber : ID number of the terminal to read the data from
dwEnrollNumber : A pointer to the Long-type variable receiving the value
of the registration number of the user
dwEMachineNumber : A pointer to the Long-type variable receiving the value
of the ID number of the terminal the user has been
registered on
dwBackupNumber : A pointer to the Long-type variable receiving the value
of the backup number of the user
dwMachinePrivilege : A pointer to the Long-type variable receiving the value
of the device authority of the user
dwEnable : A pointer to the Long-type variable receiving the value
of attendance record permission of the user
Value Meaning
Record of an attendance of this user has been
1
permitted.
Record of an attendance of this user has been
2 forbidden, that is, his/her attendance is not
recorded in spite of his/her registration.
[Return Value]
It is TRUE when an efficient data has been read from the internal memory.
It would be FALSE if there is no efficient data in the memory or the data were
all read out already from it. The values of the parameters have no meaning when
the return value is FALSE.
[Attention]
This function, one by one in order, gets the data that function
“ReadAllUserID” read from the specified terminal and stored in the memory.
The function returns TRUE whenever it gets efficient data out. It returns FALSE
when it has gotten all of the data.
- 17 -
2.25 Function “ClearKeeperData”
[Function]
Function “ClearKeeperData” is used to delete all of the data registered or
recorded on the terminal.
[Format]
BOOL ClearKeeperData(
long dwMachineNumber);
[Parameter]
dwMachineNumber : ID number of the terminal to read the data from
[Return Value]
Success returns TRUE; failure FALSE.
Value Meaning
0 The operation has been finished with success.
1 The COM port is not able to be opened.
An error has happened to transmission of the
2
data.
3 An error has happened to receipt of the data.
An invalid parameter was used when accessing
4
the function.
5 The operation has resulted in failure.
The recorded data have all been read out from
6
the internal memory.
[Return Value]
Success returns TRUE; failure FALSE.
[Attention]
When the functions (GetSuperLogData, GetAllSLogData, GetGeneralLogData and
GetAllGLogData), used to get recorded data, return “FLASE”, “6” is acquired as
the value of an error code after accessing function “GetLastError”, which means
having read all the recorded data stored in the internal memory.
- 18 -
2.28 Function “GetProductCode”
[Function]
Function “GetProductCode” is used to get the product information of the user.
[Format]
BOOL GetProductCode(
long dwMachineNumber,
BSTR* lpszProductCode);
[Parameter]
dwMachineNumber : ID number of the terminal to read the data from
lpszProductCode : 32Byte character string pointer for getting the code of
the product
[Return Value]
Success returns TRUE, and failure FALSE.
- 19 -
BOOL GetUserName(
long DeviceKind,
long dwMachineNumber,
long dwEnrollNumber,
long dwEMachineNumber,
VARIANT* dwUserName);
[Parameter]
DeviceKind : DeviceKind
1 : FK3xx(SH3) 2 : FK5xx(S3C44B0)
- 20 -
[Return Value]
It is TRUE when a valid data has been read from the terminal.
It would FALSE if the terminal does not have the specified data on it or an
error has occurred to the communication. When the return value is FALSE, the
values of parameters have no meanings.
- 21 -
2 : Force close
3 : Program open
4 : Auto recover.
[Return Value]
It is TRUE when the data has accurately been downloaded to the specified
terminal and successfully been operated on it.
It would FALSE if the terminal does not have the specified data on it, or an
error has occurred to the communication or the terminal has failed in its
working.
- 22 -
Value Meaning
1 COM1
2 COM2
3 COM3
4 COM4
[Return Value]
Success returns TRUE, and failure FALSE.
- 23 -
3.Property
- 24 -