Sei sulla pagina 1di 20

BioStar SDK

For beginners
2
Suprema Inc.
Table of Contents
Introduction to BioStar SDK
Direct mode & Server mode
Device Matching & Server Matching (in Server mode)
Comparison between Server mode & Direct mode
BioStar APIs
Communication (Direct Mode Only)
Device Control (Server Mode & Direct Mode)
User Management (Server Mode & Direct Mode)
Configuration (Server Mode & Direct Mode)
Access Control (Server Mode & Direct Mode)
Smartcard, Log (Server Mode & Direct Mode)
Startup (Server Mode Only)
Initialize (Server Mode Only)
Communication (Server mode Only)
Log (Server mode Only)
Authentication / Matching (Server mode Only)
3
Suprema Inc.
Introduction to BioStar SDK
Suprema
BioStar
S/W
BioStar
SDK
My Style,
My Application
(Using BioStar SDK)
Control
Control
4
Suprema Inc.
Server
Direct Mode & Server Mode
Connection
Device
Configure
Setting
Enroll
User
Authentication
ReadLog
Using Direct Mode
Server
Connected
Device
Configure
Setting
Initialize and Start
Realtime Log
Using Server Mode
Disconnect
Disconnected
Callback function in server mode
BioStar SDK supports 2 type of mode to connect a device.
Server Mode
Direct Mode
5
Suprema Inc.
Device Matching & Server Matching (in Server mode)
Authentication
Server
Connection
Device
Configure
Setting
Enroll User
(If you want
device matching)
Initializing and Start
Device Matching
Realtime Log
Disconnected
Authentication
Server
Connection
Device
Configure
Setting
Enroll User
(No need)
Initializing and Start
Server Matching
Realtime Log
Disconnected
X
Matching
Matching Result
6
Suprema Inc.
Comparison between Server Mode & Direct Mode
Server mode Direct mode
Connection Device Server Server Device
Read/Write
Configuration
to Device
O O
User Enroll Server matching : Not required.
Device matching : Required.
Device matching : Required.
Matching Server matching (Using BioMini SDK)
Device matching
Device matching
Get Log Receive Automatically,
Call ReadLog periodically
Call ReadLog periodically
Constraints Not available in case of
Device (Public IP Address) &
Server (Internal IP Address)
Not available in case of
Server (Public IP Address) &
Device (Internal IP Address)
7
Suprema Inc.
BioStar APIs Communication (Direct Mode Only)
Communication API
BS_OpenSocket
BS_OpenInteralUDP
BS_OpenSerial
BS_OpenSerial485
BS_OpenUSB

Server
Connection
Device
Connect
Communication API
BS_CloseSocket
BS_CloseInteralUDP
BS_CloseSerial
BS_CloseSerial485
BS_CloseUSB

Server
Close
Device
Disconnect
8
Suprema Inc.
BioStar APIs Device Control (Server Mode & Direct Mode)
Device API
BS_Reset
BS_DisableCommunication
BS_Disable
BS_Enable
BS_SetDeviceID

Server
Get/Set
Device
Device Control
Display Setup API
BS_SetBackground
BS_SetSound
BS_SetLanguageFile
BS_SendNotice

Server
Set
Device
Display & Sound Configuration
9
Suprema Inc.
BioStar APIs User Management (Server mode & Direct mode)
User Management API
BS_EnrollUserEx
BS_EnrollMultipleUserEx
BS_ReadRFCardIDEx
BS_GetUserEx
BS_DeleteUser

Server
Get/Set
Device
User Management
10
Suprema Inc.
BioStar APIs Configuration (Server mode & Direct mode)
Server
Get/Set
Device
Configuration API
BS_ReadDisplayConfig
BS_WriteFingerprintConfig
BS_WriteTnaEventConfig
BS_WriteIPConfig
BS_WriteConfig

Change Configuration
11
Suprema Inc.
BioStar APIs Access Control (Server mode & Direct mode)
Access Control API
BS_SetAllTimeScheduleEx
BS_setAllHolidayEx
BS_GetAllAccessGroupEx
BS_RelayControlEx
BS_DoorControl

Server
Get/Set
Device
Access Control
12
Suprema Inc.
BioStar APIs Smartcard, Log (Server mode & Direct mode)
Smartcard API
BS_WriteMifareConfiguration
BS_ReadMifareCard
BS_WriteiClassCard
BS_ChangeiClassKey
BS_AddBlacklist

Server
Get/Set
Device
Smartcard
Log Management API
BS_GetLogCount
BS_ReadLogCache
BS_ReadLog
BS_DeleteAllLog

Server
Get/Set
Device
Log Management
13
Suprema Inc.
Server API
Server API
14
Suprema Inc.
BioStar APIs Startup (Server Mode Only)
Server API
BS_StartServerApp
Server
Start in server mode
Device
Start Server
Server API
BS_StopServerApp
Server
Stop server mode
Device
Stop Server
15
Suprema Inc.
BioStar APIs Initialize (Server Mode Only)
Server API
BS_SetConnectedCallback
BS_SetDisconnectedCallback
BS_SetRequestStartedCallback
BS_SetLogCallback
BS_SetImageLogCallback
BS_SetRequestUserInfoCallback
BS_SetRequestMatchingCallback

Server
Register Callback function
Device
Registration of Callback
16
Suprema Inc.
BioStar APIs Communication (Server Mode Only)
Server API
Defined Connected Callback
Function is called.
If a device is connected to the
server, this function is called
automatically.
Server
Connected
Device
Connected Callback
Server API
Defined Disconnected Callback
function is called.
If a device is disconnected to
the server, this function is
called automatically.
Server
Disconnected
Device
Disconnected Callback
17
Suprema Inc.
BioStar APIs Log (Server Mode Only)
Server API
Defined Log Callback function is
called.
If a log is created, this function
is called.
Server
Log Received
Device
Log Callback
Server API
Defined Imagelog Callback
function is called.
If an image log is created, this
function is called.
Server
Image Log
Device
Imagelog Callback
18
Suprema Inc.
BioStar APIs Authentication / Matching (Server Mode Only)
Server API
Defined UserInfo Callback
function is called.
This function is called in below
cases.
- Card verification.
- ID + Password (Fingerprint, )
- Card + Fingerprint (ID + FP, )

Server
User Authentication
Device
UserInfo Callback
Server API
Defined Matching Callback
function is called.
If a user tries to identify/verify
a finger, this function is called.
Server
Matching
Device
Matching Callback
19
Suprema Inc.
How to Set A Device In Direct Mode
Open
Int hTcpCon;
BS_OpenSocket (hTCPConn, )
Server
Connect Device
In Direct Mode
Get Handle of Device
Device
Device
Control (handle)
Server
Control
BEConfigData cd;
// Set My Configure
cd.wiegandMode = xxx
BS_WriteConfig (hTCPConn, , &cd)
Open and Get handle.
Directly control by the handle.
20
Suprema Inc.
How to Set A Device in Server Mode
1. Registration of My callback functions
BS_SetConnectedCallback (MyConCBFunc, );
BS_SetDisconnectedCallback (MyDisconCB, );
BS_SetLogCallback (MyLogCB, );
Server
Connect Device
In Server Mode
Get Handle
of Device
Device
Device
Control (handle)
Server
3. Received my events
MyConCBFunc(handle, deviceID, );
{
// My Job
// BS_WriteConfig (handle, );
}
When the device is connected, this function is called
(At this time, the device handle Come in to parameters)
2. Startup in server mode
BS_StartServerApp ();
By using this handle,
Device can be controlled

Potrebbero piacerti anche