UCS SDK v4.0 Programmer's Manual - Eng
UCS SDK v4.0 Programmer's Manual - Eng
Programmer’s Guide
Version 4.0
October, 2009
This agreement is a legal usage license agreement between Union Community Co.,
Ltd. and the user.
If you do not agree with the terms and condition of the agreement, please return the product promptly. If
you return the product, you will receive a refund.
1. Usage License
UNION COMMUNITY Co., Ltd. Grants licensee to use this SDK a personal, Limited, non-transferable, non-
exclusive right to install and use one copy of the SDK on a single computer exclusively.
The software is considered 'being used' if it is stored in a computer's main or other storage device. The
number of software copies will be determined by taking the greater number of the number of computers
'used' by the software and the number of computers where the software is stored.
Licensee may use the SDK solely for developing, designing, and testing UNION software applications for use
with UNION products ("Applications").
2. Right to Upgrade
If you have purchased the software by upgrading an older version, the usage license of the old version is
transferred to the new version. However, you may only use the old version under the condition that the old
and new versions are not running simultaneously. Therefore, you are prohibited from transferring, renting or
selling the old version. You maintain the usage license for the program and ancillary files that are in the old
version but not in the new version.
3. Assignment of License
If you wish to transfer the usage license of this software to a third party, you must first obtain a written
statement indicating that the recipient agrees with this agreement. You must then transfer the original disk
and all other program components, and all copies of the program must be destroyed. After the transfer is
completed, you must notify UNION COMMUNITY Co., Ltd. to update the customer registration.
Licensee shall not rent, lease, sell or lend the software application developed using the SDK to a third party
without UNION's prior written consent.
Licensee shall not copy and redistribute the SDK without UNION's prior written consent.
4. Copyright
All copyrights and intellectual properties of the software and its components belong to UNION COMMUNITY
Co., Ltd., and these rights are protected under Korean and international copyright laws. Therefore, you may
not make copies of the software other than for your personal backup purposes. In addition, you may not
modify the software other than for reverse-engineering purposes to secure compatibility. Finally, you may not
modify, transform or copy any part of the documentation without written permission from UNION
COMMUNITY. (If you're using a network product, you may copy the documentation in the amount of the
number of users)
5. Installation
An individual user can install this software in his/her PCs at home and office, as well as in a mobile PC.
However, the software must not be running from two computers simultaneously. A single product can be
installed in two or more computers in one location, but one of those computers must have a usage rate of at
least 70%. If another computer has a usage rate of 31% or higher, another copy of the software must be
purchased.
6. Limitation of Warranty
UNION COMMUNITY Co., Ltd. guarantees that the CD-ROM and all components are free of physical damage
for a year after purchase.
UNION DISCLAIMS ALL WARRANTIES NOT EXPRESSLY PROVIDED IN THIS AGREEMENT INCLUDING,
WITHOUT LIMITATION ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE. If you find any manufacture defect within the warranty period, we will replace the product. You
must be able to prove that the product has been purchased within a year to receive a replacement. However,
we will not replace a product damaged due to your mishandling or negligence. UNION COMMUNITY Co.,
Ltd. does not guarantee that the software and its features will satisfy your specific needs, and is not liable for
any consequential damages arising out of the use of this product.
7. Liabilities
UNION COMMUNITY Co., Ltd. is not liable for any verbal, written or other agreements made by third parties,
including product suppliers and dealers.
8. Termination
9. Customer Service
UNION COMMUNITY Co., Ltd. makes every effort to provide registered customers with technical assistance
and solutions to problems regarding software applications under certain system environments. When a
customer submits a suggestion about any inconvenience or anomaly experienced during product usage,
UNION COMMUNITY Co., Ltd. will take corrective action and notify the customer of the result.
11. Contact
If you have any questions about this agreement, please contact UNION COMMUNITY Co.,
Ltd. via telephone, fax or e-mail.
1. Overview.......................................................................................................................................................18
1.1 Application..........................................................................................................................................18
1.2 Special Features...................................................................................................................................18
1.3 Development Environment..................................................................................................................19
1.4 Module Organization...........................................................................................................................19
1.5 Development Model............................................................................................................................21
1.6 Terminology Description......................................................................................................................22
2. Installation....................................................................................................................................................30
2.1 System Requirements..........................................................................................................................30
2.2 Installation...........................................................................................................................................31
2.3 Files to be installed..............................................................................................................................35
2.3.1 Windows System Directory........................................................................................................35
2.3.2 GAC (Global Assembly Cache) Folder.........................................................................................35
2.3.3 (Installation Folder)\Bin............................................................................................................35
2.3.4 (Installation Folder)\dotNET.....................................................................................................35
2.3.5 (Installation Folder)\dotNET\Setup.........................................................................................36
2.3.6 (Installation Folder)\Inc............................................................................................................36
2.3.7 (Installation Folder)\Lib............................................................................................................36
2.3.8 (Installation Folder)\Samples....................................................................................................36
2.3.9 (Installation Folder)\Skins.........................................................................................................37
3. API Reference for DLL...................................................................................................................................38
3.1 Type definitions...................................................................................................................................38
3.1.1 Basic types.................................................................................................................................38
UCSAPI_SINT8 / UCSAPI_SINT16 / UCBioAPI_SINT32...................................................................38
UCSAPI_UINT8 / UCSAPI_UINT16 / UCBioAPI_UINT32.................................................................38
UCSAPI_SINT / UCSAPI_UINT.......................................................................................................38
UCSAPI_VOID_PTR.......................................................................................................................38
UCSAPI_BOOL..............................................................................................................................38
UCSAPI_CHAR / UCSAPI_CHAR_PTR.............................................................................................38
UCSAPI_NULL...............................................................................................................................38
UCSAPI_HWND............................................................................................................................39
UCS S DK
provides t he i nterface
( application
P I rogramming
A r i nter
the d evelopment
o fingerprint r f ecognition
s a p erver
s. I tc b
anpplication
u ew Used Srogram
ith CBio
for fingerprint registration and authentication.
1.1 Application
Modules p brovided
U S w cy CSa V DK a pere ompiled
u t S ct b C2008,
d n
using most of 32bit compilers such as Visual C++.
For d evelopers
u V B sing
D a isual
D a w
asic, a C elphi
C -basednd
m otNET
odules
a . c s nd ell N
libraries a p re t f rovided d o u acilitate
t t R evelopment
t e o s s sing
o h t hese o
use the modules.
Because C OM c b an
u a e registration
sed a tfter
t he
s rystem a p egistry,
o r t rocess
C f
module a t s t he
i r ystem
b e s t equired
following l ine a ty t c ntering
he l ommand
a he a ine
pressing [Windows key + R] button.
VB,Delphi,DotNet
…
UCSAPI
API Layer
UCSAPICOM.dll
■ Terminal
It is the network-type fingerprint recognition terminal provided by UNION COMMUNITY.
■ Terminal ID(TerminalID)
Terminal connected to the system to distinguish between them is the value for the Key.
How to set, refer to the manual of the terminal
■ Client
It i ts ahe pplication
p t c rogram w t phat nommunicates
-type fingerprint r ecognition
ith he
terminal.
■ Client ID (ClientID)
The client ID is used to develop an application program with the client/server model.
The s erver
m r odule
t k t equires
i e che t sey hat
t m dentifies
e ach
a lient
this key is called ClientID.
■ Authentication Type
The authentication types used during user authentication are defined.
In c ase
t f he r ingerprint t u ecognition
t s a erminal
m a tses t he e erver
UserID o U r f niqueID
u i or t terminal
ser r equestst
dentification,a he uthentication
t he t t s t ype
obtain the authentication type of the user registered in the server.
Type Value Contents
1:N Fingerprint 0 1:N fingerprint authentication
Type Contents
Fingerprint The fingerprint is used as authentication tool.
Fingerprint Card The Fingerprint card is used as authentication tool.
By s toring
u ’s f ingerprintt
ser a emplates
t s c t t he mar
fingerprint c i ard 1 mplements
a b :1 uthenticati
the sample entered during authentication and stored template.
Password The password is used as authentication tool.
The p asswordi a c s s haracter
v w tring
a maximum of 8 digits.
Card The card is used as authentication tool.
Card or Fingerprint The card or fingerprint is used as authentication tool.
Card and Fingerprint The c ombination
o c a f f iard
u a and ingerprint s
tool.
Card or Password The card or password is used as authentication tool.
Card and Password The c ombination
o c a fingerprint
f iard
su sed
a and s uthentication
tool.
(ID and Fingerprint) or The c ombination
o I a f f o Dt c nd ingerprint
o c r
(Card and Fingerprint) and fingerprint is used as authentication tool.
(ID and Password) or The c ombination
o I a p f o tD c nd assword
o c r h
(Card and Password) and password is used as authentication tool.
Fingerprint and Password The c ombination
o f a f p ingerprint
i u a nd assw
authentication tool.
Fingerprint or Password After f ingerprint
a f uthentication
t p i u a ails, he
■ User Property
It i st 1he -sized
byted ata f t ield d hata efines t a uthentication
indicates whether t u ype
he
i a ser
nd
administrator or not.
-Identify:
The user can be designated to use 1:N fingerprint authentication.
-Operation:
Each of authentication types can be designated to be used with AND or OR combination.
1 is set for AND combination while 0 is set for OR combination.
-CardID:
RFID c ban d e tesignated
b u l Uo oe U sed C ike d serID
n u r
card’s RFID as
authentication tool but instead, the card’s RFID is simply used as an identifier like UserID.
It must be designated using AND combination with other authentication type.
-Card:
The user can be designated to use card authentication.
-Password:
The user can be designated to use password authentication.
-Fingerprint:
The user can be designated to use fingerprint authentication.
① Fingerprint
② Fingerprint-Card
7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Bit
Admin Identify 0 0 0 0 1 0
③ Password
7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Bit
Admin Identify 0 0 0 1 0 0
④ Card
7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Bit
Admin Identify 0 0 1 0 0 0
⑤ Card or Fingerprint
7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Bit
Admin Identify 0 0 1 0 0 1
⑦ Card or Password
7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Bit
Admin Identify 0 0 1 1 0 0
■ Terminal Admin
The terminal a dministrator i a u w s h r ser t c ho t as ’s s ights
ettingi o nformation
a hange
register/delete u I m sers.
t 1 t f ore
a han i d erminal
a t t dministrator
t
administrator l oginp rocess
i r w s e equired
t s s hen o t tntering F t she u etup
o t creen
terminal, the registration of the terminal administrator is recommended.
■ Terminal Status
The t erminal
periodically o i r sends
mmediately
to t he
s the
erver
s tatus
o the terminal
f a d ndconnected
evices
to the terminal when the status is changed.
■ CPU
Intel Pentium 133MHz or higher
■ Memory
16MB or higher
■ USB Port
USB 1.1
■ OS
Windows 98/ME or 2000/XP/2003/Vista/Windows 7
When S i DK installation
completed normally, st f he f ollowing
a i a t iles
d re i nstalled
folders.
UCSAPI40.dll
Core module of UCS SDK. It is in charge of performing all functions of SDK.
UCSAPICOM.dll
COM module for RAD tool developer.
WSEngine.dll
Communication module for Windows socket I/O handling.
Demo application
Several n umbers
o d p ft emo
c be u sed
rograms
t test theo functionshat
o U San f a iCS DK re
All demo program sources are provided at the Samples folder.
Setup.exe (UCSAPI40.NET_Setup.msi)
Class library installation file for .NET
UCSAPI.h
In c ase
t f ihisi ile a t s m ncluded
h f o Us S he U ain eader
U ile
a f CS
UCSAPI_Type.h files are included internally and automatically.
UCSAPI_Basic.h
The default data types used in UCS SDK are defined.
UCSAPI_Error.h
Error values used in UCSAPI40 module are defined.
UCSAPI_Type.h
Data type and structure information used in UCS SDK are defined.
UCSAPI40.lib
The link library file created for VC++. It is used to link UCBioBSP.dll statically at VC++.
DLL
The sample code that can be developed using UCSAPI40.dll is included.
COM
The sample code that can be developed using UCSAPICOM.dll is included.
1) VB6: The sample created for Visual Basic 6.0 is included.
dotNET
The s ample
c t ode
c b dhat an
u Me eveloped
. e under ic
UNIONCOMM.SDK.UCSAPI40dll is included.
1) C#: The sample created for VisualStudio.NET 2005 and C# is included.
Types and APIs to use a DLL module, UCSAPI40.dll, are described in the chapter.
UCSAPI_SINT / UCSAPI_UINT
Int/Unsigned i v t ntv alue
a hat
t O I oaries w ccording
4 f 3 O oa wS. 8 t f perates
64bit OS.
UCSAPI_VOID_PTR
This type represents void*.
UCSAPI_BOOL
This type can have UCSAPI_FALSE(0) / UCBioAPI_TRUE(1) value. It is handled in the same way as int.
UCSAPI_CHAR / UCSAPI_CHAR_PTR
This type represents char and char*. 1byte character and character string value.
UCSAPI_NULL
This type represents NULL. It is defined with the value of ((void*)0).
UCSAPI_RETURN
Prototype:
typedef UCSAPI_UINT32 UCSAPI_RETURN;
Description:
Values r eturned
b f o Uy unctions
S a d Ifg CSAPI
e v DK
o U Sre a efined.
included. Refer to the error definition for more information on error values.
UCSAPI_DATE_TIME_INFO
Prototype:
typedef struct ucsapi_datetime_info
{
UCSAPI_UINT16 Year;
UCSAPI_UINT8 Month;
UCSAPI_UINT8 Day;
UCSAPI_UINT8 Hour;
UCSAPI_UINT8 Min;
UCSAPI_UINT8 Sec;
UCSAPI_UINT8 Reserved;
} UCSAPI_DATE_TIME_INFO, *UCSAPI_DATE_TIME_INFO_PTR;
Description:
The structure that contains the date and time information
UCSAPI_MESSAGE
#define UCSAPI_MESSAGE 128
UCSAPI_ACCESS_DATE_TYPE
Prototype:
typedef UCSAPI_UINT32 UCSAPI_ACCESS_DATE_TYPE;
Description:
Data t ypes
o t U f he CSAPI_ACCESS_DATE
s a d 3 d t c tructure
b d f re
access p deriodnot u ,ata;
sed
allowed a p ccess, and access
eriod
r estriction
p T he f ollowing
eriod.
values are available.
#define UCSAPI_DATE_TYPE_NOT_USE 0
#define UCSAPI_DATE_TYPE_ALLOW 1
#define UCSAPI_DATE_TYPE_RESTRICTION 2
UCSAPI_ACCESS_AUTHORITY
Prototype:
typedef struct ucsapi_access_authority
{
UCSAPI_DATA_PTR AccessGroup;
UCSAPI_ACCESS_DATE_TYPE AccessDateType;
UCSAPI_ACCESS_DATE_PTR AccessDate
} UCSAPI_ACCESS_AUTHORITY, UCSAPI_ACCESS_AUTHORITY_PTR;
Description:
The s tructuret c hatt a ontains
r i he o tccess
u E ights
o v i nformation
d
below.
AccessGroup:
The pointer on the structure that contains access rights group code information
AccessDateType:
The type of data that the UCSAPI_ACCESS_DATE structure has is designated.
UCSAPI_CARD_DATA
Prototype:
typedef struct ucsapi_card_data
{
UCSAPI_UINT32 CardNum;
UCSAPI_DATA_PTR RFID[UCSAPI_CARD_NUMBER_MAX];
} UCSAPI_CARD_DATA, UCSAPI_CARD_DATA_PTR;
Description:
The structure that contains code information. Each of values is described below.
CardNum:
It d esignates
t t n he o Rotal R i umber corresponding
f FID. t the nFID umber
d
o nformation esignated
here are included as array.
RFID:
The pointer array of the structure that contains RFID information
UCSAPI_FINGER_DATA
Prototype:
typedef struct ucsapi_finger_data
{
UCSAPI_UINT32 SecurityLevel;
UCSAPI_UINT8 TemplateFormat;
UCSAPI_UINT8 DuressFinger[10];
UCSAPI_BOOL IsCheckSimilarFinger;
UCSAPI_EXPORT_DATA_PTR ExportData;
} UCSAPI_FINGER_DATA, UCSAPI_FINGER_DATA_PTR;
Description:
The structure that contains fingerprint information. Each of values is described below.
ExportData:
The pointer of the structure that contains converted template data
Refer to UCBioAPI_EXPORT_DATA structure of UCBioBSP SDK.
UCSAPI_FACE_INFO
Prototype:
typedef struct ucsapi_face_info
{
long Length;
BYTE* Data;
} UCSAPI_FACE_INFO, *UCSAPI_FACE_INFO_PTR;
length :
the size value of data
Data :
Face data
UCSAPI_FACE_DATA
Prototype:
typedef struct ucsapi_face_data
{
long FaceNumber;
UCSAPI_FACE_INFO_PTR FaceInfo[UCSAPI_MAX_FACE_NUMBER];
} UCSAPI_FACE_DATA, *UCSAPI_FACE_DATA_PTR;
Description:
Whole face data for 1 user. 1 user can have 10 face info.
FaceNumber :
Registed face number. Max is 10.
FaceInfo :
Real f dace 1 t ata.
y c r ime,
3 o 5 f oui an :5
egist
Q :3 A ry c ace
r f nfo.(Normal
2 times. So Face number is from 3 to 10
UCSAPI_AUTH_DATA
Prototype:
typedef struct ucsapi_auth_data
{
UCSAPI_DATA_PTR Password;
UCSAPI_CARD_DATA_PTR Card;
UCSAPI_FINGER_DATA_PTR Finger;
UCSAPI_FACE_DATA_PTR Face;
} UCSAPI_AUTH_DATA, UCSAPI_AUTH_DATA_PTR;
Description:
Password:
The pointer of the structure that contains password information
Card :
The pointer of the structure that contains card information
Finger:
The pointer of the structure that contains fingerprint information
UCSAPI_PICTURE_HEADER
Prototype:
typedef struct ucsapi_picture_header
{
UCSAPI_UINT8 Format[4]; /* must be “jpg” */
UCSAPI_UINT32 Length; /* max length is 7 kbytes */
} UCSAPI_PICTURE_HEADER, UCSAPI_ PICTURE_HEADER_PTR;
Description:
The s tructure
t c hat t h ontains i he o p eader d E nformation
o
the values is described below.
Format :
It contains the format information of picture data. (Currently, only “JPG” format is supported.)
It designates the file extension value with the character string.
Length:
It h ast s he v izeo p alue d T f m icture d t ata. c b hed aximum
i
7KB.
UCSAPI_PICTURE_DATA
Prototype:
typedef struct ucsapi_picture_data
Description:
The structure that contains picture data information
Header :
It contains the header information of picture data.
Data :
The p ointer
o t b ft he
c uffer
i d hat
i UCSAPI_PICTURE_HEADER
ontains mage
f ( ata ormat
n
stream). The resolution of “JPG” data is 320*240.
UCSAPI_USER_COUNT
Prototype:
typedef struct ucsapi_user_count
{
UCSAPI_UINT32 AdminNumber;
UCSAPI_UINT32 UserNumber;
} UCSAPI_USER_COUNT, *UCSAPI_USER_COUNT_PTR;
Description:
The structure that contains the number of users registered in the terminal.
There are two types of users; administrator and general user.
After t Uhe CSAPI_GetUserCountFromTerminal
f c i c b o f unction
UCSAPI_CALLBACK_EVENT_GET_USER_COUNT event. Each of the values is described below.
AdminNumber:
It has the value of the number of registered administrators.
UserNumber :
It has the value of the number of registered general users.
Description:
The structure that contains user information. Each of the values is described below.
UserID :
It contains user ID information. This value can use only numeric data up to 8 digits.
UserName :
The p ointer
o t s f t hec tructure
u n i hat T ontains
v c b d ser ame
u t nform
the size of UCSAPI_DATA_SIZE_USER_NAME.
UniqueID:
The p ointer
o t s f t he c tructure
u I ( hat I ontains
i T nique
v c b D emp
used i p n o lace
U f fu serID
i or
I c ser
b d dentification.
u t t s o t an
UCSAPI_DATA_SIZE_UNIQUE_ID.
Property:
The s tructure
t c uhat p ontains
( ser
t a roperty
whether a u ser
i authentication
an administrator
s
or not) information
AuthType:
This is value of cerification method.(1:FP,..., 26: Card & FP & FA & PW)
* refer UCSAPI_Type.h file for each value
AccessAuthority:
The pointer of the structure that contains access rights information
UCSAPI_USER_DATA
Prototype:
Description:
The s tructure
t c u
hat d ontains
I i u d ser
U ata. t s c sed E o uring
the values is described below.
UserInfo :
The structure that contains user information
AuthData :
The pointer of the structure that contains access rights data
PictureData :
The pointer of the structure that contains picture data
UCSAPI_ERROR_TYPE
Prototype:
typedef UCSAPI_UINT32 UCSAPI_ERROR_TYPE
#define UCSAPI_ERROR_TYPE_NONE 0
#define UCSAPI_ERROR_TYPE_ACCESS_LOG 1
Description:
Define Error Type for returning back to terminal with received Callback Event.
Description:
To obtain log data from the terminal, three log types are to be defined.
The n umber
o l t c f b ogs
s i hat v an a e tored
t t mnternally
I t m aries
storage c apacity
i e sn xceeded,
l a s ew
b d ogs s re o tored
the existing records.
It is used during UCSAPI_GetAccessLogCountFromTerminal /
UCSAPI_GetAccessLogFromTerminal call.
#define UCSAPI_GET_LOG_TYPE_NEW 0
#define UCSAPI_GET_LOG_TYPE_OLD 1
#define UCSAPI_GET_LOG_TYPE_ALL 2
#define UCSAPI_GET_LOG_TYPE_PEROID 3
UCSAPI_ACCESS_LOG_DATA
Prototype:
typedef struct ucsapi_access_log_data
{
UCSAPI_UINT32 UserID;
UCSAPI_DATE_TIME_INFO DataTime;
UCSAPI_UINT8 AuthMode;
UCSAPI_UINT8 AuthType;
UCSAPI_UINT8 Reserved[2];
UCSAPI_BOOL IsAuthorized;
UCSAPI_DATA_PTR RFID;
UCSAPI_PICTURE_DATA_PTR PictureData;
} UCSAPI_ACCESS_LOG_DATA, UCSAPI_ACCESS_LOG_DATA_PTR;
Description:
The structure that contains authentication log data
It c an b o e btained
f t U rom he CSAPI_CALLBACK_EVENT_GET_ACCESS_LOG
e a
UCSAPI_GetAccessLogFromTerminal is called. Each of the values is described below.
DateTime :
The structure that contains authentication time information
AuthMode:
It has the authentication mode value. Refer to UCSAPI_AUTH_MODE definition.
AuthType:
It has the authentication type value. Refer to UCSAPI_AUTH_TYPE definition.
IsAuthorized:
It has the authentication result value. It has the value of 1 for success and the value of 0 for failure.
RFID:
The pointer of the structure that contains RFID data used during card authentication
PictureData:
The p ointer
o t s f t he c tructure
p d t hat d ontains
a Ticturev i ata
available only for terminals that can take picture.
UCSAPI_CALLBACK_EVENT_HANDLER
Prototype:
typedef UCSAPI_RETURN (UCSAPI * UCSAPI_CALLBACK_EVENT_HANDLER) (
UCSAPI_UINT32 TerminalID, UCSAPI_UINT32 EventType,
UCSAPI_UINT32 wParam, UCSAPI_UINT32 lParam);
UCSAPI_CALLBACK_PARAM_0
Prototype:
typedef struct ucsapi_callback_param_0
{
UCSAPI_UINT32 ClientID;
UCSAPI_UINT32 ErrorCode;
UCSAPI_PROGRESS_INFO Progress;
} UCSAPI_CALLBACK_PARAM_0, *UCSAPI_CALLBACK_PARAM_0_PTR;
Description:
The structure passed as the third element of UCSAPI_CALLBACK_EVENT_HANDLER.
Each of the values is described below.
ClientID :
ID of the client that requested the job. (It is used in client/server model development.)
ErrorCode :
It contains the value on errors generated from the executed job.
The value of 0 represents success, while all other values represent failure.
Progress :
The structure that contains the progress information of the executed job.
It can be obtained after below functions are called.
- UCSAPI_GetUserInfoListFromTerminal
- UCSAPI_GetAccessLogFromTerminal
UCSAPI_PROGRESS_INFO
Prototype:
typedef struct ucsapi_progress_info
{
UCSAPI_UINT32 CurrentIndex;
UCSAPI_UINT32 TotalNumber;
} UCSAPI_PROGRESS_INFO, *UCSAPI_PROGRESS_INFO_PTR;
Description:
The s tructure
t c that p ontains
i o he
t e rogressj W n
nformation
s f
records t t ao he p pplication
U S i rogram,
p i CS i t DK
s ncludes
a
notifies it to the application program along with the UCSAPI_CALLBACK_PARAM_0 structure.
It c an
b o e a btained
U fter CSAPI_GetUserInfoListFromTerminal
/U /
USCAPI_UpgradeFirmwareToTerminal functions are called. Each of the values is described below.
CurrentIndex:
The index of the record currently in transmission
TotalNumber :
The total number of records to be sent
UCSAPI_CALLBACK_PARAM_1
Prototype:
typedef struct ucsapi_callback_param_1
{
UCSAPI_CALLBACK_DATA_TYPE DataType;
Union {
UCSAPI_USER_INFO_PTR UserInfo;
UCSAPI_USER_DATA_PTR UserData;
UCSAPI_ACCESS_LOG_DATA_PTR AccessLog;
UCSAPI_FACE_INFO_PTR FaceInfo;
} Data;
} UCSAPI_CALLBACK_PARAM_1, *UCSAPI_CALLBACK_PARAM_1_PTR;
DataType:
The type of data that this structure has is designated.
Refer to UCSAPI_CALLBACK_DATA_TYPE.
Data:
The u nion
s t tructure
d r d
hat V esignates
o U U eal a Aata. c alues
b f
used by storing them with a single identical address pointer.
UCSAPI_CALLBACK_DATA_TYPE
Prototype:
typedef UCSAPI_UINT32 UCSAPI_CALLBACK_DATA_TYPE;
Description:
Data types of the UCSAPI_CALLBACK_PARAM_1 structure are defined.
#define UCSAPI_CALLBACK_DATA_TYPE_USER_INFO 0
#define UCSAPI_CALLBACK_DATA_TYPE_USER_DATA 1
#define UCSAPI_CALLBACK_DATA_TYPE_ACCESS_LOG 2
#define UCSAPI_CALLBACK_DATA_TYPE_FACE_INFO 3
UCSAPI_TIMEZONE
Prototype:
typedef struct ucsapi_timezone
{
UCSAPI_TIME_HH_MM StartTime;
UCSAPI_TIME_HH_MM EndTime;
} UCSAPI_TIMEZONE, * UCSAPI_TIMEZONE_PTR;
StartTime/ EndTime:
The structure that contains time information from start to end
UCSAPI_ACCESS_TIMEZONE
Prototype:
typedef struct ucsapi_access_timezone
{
UCSAPI_CHAR Code[UCSAPI_DATA_SIZE_CODE4];
UCSAPI_TIMEZONE Zone[12];
UCSAPI_UINT8 Reserved[4]
} UCSAPI_ACCESS_TIMEZONE, * UCSAPI_ACCESS_TIMEZONE_PTR;
Description:
The structure that contains information on the time zone allowed for access during a day
Up t 1o t 2z ime
c b dones into
an a s e ingle
t esignated
c Eime o theode.
values i dach s escribed
f
below.
Code:
As t hei dentifier
c v o ode
t t alue
z i if a character
he ime
s tring o one,
f f ixed
t
UCSAPI_DATA_SIZE_CODE size.
Zone:
The structure array that contains time zone information
UCSAPI_ACCESS_TIMEZONE_DATA
Prototype:
typedef struct ucsapi_access_timezone_data
{
UCSAPI_UINT32 TimezoneNum;
UCSAPI_ACCESS_TIMEZONE Timezone[UCSAPI_ACCESS_TIMEZONE_MAX];
} UCSAPI_ACCESS_TIMEZONE_DATA, * UCSAPI_ACCESS_TIMEZONE_DATA_PTR;
TimezoneNum:
It d esignatest t n he o otal
allowed a umbert ime
ccessz fcone T odes.
z i ime one
corresponding to the number designated here are included in the form of an array.
Timezone:
The structure array that contains the allowed access time zone code information
UCSAPI_ACCESS_HOLIDAY
Prototype:
typedef struct ucsapi_access_holiday
{
UCSAPI_CHAR Code[UCSAPI_DATA_SIZE_CODE4];
UCSAPI_DATE_MM_DD Date[32];
} UCSAPI_ACCESS_HOLIDAY, * UCSAPI_ACCESS_HOLIDAY_PTR;
Description:
The structure that contains holiday information
Up to 32 holidays can be designated into the holiday code. Each of the values is described below.
Code:
As t he
i dentifier
c v o a holiday,
ode i i alue
a c t s fs haracter
o f U tring f ixed
size.
Date:
The structure array that contains holiday information
UCSAPI_ACCESS_HOLIDAY_DATA
Prototype:
typedef struct ucsapi_access_holiday_data
{
Description:
The structure that contains holiday data.
Up to 64 holiday code data can be designated. Each of the values is described below.
HolidayNum:
It d esignates
t t n he o hotal c umber
H i f oliday
corresponding odes.
t the n umber
oliday
o
designated here are included in the form of an array.
Holiday:
The structure array that contains holiday code information
UCSAPI_ACCESS_TIMEZONE_CODE
Prototype:
typedef struct ucsapi_access_timezone_code
{
UCSAPI_CHAR Sun[UCSAPI_DATA_SIZE_CODE4];
UCSAPI_CHAR Mon[UCSAPI_DATA_SIZE_CODE4];
UCSAPI_CHAR Tue[UCSAPI_DATA_SIZE_CODE4];
UCSAPI_CHAR Wed[UCSAPI_DATA_SIZE_CODE4];
UCSAPI_CHAR Thu[UCSAPI_DATA_SIZE_CODE4];
UCSAPI_CHAR Fri[UCSAPI_DATA_SIZE_CODE4];
UCSAPI_CHAR Sat[UCSAPI_DATA_SIZE_CODE4];
UCSAPI_CHAR Hol[UCSAPI_DATA_SIZE_CODE4];
} UCSAPI_ACCESS_TIMEZONE_CODE, * UCSAPI_ACCESS_TIMEZONE_CODE_PTR;
Description:
The s tructure
t c the
hatallowedontains
t a het z ccessc f eime d oone
t w ode
E o or ac
the values is described below.
Hol:
It has the allowed access time zone code value to be applied to the holiday during authentication.
UCSAPI_ACCESS_TIME
Prototype:
typedef struct ucsapi_access_time
{
UCSAPI_CHAR Code[UCSAPI_DATA_SIZE_CODE4];
UCSAPI_ACCESS_TIMEZONE_CODE Timezone;
UCSAPI_CHAR Holiday[UCSAPI_DATA_SIZE_CODE4];
} UCSAPI_ACCESS_TIME, * UCSAPI_ACCESS_TIME_PTR;
Description:
The s tructure
t c the
hat allowed
ontains
a t ccess
i ime
E o nformation.
t he v alues i d s escribed
ach
below.
Code:
As t he
i dentifier
c v o ode
a a alue t if i allowed
c s ccess
o f ime,
UCSAPI_DATA_SIZE_CODE size.
Timezone:
It has the allowed access time zone code for each day of the week.
Holiday:
It has the holiday code value to be used in the allowed access time code.
The t ime
z d one a H esignated
o t U t ol f hes CSAPI_ACCESS_TIMEZONE_COD
i a t t
holiday code designated here.
UCSAPI_ACCESS_TIME_DATA
Prototype:
typedef struct ucsapi_access_time_data
{
UCSAPI_UINT32 AccessTimeNum;
Description:
The structure that contains the allowed access time data.
Up t o1 a 28 a llowed t c ccess
i ime
c b ode
d nformation
E o
the values is described below.
AccessTimeNum:
It d esignatest t n he o otal
a aumber t c f A llowed i ccess im
corresponding to the number designated here are included in the form of an array.
AccessTime:
The structure array that contains the allowed authentication time code information
UCSAPI_ACCESS_GROUP
Prototype:
typedef struct ucsapi_access_group
{
UCSAPI_CHAR Code[UCSAPI_DATA_SIZE_CODE4];
UCSAPI_CHAR AccessTime1[UCSAPI_DATA_SIZE_CODE4];
UCSAPI_CHAR AccessTime2[UCSAPI_DATA_SIZE_CODE4];
UCSAPI_CHAR AccessTime3[UCSAPI_DATA_SIZE_CODE4];
UCSAPI_CHAR AccessTime4[UCSAPI_DATA_SIZE_CODE4];
} UCSAPI_ACCESS_GROUP, * UCSAPI_ACCESS_GROUP_PTR;
Description:
The s tructure
t c the
hat accessontains
g c roup i ode E onformation.
the values i d s ach
escribed f
below.
Up to 4 allowed access time codes can be designated to the access group code.
Code:
As t hei dentifier
c v o ode
t a alue
g i fi a he
characterccess
s tring o f roup,
f ixed t
UCSAPI_DATA_SIZE_CODE size.
UCSAPI_ACCESS_GROUP_DATA
Prototype:
typedef struct ucsapi_access_group_data
{
UCSAPI_UINT32 AccessGroupNum;
UCSAPI_ACCESS_GROUP AccessGroup[UCSAPI_ACCESS_GROUP_MAX];
} UCSAPI_ACCESS_GROUP_DATA, * UCSAPI_ACCESS_GROUP_DATA_PTR;
Description:
The s tructure
t c ahat g ontains
d U t 1 ccess
a g roup
c i ata. c pb o 28
designated.
Each of the values is described below.
AccessGroupNum:
It d esignates t t nhe ootal a g
umber c Af ccess
g i roup o
corresponding to the number designated here are included in the form of an array.
AccessGroup:
The structure array that contains the access group code information
UCSAPI_ACCESS_CONTROL_DATA_TYPE
Prototype:
typedef UCSAPI_UINT32 UCSAPI_ACCESS_CONTROL_DATA_TYPE
#define UCSAPI_ACCESS_CONTROL_DATA_TYPE_TIMEZONE 0
#define UCSAPI_ACCESS_CONTROL_DATA_TYPE_HOLIDAY 1
#define UCSAPI_ACCESS_CONTROL_DATA_TYPE_TIME 2
#define UCSAPI_ACCESS_CONTROL_DATA_TYPE_GROUP 3
Description:
It designates the data type that the UCSAPI_ACCESS_CONTROL_DATA structure has.
Description:
The s tructure
t c the
hataccess ontains
c iontrol V nformation.
o T H alues
A f imez
and AccesGroup can be used by storing them with a single identical address pointer.
It is used in the UCSAPI_SetAccessControlDataToTerminal function.
Each of the values is described below.
DataType:
The t ypeo d f t ata t s hat h his i dtructure R ast s
UCSAPI_ACCESS_CONTROL_DATA_TYPE.
UCSAPI_AUTH_TYPE
Prototype:
typedef UCSAPI_UINT32 UCSAPI_AUTH_TYPE;
Description:
The authentication type is defined during authentication.
UCSAPI_AUTH_MODE
Prototype:
typedef UCSAPI_UINT32 UCSAPI_AUTH_MODE;
Description:
The a uthentication
m i d during
odeu sera s uthentication.
efined T a m he d uthentication
i
purpose d a uring I uthentication.
g i c b a nw eneral,
t t i tu anf e p
time/attendance management.
#define UCSAPI_AUTH_MODE_ATTENDANCE 0
#define UCSAPI_AUTH_MODE_LEAVE 1
#define UCSAPI_AUTH_MODE_NORMAL 2
#define UCSAPI_AUTH_MODE_OUT 3
#define UCSAPI_AUTH_MODE_RETURN 4
UCSAPI_INPUT_DATA_CARD
Prototype:
typedef struct ucsapi_input_data_card
{
UCSAPI_UINT32 AuthMode;
UCSAPI_DATA RFID;
} UCSAPI_INPUT_DATA_CARD, *UCSAPI_INPUT_DATA_CARD_PTR;
Description:
The s tructure
t c the
hati nformation
ontains
entered d c uring
a ard a t tuthentication
E
AuthMode:
It has the authentication mode value entered at the terminal. Refer to UCSAPI_AUTH_MODE.
RFID:
The structure that contains the RFID information entered at the terminal.
UCSAPI_INPUT_DATA_PASSWORD
Prototype:
typedef struct ucsapi_input_data_password
{
UCSAPI_UINT32 UserID;
UCSAPI_UINT32 AuthMode;
UCSAPI_DATA Password;
} UCSAPI_INPUT_DATA_PASSWORD, *UCSAPI_INPUT_DATA_PASSWORD_PTR;
Description:
The s tructure
t c the
hat information
ontains
e d ntered
p a uring a t assword
t uth
Each of the values is described below.
UserID:
It has user ID information.
AuthMode:
It has the authentication mode value. Refer to UCSAPI_AUTH_MODE.
Password:
The structure that contains password information
UCSAPI_INPUT_DATA_FINGER_1_TO_1
Prototype:
typedef struct ucsapi_input_data_finger_1_to_n
{
UCSAPI_UINT32 UserID;
Description:
The s tructure
t c hat
the information
ontainse d ntered
1 f uring
a :1 a t ingerprint
terminal. Each of the values is described below.
UserID:
It has user ID information.
AuthMode:
It has the authentication mode value. Refer to UCSAPI_AUTH_MODE.
SecurityLevel:
It has the security level value to be used during authentication.
Refer to the UCBioAPI_FIR_SECURITY_LEVEL definition of UCBioBSP SDK for available values.
Finger:
The structure that contains fingerprint information
UCSAPI_INPUT_DATA_FINGER_1_TO_N
Prototype:
typedef struct ucsapi_input_data_finger_1_to_n
{
UCSAPI_UINT32 AuthMode;
UCSAPI_UINT32 SecurityLevel;
UCSAPI_UINT32 InputIDLength;
UCSAPI_DATA Finger;
} UCSAPI_INPUT_DATA_FINGER_1_TO_N, *UCSAPI_INPUT_DATA_FINGER_1_TO_N_PTR;
Description:
The s tructure
t c that
he i nformation
ontainse d ntered
1 f uring
a :Na t ingerprint
UserID:
It has user ID information.
AuthMode:
It has the authentication mode value. Refer to UCSAPI_AUTH_MODE.
SecurityLevel:
It has the security level value to be used during authentication.
InputIDLength:
It h ast l he v ength
o I entered
alue a t t he
tf D erminal.
T v c bhis u talue
i an e
the s peed
o 1:N f ingerprint
f a b uthentication
r t a ry educing
I t U v he uthe
is 5 a tnd I he nputIDLength
v i 3 i c t I range
alue o f t srhe egistered
n u ase i 0 he serD s
then the authentication ID range becomes 0500~1000.
Finger:
The structure that contains the fingerprint information entered at the terminal.
UCSAPI_INPUT_DATA_TYPE
Prototype:
typedef UCSAPI_UINT32 UCSAPI_INPUT_DATA_TYPE;
#define UCSAPI_INPUT_DATA_TYPE_FINGER_1_TO_N 0
#define UCSAPI_INPUT_DATA_TYPE_FINGER_1_TO_1 1
#define UCSAPI_INPUT_DATA_TYPE_PASSWORD 2
#define UCSAPI_INPUT_DATA_TYPE_CARD 3
#define UCSAPI_INPUT_DATA_TYPE_FINGER_CARD 4
Description:
The type of data that the UCSAPI_INPUT_DATA_TYPE structure has is designated.
UCSAPI_INPUT_DATA
Prototype:
Description:
The s tructure
t c hat
t he i nformation
ontainse a t ntered
t d t u hea erminal ur
Authentication r c equest
b m t ant a e ade
p o
b s he pplica
the input information at this structure. Each of the values is described below.
AntipassbackLevel:
It h as
t a he nti-passback
l s u a t t evelT a et pp t c he r erminal.
t t v he
when implementing the anti-passback function.
DataType:
The type of data that this structure has is designated. Refer to UCSAPI_INPUT_DATA_TYPE.
Data:
The u nion
s t tructure
designates r ealdhat Vata. o F alues F f inger1To1,
C a P inger1ToN
are used by storing them with a single identical address pointer.
UCSAPI_INPUT_ID_TYPE
Prototype:
typedef UCSAPI_UINT32 UCSAPI_INPUT_ID_TYPE;
#define UCSAPI_INPUT_ID_TYPE_USER_ID 0
#define UCSAPI_INPUT_ID_TYPE_UNIQUE_ID 1
#define UCSAPI_INPUT_ID_TYPE_RFID 2
UCSAPI_INPUT_ID_DATA
Prototype:
typedef struct ucsapi_input_id_data
{
UCSAPI_INPUT_ID_TYPE DataType;
Union {
UCSAPI_UINT32* UserID;
UCSAPI_DATA_PTR UniqueID
UCSAPI_DATA_PTR RFID;
} Data;
} UCSAPI_INPUT_ID_DATA, *UCSAPI_INPUT_ID_DATA_PTR;
Description:
The s tructure
t c the
hat ID i ontains e
nformation a t t ntered d ut a he erminal
a u
the server. Each of the values is described below.
DataType:
The type of data that this structure has is designated. Refer to UCSAPI_INPUT_ID_TYPE.
Data:
The u nion
s t tructure
d r dhat V esignates
o U U eal
a R ata.
c b u alues
b f
storing them with a single identical address pointer.
UCSAPI_AUTH_INFO
Prototype:
typedef struct ucsapi_auth_info
Description:
The s tructure
t c hatthe user’s
ontains
a uthentication i I nformation.
i u i t t
UCSAPI_SendAuthInfoToTerminal function.
Each of the values is described below.
UserID:
It has the user’s ID value.
IsAccessibility:
It has the value on whether the user has authentication rights or not.
Property:
The structure that contains user property (authentication type and administrator) information
ErrorCode:
In c aset u hed nser h aoes ot r aveit has t uthentication
corresponding
he error c ights,
ode
value. Refer to error code table.
UCSAPI_AUTH_NOTIFY
Prototype:
typedef struct ucsapi_auth_notify
{
UCSAPI_UINT32 UserID;
UCSAPI_BOOL IsAuthorized;
UCSAPI_BOOL IsVistor;
UCSAPI_DATE_TIME_INFO AuthorizedTime;
UCSAPI_UINT32 ErrorCode;
} UCSAPI_AUTH_NOTIFY, *UCSAPI_AUTH_NOTIFY_PTR;
UserID:
It has the ID value of the authenticated user or the user who attempted authentication.
IsAuthorized:
It has the authentication result value.
IsVisitor:
It has the value on whether the authenticated user is a visitor or not.
AuthorizedTime:
The structure that contains authentication time information
ErrorCode:
It has the error code value in case of authentication failure. Refer to the error code table.
UCSAPI_TERMINAL_TIMEZONE
Prototype:
typedef struct ucsapi_terminal_timezone
{
UCSAPI_UINT8 IsUsed;
UCSAPI_UINT8 StartHour;
UCSAPI_UINT8 StartMin;
UCSAPI_UINT8 EndHour;
UCSAPI_UINT8 EndMin;
} UCSAPI_TERMINAL_TIMEZONE, * UCSAPI_TERMINAL_TIMEZONE_PTR;
IsUsed :
It h as
i nformation
o w t v n t thether
UCSAPI_TERMINAL_TIMEZONE
he alue s hat
tructureh he i v as s
or not.
StartHour / StartMin:
It contains the start time information.
EndHour / EndMin :
It contains the end time information.
UCSAPI_TERMINAL_DAY_SCHEDULE
Prototype:
typedef struct ucsapi_terminal_day_schedule
{
UCSAPI_TERMINAL_TIMEZONE Lock1;
UCSAPI_TERMINAL_TIMEZONE Lock2;
UCSAPI_TERMINAL_TIMEZONE Lock3;
UCSAPI_TERMINAL_TIMEZONE Open1;
UCSAPI_TERMINAL_TIMEZONE Open2;
UCSAPI_ TERMINAL_TIMEZONE Open3;
} UCSAPI_TERMINAL_DAY_SCHEDULE, * UCSAPI_TERMINAL_DAY_SCHEDULE_PTR;
Description:
The structure that contains terminal’s lock/open schedule information for each day of the week.
Regarding the schedule f e dor o t ach
w u ay
t t fl he t eek,z p pd co b hree o
designated. Each of the values is described below.
UCSAPI_HOLIDAY_TYPE
Prototype:
typedef UCSAPI_UINT8 UCSAPI_HOLIDAY_TYPE;
#define UCSAPI_HOLIDAY_TYPE_1 1
#define UCSAPI_HOLIDAY_TYPE_2 2
#define UCSAPI_HOLIDAY_TYPE_3 3
Description:
The h oliday
t t b u ypei t lo e s sed o tn t he iock/open
d U t 3chedule
h
types can be designated. Each of the values is described below.
UCSAPI_TERMINAL_HOLIDAY_INFO
Prototype:
typedef struct ucsapi_holiday_info
{
UCSAPI_UINT8 Month;
UCSAPI_UINT8 Day;
UCSAPI_UINT8 HolidayType;
} UCSAPI_TERMINAL_HOLIDAY_INFO, * UCSAPI_TERMINAL_HOLIDAY_INFO_PTR
Description:
The structure that contains holiday information
Month/Day:
These structures contain the holiday’s date information.
Holidaytype:
It has the holiday type value. Refer to UCSAPI_HOLIDAY_TYPE.
Description:
The structure that contains the terminal’s lock/open schedule information for each day of the week.
Up t 1 o h 00 c olidays
b s u T han type
e c et b and p. e hea esignated
Holiday1,
oliday H a oliday2
t
Holiday3. Each of the values is described below.
Holidays:
The s tructure
t c hhat i ontains O s oliday f H nformation.
H a H ne chedu
is applied to each holiday.
Description:
The s tructure
t c hat
the security
ontains
l i evel tnformation
b u d f o e sed
authentication. It can have any of the following values.
1- LOWEST
2- LOWER
3- LOW
4- BELOW_NORMAL
5- NORMAL
6- ABOVE_NORMAL
7- HIGH
8- HIGHER
9- HIGHEST
Verify:
1:1 authentication level value. The default value is 4.
Identify
1:N authentication level value. The default value is 5.
UCSAPI_ANTIPASSBACK_LEVEL
Prototype:
typedef UCSAPI_UINT32 UCSAPI_ANTIPASSBACK_LEVEL;
#define UCSAPI_ANTIPASSBACK_LEVEL_NOT_USE 0
#define UCSAPI_ANTIPASSBACK_LEVEL_WHEN_DISCONNECTION_ALLOW 1
#define UCSAPI_ANTIPASSBACK_LEVEL_WHEN_DISCONNECTION_PROHIBIT 2
UCSAPI_ANTIPASSBACK_LEVEL_NOT_USE:
Anti-passback not used
UCSAPI_ANTIPASSBACK_LEVEL_WHEN_DISCONNECTION_ALLOW:
Access allowed when connection to the server is disabled
UCSAPI_ANTIPASSBACK_LEVEL_WHEN_DISCONNECTION_PROHIBIT :
Access not allowed when connection to the server is disabled
UCSAPI_NETWORK_INFO
Prototype:
typedef struct ucsapi_network_info
{
UCSAPI_UINT8 NetworkType;
UCSAPI_UINT8 IP[4];
UCSAPI_UINT8 Subnet[4];
UCSAPI_UINT8 Gateway[4];
} UCSAPI_NETWORK_INFO;
Description:
The structure that contains the terminal’s network setting information
NetworkType :
It h ast t he v ypeo I aalue T f s P I iddress.
s f het v tatic o P
0, while the dynamic IP is supported for the value of 1.
IP :
Subnet :
The array of the buffer that contains the subnet mask value
Gateway :
The array of the buffer that contains the gateway address value
UCSAPI_SERVER_INFO
Prototype:
typedef struct ucsapi_server_info
{
UCSAPI_UINT8 IP[4];
UCSAPI_UINT16 Port;
UCSAPI_UINT8 Reserved[2];
} UCSAPI_SERVER_INFO;
Description:
The s tructure
t c the
hat network
ontains
i nformation
f t t t c or thet s erminal
E o
of the values is described below.
IP :
The buffer array that contains the address value of server IP
Port :
It has the socket port value for connection to the server.
UCSAPI_TERMINAL_OPTION_FLAG
Prototype:
typedef struct ucsapi_terminal_option_flag
{
UCSAPI_UINT32 SecurityLevel :1;
UCSAPI_UINT32 InputIDLength :1;
UCSAPI_UINT32 AutoEnterKey :1;
Description:
It h as
t reference
he f o e lagi on t UCSAPI_TERMINAL_OPTION
ach tem f he
s O w t tructure
flag value of an item is true, the value of that item can be referenced.
Refer to the UCSAPI_TERMINAL_OPTION structure for description on each item.
UCSAPI_TERMINAL_OPTION
Prototype:
typedef struct ucsapi_terminal_option
{
UCSAPI_TERMINAL_OPTION_FLAG Flags;
UCSAPI_SECURITY_LEVEL SecurityLevel;
UCSAPI_UINT8 InputIDLength;
UCSAPI_UINT8 AutoEnterKey;
UCSAPI_UINT8 Sound;
UCSAPI_UINT8 Authentication;
UCSAPI_UINT8 Application;
UCSAPI_UINT8 Antipassback;
UCSAPI_NETWOARK_INFO Network;
UCSAPI_SERVER_INFO Server;
UCSAPI_UINT8 InputIDType;
UCSAPI_UINT8 AccessLevel;
UCSAPI_UINT8 PrintText[32];
UCSAPI_TERMINAL_SCHEDULE Schedule;
Description:
The structure that contains the option setting value of the terminal.
It i su sed
i t U n he CSAPI_SetOptionToTerminal/UCSAPI_GetOptionFromTerminal
f E o
the values is described below.
Flags :
It has the reference flag value on each item of the structure.
To s uet the terminal’s
p o ptioni u tems
t U sing he CSAPI_SetOptionToTerminal
f d t
flag value of an item as true and designate the value of that item.
SecurityLevel :
It designates the security level to be used during authentication.
Refer to the UCBioAPI_FIR_SECURITY_LEVEL definition of UCBioBSP SDK for available values.
InputIDLength :
It h ast l he v ength
o I e aluea t t f D T ntered
m lengtht of 8
hedigits erminal.
can b e
designated i c o un U
ase while
f thesing
m aximum
oserID
length o 20f digits
f in c ase
o u f sing
UniqueID.
AutoEnterKey :
It h as
t v he o w alue t tn hether
c u t a he Eerminal
k f oan n Wse k he utom
input corresponds to InputIDLength, this function enters the “Enter” key automatically.
Sound :
It h as
t s he v ound
v o t olume
t T alue
r o t fv he v erminal.
t c b d he ange
is 0~20. To set the terminal’s sound to mute, 0 is designated.
Authentication :
It has the authentication type value of the terminal.
Refer to “Terminal Authentication Type” in Section 1.6 Terminology Description for available values.
Application:
It h ast m he v ode
o t t alue p f T he t erminal
c b u arogram.
a c he er
Antipassback:
It has the anti-passback level value of the terminal.
Refer to the UCSAPI_ANTIPASSBACK_LEVEL definition for available values.
Network:
The structure that contains terminal’s network information
Server:
The structure that contains network information for the terminal to connect to the server
InputIDType:
It h as
t t hev ype
o I e alue a t tf D d ntered
a t T hef erminal
v a uring
available.
0 – UserID
1 – UniqueID
AccessLevel:
It h ast a he l ccess
v T evel
i t f alue. t rhis ts a he unction
t hat
allowing only the designated t f authentication.
ypes or
T hef ollowing
v a a aluesT d re vailab
value is 0.
0 – No restriction
1 – Only fingerprint and password authentication allowed
PrintText:
It i st bhe a uffert c rray character
hat s tringsontains
t b po ae t rinted
d w tp he rinkin
connected to the terminal.
This value can be used when the drinking water printer is connected to the terminal.
Description:
The structure that contains the option setting value of the ACU.
It is used in the UCSAPI_SetOptionToACU / UCSAPI_GetOptionFromACU function.
Refer to sample source for detail struct destrption.
UCSAPI_ACU_LOCKSCHEDULE
Prototype:
#define MAX_ACU_LOCK 4
Description:
The structure that contains schedule for setted lock of ACU.
It is used in the UCSAPI_SetLockScheduleToACU / UCSAPI_GetLockScheduleFromACU
Refet to TerminalOption for UCSAPI_TERMINAL_SCHEDULE
UCSAPI_TERMINAL_STATUS
Prototype:
typedef struct ucsapi_terminal_status
{
UCSAPI_UINT32 Terminal;
UCSAPI_UINT32 Door;
UCSAPI_UINT32 Cover;
UCSAPI_UINT32 Lock;
UCSAPI_UINT32 Open;
UCSAPI_UINT32 Reserved1;
UCSAPI_UINT32 Reserved2;
UCSAPI_UINT32 Reserved3;
} UCSAPI_TERMINAL_STATUS, *UCSAPI_TERMINAL_STATUS_PTR;
Description:
The structure that contains terminal’s status value. Each of the values is described below.
Terminal:
It has the lock status value of the terminal. The following values are available.
0 – UnLock
1 – Lock
2 – Shutdown(Global Locking)
UCSAPI_ACU_STATUS_INFO
Prototype:
#define MAX_ACU_PARTITION 4
#define MAX_ACU_ZONE 8
#define MAX_ACU_LOCK 4
#define MAX_ACU_READER 8
Description:
The structure that contains ACU terminal’s status value.
For each of the values, refer to the ACU manual.
Description:
The structure that contains for terminal control value. Each of the values is described below.
lockStatus:
It has the lock status value of the terminal. The following values are available.
0 – UnLock
1 – Lock
lockType:
It has the lock type value of the terminal locking. The following values are available.
0 – Normal
1 – Global(Shutdonw)
Definitions o v n A arious
u i U PIs S ised no f CS u DK, a nstructio
elements are 7described.
UCSAPI_ServerStart
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_ServerStart(
IN UCSAPI_UINT32 MaxTerminal,
IN UCSAPI_UINT32 Port,
IN UCSAPI_INT32 Reserved,
IN UCSAPI_CALLBACK_EVENT_HANDLER CallBackEventFunction);
Description:
This API initializes UCSAPI modules and implements server functions.
Parameters:
MaxTerminal::
This p arameter
d t m efinesn ohet aximum
t c b c umberS c i f erminals
speed b a y issigningm c nternali a emory
a t t apacity
m n n o dvance
terminals. I t n f ohec umber
t e f onnected
t m n erminals
m i i xceeds
automatically to increase the number of connections.
Port:
The c ommunication
p f t cort or T erminal
s i i s onnection.
m f he
terminal’s c onnectiont t d o phe T esignated
d v i 9 I ort.
t v he
i c efault
t alue
terminal’s port value also needs to be changed.
CallBackEventFunction:
Returns:
UCSAPIERR_NONE
UCSAPIERR_FUNCTION_FAILED
Callback:
UCSAPI_CALLBACK_EVENT_CONNECTED
Callback Parameters:
wParam:
UCSAPI_CALLBACK_PARAM_0 CallBack0
lParam:
UCSAPI_UINT8 TerminalIP[4]:
The array of the buffer that has the terminal’s IP address
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_ServerStop();
Description:
This API disconnects all connected terminals and stops server functions.
Parameters:
N/A
Returns:
UCSAPIERR_NONE
Callback:
N/A
Callback Parameters:
N/A
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_SetTerminalTimezone(
IN UCSAPI_UINT32 TerminalID,
IN UCSAPI_CHAR_PTR pTimezoneName);
Description:
Set Terminal time from connected terminal
Terminal i u l s sing
s ’s t ime
inked
b i t ut erver
af serminalt i d nd t erver n t ime
b s
set as local time.
Parameters:
TerminalID:
Terminal ID
pTimezoneName:
Set Terminal zone name
Time zone name can be checked from following list.
HKEY_LOCAL_MACHINE\SOFRWARE\Microsoft\Windows NT\CurrentVersion\TimeZones
Returns:
UCSAPIERR_NONE
Callback:
N/A
Callback Parameters:
N/A.
※ GMT
To check standard time, GMT can be a reference
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_SetError(
IN UCSAPI_UINT32 TerminalID,
IN UCSAPI_ERROR_TYPE ErrorType);
Description:
Receive Callback Event from terminal and return back error code with setting.
Parameters:
TerminalID:
Terminal ID
ErrorType:
Have Error Type value for returning to the eart
.
For example, After call out UCSAPI_GetAccessLogFromTerminal, and fail to save received
Log Data. Set ErrorType as UCSAPI_ERROR_TYPE_ACCESS_LOG in Callback Event function.
After that call USCAPI_SetError then the terminal will refresh log with most recent log
status and sending new log.
.
Returns:
UCSAPIERR_NONE
Callback:
N/A
Callback Parameters:
N/A.
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_SetWiegandFormatToTerminal(
IN UCSAPI_UINT32 ClientID,
IN UCSAPI_UINT32 TerminalID,
IN UCSAPI_WIEGAND_DATA wgdType,
IN UCSAPI_CHAR_PTR FilePath);
Description:
To set terminal’s Wiegand In/Out Format.
Wiegand Format File cand be created by using Wiegand Tool fom SDK.
Parameters:
ClientID:
Use for Client/Server model development
TerminalID:
Terminal ID
wgdType:
Type value for defining Wiegand In or Out.
#define UCSAPI_WIEGAND_DATA_TYPE_OUT 1
#define UCSAPI_WIEGAND_DATA_TYPE_IN 2
FilePath:
Entire path for the file of Wiegand Format data
Returns:
UCSAPIERR_NONE
Callback:
UCSAPI_CALLBACK_EVENT_SET_WIEGAND_FORMAT
lParam:
N/A
UCSAPI_AddUserToTerminal
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_AddUserToTerminal(
IN UCSAPI_INT32 ClientID,
IN UCSAPI_INT32 TerminalID,
IN UCSAPI_BOOL IsOverwrite,
IN UCBioAPI_USER_DATA_PTR* pUserData);
Description:
This API sends the user information to a designated terminal.
Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
IsOverwrite:
This p arameter
d whether
esignates
t oo verwrite
a a r n lready
u o n T egistered
d v ser
is 1.
pUserData:
The pointer of the structure that contains user data
Returns:
UCSAPIERR_NONE
Callback:
UCSAPI_CALLBACK_EVENT_ADD_USER
Callback Parameters:
wParam:
UCSAPI_CALLBACK_PARAM_0_PTR pCallback0;
lParam:
UCSAPI_UINT32 UserID;
※ Note
In c aseo s f aending
m n s oultiple
f u serd tumber
atat t o uhe erminal
UCSAPI_AddUserToTerminal f unction, t U he CSAPI_CALLBACK_EVENT_ADD_USER
e m b
checked a UCSAPI_AddUserToTerminal
fter is c alled.
T n he
u d exti s ser
o a ata s en
transmission is processed normally.
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_DeleteUserFromTerminal(
IN UCSAPI_INT32 ClientID,
IN UCSAPI_INT32 TerminalID,
IN UCSAPI_INT32 UserID);
Description:
This API deletes the user data from the designated terminal.
Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
UserID:
ID of a user to delete
Returns:
UCSAPIERR_NONE
UCSAPIERR_NOT_SERVER_ACTIVE
UCSAPIERR_INVALID_TERMINAL
Callback:
UCSAPI_CALLBACK_EVENT_DELETE_USER
Callback Parameters:
wParam:
UCSAPI_CALLBACK_PARAM_0_PTR pCallback0;
lParam :
※ Note
In c ase
o d f s eleting
u o t everal
t u sers
UCSAPI_DeleteUserFromTerminal
f he erminal f sing un
the U CSAPI_CALLBACK_EVENT_DELETE_USER e m b c a vent u
UCSAPI_DeleteUserFromTerminal i c T n u i sd alled.
o a dhe iextp ser s eleted
normally.
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_DeleteAllUserFromTerminal(
IN UCSAPI_INT32 ClientID,
IN UCSAPI_INT32 TerminalID);
Description:
This API deletes all user data from the designated terminal.
Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
Returns:
UCSAPIERR_NONE
UCSAPIERR_NOT_SERVER_ACTIVE
UCSAPIERR_INVALID_TERMINAL
Callback:
UCSAPI_CALLBACK_EVENT_DELETE_ALL_USER
Callback Parameters:
wParam:
UCSAPI_CALLBACK_PARAM_0_PTR pCallback0;
lParam:
N/A
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_GetUserCountFromTerminal(
IN UCSAPI_INT32 ClientID,
IN UCSAPI_INT32 TerminalID);
Description:
This API obtains the number of registered users from the designated terminal.
Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
Returns:
UCSAPIERR_NONE
UCSAPIERR_NOT_SERVER_ACTIVE
UCSAPIERR_INVALID_TERMINAL
Callback:
UCSAPI_CALLBACK_EVENT_GET_USER_COUNT
Callback Parameters:
wParam:
UCSAPI_CALLBACK_PARAM_0_PTR pCallback0;
lParam:
UCSAPI_UINT32 nUserCount
This parameter contains the number of users.
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_GetUserInfoListFromTerminal(
IN UCSAPI_INT32 ClientID,
IN UCSAPI_INT32 TerminalID);
Description:
This API obtains the list of all registered user information from the designated terminal.
Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
Returns:
UCSAPIERR_NONE
UCSAPIERR_NOT_SERVER_ACTIVE
UCSAPIERR_INVALID_TERMINAL
Callback:
UCSAPI_CALLBACK_EVENT_GET_USER_INFO_LIST
Callback Parameters:
wParam:
UCSAPI_CALLBACK_PARAM_0_PTR pCallback0;
lParam:
UCSAPI_CALLBACK_PARAM_1_PTR pCallback1
pCallback1.DataType = UCSAPI_CALLBACK_DATA_TYPE_USER_INFO
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_GetUserDataFromTerminal(
IN UCSAPI_INT32 ClientID,
IN UCSAPI_UINT32 TerminalID
IN UCSAPI_UINT32 UserID);
Description:
This API obtains the user data from the designated terminal.
Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
UserID:
User ID
Returns:
UCSAPIERR_NONE
UCSAPIERR_NOT_SERVER_ACTIVE
UCSAPIERR_INVALID_TERMINAL
Callback:
UCSAPI_CALLBACK_EVENT_GET_USER_DATA
Callback Parameters:
wParam:
UCSAPI_CALLBACK_PARAM_0_PTR pCallback0;
lParam :
UCSAPI_RegistFaceFromTerminal
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_RegistFaceFromTerminal (
IN UCSAPI_UINT16 ClientID,
IN UCSAPI_UINT32 TerminalID,
IN UCSAPI_UINT8 opt);
Description:
When receive this command, terminal start the face registration.
Terminal make a number of events until the ergistation is finished or canceled.
(Regular Registration : 5 events, Quick Registration : 3 events)
Parameters:
opt :
0 : Start registration , 1 : Cancel registration
Returns:
UCSAPIERR_NONE
UCSAPIERR_NOT_SERVER_ACTIVE
UCSAPIERR_INVALID_POINTER
Callback:
UCSAPI_CALLBACK_EVENT_REGIST_FACE
Callback Parameters:
wParam:
UCSAPI_CALLBACK_PARAM_0_PTR pCallback0;
TotalNumber & CurrentIndex in Progress are zero when Cancel event
lParam:
Face Data at normal situation(UCSAPI_FACE_INFO_PTR)
UCSAPI_GetAccessLogCountFromTerminal
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_GetAccessLogCountFromTerminal(
IN UCSAPI_INT32 ClientID,
IN UCSAPI_INT32 TerminalID,
IN UCSAPI_GET_LOG_TYPE LogType);
Description:
This API obtains the number of authentication logs from the designated terminal.
Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
LogType:
This p arameter
d t l esignates
t t o R he t Uog ype o f btain.
a efer
values.
Returns:
UCSAPIERR_NONE
UCSAPIERR_NOT_SERVER_ACTIVE
UCSAPIERR_INVALID_PARAMETER
UCSAPIERR_INVALID_TERMINAL
Callback:
UCSAPI_CALLBACK_EVENT_GET_ACCESS_LOG_COUNT
lParam :
UCSAPI_UINT32 nLogCount;
This parameter contains the number of logs.
UCSAPI_GetAccessLogCountFromTerminalEx
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_GetAccessLogCountFromTerminalEx(
IN UCSAPI_INT32 ClientID,
IN UCSAPI_INT32 TerminalID,
IN UCSAPI_GET_LOG_TYPE LogType,
IN UCSAPI_DATE_PERIOD_PTR Period);
Description:
GetAccessLogCountFromTerminal i a e A o f Tos g n
etp xtended
eriodic
l i ogPI nform
f
parameter for setting period is added.
Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
LogType:
This p arameter
d t l esignates
t t o R he t Uog ype o f btain.
a efer
values.
Period:
Returns:
UCSAPIERR_NONE
UCSAPIERR_NOT_SERVER_ACTIVE
UCSAPIERR_INVALID_PARAMETER
UCSAPIERR_INVALID_TERMINAL
Callback:
UCSAPI_CALLBACK_EVENT_GET_ACCESS_LOG_COUNT
Callback Parameters:
wParam:
UCSAPI_CALLBACK_PARAM_0_PTR pCallback0;
lParam :
UCSAPI_UINT32 nLogCount;
This parameter contains the number of logs.
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_GetAccessLogFromTerminal(
IN UCSAPI_INT32 ClientID,
IN UCSAPI_INT32 TerminalID,
IN UCSAPI_GET_LOG_TYPE LogType);
Description:
This API obtains the authentication log data from the designated terminal.
Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
LogType:
This p arameter
d t l esignates
t t o R he t Uog ype o f btain.
a efer
values.
Returns:
UCSAPIERR_NONE
UCSAPIERR_NOT_SERVER_ACTIVE
UCSAPIERR_INVALID_PARAMETER
UCSAPIERR_INVALID_TERMINAL
Callback:
UCSAPI_CALLBACK_EVENT_GET_ACCESS_LOG
Callback Parameters:
wParam:
UCSAPI_CALLBACK_PARAM_0_PTR pCallback0;
lParam:
UCSAPI_CALLBACK_PARAM_1_PTR pCallback1;
pCallback1->DataType = UCSAPI_CALLBACK_DATA_TYPE_ACCESS_LOG;
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_GetAccessLogFromTerminalEx(
IN UCSAPI_INT32 ClientID,
IN UCSAPI_INT32 TerminalID,
IN UCSAPI_GET_LOG_TYPE LogType,
IN UCSAPI_DATE_PERIOD_PTR Period);
Description:
GetAccessLogFromTerminal i a e A o f s n To gxtended
etp eriodic
l i PI og
f unction
nform
parameter for setting period is added.
Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
LogType:
This p arameter
d t l esignates
t t o R he t Uog ype o f btain.
a efer
values.
Period:
It i s a p ointer
o s f c tructure d i ontaining o l d ate nfo
It is for getting
the periodic log information.
This value is used as LogType is set LOG_TYPE_PERIOD.
Returns:
UCSAPIERR_NONE
UCSAPIERR_NOT_SERVER_ACTIVE
UCSAPIERR_INVALID_PARAMETER
Callback:
UCSAPI_CALLBACK_EVENT_GET_ACCESS_LOG
Callback Parameters:
wParam:
UCSAPI_CALLBACK_PARAM_0_PTR pCallback0;
In c ase
s neveral o l rumbers e t UCSAPI_CALLBACK_EVENT_GET_ACCESS_LOG
f og ecords xist, he e ve
corresponding t the n umber
oo r a fg ecords R t tre p enerated. v efer
f o
the total number of logs and the index information of the current log.
lParam:
UCSAPI_CALLBACK_PARAM_1_PTR pCallback1;
pCallback1->DataType = UCSAPI_CALLBACK_DATA_TYPE_ACCESS_LOG;
UCSAPI_SendAuthInfoToTerminal
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_SendAuthInfoToTerminal(
IN UCSAPI_INT32 TerminalID,
IN UCSAPI_AUTH_INFO_PTR pUserAuthInfo);
Description:
During 1 :1 authentication, t he t erminal n otifies
t
UCSAPI_CALLBACK_EVENT_VERIFY_USER_AUTH_INFO e t t a p t o vent
user’s authentication information.
Then, t a he pplication
p n t i rogramthe user’s aeeds
uthenticationi
o nclude i t nformation
UCSAPI_AUTH_INFO structure and send it to the terminal immediately.
The U CSAPI_CALLBACK_EVENT_VERIFY_USER_AUTH_INFOe i always generated b t efore
following events.
UCSAPI_CALLBACK_EVENT_VERIFY_FINGER_1_TO_1,
UCSAPI_CALLBACK_EVENT_VERIFY_CARD,
CSAPI_CALLBACK_EVENT_VERIFY_PASSWORD
Parameters:
TerminalID:
Terminal ID
pUserAuthInfo:
The pointer of the structure that contains user’s authentication information
Returns:
UCSAPIERR_NONE
Callback:
UCSAPI_CALLBACK_EVENT_VERIFY_USER_AUTH_INFO
Callback Parameters:
wParam:
UCSAPI_CALLBACK_PARAM_0_PTR pCallback0;
lParam:
UCSAPI_INPUT_ID_DATA_PTR pInputID;
The structure that contains the ID information entered from the terminal
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_SendAntipassbackResultToTerminal(
IN UCSAPI_INT32 TerminalID,
IN UCSAPI_INT32 UserID,
IN UCSAPI_BOOL bResult);
Description:
If T erminal i s s w etted
A ith o ntipassback
w s a T ption
application i su sed
f c or o hecking
s o c Aut tatus T a f urrent
w c t ntipassback.
status o A f ntipassback
i b t s snto f Result t t t hen T end
e w atraight orw
only at the terminal to terminal verification.
Parameters:
TerminalID:
Terminal ID
UserID:
User ID
bResult:
Status of weather enter by Antipassback. Value 1 if for access granted
Returns:
UCSAPIERR_NONE
UCSAPIERR_NOT_SERVER_ACTIVE
UCSAPIERR_INVALID_POINTER
UCSAPIERR_INVALID_TERMINAL
Callback:
UCSAPI_CALLBACK_EVENT_ANTIPASSBACK
lParam :
UCSAPI_UINT32 UserID;
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_SendAuthResultToTerminal(
IN UCSAPI_INT32 TerminalID,
IN UCSAPI_AUTH_NOTIFY_PTR pResult);
Description:
The terminal notifies the following events to an application program for user authentication.
UCSAPI_CALLBACK_EVENT_VERIFY_FINGER_1_TO_N (1:N fingerprint authentication request)
UCSAPI_CALLBACK_EVENT_VERIFY_FINGER_1_TO_1 (1:1 fingerprint authentication request)
UCSAPI_CALLBACK_EVENT_VERIFY_CARD (Card authentication request)
UCSAPI_CALLBACK_EVENT_VERIFY_PASSWORD (Password authentication request)
Then, t a he pplication
p n t irogram the user’s eeds
a uthentication
o r nclude
i t esult
UCSAPI_AUTH_NOTIFY structure and send it to the terminal immediately.
Parameters:
TerminalID:
Terminal ID
pResult:
The pointer of the structure that contains authentication results
Returns:
UCSAPIERR_NONE
UCSAPIERR_NOT_SERVER_ACTIVE
UCSAPIERR_INVALID_POINTER
UCSAPIERR_INVALID_TERMINAL
Callback:
UCSAPI_CALLBACK_EVENT_VERIFY_FINGER_1_TO_N
UCSAPI_CALLBACK_EVENT_VERIFY_FINGER_1_TO_1
UCSAPI_CALLBACK_EVENT_VERIFY_CARD
UCSAPI_CALLBACK_EVENT_VERIFY_PASSWORD
lParam :
UCSAPI_INPUT_DATA_PTR pInputData;
The pointer of the structure that contains the sample data entered from the terminal
UCSAPI_GetTerminalCount
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_GetTerminalCount(
IN UCSAPI_UINT32* pTerminalCount);
Description:
This API obtains the number of terminals connected to the server.
Parameters:
pTerminalCount:
The pointer of the value to contain the number of terminals
Returns:
UCSAPIERR_NONE
UCSAPIERR_NOT_SERVER_ACTIVE
UCSAPIERR_INVALID_POINTER
Callback:
N/A
Callback Parameters:
N/A
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_GetFirmwareVersionFromTerminal(
IN UCSAPI_UINT32 ClientID,
IN UCSAPI_UINT32 TerminalID);
Description:
This API obtains the firmware version of the designated terminal.
Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
Returns:
UCSAPIERR_NONE
UCSAPIERR_NOT_SERVER_ACTIVE
UCSAPIERR_INVALID_POINTER
UCSAPIERR_INVALID_TERMINAL
Callback:
UCSAPI_CALLBACK_EVENT_FW_VERSION
Callback Parameters:
wParam:
UCSAPI_CALLBACK_PARAM_0_PTR pCallback0;
lParam:
UCSAPI_DATA_PTR pVersion;
The pointer of the structure that contains version information
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_UpgradeFirmwareToTerminal(
IN UCSAPI_UINT32 ClientID,
IN UCSAPI_UINT32 TerminalID,
IN UCSAPI_CHAR_PTR pFilePath);
Parameters:
This A u PI pgrades
t f o t he
d irmware
t U f phe iesignated i n erminal.
with the following event.
UCSAPI_CALLBACK_EVENT_FW_UPGRADING / UCSAPI_CALLBACK_EVENT_FW_UPGRADED
Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
pFilePath:
The pointer of the value that contains the path of the firmware file
Returns:
UCSAPIERR_NONE
UCSAPIERR_NOT_SERVER_ACTIVE
UCSAPIERR_INVALID_POINTER
UCSAPIERR_INVALID_TERMINAL
Callback:
UCSAPI_CALLBACK_EVENT_FW_UPGRADING
UCSAPI_CALLBACK_EVENT_FW_UPGRADED
Callback Parameters:
lParam:
N/A
UCSAPI_SendUserFileToTerminal
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_SendUserFileToTerminal (
IN UCSAPI_UINT32 ClientID,
IN UCSAPI_UINT32 TerminalID,
IN UCSAPI_UINT32 FileType,
IN UCSAPI_CHAR_PTR FilePath);
Parameters:
This API downloads the user file to terminal.
Parameters:
ClientID: See 1.6 Terminology Description
TerminalID: See 1.6 Terminology Description
FileType
1:String file(.csv),
2:Background image file(.jpg),
3:Voice file to success(.wav),
4:Voice file to fail(.wav),
5:Video file(.mp4)
FilePath:
Full path of the file(Absolute Path)
Returns:
UCSAPIERR_NONE
UCSAPIERR_NOT_SERVER_ACTIVE
UCSAPIERR_INVALID_POINTER
UCSAPIERR_INVALID_TERMINAL
Callback Parameters:
wParam:
UCSAPI_CALLBACK_PARAM_0 pCallback0;
다운로드 진행 정보는 pCallback0->Progress 구조체 참조.
lParam:
N/A
UCSAPI_GetOptionFromTerminal
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_GetOptionFromTerminal(
IN UCSAPI_UINT16 ClientID,
IN UCSAPI_UINT32 TerminalID);
Description:
This API obtains the option setting value from the designated terminal.
Parameters:
ClientID , TerminalID: See above
Returns:
UCSAPIERR_NONE
UCSAPIERR_NOT_SERVER_ACTIVE
UCSAPIERR_INVALID_TERMINAL
Callback Parameters:
UCSAPI_CALLBACK_EVENT_GET_TERMINAL_OPTION
Callback Parameters:
lParam:
UCSAPI_TERMINAL_OPTION_PTR pOption;
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_SetOptionToTerminal(
IN UCSAPI_UINT32 ClientID,
IN UCSAPI_UINT32 TerminalID,
IN UCSAPI_TERMINAL_OPTION_PTR pOption);
Description:
This API sets up the option value of the designated terminal.
Parameters:
ClientID , TerminalID: See above
pOption:
The pointer of the UCSAPI_TERMINAL_OPTION structure
Returns:
UCSAPIERR_NONE
UCSAPIERR_NOT_SERVER_ACTIVE
UCSAPIERR_INVALID_POINTER
UCSAPIERR_INVALID_TERMINAL
Callback:
UCSAPI_CALLBACK_EVENT_SET_TERMINAL_OPTION
wParam
UCSAPI_CALLBACK_PARAM_0_PTR pCallBack0;
lParam:
N/A
UCSAPI_OpenDoorToTerminal
Prototype:
Description:
This API temporarily opens the locking device of the designated terminal.
Parameters:
ClientID , TerminalID: See above
Returns:
UCSAPIERR_NONE
UCSAPIERR_NOT_SERVER_ACTIVE
UCSAPIERR_INVALID_TERMINAL
Callback:
UCSAPI_CALLBACK_EVENT_OPEN_DOOR
Callback Parameters:
wParam:
UCSAPI_CALLBACK_PARAM_0_PTR pCallback0;
lParam:
N/A
UCSAPI_SetDoorStatusToTerminal
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_SetDoorStatusToTerminal(
IN UCSAPI_UINT16 ClientID,
IN UCSAPI_UINT32 TerminalID,
IN UCSAPI_UINT32 Status);
Description:
Parameters:
ClientID , TerminalID: See above
Status:
Lock Status (0: temporarily open, 1:start unlock, 2:end unlock)
Returns:
UCSAPIERR_NONE
UCSAPIERR_NOT_SERVER_ACTIVE
UCSAPIERR_INVALID_TERMINAL
Callback:
UCSAPI_CALLBACK_EVENT_OPEN_DOOR
Callback Parameters:
wParam:
UCSAPI_CALLBACK_PARAM_0_PTR pCallback0;
lParam:
N/A
UCSAPI_SendTerminalControl
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_SendTerminalControl (
IN UCSAPI_UINT16 ClientID,
IN UCSAPI_UINT32 TerminalID,
IN UCSAPI_UINT32 lockStatus,
IN UCSAPI_UINT32 lockType);
Description:
This API control terminal to fit the parameter value.
Global locking means terminal shutdown.
Returns:
UCSAPIERR_NONE
Callback:
UCSAPI_CALLBACK_EVENT_TERMINAL_CONTROL
Callback Parameters:
wParam:
UCSAPI_CALLBACK_PARAM_0_PTR pCallback0;
lParam:
UCSAPI_TERMINAL_CONTROL pCtrl;
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_SetAccessControlDataToTerminal(
IN UCSAPI_UINT32 ClientID,
IN UCSAPI_UINT32 TerminalID,
IN UCSAPI_ACCESS_CONTROL_DATA_PTR pAccessControlData);
Description:
This A s PI theends
access c iontrol t nformation
t d t oT he
z a esignated
t
holiday a a ndg ccess
i n roupt b s nformation
s A c eedi o i eu ent e
during a uthentication
a t t I n ts he a erminal.
c i f ioa toredt ccess
terminal does not perform access control separately.
Parameters:
ClientID , TerminalID: See above
pAccessControlData:
The pointer of the structure that contains access control information
Returns:
UCSAPIERR_NONE
UCSAPIERR_NOT_SERVER_ACTIVE
UCSAPIERR_INVALID_POINTER
UCSAPIERR_INVALID_TERMINAL
Callback:
UCSAPI_CALLBACK_EVENT_SET_ACCESS_CONTROL_DATA
Callback Parameters:
wParam:
UCSAPI_CALLBACK_PARAM_0_PTR pCallback0;
lParam:
N/A
Description:
This A cPI g and t et ietail erminal
( : I A nfomations.
M A o EX
info…)
Parameters:
ClientID , TerminalID: See above
Returns:
UCSAPIERR_NONE
Callback: None
UCSAPI_SendPrivateMessageToTerminal
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_SendPrivateMessageToTerminal(
IN UCSAPI_UINT16 ClientID,
IN UCSAPI_UINT32 TerminalID,
IN UCSAPI_UINT32 Reserved,
IN UCSAPI_PRIVATE_MESSAGE_PTR Message)
Description:
This API can send message for display on terminal LCD.
In struct of Message, there are display time(second) and text for display.
Parameters:
ClientID , TerminalID: See above
Message : The pointer on the structure that contains private message information
typedef struct ucsapi_private_message
{
UCSAPI_UINT16 messageSize;
UCSAPI_UINT16 displayTime;
UCSAPI_CHAR messageData[UCSAPI_MESSAGE];
} UCSAPI_PRIVATE_MESSAGE, *UCSAPI_PRIVATE_MESSAGE_PTR;
Returns:
UCSAPIERR_NONE
UCSAPIERR_NOT_SERVER_ACTIVE
UCSAPIERR_INVALID_POINTER
UCSAPIERR_INVALID_TERMINAL
Callback:
UCSAPI_CALLBACK_EVENT_PRIVATE_MESSAGE
lParam:
N/A
UCSAPI_SendPublicMessageToTerminal
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_SendPublicMessageToTerminal(
IN UCSAPI_UINT16 ClientID,
IN UCSAPI_UINT32 TerminalID,
IN UCSAPI_BOOL Show,
IN UCSAPI_PUBLIC_MESSAGE_PTR Message)
Description:
This API can send public message for display on terminal LCD.
Public message display for setted period and setted time
Parameters:
ClientID , TerminalID: See above
Message : The pointer on the structure that contains public message information
typedef struct ucsapi_public_message
{
UCSAPI_UINT16 Reserved1;
UCSAPI_UINT8 Reserved2[2];
UCSAPI_DATE_YYYY_MM_DD StartDate;
UCSAPI_DATE_YYYY_MM_DD EndDate;
UCSAPI_TIME_HH_MM StartTime;
UCSAPI_TIME_HH_MM EndTime;
UCSAPI_CHAR Message[UCSAPI_MESSAGE];
} UCSAPI_PUBLIC_MESSAGE, *UCSAPI_PUBLIC_MESSAGE_PTR;
Returns:
UCSAPIERR_NONE
Callback:
UCSAPI_CALLBACK_EVENT_PUBLIC_MESSAGE
Callback Parameters:
wParam:
UCSAPI_CALLBACK_PARAM_0_PTR pCallback0;
lParam:
N/A
UCSAPI_SendSirenToTerminal
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_SendSirenToTerminal(
IN UCSAPI_UINT16 ClientID,
IN UCSAPI_UINT32 TerminalID,
IN UCSAPI_UINT8 opt,
IN UCSAPI_UINT8 cntSiren,
IN UCSAPI_SIREN_CONFIG_PTR pSiren)
Description:
Bring t s he d tiren h b ata s f hatt t as o een
t t et s rom
d t t het erminal
If it is obtaining the siren data (opt=0), parameter value of next will be ignored.
Parameters:
ClientID , TerminalID: Refer to the above documents
opt:
Command issuing option (0: Obtaining siren data, 1: Writing siren data)
cntSiren:
It is the number of UCSAPI_SIREN_CONFIG value included in pSiren (Max. 100)
Callback:
UCSAPI_CALLBACK_EVENT_GET_SIREN : In case when opt value is 0.
UCSAPI_CALLBACK_EVENT_SET_SIREN : In case when opt value is 1.
Callback Parameters:
wParam:
UCSAPI_CALLBACK_PARAM_0_PTR pCallback0;
In case when opt value is 0. pCallback0->Progress.TotalNumber is the number of siren data.
lParam:
In case when opt value is 0, it will be UCSAPI_SIREN_CONFIG_PTR
} UCSAPI_SMARTCARD_SECTOR_LAYOUT, *UCSAPI_SMARTCARD_SECTOR_LAYOUT_PTR;
Callback:
UCSAPI_CALLBACK_EVENT_SET_SMARTCARD_LAYOUT
Callback Parameters:
wParam:
UCSAPI_CALLBACK_PARAM_0_PTR pCallback0;
lParam:
N/A
UCSAPI_GetOptionFromACU
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_GetOptionFromACU (
IN UCSAPI_UINT16 ClientID,
IN UCSAPI_UINT32 TerminalID);
Description:
This API obtains the option setting value from the designated ACU.
Parameters:
ClientID , TerminalID: See above
Returns:
UCSAPIERR_NONE
UCSAPIERR_NOT_SERVER_ACTIVE
UCSAPIERR_INVALID_TERMINAL
Callback Parameters:
UCSAPI_CALLBACK_EVENT_GET_ACU_OPTION
Callback Parameters:
wParam:
UCSAPI_CALLBACK_PARAM_0 pCallback0;
lParam:
UCSAPI_ACU_OPTION_PTR pOption;
UCSAPI_SetOptionToACU
Prototype:
Description:
This API sets up the option value of the designated ACU.
Parameters:
ClientID , TerminalID: See above
fOption:
The struct of the UCSAPI_ACU_OPTION_FLAG
pOption:
The pointer of the UCSAPI_ACU_OPTION structure
Returns:
UCSAPIERR_NONE
UCSAPIERR_NOT_SERVER_ACTIVE
UCSAPIERR_INVALID_POINTER
UCSAPIERR_INVALID_TERMINAL
Callback:
UCSAPI_CALLBACK_EVENT_SET_ACU_OPTION
wParam
UCSAPI_CALLBACK_PARAM_0_PTR pCallBack0;
lParam:
N/A
UCSAPI_GetLockScheduleFromACU
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_GetLockScheduleFromACU (
IN UCSAPI_UINT16 ClientID,
IN UCSAPI_UINT32 TerminalID,
Description:
This API obtains the schedule setting value of lock from the designated ACU.
(refer to TerminalOption for schedule.)
Parameters:
ClientID , TerminalID: See above
LockIndex:
The lock Index for get Schedule.(Index base is zero)
Be careful not to exceed the maximum value.
Returns:
UCSAPIERR_NONE
UCSAPIERR_NOT_SERVER_ACTIVE
UCSAPIERR_INVALID_TERMINAL
Callback Parameters:
UCSAPI_CALLBACK_EVENT_GET_ACU_LOCKSCHEDULE
Callback Parameters:
wParam:
UCSAPI_CALLBACK_PARAM_0 pCallback0;
lParam:
UCSAPI_ACU_LOCKSCHEDULE_PTR pLockSchedule;
UCSAPI_SetLockScheduleToACU
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_SetLockScheduleToACU (
IN UCSAPI_UINT32 ClientID,
IN UCSAPI_UINT32 TerminalID,
IN UCSAPI_UINT8 LockIndex,
IN UCSAPI_TERMINAL_SCHEDULE_PTR pSchedule);
Description:
This API sets up the lock schedule value of the designated ACU.
(refer to TerminalOption for schedule.)
Parameters:
Callback Parameters:
UCSAPI_CALLBACK_EVENT_SET_ACU_LOCKSCHEDULE
wParam
UCSAPI_CALLBACK_PARAM_0_PTR pCallBack0;
lParam:
N/A
UCSAPI_SetDoorStatusToACU
Prototype:
UCSAPI_RETURN UCSAPI UCSAPI_SetDoorStatusToACU(
IN UCSAPI_UINT16 ClientID,
IN UCSAPI_UINT32 TerminalID,
IN UCSAPI_UINT8 Status,
IN UCSAPI_UINT8 DoorID);
Description:
This API control ACU door lock to fit the status value
Parameters:
ClientID , TerminalID: See above
Status:
Lock Status (0: temporarily open, 1:start unlock, 2:end unlock, 3:arm, 4:disarm)
DoorID:
Door ID of ACU.
UCSAPI_CALLBACK_EVENT_CONNECTED
Prototype:
#define UCSAPI_CALLBACK_EVENT_CONNECTED UCSAPI_CALLBACK_EVENT+1
Description:
When t t he i cerminal t t ss onnected
t S m n o he
t e erver,
t t a he DK
program.
UCSAPI_CALLBACK_EVENT_DISCONNECTED
Prototype:
#define UCSAPI_CALLBACK_EVENT_DISCONNECTED UCSAPI_CALLBACK_EVENT+2
Description:
When t t he i erminal
disconnected f rom
s t s he t erver,
S m he
n tDK e odule
t t oti
application program.
UCSAPI_CALLBACK_EVENT_TERMINAL_STATUS
Description:
The S m
DK periodically
odule o i r notifies
mmediately
t s he abouterver
t s he i tatus nform
of the terminal and devices connected to the terminal when the status is changed.
UCSAPI_CALLBACK_EVENT_ACU_STATUS
Description:
The S m
DK periodically
odule o i r notifies
mmediately
t s he abouterver
t s he i tatus nform
UCSAPI_CALLBACK_EVENT_REALTIME_ACCESS_LOG
Description:
When t t he o erminali S m perates
a t t n implemented
/N ode
u sera nd
uthentication,
he
S erminal
notifies this event to the application program.
UCSAPI_CALLBACK_EVENT_GET_ACCESS_LOG
Description:
In response t t ao he p pplication
’s r equest f a rogram
or uthentication
l s a t ogs
terminal, the SDK module notifies this event to the application program.
UCSAPI_CALLBACK_EVENT_GET_ACCESS_LOG_COUNT
Description:
In response t t a o hep pplication
’s r equestf t n rogram
or o he
a umber l s f a tuthentication
terminal, the SDK module notifies this event to the application program.
UCSAPI_CALLBACK_EVENT_ADD_USER
Description:
In response t t u oa he r ser b t ddition
a p equestt S my he
n pplication
t
event to the application program.
UCSAPI_CALLBACK_EVENT_DELETE_USER
Description:
In response t t u od he r ser b t eletion
a p equestt S my he
n pplication
t
event to the application program.
UCSAPI_CALLBACK_EVENT_DELETE_ALL_USER
Description:
UCSAPI_CALLBACK_EVENT_GET_USER_COUNT
Description:
In response t t ao he p pplication
’s r equestf t rogram
nor he
o u umber
s a t f sers
terminal, the SDK module notifies this event to the application program.
UCSAPI_CALLBACK_EVENT_GET_USER_INFO_LIST
Description:
In r esponse
t ot he
a pplication
p ’s r equestfrogram
u l or s ser a t ists
t tored
t S t h
module notifies this event to the application program.
UCSAPI_CALLBACK_EVENT_GET_USER_DATA
Description:
In response t t a o he p pplication
’s r equestf u drogram
or s ser a t ata
t tored
t S t h
module notifies this event to the application program.
UCSAPI_CALLBACK_EVENT_VERIFY_USER_AUTH_INFO
Description:
To o btain
i nformation
( t required
authentication
i n1 s:1 authentication,
erver ype)t het erminal
n otif
this e vent
t t ao he p pplication
T t a rogram.p n hen, t s he pp
the authentication t i ype
t t t nformation
T e i g o heo werminal.
a his v
is implemented at the server, and it is always issued before the next event.
UCSAPI_CALLBACK_EVENT_VERIFY_FINGER_1_TO_1,
UCSAPI_CALLBACK_EVENT_VERIFY_CARD,
UCSAPI_CALLBACK_EVENT_VERIFY_PASSWORD
UCSAPI_CALLBACK_EVENT_VERIFY_FINGER_1_TO_1
Description:
During 1 f :1 authentication,
ingerprint t het erminal
n t e otifies
t t a his p vent o h
Then, t a he pplication
p n t s rogram
the authenticationeeds
r t t o t esults
end T e o i he erm
generated only when authentication is implemented at the server.
UCSAPI_CALLBACK_EVENT_VERIFY_CARD
Description:
During c a ard uthentication,
t t n t e he t t erminal
a p otifies T t his ven
application p n rogram
t s t hea uthenticationr
eeds o end
t t t esults T e o i g
he erminal.
only when authentication is implemented at the server.
UCSAPI_CALLBACK_EVENT_VERIFY_PASSWORD
Description:
During p assword
a t uthentication,
t n t e t het a erminal p otifies
T his
the a pplication
p n trogram
s the authentication
eeds r o t end
t tesults T eo he
i ermin
generated only when authentication is implemented at the server.
UCSAPI_CALLBACK_EVENT_GET_TERMINAL_OPTION
Description:
In response t t t o ohe serminali ption
r b t etting
application pnformation
rogram,t S he equD
module notifies this event to the application program.
UCSAPI_CALLBACK_EVENT_SET_TERMINAL_OPTION
Description:
In response t t t o he
o serminal r b ption
t a etting
p t equest
S m y he
notifies this event to the application program.
UCSAPI_CALLBACK_EVENT_FW_UPGRADING
Description:
In response t t f o he
u irmware
r b t a pgrade p equest
t S m y n he pplicati
this e vent
t t a o hep pplication
I i t e t n rogram.
the upgrade p t s i rogress
he vent
t nformat
o
the application program.
UCSAPI_CALLBACK_EVENT_FW_VERSION
Description:
In response t t f o he
v irmware
r b t a ersion p equest
t S m y n he pplication
this event to the application program.
UCSAPI_CALLBACK_EVENT_USERFILE_UPGRADING
Description:
In response t t u o dhe serfile
r b t ownload
a p equest
t S m y n he pplicati
this e vent
t t a o hep pplication
I i t e t n rogram.
the download pt s iherogressventt nform
o
the application program.
UCSAPI_CALLBACK_EVENT_USERFILE_UPGRADED
Description:
In response t t uo he
d ssefile
r b t ownload
a p equest
t S my he p
notifies this event to the application program.
UCSAPI_CALLBACK_EVENT_OPEN_DOOR
Description:
In response t t t o he d emporary
o r b t oor
a pen
p tequest
S m y he
notifies this event to the application program.
UCSAPI_CALLBACK_EVENT_TERMINAL_CONTROL
Description:
In response t t r o f het equest
c b t ora erminalp t ontrol
S m ny he pplic
this event to the application program.
UCSAPI_CALLBACK_EVENT_PICTURE_LOG
Description:
When t phe l icture
i r ogf st teceived t S romm he
n erminal,
the picture l d og
t t aata op he I application i i rogram.w t t f uthentication
UCSAPI_CALLBACK_EVENT_ANTIPASSBACK
Description:
In c ase
that the a nti-passback
o i n s t ption
t ns ott e et, t t he a erminal
program t o othe user’s
btain current a nti-passback s d utatusa uring T t ser uth
application p n rogramt immediately
eeds send u o ’s ser
a nti-passback s t t tatus
terminal. This event is generated only when authentication is implemented at the terminal.
UCSAPI_CALLBACK_EVENT_SET_ACCESS_CONTROL_DATA
Description:
In response t t a o r he s ccess
r b ights
t a etting
p t equest
S m ny he ppli
this event to the application program.
UCSAPI_CALLBACK_EVENT_REGIST_FACE
Description:
In response t r fo f egist
t race b rom
t a erminal
p t equest
S m ny he pp
this event to the application program.
Terminal s r tart w egistration
d r o ith
L d isplay
a c egistration
f 3 o 5 t n C
(Regular registration : 5 capture, Quick registration : 3 capture)
Each capture time make event for that with progress. value,
Callback Parameters:
wParam:
UCSAPI_CALLBACK_PARAM_0_PTR
CurrentIndex in progress is increase from 1.
If TotalNumber and CurrentIndex in progress are zero, then registration is canceled.
lParam:
UCSAPI_CALLBACK_PARAM_1_PTR
- DataType : UCSAPI_CALLBACK_DATA_TYPE_FACE_INFO
- Data : UCSAPI_FACE_INFO_PTR
In normal time, lParam is Face data
UCSAPI_CALLBACK_EVENT_SET_TERMINAL_OPTION
Description:
In response t t t o he
o serminal r b ption
t a etting
p t equest
S m y he
notifies this event to the application program.
UCSAPI_CALLBACK_EVENT_GET_ACU_OPTION
Description:
In response to the ACU option information request by the application program,
the SDK module notifies this event to the application program.
Callback Parameters:
wParam: Result for command
UCSAPI_CALLBACK_PARAM_0 pCallback0;
lParam: The address of the Option struct
UCSAPI_ACU_OPTION_PTR pOption;
UCSAPI_CALLBACK_EVENT_SET_ACU_OPTION
Description:
In response t t A oo he s CUr ption
b t a ettingp tequest
S m yn he pplica
this event to the application program.
Callback Parameters:
wParam: Result for command
UCSAPI_CALLBACK_PARAM_0 pCallback0;
lParam: N/A
UCSAPI_CALLBACK_EVENT_GET_ACU_LOCKSCHEDULE
Description:
In response to the ACU lock schedule request by the application program,
Callback Parameters:
wParam: Result for command
UCSAPI_CALLBACK_EVENT_SET_ACU_LOCKSCHEDULE
Description:
In response to the ACU lock schedule setting request by the application program.
Callback Parameters:
wParam: Result for command
UCSAPI_CALLBACK_PARAM_0 pCallback0;
lParam: N/A
UCSAPI_CALLBACK_EVENT_GET_SIREN
Description:
It is response of result for UCSAPI_SendSirenToTerminal (In case when opt value is o.)
Callback Parameters:
wParam: Result Value
UCSAPI_CALLBACK_PARAM_0 pCallback0;
In case when opt value is 0, pCallback0->Progress.TotalNumber is the number of siren data.
lParam:
In case when opt value is 0, it will be UCSAPI_SIREN_CONFIG_PTR
UCSAPI_CALLBACK_EVENT_SET_SIREN
Description:
It is response of the result for UCSAPI_SendSirenToTerminal (In case when opt value is 1.)
Callback Parameters:
wParam: Result value
UCSAPI_CALLBACK_PARAM_0 pCallback0;
lParam: Not use
UCSAPI_CALLBACK_EVENT_SET_SMARTCARD_LAYOUT
Description:
It is response of the result for UCSAPI_SetSmartCardLayoutToTerminal
Callback Parameters:
wParam: Result Value
Gives definition of error and its value from the error value from SDK
Entire Error value is defined in UCSAPI_Error.h file
3.4.1 Success
Definition used for success in error code.
UCSAPIERR_NONE
Prototype:
#define UCSAPIERR_NONE (0)
Description:
Error value when its succed. By mean that not Error is succeed, but the function.
UCSAPIERR_INVALID_POINTER
Prototype:
#define UCSAPIERR_INVALID_POINTER (0x0001)
Description:
Applied with wrong pointer value..
UCSAPIERR_INVALID_TYPE
Prototype:
#define UCSAPIERR_INVALID_TYPE (0x0002)
UCSAPIERR_INVALID_PARAMETER
Prototype:
#define UCSAPIERR_INVALID_PARAMETER (0x0003)
Description:
Applied with wrong parameter value.
UCSAPIERR_INVALID_DATA
Prototype:
#define UCSAPIERR_INVALID_DATA (0x0004)
Description:
Applied with wrong data value.
UCSAPIERR_FUNCTION_FAIL
Prototype:
#define UCSAPIERR_FUNCTION_FAIL (0x0005)
Description:
.Occur when internal function error by causing process fail.
UCSAPIERR_NOT_SERVER_ACTIVE
Prototype:
#define UCSAPIERR_NOT_SERVER_ACTIVE (0x0006)
Description:
Server has not started.
UCSAPIERR_INVALID_TERMINAL
Prototype:
#define UCSAPIERR_INVALID_TERMINAL (0x0007)
UCSAPIERR_PROCESS_FAIL
Prototype:
#define UCSAPIERR_PROCESS_FAIL (0x0008)
Description:
Failed during processing
.
UCSAPIERR_USER_CANCEL
Prototype:
#define UCSAPIERR_USER_CANCEL (0x0009)
Description:
.Cancel process by a user
UCSAPIERR_UNKNOWN_REASON
Prototype:
#define UCSAPIERR_UNKNOWN_REASON (0x0010)
Description:
Unkown Error
UCSAPIERR_CODE_SIZE
Prototype:
#define UCSAPIERR_CODE_SIZE (0x0201)
UCSAPIERR_USER_ID_SIZE
Prototype:
#define UCSAPIERR_USER_ID_SIZE (0x0202)
Description:
Eceed value of User ID size
UCSAPIERR_USER_NAME_SIZE
Prototype:
#define UCSAPIERR_USER_NAME_SIZE (0x0203)
Description:
Eceed value of User’s name size.
UCSAPIERR_UNIQUE_ID_SIZE
Prototype:
#define UCSAPIERR_UNIQUE_ID_SIZE (0x0204)
Description:
Eceed value of UNIQUE ID size.
UCSAPIERR_INVALID_SECURITY_LEVEL
Prototype:
#define UCSAPIERR_INVALID_SECURITY_LEVEN (0x0205)
Description:
Eceed value of authentication level range.
UCSAPIERR_PASSWORD_SIZE
Prototype:
#define UCSAPIERR_PASSWORD_SIZE (0x0206)
UCSAPIERR_PICTURE_SIZE
Prototype:
#define UCSAPIERR_PICTURE _SIZE (0x0207)
Description:
Eceed value of User’s picture image
UCSAPIERR_INVALID_PICTURE_TYPE
Prototype:
#define UCSAPIERR_INVALID_PICTURE_TYPE (0x0208)
Description:
Does not support user’s picture image.
UCSAPIERR_RFID_SIZE
Prototype:
#define UCSAPIERR_RFID_SIZE (0x0209)
Description:
Eceed value of maximum user card size
UCSAPIERR_MAX_CARD_NUMBER
Prototype:
#define UCSAPIERR_MAX_CARD_NUMBER (0x0211)
Description:
Eceed maximum card number. Five cards are limited per user
UCSAPIERR_MAX_FINGER_NUMBER
Prototype:
#define UCSAPIERR_MAX_FINGER_NUMBER (0x0212)
UCSAPIERR_INVALID_USER
Prototype:
#define UCSAPIERR_INVALID_USER (0x0301)
Description:
Unregistered User.
UCSAPIERR_UNAUTHORIZED
Prototype:
#define UCSAPIERR_UNAUTHORIZED (0x0302)
Description:
FP, Card, PIN matching fail.
UCSAPIERR_PERMISSION
Prototype:
#define UCSAPIERR_PERMISSION (0x0303)
Description:
No authorization.
UCSAPIERR_FINGER_CAPTURE_FAIL
Prototype:
#define UCSAPIERR_FINGER_CAPTURE_FAIL (0x0304)
Description:
UCSAPIERR_DUP_AUTHENTICATION
Prototype:
#define UCSAPIERR_DUP_AUTHENTICATION (0x0305)
Description:
Continous vification trial. Design to prevent duplicate meal.
UCSAPIERR_ANTIPASSBACK
Prototype:
#define UCSAPIERR_ANTIPASSBACK (0x0306)
Description:
Failed authentication for anti-passback.
UCSAPIERR_NETWORK
Prototype:
#define UCSAPIERR_NETWORK (0x0307)
Description:
No response from a network server.
UCSAPIERR_SERVER_BUSY
Prototype:
#define UCSAPIERR_SERVER_BUSY (0x0308)
Description:
Authentication can not be done, cause of busy server.
UCSAPIERR_FACE_DETECTION
Prototype:
#define UCSAPIERR_FACE_DETECTION (0x0309)
Description:
Properties and methods to use a COM module, UCSAPICOM.dll, are described in this chapter.
As t he
m o ain t u bject
U o i se
p CSAPICOM.dll,
t b f o U S t a rovides
o a he
the basic o bject
t o hatv btains
c o Tarious
u S thild o bjects.
m t o se
be declared.
4.1.1 Properties
Various properties of UCSAPI objects are described.
ErrorCode
Prototype:
[ReadOnly] long ErrorCode;
Description:
This p roperty
c t ontains
v o e that
he occurred
alue d ne uring
rrorsm xecuted
a p ethod
setup.
The value of 0 represents success, while all other values represent failure.
Errors t hato ccurredd c uring
o ’s m ethod
hild a p bjectnd s croperty
a be obtained
etupw anith
this value.
ConnectionsOfTerminal
Prototype:
[ReadOnly] long ConnectionsOfTerminal;
Description:
TerminalUserData
Prototype:
[ReadOnly] VARIANT TerminalUserData;
Description:
This property obtains the interface to obtain the user information from the terminal.
This i nterface
n t b eeds
o ao u e t btained
o u i nd f sed o
EventGetUserInfoList / E c vetGetUserData
e a G allback / vents
GetUserDataFromTerminal m a c R t ethods
I re d alled. f m efer o
details.
ServerUserData
Prototype:
[ReadOnly] VARIANT ServerUserData;
Description:
This property obtains the interface to send user information to the terminal.
This i nterface
n t b oeeds a ou te s btained
u u i nd t b sed
s t t o et
terminal b t efore
A he mddUserToTerminal
i c R t I ethod
d f s alled.
more details.
AccessLogData
Prototype:
[ReadOnly] VARIANT AccessLogData;
Description:
This property obtains the interface to obtain authentication log from the terminal.
This i nterface
n t b eeds
o a o u e t obtaineda nd l f sed t o b
EventGetAccessLog c e o allback
a t G vent mccurred i c Rfter t he
AccessControlData
Prototype:
[ReadOnly] VARIANT AccessControlData;
Description:
This property obtains the interface to set up access control data with the terminal.
This i nterface
n t b o eeds a uo ineo rder
btained
to s u et the access
p ndr dsed
ightsb t ata efo
SetAccessControlDataToTerminal m i c R t I ethod ds alled.f efer
more details.
TerminalMacAddr
Prototype:
[ReadOnly] LONG TerminalID
Description:
Get the MAC address for the specified terminal(Mac Address return by Hex String)
4.1.2 Methods
Various methods of UCSAPI objects are described.
ServerStart
Prototype:
HRESULT ServerStart(long MaxTerminal, long Port);
Description:
This method initializes UCSAPI SDK and implements server functions.
Parameters:
MaxTerminal:
This p arameter
d t m efinesn ohet aximum
t c b c umberS c i f erminals
s
Port :
The c ommunication
p f t c ort Tor d erminal
v i 9 onnection.
I t v i c het efault
terminal’s port value also needs to be changed.
Related Properties
ErrorCode
Callback Event:
EventTerminalConnected(long TerminalID, BSTR TerminalIP);
Event Parameters:
TerminalID:
Terminal ID
TerminalIP:
The character string that contains the terminal’s IP address value
Prototype:
HRESULT ServerStop();
Description:
This method disconnects all connected terminals and stops server functions.
Parameters:
N/A
Related Properties
ErrorCode
Callback Event:
N/A
Event Parameters
N/A
Prototype:
HRESULT SetTerminalTimezone(long TerminalID, BSTR TimezoneName);
Description:
Set up standard time from connected terminal.
Terminal w b u ill c e tsing ’s t onnected
imew i ihen
d berminal
t i sT efault,
’s t imea sut nd’s ft ime
erminal
erver
i s
different, Terminal need to be set as local time
Parameters:
TerminalID:
Terminal ID
TimezoneName:
Select modifying Time zone.
Time zone name can be found from under registry.
HKEY_LOCAL_MACHINE\SOFRWARE\Microsoft\Windows NT\CurrentVersion\TimeZones
Related Properties
ErrorCode
Callback Event:
N/A
Event Prameters
N/A
※ GMT
To check standard time, GMT can be a reference
. G MTs f tand
G orM reenwich
t t i G + ean
K m ime,i i 9 hhat e f t MT 9 or
Greenwich time.
Prototype:
HRESULT SetError(long TerminalID, long EventType);
Description:
Using callback event from the terminal and send back error code when its return.
Parameters:
TerminalD:
Terminal ID
EventType:
Getting Type Error value for returing to terminal
. 0 – None
1 – Access Log
For example call GetAccessLogFromTerminal then save Log Data to received database.
If f ail,s etting
E t 1rrorType
i t C E o function.
n C he
allingS allback
wetError
m t vent illr ake e
updated log and send call again when asking next New Log.
Related Properties
ErrorCode
Event Prameters
Prototype:
HRESULT GetTerminalCount(void);
Description:
This m ethod
o t n btainso t he c umbert t s f T erminals
n c b o onnected
u o
the ConnectionsOfTerminal property.
Parameters:
N/A
Related Properties
ErrorCode, ConnectionsOfTerminal
Callback Event:
N/A
Event Parameters
N/A
Prototype:
HRESULT GetFirmwareVersionFromTerminal(long ClientID, long TerminalID);
Description:
This method obtains the firmware version of the designated terminal.
Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
Related Properties
ErrorCode
Callback Event:
EventFirmwareVersion(long ClientID, long TerminalID, BSTR Version);
Event Parameters
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
Version:
This parameter contains the firmware version value in the form of a character string.
Prototype:
HRESULT UpgradeFirmwareToTerminal (long ClientID, long TerminalID, BSTR FilePath);
Description:
This m ethod
u t fpgrades o t designated
he irmware
t erminal.U fp pgrade
he i rogress
i n nform
with the following event.
EventFirmwareUpgrading / EventFirmwareUpgraded
Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
FilePath:
This parameter designates the full path of the firmware file with a character string.
Related Properties
ErrorCode
Callback Event:
EventFirmwareUpgrading(long ClientID, long TerminalID, long CurrentIndex, long TotalNumber);
EventFirmwareUpgraded(long ClientID, long TerminalID);
Event Parameters
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
TotalNumber:
This parameter contains the total number of data blocks to be sent.
SendUserFileToTerminal
Prototype:
HRESULT SendUserFileToTerminal (long ClientID, long TerminalID, LONG FileType, BSTR FilePath);
Description:
This method send user file to terminal
Parameters:
ClientID: see 1.6 Terminology Description
TerminalID: 1.6 Terminology Description
FileType :
Type of file to download.( see UCSAPI_SendUserFileToTerminal)
FilePath:
Full path of the file
Related Properties
ErrorCode
Callback Event:
EventUserFileUpgrading(long ClientID, long TerminalID, long CurrentIndex, long TotalNumber);
EventUserFileUpgraded(long ClientID, long TerminalID);
Event Prameters
ClientID: see 1.6 Terminology Description
TerminalID: 1.6 Terminology Description
CurrentIndex:
TotalNumber:
This parameter contains the total number of data blocks to be sent.
OpenDoorToTerminal
Prototype:
HRESULE OpenDoorToTerminal(long ClientID, long TerminalID);
Description:
This method temporarily opens the locking device of the designated terminal.
Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
Related Properties
ErrorCode
Callback Event:
EventOpenDoor (long ClientID, long TerminalID);
Event Parameters
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
Prototype:
HRESULE SetDoorStatusToTerminal(long ClientID, long TerminalID, long Status);
Description:
This method control lock to fit status value
Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
Status:
Lock Status (0: temporarily open, 1:start unlock, 2:end unlock)
Related Properties
ErrorCode
Callback Event:
EventOpenDoor (long ClientID, long TerminalID);
Event Parameters
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
Prototype:
HRESULE SendTerminalControl(long ClientID, long TerminalID, long lockStatus, long lockType
Description:
This method control terminal to fit parameter values
Parameters:
ClientID: See above
TerminalID: See above
lockStatus:
Lock Status (0:Unlock, 1:Lock)
lockType:
Lock Type (0:Normal, 1:Global) * Global locking Shutdown
Related Properties
ErrorCode
Callback Event:
EventTerminalControl (long ClientID, long TerminalID, long lockStatus, long lockType);
Event Prameters
ClientID: See above
TerminalID: See above
lockStatus:
Lock Status (0:Unlock, 1:Lock)
lockType:
Lock Type (0:Normal, 1:Global) * Global locking Shutdown
Description:
This method send message for display on terminal LCD.
Parameters:
ClientID: See above
TerminalID: See above
TextMessage :
Text for display.( ref. UCSAPI_SendPrivateMessageToTerminal)
displayTime :
Time(Second value) for display
Related Properties
Callback Event:
EventPrivateMessage(long ClientID, long TerminalID);
Event Prameters
SendPublicMessageToTerminal
Prototype:
HRESULT SendPublicMessageToTerminal(
LONG ClientID, LONG TerminalID, BOOL Show,
BSTR StartDate, BSTR EndDate, BSTR StartTime, BSTR EndTime, BSTR TextMessage)
Description:
This method send public message for display on terminal LCD.
Public message display for setted period and setted time
Parameters:
Related Properties
Callback Event:
EventPublicMessage(long ClientID, long TerminalID);
Event Prameters
SetWiegandFormatToTerminal
Prototype:
HRESULT SetWiegandFormatToTerminal(LONG ClientID, LONG TerminalID, LONG wgdType,
BSTR FilePath);
Description:
To s W
et iegand
I F f n/Out
t t ormat
W F romF c he w erminal.
S a c b c iegand
by Wiegand Tool.
Parameters:
ClientID: See above
TerminalID: See above
wgdType:
Getting Type value for define whether Wiegand In or Out.
FilePath:
Entire directory for Wiegand Format Data File
Event Prameters
SetDoorStatusToACU
Prototype:
HRESULE SetDoorStatusToTerminal(long ClientID, long TerminalID, long Status, long DoorID);
Description:
This method control ACU door lock to fit status value
Parameters:
ClientID: See above
TerminalID: See above
Status:
Lock Status (0: temporarily open, 1:start unlock, 2:end unlock, 3:arm, 4:disarm)
DoorID:
ACU Door ID to control.
Related Properties
ErrorCode
Callback Event:
EventOpenDoor
EventACUStatus
The i nterface
t s the user
o i endnformation
t t t To s heu i erminal. t t to endt ser
AddUserToTerminal m i c a ethod
s u the suser alled
i nformation
rfter p etting elated
A sp roperties.
the user i nformation,
c w transmission
heck w asc
hether ompleted
n b c ormally
t e c yo t hecking
EventAdduserToTerminal event.
4.2.1 Properties
UserID
Prototype:
[WriteOnly] long UserID;
Description:
This p roperty d esignates
t u I v heT v ser c Db d alue. o his al
with numeric data of up to 8 digits.
UniqueID
Prototype:
[WriteOnly] BSTR UniqueID;
Description:
This p roperty
d t esignates
u I ( Ihe w cnique s DT employee
v c b u D)
in p lace
o U ff userIDi or T ser
m dentification.
d s t c b d he iaximum
20bytes.
UserName
Prototype:
[WriteOnly] BSTR UserName;
Description:
This p roperty
d t esignates
u n v w he
c sers Tamem alue
d s t ith harac
AccessGroup
Prototype:
[WriteOnly] BSTR AccessGroup;
Description:
This p roperty
d t esignates
a g c vhe w ccess
c s roup T c odev alue
consists of a 4byte character string.
SecurityLevel
Prototype:
[WriteOnly] long SecurityLevel;
Description:
This p roperty
c s u t an
a et sp hel t uthentication
b u i f a ecurity evel
It can have any of the following values.
1- LOWEST
2- LOWER
3- LOW
4- BELOW_NORMAL
5- NORMAL
6- ABOVE_NORMAL
7- HIGH
8- HIGHER
9- HIGHEST
The default level is 4 for 1:1 authentication and 5 for 1:N authentication.
IsCheckSimilarFinger
Prototype:
[WriteOnly] BOOL IsCheckSimilarFinger;
Description:
IsAdmin
Prototype:
[WriteOnly] BOOL IsAdmin;
Description:
This p roperty
c d an
a u aesignate
an administrator. For ser
t het serminal
w m t ith1 ore
registered a dministrator,
t u o t t he m sec b f r he t erminal t enu
administrator logon process during entry to the setup menu.
IsIdentify
Prototype:
[WriteOnly] BOOL IsIdentify;
Description:
This property can designate to allow the user to use 1:N fingerprint authentication.
Password
Prototype:
[WriteOnly] BSTR Password;
Description:
In c ase
that the u ser
u t ses
p he
a asswordm t uthentication
p d a etho
password character string. The maximum size of data that can be designated is 8bytes.
FaceNumber
Prototype:
HRESULT FaceNumber([in] long newVal);
Description:
FaceData
Prototype:
HRESULT FaceData([in] VARIANT newVal);
Description:
This is the face data that is used when face authentication.
This data consists of multiple face information. And FaceNumber notify how many faces in this data.
Related methods:
AddUserToTerminal
Related properties:
FaceNumber
IsFace1toN
Prototype:
HRESULT IsFace1toN([in] BOOL newVal);
Description:
This property can designate to allow the user to use 1:N face authentication.
IsBlacklist
Prototype:
HRESULT IsBlacklist([in] BOOL newVal);
Description:
This property can designate of value for blacklist user
InitUserData
Prototype:
HRESULT InitUserData()
Description:
Initialize all properties.
Parameters:
None
SetAuthType
Prototype:
HRESULT SetAuthType(BOOL AndOperation, BOOL Finger, BOOL FPCard, BOOL Password,
BOOL Card, BOOL CardID);
Description:
This m ethod
d u esignates
’s a uthenticationt serE a ype. t achc b uuthentication
t
AND or OR combination according to the AndOperation flag.
Parameters:
AndOperation:
This p arameter
d t a esignates
t u o e oa llow t he t se A f o Oach ut
combination.
1i s f et A or
c ND a 0
ombination
f O combination. F orm
nd dore orr etails,
tR U P eferi o
Section 1.6 Terminology Description.
Finger:
This parameter designates to allow the use of fingerprint authentication.
Password:
This parameter designates to allow the use of password authentication.
Card:
This parameter designates to allow the use of card authentication.
CardID:
This p arameter
d t a esignates
t u o R ao U llowo U he C se d f n FID
u s
the card’s R FIDa a s uthentication
t , b utinstead, t card’s
ool
heR FIDi simplys used a an identifier
s l ike
UserID.
It must be designated using AND combination with other authentication type.
Related methods
AddUserToTerminal, SendAuthInfoToTerminal
Related properties
ErrorCode
Callback Event:
N/A
Event Parameters:
N/A
Description:
This m ethod
d theesignates
binary s dtreamo t t ata f ef fhe o emplate
F c f or ach
fingerprint authentication. For more detailed description on the template, refer to UCBioBSP SDK.
Parameters:
bInitialize:
This parameter designates whether to initialize FIR data and produce new data or not.
If t his
v i alue
f the added
s alse,
t emplate
d a a atat the FIR
re d ppended
ata
p roduced
i to ntern
produce o F d ne w sIR t ata d ith I t everal
v i t aemplate
e F d aata. d f his
and new data are produced.
nSrcFPDataType :
The t ype
information o ft the emplate
t b a R o t UCBioAPI_TEMPLATE_TYPE
e dded. eferf orr oelevant
values.
nFPDataSize :
The size data of the template to be added
FPData1:
Template data to be added. (Binary stream data)
FPData2:
The second template data of a finger to be added. (Binary stream data)
Related properties:
ErrorCode
Callback Event:
N/A
Event Parameters:
N/A
AddFingerData
Prototype:
Parameters:
FingerID :
Finger Infomation(1:Right_Thumb, 10:Left_Little)
FPType :
The type of the template to be added
FPData1:
Template data to be added. (Binary stream data)
FPData2:
The second template data of a finger to be added. (Binary stream data)
Related properties:
ErrorCode
Callback Event:
N/A
Event Parameters:
N/A
SetDuressFinger
Prototype:
HRESULT SetDuressFinger(long FingerID, long Value)
Description:
Set duress finger.
If duress finger input terminal, terminal work normal status.
But terminal trans result 0x21(33) - not zero - to server
Parameters:
FingerID :
Duress finger ID(1:Right_Thumb, 10:Left_Little)
Value :
Is duress finger or not(0:normal finger, 1:duress finger)
Related properties:
SetCardData
Prototype:
HRESULT SetCardData(BOOL bInitialize, BSTR RFID);
Description:
This method designates RFID data for card authentication.
Parameters:
bInitialize:
This parameter designates whether to initialize RFID data and produce new data or not.
If t hisv i alue
f the sadded
alse,
R d FIDa a ata t the
re RFIDppended
d pata i roduced
o t nte
produce several RFID data.
If this value is true, all existing RFID data are deleted and new data are produced.
RFID :
This p arameter
d t R esignates
v t b a he
w t FID
c alue
s T om e s dded
of data that can be designated is 16bytes.
Related properties:
ErrorCode
Callback Event:
N/A
Event Parameters:
N/A
Prototype:
HRESULT SetPictureData(long PictureDataLength, BSTR PictureDataType, VARIANT
PictureData);
Description:
This method designates the picture data with binary stream.
Parameters:
PictureDataLength:
This parameter designates the length of picture data.
PictureDataType:
This p arameter
d t t esignates
v o p d he w ype
t c alue s (f ictureo ata
“JPG” is supported.)
It designates the file extension value with the character string.
PictureData:
Picture data to be added. (Binary stream data)
Related properties:
ErrorCode
Callback Event:
N/A
Event Parameters:
N/A
Prototype:
HRESULT SetAccessDate(long AccessDateType, long StartYear, long StartMonth, long
StartDay, long EndYear, long EndMonth, long EndDay);
Description:
This m ethod
d t esignates
p a f a he o eriod
the p eriod
notllowed
a llowed
f a or T or
ccess ccess. r
access p deriodc b data an
not u e, sed
allowed
esignated;
a p ccess, and access
eriodr estriction
period. The following values are available.
Parameters:
AccessDateType:
This parameter designates the type of access period data. The following values are available.
0- Not used
1- Period allowed for authentication designated
2- Period not allowed for authentication designated
Related properties:
ErrorCode
Callback Event:
N/A
Event Parameters:
N/A
Prototype:
HRESULT AddUserToTerminal(long ClientID, long TerminalID, BOOL IsOverwrite);
Description:
This m ethod
s the userends
i nformation
t t d ot he U esignated
i n t erminal.
b
produced u the user
singi nformation
r p elated
a m broperties
t A nd ethods
method is called.
Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
IsOverwrite:
This p arameter
d w esignates
t o a a hether
r uo o n
verwrite
T d v n lready
is 1.
Related properties:
ErrorCode
Callback Event:
EventAddUser
Event Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
※ Note
In c ase
o s f m endingn s o fultiple
u ser
d t t ata
umber
t ou het AddUserToTerminal
erminal sing he
method, t E he ventAddUser
c e m b checked
allback
a ftert AddUserToTerminal
he
vent ust m ethod
e
is called. The next user data is sent only after the transmission is processed normally.
The i nterface
r t t elated
’s u seri o nformation
erminal
m a g anagement
f T i n nd t b et unctio
obtained a u ndin o rderto
sed o btaino d r t elete
n o uhe u umber
i f se
list, and user data.
4.3.1 Properties
CurrentIndex / TotalNumber
Prototype:
[ReadOnly] long CurrentIndex;
[ReadOnly] long TotalNumber;
Description:
In c ase
o o f mbtainingn o uultiple
i umbers
l t p fc ser t t nformation
number o l fa tists i ndo t he
c ndex
r I cf bhe o urrent
a t ecord.
GetUserInfoListFromTerminal method is called.
Related methods:
GetUserInfoListFromTerminal,
UserID
Prototype:
[ReadOnly] long UserID;
Description:
This property contains the user ID value.
It c anb o e abtained
G fter etUserInfoListFromTerminal
/ G m a
called.
Related methods:
GetUserInfoListFromTerminal, GetUserDataFromTerminal
Description:
This property contains the unique ID value (employee ID).
It c anb o e abtained
G fter etUserInfoListFromTerminal
/ G m a
called.
Related methods:
GetUserInfoListFromTerminal, GetUserDataFromTerminal
UserName
Prototype:
[ReadOnly] BSTR UserName;
Description:
This property contains the user name value.
It c anb o e abtained
G fter etUserInfoListFromTerminal
/ G m a
called.
Related methods:
GetUserInfoListFromTerminal, GetUserDataFromTerminal
AccessGroup
Prototype:
[ReadOnly] BSTR AccessGroup;
Description:
This property contains the access group code value.
It c anb o e abtained
G fter etUserInfoListFromTerminal
/ G m a
called.
IsAdmin
Prototype:
[ReadOnly] BOOL IsAdmin;
Description:
This property contains the flag value on whether the user is an administrator or not.
It c anb o e abtained
G fter etUserInfoListFromTerminal
/ G m a
called.
Related methods:
GetUserInfoListFromTerminal, GetUserDataFromTerminal
IsIdentify
Prototype:
[ReadOnly] BOOL IsIdentify;
Description:
This property contains the flag value on whether 1:N fingerprint authentication is allowed or not.
It c anb o e abtained
G fter etUserInfoListFromTerminal
/ G m a
called.
Related methods:
GetUserInfoListFromTerminal, GetUserDataFromTerminal
Related properties:
IsFinger, TotalFingerCount, FingerID, FPSampleDataLength, SampleNumber, FPSampleData,
SecurityLevel
AccessDateType
Prototype:
[ReadOnly] long AccessDateType;
0- Not used
1- Period allowed for authentication designated
2- Period not allowed for authentication designated
Related methods:
GetUserDataFromTerminal
Related properties:
StartAccessDate, EndAccessDate
StartAccessDate/EndAccessDate
Prototype:
[ReadOnly] BSTR StartAccessDate;
Description:
This property contains the start/end date of access period.
The data format is yyyy-MM-dd.
It c anb o e abtained
G fter etUserInfoListFromTerminal
/ G m a
called.
Related methods:
GetUserDataFromTerminal
Related Properties:
AccessDateType
SecurityLevel
Prototype:
[ReadOnly] long SecurityLevel;
1- LOWEST
2- LOWER
3- LOW
4- BELOW_NORMAL
5- NORMAL
6- ABOVE_NORMAL
7- HIGH
8- HIGHER
9- HIGHEST
The default value is 4 for 1:1 authentication and 5 for 1:N authentication.
Related methods:
GetUserDataFromTerminal
Related properties:
IsFinger, TotalFingerCount, FingerID, FPSampleDataLength, SampleNumber, FPSampleData
IsAndOperation
Prototype:
[ReadOnly] BOOL IsAndOperation;
Description:
This p roperty
c t ontains
f v o he t lag
A alue
c no t he ND
authentication t ype.T v his a alue
t u o fllows c he, a ndpse assword
f a ingerprint, t uthentication
ard
through A o O ND
c r FR m ombination.
d r t U P or i S ore 1 Tetails, efer
Description.
It c anb o e abtained
G fter etUserInfoListFromTerminal
/ G m a
called.
Related properties:
IsFinger, IsFPCard, IsCard, IsPassword
IsFinger
Prototype:
[ReadOnly] BOOL IsFinger;
Description:
This property contains the flag value that allows user’s fingerprint authentication.
It c anb o e abtained
G fter etUserInfoListFromTerminal
/ G m a
called.
Related methods:
GetUserInfoListFromTerminal, GetUserDataFromTerminal
Related properties:
IsAndOperation, TotalFingerCount, FingerID, FPSampleDataLength, SampleNumber,
FPSampleData, SecurityLevel
IsFPCard
Prototype:
[ReadOnly] BOOL IsFPCard;
Description:
This property contains the flag value that allows user’s fingerprint card authentication.
It c anb o e abtained
G fter etUserInfoListFromTerminal
/ G m a
called.
Related methods:
GetUserInfoListFromTerminal, GetUserDataFromTerminal
IsCard
Prototype:
[ReadOnly] BOOL IsCard;
Description:
This property contains the flag value that allows user’s card authentication.
It c anb o e abtained
G fter etUserInfoListFromTerminal
/ G m a
called.
Related methods:
GetUserInfoListFromTerminal, GetUserDataFromTerminal
Related properties:
IsAndOperation, CardNumber, RFID
IsCardID
Prototype:
[ReadOnly] BOOL IsCardID;
Description:
This property c ontainst f v he o wlag Calue u ’s R n FIDi uhether
sa I sed
f u ard
i s D ser or ser
or not.
CardID d n oes
u the card’s
ot R FID
se a a s uthentication
t , b ut instead, t card’s
ool
heR FIDi simply
s
used a an sidentifier l U ike I m serID.
b d t u ust A ce esignated
w o sing
authentication type.
It c anb o e abtained
G fter etUserInfoListFromTerminal
/ G m a
called.
Related methods:
GetUserInfoListFromTerminal, GetUserDataFromTerminal
Related properties:
IsPassword
Prototype:
[ReadOnly] BOOL IsPassword;
Description:
This property contains the flag value that allows password authentication.
It c anb o e abtained
G fter etUserInfoListFromTerminal
/ G m a
called.
Related methods:
GetUserInfoListFromTerminal, GetUserDataFromTerminal
Related properties:
IsAndOperation, Password
Password
Prototype:
[ReadOnly] BSTR Password;
Description:
This p roperty
c t p ontains v i the f assword
o a character s alue
T tring.
m n he
s heo orm aximum
data that can be designated is 8bytes.
It can be obtained after the GetUserDataFromTerminal method is called.
Related methods:
GetUserDataFromTerminal
Related properties:
IsPassword
CardNumber
Prototype:
[ReadOnly] long CardNumber;
Related methods:
GetUserDataFromTerminal
Related properties:
IsCard, RFID
RFID
Prototype:
[ReadOnly] BSTR RFID(long nIndex);
Description:
In c ase
that the u user t cses a he ard
m uthentication
t p c t d ethod,
v o his
registered RFID.
It can be obtained after the GetUserDataFromTerminal method is called.
Parameters:
nIndex
The index number of RFID to be obtained
Related methods:
GetUserDataFromTerminal
Related properties:
IsCard, CardNumber
PictureDataLength
Prototype:
[ReadOnly] long PictureDataLength;
Related methods:
GetUserDataFromTerminal
Related properties:
PictureData
PictureData
Prototype:
[ReadOnly] VARIANT PictureData;
Description:
This p roperty
c t p ontains
d v i het f icture
o a binary s ata tream.
Thealue
l ength
v n o he
dalue orm f
is contained in the PictureDataLength property.
It c anb o e abtained
G fter etUserInfoListFromTerminal
/ G m a
called.
Related methods:
GetUserDataFromTerminal
Related properties:
PictureDataLength
TotalFingerCount
Prototype:
[ReadOnly] long TotalFingerCount;
Description:
This property contains the total number of fingers of converted FIR.
It can be obtained after the GetUserDataFromTerminal method is called.
Related methods:
Related properties:
IsFinger, FingerID, FPSampleDataLength, SampleNumber, FPSampleData
FingerID
Prototype:
[ReadOnly] long FingerID(long nIndex);
Description:
This p roperty
c t ontains
f I i he oinger
c DF i nformation
t f o f
an array.
nIndex can have a value between 0 and (TotalFingerCount-1).
It can be obtained after the GetUserDataFromTerminal method is called.
Related methods:
GetUserDataFromTerminal
Related properties:
IsFinger,TotalFingerCount, FPSampleDataLength, SampleNumber, FPSampleData
SampleNumber
Prototype:
[ReadOnly] long SampleNumber;
Description:
This p roperty
c t n ontains o t he f e umber
f o c f emplates
F I c t or ach
value of 1 or 2.
It can be obtained after the GetUserDataFromTerminal method is called.
Related methods:
GetUserDataFromTerminal
Related properties:
FPSampleData
Prototype:
[ReadOnly] VARIANT FPSampleData(long nFigerID, long nSampleNum);
Description:
This property contains template’s binary stream data for each finger of converted FIR.
nFingerID and SampleNum can be obtained using the FingerID and SampleNumber property.
The length value of binary stream data can be obtained using the FPSampleDataLength property.
It can be obtained after the GetUserDataFromTerminal method is called.
Parameters:
nFingerID:
Finger ID number to be obtained
nSampleNum:
Sample number to be obtained. The value of 0 or 1 is used.
Related methods:
GetUserDataFromTerminal
Related properties:
IsFinger, TotalFingerCount, FingerID, FPSampleDataLength, SampleNumber
FaceNumber
Prototype:
HRESULT FaceNumber([out, retval] long *pVal);
Description:
This property contains count of face in FaceData(min 3, max 10)
Related methods:
GetUserDataFromTerminal
Related properties:
FaceData
Description:
This property contains template’s binary stream data for each face data
Each face data is composed 4bytes length and nbytes binary data.
Related methods:
GetUserDataFromTerminal
Related properties:
FaceNumber
IsBlacklist
Prototype:
[ReadOnly] BOOL IsBlacklist;
Description:
This property contains the flag of blacklist user.
It c anb o e abtained
G fter etUserInfoListFromTerminal
/ G m a
called.
Related methods:
GetUserInfoListFromTerminal, GetUserDataFromTerminal
Related properties:
GetUserCountFromTerminal
Prototype:
HRESULT GetUserCountFromTerminal(long ClientID, long TerminalID);
Description:
This method obtains the total number of registered users from the designated terminal.
Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
Related Properties
ErrorCode
Callback Event:
EventGetUserCount
Event Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
AdminNumber:
The number of registered administrators
Prototype:
HRESULT GetUserDataFromTerminal(long ClientID, long TerminalID, long UserID);
Description:
This method obtains the user data from the designated terminal.
Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
UserID:
User ID
Related Properties
ErrorCode, UserID, UserName, UniqueID, AccessGroup, AccessDateType, StartAccessDate,
EndAccessDate, IsAdmin, IsIdentify, IsAndOperation, IsFinger, IsFPCard, IsCard, IsPassword,
IsCardID, Password, CardNumber, RFID, SecurityLevel, TotalFingerCount, FingerID,
FPSampleDataLength, SampleNumber, FPSampleData, PictureDataLength, PictureData
Callback Event:
EventGetUserData
Event Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
Prototype:
HRESULT DeleteUserFromTerminal(long ClientID, long TerminalID, long UserID);
Description:
This method deletes the user data from the designated terminal.
Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
UserID:
User ID
Related Properties
ErrorCode
Callback Event:
EventDeleteUser
Event Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
UserID:
User ID
Prototype:
HRESULT DeleteAllUserFromTerminal(long ClientID, long TerminalID);
Description:
This method deletes all user data from the designated terminal.
Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
Related Properties
ErrorCode
Callback Event:
EventDeleteAllUser
Event Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
RegistFaceFromTerminal
Prototype:
HRESULT RegistFaceFromTerminal (long ClinetID, long TerminalID, long Opt);
Description:
Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
Opt :
This is command opotion(0:Start, 1:cancel)
Related Properties
ErrorCode
Callback Event:
EventRegistFace
4.4.1 Properties
CurrentIndex / TotalNumber
Prototype:
[ReadOnly] long CurrentIndex;
[ReadOnly] long TotalNumber;
Description:
In c ase
o o f s btaining
n o l everal
r t umbers
p c ft og
t n ecords,o his
records and the index of the current record.
It can be obtained after GetAccessLogFromTerminal methods are called.
Related methods:
GetAccessLogFromTerminal
UserID
Prototype:
[ReadOnly] long UserID;
Description:
This property contains the user ID value.
It can be obtained after the GetAccessLogFromTerminal method is called.
Related methods:
GetAccessLogFromTerminal
Description:
This property contains the authentication type value. The following values are available.
Related methods:
GetAccessLogFromTerminal
AuthMode
Prototype:
[ReadOnly] long AuthMode;
Description:
This property contains the authentication mode value. The following values are available.
0- Office start
1- Office leave
2- General (General access)
3- Work outside
4- Return to office
It can be obtained after the GetAccessLogFromTerminal method is called.
Related methods:
GetAccessLogFromTerminal
Description:
This property contains the authentication time data in the form of a character string.
The data format is “yyyy-MM-dd hh:mm:ss”.
It can be obtained after the GetAccessLogFromTerminal method is called.
Related methods:
GetAccessLogFromTerminal
IsAuthorized
Prototype:
[ReadOnly] BOOL IsAuthorized;
Description:
This p roperty
c t a ontains r hev Tuthentication
v i 0f a esult
s a alue.
1 his
for failure.
It can be obtained after the GetAccessLogFromTerminal method is called.
Related methods:
GetAccessLogFromTerminal
RFID
Prototype:
[ReadOnly] BSTR RFID;
Description:
In c ase
t a he uthentication
t i c t p ype
c st R
ard, v his
i t f roperty
o o
a character string.
It can be obtained after the GetAccessLogFromTerminal method is called.
Related methods:
PictureDataLength
Prototype:
[ReadOnly] long PictureDataLength;
Description:
This property contains the size value of picture data.
It can be obtained after the GetAccessLogFromTerminal method is called.
Related methods:
GetAccessLogFromTerminal
Related properties:
PictureData
PictureData
Prototype:
[ReadOnly] VARIANT PictureData;
Description:
This p roperty
c p ontains
d i t f icture
o a binary s ata tream.
The nP ictureDataLength
he orm p f
contains the length value of data.
It can be obtained after the GetAccessLogFromTerminal method is called.
Related methods:
GetAccessLogFromTerminal
Related properties:
PictureDataLength
SetPeriod
Prototype:
HRESULT SetPeriod(long StartYear, long StartMonth, long StartDay,
long EndYear, long EndMonth, long EndDay);
Description:
Period i nformation
i s i c u sw et t gn a ase ser
r i ants f o a l et uthentica
period.
This M ethodi G s etAccessLogCountFromTerminal,
G M e
When calling, it is used in case of LogType = 3.
Parameters:
StartYear/StartMonth/StartDay:
Specify the start date.
EndYear/EndMonth/EndDay:
Specify the end date.
Related properties
ErrorCode
Callback Event:
N/A
Event Parameters:
N/A
Description:
This method obtains the number of authentication logs stored at the designated terminal.
Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
LogType:
This parameter designates the type of the log to obtain. The following values are available.
0- New log
1- Log already sent to the server
2- All stored logs
3- Period logs
Related properties
ErrorCode
Callback Event:
EventGetAccessLogCount
Event Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
LogCount:
The number of authentication logs
Prototype:
HRESULT GetAccessLogFromTerminal(long ClientID, long TerminalID, long LogType);
Description:
This method obtains the authentication log stored at the designated terminal.
Parameters:
ClientID:
ID of the client that requested a job. (It is used in client/server model development.)
TerminalID:
Terminal ID
LogType:
This parameter designates the type the log to obtain. The following values are available.
0- New log
1- Log already sent to the server
2- All stored logs
3- Period Log
Related Properties
ErrorCode, TotalNumber, CurrentIndex, UserID, DateTime, AuthType, AuthMode,
IsAuthorized, RFID, PictureDataLength, PictureData
Callback Event:
EventGetAccessLog
Event Parameters:
ClientID:
TerminalID:
Terminal ID
The i nterface
t t a o c ransmitd t t ccess
t T ontrol
i n ata
t b l o ahe u erminal.
t
set up access control information with the terminal.
4.5.1 Properties
InitData
Prototype:
HRESULT InitData(void);
Description:
This method designates whether to initialize access control data and create new data or not.
Parameters:
N/A
Related properties
ErrorCode
Callback Event:
N/A
Event Parameters:
N/A
Prototype:
HRESULT SetTimeZone(BSTR Code, long nIndex, long StartHour, long StartMinute,
long EndHour, long EndMinute);
Description:
This method adds a time zone during a day allowed for authentication.
Up t 1 o t 28z cime c bonea aodesu t 1 an
t z e c dded,
b a t ands tp o 2
zone code. SDK contains the added information in the form of an array.
Parameters:
Code:
As t he
i dentification
c v o t t odez t alue
b s u ft phe imei a f one
4 o e
character string.
nIndex:
Index on time zone information. This value can have a value between 0 and 11.
StartHour / StartMinute:
This parameter designates the start time of the time zone.
EndHour / EndMinute:
This parameter designates the end time of the time zone.
Related methods
SetAccessControlDataToTerminal
Related properties
ErrorCode
Callback Event:
N/A
Prototype:
HRESULT SetAccessTime(BSTR Code, BSTR Sun, BSTR Mon, BSTR Tue, BSTR
Wed, BSTR Thu, BSTR, Fri, BSTR Sat, BSTR Hol, BSTR Holiday);
Description:
This method adds an allowed access time for each day of the week.
Up t 1 o a 28 a llowed
t c c ccess
b a aime S c odes the added
an i e nformation
dded,
i t nd
form of an array.
Parameters:
Code:
As t he
i dentification
c v o t a ode a alue
t t b fs uhe t pllowed i a f ccess im
4byte character string.
Sun/Mon/Tue/Wed/Thu/Fri/Sat/Hol:
These p arameters
d t a esignate
a t z he
c f llowed
e d o t ccess
w t b uime one
during authentication and the allowed access time zone code to be applied to holidays.
Holiday:
This p arameterd t esignates
h c t he
w s oliday
u a t S ode mhat as
The time zone of the Hol code is applied to the designated holiday code.
Related methods
SetAccessControlDataToTerminal
Related properties
ErrorCode
Callback Event:
N/A
Event Parameters:
Prototype:
HRESULT SetHoliday(BSTR Code, long nIndex, long Month, long Day);
Description:
This method adds holiday information.
Up t 6 o h 4 c oliday
c b a odes
a u t an
3 h e c dded,
b a t ands hp oc 2 oliday
SDK contains added information in the form of an array.
Parameters:
Code:
As t he
i dentification
c v o t h ode t b salue
u t pf he i a oliday
f 4 c o e et
string.
nIndex:
Index value of the holiday to be added. This value can have a number between 0 and 63.
Month / Day:
This parameter designates the date for the holiday.
Related methods
SetAccessControlDataToTerminal
Related properties
ErrorCode
Callback Event:
N/A
Event Parameters:
N/A
Prototype:
HRESULT SetAccessGroup(BSTR Code, long nIndex, BSTR AccessTime);
Description:
This method adds access group information.
Up t 1 o a 28 g ccess
c c b roup
a a odes
u t 4a an a e t dded,
c c b nd
a p o
to a s ingle
a g ccessc S roup
c aode. i DK i ontains
t f o dded
an array.
Parameters:
Code:
As t he
i dentification
c v o t a ode g alue
t b s uf t hep ccessi a f 4roup o
character string.
nIndex:
The i ndex
v o t alue
a af he
t c llowed
t b a ccess
T v cimeh a ode
n o e
between 0 and 3.
AccessTime:
This parameter designates the allowed access time code to be used at the access group.
Related methods
SetAccessControlDataToTerminal
Related properties
ErrorCode
Callback Event:
N/A
Event Parameters:
N/A
Prototype:
HRESULT SetAccessControlDataToTerminal(long ClientID, long TerminalID, long DataType);
Description:
This m ethod
s to t he
ends
d esignated
t t accesserminal
c ontrol
d a he b ata
S dded y
SetAccessTime, S S etHoliday, a S etAccessTime
m . T ime z nd
aone, t etAccessGroup
ccess
holiday a a ndg ccess
i n roupt b s nformation
s A c eedi o i eu ent e
at the t erminald a uring I uthentication.
c s a c i n ase i n tored
a t ccess
terminal does not implement access control.
Parameters:
ClientID:
ID of the client that requested a job (It is used in client/server model development.)
TerminalID:
Terminal ID
DataType:
This p arameter
d a esignates
c d t b s ccess
t t t ontrol T f ata v oa e ent
available.
Related methods
SetTimeZone, SetHoliday, SetAccessTime, SetAccessGroup
Related properties
ErrorCode
Event Parameters:
ClientID:
ID of the client that requested a job (It is used in client/server model development.)
TerminalID:
Terminal ID
DataType:
The type value of access control data
The i nterface
t i so mplement
a T a erver p uthentication.
r t i t rhe t pplication
the user authentication request from the terminal.
4.6.1 Properties
DeviceID
Prototype:
[ReadOnly] long DeviceID;
Description:
This is Input Device ID.
You can use this propety after events about server authentication.
Related Events:
EventAuthTypeWithUserID
EventAuthTypeWithUniqueID
EventVerifyCard
EventVerifyFinger1to1
EventVerifyFinger1toN
EventVerifyPassword
SetAuthType
Prototype:
HRESULT SetAuthType(BOOL AndOperation, BOOL Finger, BOOL FPCard, BOOL Password,
BOOL Card, BOOL CardID);
Description:
This m ethod
d theesignates
user’s a uthenticationt E a ype. t ach
c b uuthentication
t
AND o O r combination
R a ccording t t A o he f ndOperation
I m b u b lag.
t t
SendAuthInfoToTerminal method is called.
Parameters:
AndOperation:
If t hisv i alue
t a s rue, w uthentication
A c i a ithI t vND i f ombination
authentication with OR combination is allowed.
Finger:
This parameter designates to allow the use of fingerprint authentication.
FPCard:
This p arameter
d t a esignates
t u o f o c llowauthentication.
he T sehef f ingerprint
ingerprint
c
uses the method that authenticates by storing the fingerprint information at the smart card.
Password:
This parameter designates to allow the use of password authentication.
Card:
This parameter designates to allow the use of card authentication.
CardID:
Related methods
SendAuthInfoToTerminal
Related properties
ErrorCode
Callback Event:
N/A
Event Parameters:
N/A
Prototype:
HRESULT SendAuthInfoToTerminal(long TerminalID, long UserID, BOOL
IsAccessibility, long ErrorCode);
Description:
When t t he o erminal i s aperates m n t erver
a uthentication
p n t o
immediately s u ’s end
a uthentication
ser information t o t he
t erminal
i r t nt esponse
EventAuthTypeWithUserID/EventAuthTypeWithUniqueID e I m b u a t S
method is called.
Parameters:
TerminalID:
Terminal ID
UserID:
ID of the user who attempted authentication
IsAccessibility:
This p arameter
d t f esignates
v o w t he u hlag a alue
r o nn I t hether
v i he
false, authentication fails at the terminal.
Related Properties
ErrorCode
Callback Event:
N/A
Event Parameters
N/A
Prototype:
HRESULT SendAuthResultToTerminal(long TerminalID, long UserID, BOOL
IsAccessibility, BOOL IsVisitor, BOOL IsAuthorized, BSTR AuthorizedTime, long ErrorCode);
Description:
For user authentication, the terminal notifies the following events to the application program.
EventVerifyCard, E ventVerifyPassword,
E E ventVerifyFinger_1_TO_1,
T t
application program must send the user’s authentication result to the terminal immediately.
Parameters:
TerminalID:
Terminal ID
UserID:
ID of the authenticated user or the user who attempted authentication
IsAccessibility:
This p arameter
d t f esignates
o w t u heh a lag r n o n hether
I t v i he
f ser
authentication fails at the terminal.
IsVistor:
This parameter designates whether the user is a visitor or not.
IsAuthorized:
This parameter designates whether authentication is success or not.
AuthorizedTime:
This p arameter
d the authentication
esignates t T character
ime. s tringi het fn ohe“yyyy-MM-dd
orm f
hh:mm:ss” is designated for this value.
ErrorCode:
This p arameter
d t code
esignates
o t f e he t he
orror d hat a ccurs T vuringo 0 uthenti
Related Properties
ErrorCode
Callback Event:
N/A
Event Parameters
N/A
Prototype:
HRESULT SendAntipassbackResultToTerminal(long TerminalID, long UserID, BOOL
bResult);
Description:
. T erminalh i A as tso ntipassback
E w v hption.
m t ventw g shen o erificatio
Antipassback. I o g nt rderto
T w s et E his, erminal
t a illp end ven
At t het pime, w rogram
c A ill s ontain
t b a ntipassback
s t t i r tatus
t o
This event will only occur when authentication done from the terminal.
Parameters:
TerminalID:
Terminal ID
UserID:
Already verified or attempt user ID
.
bResult:
. Authorization status by Antipassback. Value 1 means enter available
Related Properties
ErrorCode
Callback Event:
EventAntipassback
Event Prameters
N/A
4.7.1 Properties
Description:
Getting a f v flag o aluer rom
O i F ption
v i 1 veference.
c b r nly T f lag
can only get reference if flag value is set as 1.
Related methods:
SetOptionToTerminal
SecurityLevel_1To1 / SecurityLevel_1ToN
Prototype:
[Read/Write] long SecurityLevel_1To1;
[Read/Write] long SecurityLevel_1ToN;
Description:
Terminal gets authentication level for 1:1, 1:N. To set this value flagSecuLevel 1. Value can have below
1- LOWEST
This v alue
c s f ana r et v lag t S nd elated o aaluet g ro etOptionToTerminal
f
GetOptionFromTerminal Method.
Related methods:
SetOptionToTerminal
GetOptionFromTerminal
InputIDLength
Prototype:
[Read/Write] long InputIDLength;
Description:
Getting a ID lenghth for the terminal input. Maximum 8 digit number can be set when
using UserID. Maximum 20 digit for UniqueID. To set this value need to set 1 in
flagInputIDLenght.
This v alue
i t s f s a or et v lagb nd
c S elated alue
o c g efore
r a all etOp
call GetOptionFromTerminal Method
Related methods:
SetOptionToTerminal
GetOptionFromTerminal
AutoEnterKey
Prototype:
[Read/Write] long AutoEnterKey;
This v alue
i t s fs ao r et v lag b nd S elated oaluer efore
a c etOptio
GetOptionFromTerminal Method
Related methods:
SetOptionToTerminal
GetOptionFromTerminal
Sound
Prototype:
[Read/Write] long Sound;
Description:
Can h save v ound
f t talume V rom
c b s hef 0erminal.
t 2 T M t olume s 0 an
Set value 1 to set flagSound.
This v alue
i t s fs ao r et v lag b nd S elated oaluer efore
a c etOptio
GetOptionFromTerminal Method
Related methods:
SetOptionToTerminal
GetOptionFromTerminal
Authentication
Prototype:
[Read/Write] long Authentication;
Description:
Getting a value for terminal’s authentication method. Check Chepter 1.5 for “Terminal
Authentication method” Set value 1 fom flagAuthentication.
This v alue
i t s fs ao r et v lag b ndc S elated alueM efore
o c g all
Related methods:
SetOptionToTerminal
GetOptionFromTerminal
Application
Prototype:
[Read/Write] long Application;
Description:
Getting mode value in terminal program. Terminal can be used for Access, TNA, Meal. For
the reference check Chepter 1.5 “Terminal program mode” To set this vaule 1 in
flagApplication.
This v alue
i t s fs ao r et v lag b ndc S elated alueM efore
o c g all
reference after call GetOptionFromTerminal Method..
Related methods:
SetOptionToTerminal
GetOptionFromTerminal
Antipassback
Prototype:
[Read/Write] long Antipassback;
Description:
Terminal gets antipassback level.
To set, value 1 in flagAntipassback.
This can have following value.
0- Not in Use
1- Authentication during network disconnection.
2- No Authentication during network disconnection.
Related methods:
SetOptionToTerminal
GetOptionFromTerminal
Description:
This v alue
i t s fs ao r et v lag b ndc S elated alueM efore
o c g all
reference after call GetOptionFromTerminal Method.
NetworkType
Getting type value for IP address. If 0, static, or 1 for DHCP.
TerminalIP
Getting Terminal a IP.
Subnet
. Getting Terminal Subnet Mask value.
Gateway
Getting Terminal Getway value
ServerIP
Getting IP value terminal connection.
Related methods:
SetOptionToTerminal
InputIDType
Prototype:
[Read/Write] long InputIDType;
Description:
Getting ID Type value.
value 1 in flagInputIDType for setting
. This value lead to below
0- UserID
1- UniqueID
This v alue
i t s fs ao r et v lag b ndc S elated alueM efore
o c g all
reference after call GetOptionFromTerminal Method.
Related methods:
SetOptionToTerminal
GetOptionFromTerminal
AccessLevel
Prototype:
[Read/Write] long AccessLevel;
Description:
Getting approach level value. Appointed type for limit authentication type from using
input authentication method. 0 will be default value.
set value 1 in flagAccessLevel to use it.
This v alue
i t s fs ao r et v lag b ndc S elated alueM efore
o c g all
reference after call GetOptionFromTerminal Method
Related methods:
SetOptionToTerminal
GetOptionFromTerminal
PrintText
Prototype:
[Read/Write] long PrintText;
Description:
Buffer sequence for the text which will be printed out that the meal printer which is
integrated to the terminal.
This value can only be used when printer is connected to the terminal.
Input value 1 in flagPrintText to set.
This v alue
i t s fs ao r et v lag b ndc S elated alueM efore
o c g all
reference after call GetOptionFromTerminal Method
Related methods:
SetOptionToTerminal
GetOptionFromTerminal
Description:
Getting Lock or Open schedule in the Time zone.
Reference can be done after calling GetDaySchedule Method.
IsUse
Set validation for the Time zone, if 1, time zone validate.
StartHour
Getting Time zone starting time. Start from 0 to 23
StartMinute
Getting minute value from the Time zone. Start from 0 to 59.
EndMinute
Getting end minute from Time zone. Start from 0 to 59.
Related methods:
GetOptionFromTerminal
GetDaySchedule
Month / Day
Prototype:
[ReadOnly] long Month;
[ReadOnly] long Day;
Month
Getting Month value from Date. From 1 to 12.
Day
. Getting Day value. From 1 to 31.
Related methods:
GetOptionFromTerminal
GetHoliday
SetOptionToTerminal
Prototype:
HRESULT SetOptionToTerminal(LONG ClinetID, LONG TerminalID);
Description:
Set terminal option. Need to fill related value on regarding Properties and Method.
Please refer to chepter 4.7.1 for regarding Properties and Method.
Parameters:
ClientID:
ID of requested client (For Client/Server model development.)
Terminal ID:
Terminal ID
Related methods
SetHoliday
SetDaySchedule
Related properties
flagSecuLevel ~ flagSchedule
SecurityLevel
InputIDLength
AutoEnterKey
Sound
Authentication
Application
Antipassback
Callback Event:
EventSetTerminalOption
Event Parameters:
ClientID:
ID of requested client ID (For Client/Server model development.)
TerminalID:
Terminal ID
GetOptionFromTerminal
Prototype:
HRESULT GetOptionFromTerminal(LONG ClinetID, LONG TerminalID);
Description:
Import option from the Terminal. After Method call from EventGetTerminalOption, value
can be found from Properties and Method.
Please refer to chepter 4.7.1 for Properties and Method.
Parameters:
ClientID:
ID of requested client. (For Client/Server model development.)
Related methods
GetHoliday
GetDaySchedule
Related properties
SecurityLevel_1To1
SecurityLevel_1ToN
InputIDLength
AutoEnterKey
Sound
Authentication
Application
Antipassback
InputIDType
AccessLevel
PrintText
NetworkType
TerminalIP
Subnet
Gateway
ServerIP
Port
Callback Event:
EventGetTerminalOption
Event Parameters:
ClientID:
ID of requested client. (For Client/Server model development.)
TerminalID:
SetDaySchedule
Prototype:
HRESULT SetDaySchedule(BOOL Initialize, LONG DayOfWeek, LONG ScheduleType, LONG
Index, LONG StartHour, LONG StartMinute, LONG EndHour, LONG EndMinute);
Description:
This Method is in use of adding Lock or Open Time zone before calling SetOptionToTerminal.
Parameters:
Initialize:
Appoint to initialize and create new Lock & Open Schedule.
If F alse(=0)
T z d imew b aone continuously
ata a ill
ndm e nake dded
o t umber
z If T rue(=1),
f ime o
erase all time zone and create new.
For Schedule, 3 Lock Time zone and 3 Open Time zone each per a day.
DayOfWeek:
Set day and Holiday type.
0 – Sun
1 – Mon
2 – Tue
3 – Wed
4 – Thu
5 – Fri
6 – Sat
7 – Holiday 1
8 – Holiday 2
9 – Holiday 3
ScheduleType:
Index:
StartHour
Getting Time zone start value. Value from 0~23.
StartMinute
Getting Mininute value, From 0~59.
EndHour
Getting Hour value, From 0~23.
EndMinute
Getting minute value from Time zone end. From 0~59.
Related methods
SetOptionToTerminal
Related properties
N/A
Callback Event:
N/A
Event Parameters:
N/A
Prototype:
HRESULT GetDaySchedule(LONG DayOfWeek, LONG ScheduleType, LONG Index);
Description:
This Method is calling GetOptionFromTerminal Method then getting schedule information
from EventGetTerminalOption.
Parameters:
DayOfWeek:
Set date and Holiday Type.
0 – Sun
1 – Mon
2 – Tue
3 – Wed
4 – Thu
5 – Fri
6 – Sat
7 – Holiday 1
8 – Holiday 2
9 – Holiday 3
ScheduleType:
. Set type Lock or Open.
0 – Lock
1 – Open
Index:
Getting Index vaule for Lock and Open Time zone.
1 – Lock 1 or Open 1
2 – Lock 2 or Open 2
3 – Lock 3 or Open 3
Related properties
IsUse, StartHour, StartMinute, EndHour, EndMinute
Callback Event:
N/A
Event Parameters:
N/A
SetHoliday
Prototype:
HRESULT S etHoliday(
BOOL I nitialize,
L H ONG L olidayType,
M L ON
Day);
This Method is used for for adding Holiday before call SetOptiontoTerminal Method.
Holiday can be set as 3 type. Each Type can be set with each Time zone.
Holiday can be added up to 100.
Parameters:
Initialize:
Appoint whether initialize Holiday and start from new.
If this value is False(=0) then Holiday data will be added continuously with data that has
been made internally and make various holiday data. This value is True(=0) then, erase all
holiday and create new.
HolidayType:
Appoint Holiday type 1, 2, 3
1 – Holiday 1
2 – Holiday 2
Month
Getting Month value. Start from 1 to 12.
Day
Getting Day value. Start from 1 to 31.
Related methods
SetOptionToTerminal
Related properties
N/A
Callback Event:
N/A
Event Parameters:
N/A
GetHoliday
Prototype:
HRESULT GetHoliday(LONG Index);
Parameters:
Index:
Set Index value for importing. This value start from 0 to 99.
Related properties
HolidayType, Month, Day
Callback Event:
N/A
Event Parameters:
N/A
Clear
Prototype:
HRESULT Clear();
Description:
This Method erase all internal option setting data.
This is used for when initialize before call GetOptionFromTerminal or after
SetOptionToTerminal.
Parameters:
Related methods
GetOptionFromTerminal
SetOptionToTerminal
Related properties
Callback Event:
N/A
get_ACUStatusValue
Prototype:
long get_ACUStatusValue(long StatusIndex, long ValueIndex)
Description:
This is property for get ACU Status after receive EventACUStatus.
(Refer to UCSAPI_ACU_STATUS_INFO)
StatusIndex
Set status type for get.
#define UCSAPI_ACU_STATUS_PARTITION 0
#define UCSAPI_ACU_STATUS_ZONE 1
#define UCSAPI_ACU_STATUS_LOCK 2
#define UCSAPI_ACU_STATUS_READER 3
ValueIndex
Set index for get.(base is zero)
Be careful not to exceed the maximum value.
#define MAX_ACU_PARTITION 4
#define MAX_ACU_ZONE 8
#define MAX_ACU_LOCK 4
#define MAX_ACU_READER 8
ACUGetReaderVersion
Prototype:
HRESULT ACUGetReaderVersion(long Index, long *pID, long *pType, long *pHW, long *pMajor, long
*pMinor, long *pCustom1, long *pCustom2, long *pOrder);
Description:
This is method for get ACU Reader version after receive EventACUStatus.
(Refer to UCSAPI_ACU_STATUS_INFO)
Index:
Set index for get.
Be careful not to exceed the maximum value.
GetOptionFromACU
Prototype:
HRESULT GetOptionFromACU (LONG ClinetID, LONG TerminalID);
Description:
Import option from the ACU. After Method call from EventGetOptionFromACU, value
can be found from Properties and Method.
(Refer to UCSAPI_ACU_OPTION)
Parameters:
ClientID: See 1.6 Terminology Description
TerminalID: See 1.6 Terminology Description
Related properties
ACUNetType, ACUNetSPort
get_ACUReaderType
get_ACUReaderOpenTime
get_ACUReaderMode
Related methods
ACUGetNetAddress
ACUGetPartLock
ACUGetReaderPassback
ACUGetPartition
ACUGetZone
ACUGetProgramOption
ACUGetDoorOption
ACUGetInputOption
ACUGetSystemOption
Callback Event:
EventGetOptionFromACU
Description:
Set ACU option. Need to fill related value on regarding Properties and Method before call.
(Refer to UCSAPI_ACU_OPTION)
Parameters:
ClientID: See 1.6 Terminology Description
TerminalID: See 1.6 Terminology Description
Related properties
set_ACUReaderType
set_ACUReaderOpenTime
set_ACUReaderMode
Related methods
ClearACUOptionFlag
ClearACUOptionData
SetACUOptionFlag
ACUSetNetAddress
ACUSetPartLock
ACUSetReaderPassback
ACUSetPartition
ACUSetZone
ACUSetProgramOption
ACUSetDoorOption
ACUSetInputOption
ACUSetSystemOption
Callback Event:
EventSetOptionToACU
GetLockScheduleFromACU
Prototype:
Description:
Import lock schedule from the ACU. After Method call from
EventGetLockScheduleFromACU, value can be found from Properties and Method.
(Refer to GetDaySchedule for get schedule value)
Parameters:
ClientID: See 1.6 Terminology Description
TerminalID: See 1.6 Terminology Description
Related properties
Refer to GetDaySchedule in TerminalOption
Related methods
Refer to GetDaySchedule in TerminalOption
Callback Event:
EventGetLockScheduleFromACU
SetLockScheduleToACU
Prototype:
HRESULT SetLockScheduleToACU (LONG ClinetID, LONG TerminalID, long LockIndex);
Description:
Set l ock
s o
chedule
A N t f fr CU.v o eed
r o
P ill aelated
M b aluec n e
this method.
(Refer to SetDaySchedule for get schedule value)
Parameters:
ClientID: See 1.6 Terminology Description
TerminalID: See 1.6 Terminology Description
Related properties
Refer to SetDaySchedule in TerminalOption
Related methods
Refer to SetDaySchedule in TerminalOption
Callback Event:
EventSetLockScheduleFromACU
Description:
It initializes the Siren config value and Siren Count value.
Callback Event:
N/A
SetSirenConfig
Prototype:
HRESULT SetSirenConfig(BYTE Hour, BYTE Minute, BYTE Duration,
B Y T E S u n , B Y T E M o n , B Y T E T u e , B Y T E W e d , B Y T E T h u , B
OffHoliday);
Description:
Set Sirent Config value. Siren Count value will be increased internally.
Callback Event:
N/A
SetSirenToTerminal
Prototype:
HRESULT SetSirenToTerminal(LONG ClientID, LONG TerminalID);
Description:
It transmits to the terminal which designates the Sirent Config value set by SetSirenConfig.
Parameters:
ClientID: 1.6 Refer to the term explanation
TerminalID: 1.6 Refer to the term explanation
Related methods
ClearSirenConfig, SetSirenConfig
GetSirenFromTerminal
Prototype:
HRESULT GetSirenFromTerminal(LONG ClientID, LONG TerminalID);
Description:
Obtaining Siren Config which has set in the terminal.
Parameters:
ClientID: 1.6 Refer to the term explanation
TerminalID: 1.6 Refer to the term explanation
Related methods
GetSirenConfig
Callback Event:
EventGetSirenFromTerminal
GetSirenConfig
Prototype:
HRESULT GetSirenConfig(BYTE index, BYTE* Hour, BYTE* Minute, BYTE* Duration,
BYTE* Sun, BYTE* Mon, BYTE* Tue, BYTE* Wed,
BYTE* Thu, BYTE* Fri, BYTE* Sat, BYTE* OffHoliday);
Description:
When obtaining setting value of the terminal, EventGetSirenFromTerminal will be appeared
and it gets Siren Config value of the terminal through this Method.
Index value increases from 0 and gets Siren Config as much as Siren Count which has issued from
EventGetSirenFromTerminal
Callback Event:
N/A
4.8.1 Properties
It explains about various Property of the interface of ISmartCardLayout
SectorNumber
Prototype:
[ReadOnly] long SectorNumber
Description:
It obtains the number of SectorLayout set on COM.
Everytime when conducting SetSectorLayout, it increases 1 by 1 and when conducing
ClearSectorLayout, it will be initialized as 0.
Related methods:
ClearSectorLayout
SetSectorLayout
4.8.2 Methods
It explains about various Property of the interface of ISmartCardLayout
ClearSectorLayout
Prototype:
HRESULT ClearSectorLayout();
Description:
It initializes SectorLayout Data which has saved on COM.
Parameters:
N/A
Related methods
Related properties
SectorNumber
Callback Event:
N/A
SetSectorLayout
Prototype:
HRESULT SetSectorLayout(LONG Sector, LONG KeyType, BSTR KeyData,
LONG Block, LONG StartPoint, LONG DataLength, BYTE Aid0, BYTE Aid1)
Description:
Set the Sector Layout to COM applying to smartcard Layout.
SectorNumber of internal COM will be increased 1 by 1 when setting.
Parameters:
Sector:
It is Sector Number to be applied. Max. 127 (In case of 8K smartcard)
KeyType:
It designates the type of Key Data to get access to the related Sector.
#define UCSAPI_SMARTCARD_KEYTYPE_A 0x60
#define UCSAPI_SMARTCARD_KEYTYPE_B 0x61
KeyData:
It designates the type of Key Data to get access to the related Sector.
Designation value is Hex String (Ex: “000000FFFFFF”)
Block:
It is Block Number containing real data. (Range: 0 ~ 3)
StartPoint:
It designates the start point where the real data included in the related Block.
DataLength:
It designates the real length of data to be applied.
Aid0, Aid1:
Related methods
ClearSectorLayout
SetSmartCardLayoutToTerminal
Related properties
SectorNumber
Callback Event:
N/A
SetSmartCardLayoutToTerminal
Prototype:
HRESULT SetSmartCardLayoutToTerminal(LONG ClientID, LONG TerminalID,
LONG CardType, LONG ReadType, LONG SerialFormat);
Description:
Set the Card Layout applying when reading card on the terminal transmitting the Sector
information of COM which has saved as Given Parameter and SetSectorLayout.
Parameters:
ClientID: 1.6 Refer to the term explanation
TerminalID: 1.6 Refer to the term explanation
CardType:
Designates the card type. Refer to the define below.
typedef UCSAPI_UINT32 UCSAPI_SMARTCARD_TYPE;
#define UCSAPI_SMARTCARD_TYPE_DATA 0
#define UCSAPI_SMARTCARD_TYPE_FINGER 1
ReadType:
Designates the data type reading card. Refer to the define below.
typedef UCSAPI_UINT32 UCSAPI_SMARTCARD_READTYPE;
#define UCSAPI_SMARTCARD_READTYPE_SERIAL 0
#define UCSAPI_SMARTCARD_READTYPE_DATA 1
#define UCSAPI_SMARTCARD_READTYPE_MAD 2
Related properties
SetSectorLayout
Related methods
Callback Event:
EventSetSmartCardLayout
EventUserFileUpgrading
Prototype:
HRESULT EventUserFileUpgrading(
long ClientID,
long TerminalID,
long CurrentIndex,
long TotalNumber);
Description:
This is event to notify the download progress information to the application program.
Event Prameters
TotalNumber:
This parameter contains the total number of data blocks to be sent.
Reference
SendUserFileToTerminal
EventUserFileUpgraded
Prototype:
HRESULT EventUserFileUpgraded(
long ClientID,
long TerminalID);
Description:
This is event to notify the download complete information to the application program.
Event Prameters
ClientID: See 1.6 Terminology Description
TerminalID: See 1.6 Terminology Description
Reference
SendUserFileToTerminal
EventRegistFace
Prototype:
HRESULT EventRegistFace (
long ClientID,
long TerminalID,
long CurrentIndex,
long TotalNumber,
VARIANT RegFaceData);
Description:
Event Prameters
ClientID: See 1.6 Terminology Description
TerminalID: See 1.6 Terminology Description
CurrentIndex:
This p arameter
c t ontains
c i he
v o urrent
p ndex
f r alue
f f
Base value is 1.
If this value is 0 then this event mean process cancel.
TotalNumber:
This parameter contains the whole input face value. In normal regist, this value is 5, in quick regist,
this value is 3. If this value is 0 then this event mean process cancel.
RegFaceData:
Real input face data.(data type is byte array)
Reference
RegistFaceFromTerminal
EventACUStatus
Prototype:
HRESULT EventACUStatus (
long ClientID,
long TerminalID,
long Notice,
VARIANT binStatus,
BSTR strStatus);
Description:
This is periodically event to notify the status of ACU.
Event Prameters
ClientID: See 1.6 Terminology Description
TerminalID: See 1.6 Terminology Description
Notice:
This parameter mean that ACU has any problem.
binStatus:
The binary array for struct of ACU_STATUS.
Reference
SetDoorStatusToACU
EventGetLockScheduleFromACU
Prototype:
HRESULT EventGetLockScheduleFromACU (
long ClientID,
long TerminalID,
long LockIndex);
Description:
This is response event for call GetLockScheduleFromACU().
When receive this event, you can get schedule valus using property and method about schedule.
Event Prameters
ClientID: See 1.6 Terminology Description
TerminalID: See 1.6 Terminology Description
LockIndex:
Lock index of ACU for get schedule.
Reference
GetLockScheduleFromACU
EventSetLockScheduleToACU
Prototype:
HRESULT EventSetLockScheduleToACU (
long ClientID,
long TerminalID);
Description:
This is response event for call SetLockScheduleToACU().
Event Prameters
ClientID: See 1.6 Terminology Description
TerminalID: See 1.6 Terminology Description
Reference
EventSetSirenToTerminal
Prototype:
HRESULT EventSetSirenToTerminal(long ClientID, long TerminalID);
Description:
SDK module notifies this event as the result of Sirent Config set on the terminal.
Event Prameters
ClientID: 1.6 Refer to the term explanation
TerminalID: 1.6 Refer to the term explanation
Reference
ClearSirenConfig
SetSirenConfig
SetSirenToTerminal
EventGetSirenFromTerminal
Prototype:
HRESULT EventGetSirenFromTerminal(long ClientID, long TerminalID);
Description:
SDK module notifies this event as the result of Sirent Config set on the terminal.
Event Prameters
ClientID: 1.6 Refer to the term explanation
TerminalID: 1.6 Refer to the term explanation
Reference
GetSirenFromTerminal
GetSirenConfig
EventSetSmartCardLayout
Prototype:
HRESULT EventSetSmartCardLayout(long ClientID, long TerminalID);
Description:
SDK module notifies this event as the result of Sirent Config set on the terminal.
5. Error definitions
Define all Error value and about Error value from UCS SDK.
5.1 Success
Definition for Error value in Success..
UCSAPIERR_NONE
Prototype:
LONG UCSAPIERR_NONE (0)
Description:
Error value when sccuess. Means that not Error but success in function.
UCSAPIERR_INVALID_POINTER
Prototype:
UCSAPIERR_INVALID_POINTER (1)
Description:
Wrong Pointer value in use.
.
UCSAPIERR_INVALID_TYPE
Prototype:
Description:
Wrong type value is in use
.
UCSAPIERR_INVALID_PARAMETER
Prototype:
LONG UCSAPIERR_INVALID_PARAMETER (3)
Description:
Used for wrong parameter.
.
UCSAPIERR_INVALID_DATA
Prototype:
LONG UCSAPIERR_INVALID_DATA (4)
Description:
Use in wrong data
UCSAPIERR_FUNCTION_FAIL
Prototype:
LONG UCSAPIERR_FUNCTION_FAIL (5)
Description:
. Error from internal function and fail processing
UCSAPIERR_NOT_SERVER_ACTIVE
Prototype:
LONG UCSAPIERR_NOT_SERVER_ACTIVE (6)
Description:
Server is not on start
Description:
Terminal is not connected
UCSAPIERR_PROCESS_FAIL
Prototype:
LONG UCSAPIERR_PROCESS_FAIL (8)
Description:
Fail during process
UCSAPIERR_USER_CANCEL
Prototype:
LONG UCSAPIERR_USER_CANCEL (9)
Description:
Process cancel from a user.
UCSAPIERR_UNKNOWN_REASON
Prototype:
LONG UCSAPIERR_UNKNOWN_REASON (16)
Description:
Unknown error.
UCSAPIERR_CODE_SIZE
Prototype:
LONG UCSAPIERR_CODE_SIZE (513)
Description:
UCSAPIERR_USER_ID_SIZE
Prototype:
LONG UCSAPIERR_USER_ID_SIZE (514)
Description:
Maximum size of user ID exceed.
UCSAPIERR_USER_NAME_SIZE
Prototype:
LONG UCSAPIERR_USER_NAME_SIZE (515)
Description:
Exceed of user name length.
UCSAPIERR_UNIQUE_ID_SIZE
Prototype:
LONG UCSAPIERR_UNIQUE_ID_SIZE (516)
Description:
Exceed of UNIQUE ID length.
UCSAPIERR_INVALID_SECURITY_LEVEL
Prototype:
LONG UCSAPIERR_INVALID_SECURITY_LEVEN (517)
Description:
Exceed of authentication level.
UCSAPIERR_PASSWORD_SIZE
Prototype:
LONG UCSAPIERR_PASSWORD_SIZE (518)
UCSAPIERR_PICTURE_SIZE
Prototype:
LONG UCSAPIERR_PICTURE _SIZE (519)
Description:
User’s Picture image type is not in support
UCSAPIERR_INVALID_PICTURE_TYPE
Prototype:
LONG UCSAPIERR_INVALID_PICTURE_TYPE (520)
Description:
User’s Picture image type is not in support
UCSAPIERR_RFID_SIZE
Prototype:
LONG UCSAPIERR_RFID_SIZE (521)
Description:
Exceed of maximum card number length
UCSAPIERR_MAX_CARD_NUMBER
Prototype:
LONG UCSAPIERR_MAX_CARD_NUMBER (529)
Description:
Exceed maximum card capacity. Maximum 5 card can be stored per user.
.
UCSAPIERR_MAX_FINGER_NUMBER
Prototype:
LONG UCSAPIERR_MAX_FINGER_NUMBER (530)
UCSAPIERR_INVALID_USER
Prototype:
LONG UCSAPIERR_INVALID_USER (769)
Description:
Unregistered user..
UCSAPIERR_UNAUTHORIZED
Prototype:
LONG UCSAPIERR_UNAUTHORIZED (770)
Description:
Fingerprint, card, PIN matching fail.
UCSAPIERR_PERMISSION
Prototype:
LONG UCSAPIERR_PERMISSION (771)
Description:
No autoriztion.
UCSAPIERR_FINGER_CAPTURE_FAIL
Prototype:
LONG UCSAPIERR_FINGER_CAPTURE_FAIL (772)
Description:
FP capture fail
Description:
Multiple authentication. Prevent to have duplicate by using card from meal management
UCSAPIERR_ANTIPASSBACK
Prototype:
LONG UCSAPIERR_ANTIPASSBACK (774)
Description:
Authentication fail for antipassback.
UCSAPIERR_NETWORK
Prototype:
LONG UCSAPIERR_NETWORK (775)
Description:
No response from a server due to network problem.
UCSAPIERR_SERVER_BUSY
Prototype:
LONG UCSAPIERR_SERVER_BUSY (776)
Description:
Authentication has not been made due to busy server.
UCSAPIERR_FACE_DETECTION
Prototype:
LONG UCSAPIERR_FACE_DETECTION (777)
Description:
Face detection failed when it set.