Professional Documents
Culture Documents
FALCOSDK v1.0D PDF
FALCOSDK v1.0D PDF
FALCOSDK v1.0D PDF
Page 1 of 39
FALCOIP
Table of content
TABLE OF CONTENT........................................................................................................................................2
1 INTRODUCTION...............................................................................................................................................3
2 COMPONENTS..................................................................................................................................................3
2.1 FALCO COMMAND CLIENT...................................................................................................................................4
2.1.1 Controller Registry.................................................................................................................................4
Sample Code...................................................................................................................................................6
2.1.2 Controller Parameters............................................................................................................................7
Sample Code...................................................................................................................................................9
2.1.3 Card Register........................................................................................................................................10
Sample Code.................................................................................................................................................12
2.1.3.b Card Register with Expiry Date........................................................................................................12
2.1.4 Visitor Card Register............................................................................................................................15
Sample Code.................................................................................................................................................17
2.1.5 Time Set.................................................................................................................................................18
Sample Code.................................................................................................................................................19
2.1.6 Time Zone..............................................................................................................................................21
Sample Code.................................................................................................................................................22
2.1.7 Date and Time setting...........................................................................................................................24
Sample Code.................................................................................................................................................25
2.1.8 Holiday Setting......................................................................................................................................26
Sample Code.................................................................................................................................................27
2.1.9 Clear and Reset Memory.......................................................................................................................28
Sample Code.................................................................................................................................................29
2.1.10 Get Firmware Information..................................................................................................................31
Sample Code.................................................................................................................................................31
2.1.11 Pulse Door Open................................................................................................................................32
Sample Code.................................................................................................................................................32
2.1.12 LCD Message......................................................................................................................................33
2.2 FALCO TRANSACTIONS SERVER...........................................................................................................................34
Sample Code.................................................................................................................................................34
2.3 FALCO TRANSACTIONS CLIENT...........................................................................................................................36
Sample Code ................................................................................................................................................37
Transaction Code..........................................................................................................................................38
Page 2 of 39
FALCOIP
1 Introduction
2 Components
Component Description
a. FalcoCommandClient • to send commands to the controller
• to receive configurations from the controller
• to perform controller discovery functions
b. FalcoTransactionsServer • to receive transactions from the controllers
c. FalcoTransactionsClient • to receive transactions from the Transactions
Server
Page 3 of 39
FALCOIP
Return Value:
None
This command is used to reset all the controller information currently stored by FalcoNetworkLib.
This must be run before any other commands during the controller registry process to obtain the latest
controller information from the network.
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
int GetControllerCount();
Parameters:
None
Return Value:
Returns the number of controllers that were registered
Once the FalcoBroadcastGetNetworkParameter has been called, use this command to obtain the
number of controllers that registered to the server. This is used in conjunction with the
EnumControllerInfo function.
Page 4 of 39
FALCOIP
Return Value:
Returns True if aidx is valid and information is successfully retrieved.
This function allows you to obtain the controller information. aidx is a zero-based index that is used to
retrieve a particular controller information.
All controllers have a unique MAC address. Use this MAC address to reconfigure the network
parameters of a specific controller.
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
Return Value:
TCPPort Number for Firmware Version T2.28.221SEAI is 1008
TCPPort Number for Firmware Version T2.28.021SEAI is 1007
This function allows you to specifically configure a controller based on its known MAC address.
AcmdStruct definition:
Data Member Description
byte[2] Mode Reserved. Please set to 0.
Page 5 of 39
FALCOIP
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
Sample Code
Option Explicit
Dim cmdobj As New FalcoNetworkLib.FalcoCommandClient
cmdobj.ResetControllerCount
If cmdobj.FalcoBroadcastGetNetworkParameter("255.255.255.255", 2003, msg) <> 0 then
MsgBox msg
End If
End Sub
List1.Clear
cnt = cmdobj.GetControllerCount
For i = 0 To cnt - 1
If Not cmdobj.EnumControllerInfo(i, ctrlip, ctrlmac, devicename) Then
Exit For
End If
List1.AddItem "IP: " & ctrlip & " MAC: " & ctrlmac & " Name: " & devicename
Next
End Sub
Page 6 of 39
FALCOIP
AutoPinStruct Detail
Data Member Description
byte AutoPin_TZ Anto pin number enable time zone
int FalcoSetDoorParameter (const char *aipaddress, int aport, int adoorid, DoorParameterStruct
&adoorparameter , char *aerrormsg);
Parameters:
Page 7 of 39
FALCOIP
aipaddress – the IP address of the controller to send this command to. If Server is at a different
subnet or you wish to broadcast this message to multiple controllers, you can use the broadcast
addresses (ie global broadcast 255.255.255.255 or subnet broadcast XXX.XXX.XXX.255)
aport – always should be 2003
adoorid – a controller door id that you would like to request for controller parameters
adoorparameter – a new door parameter to be set. Please refer to the table DoorParameterStruct
above for further details.
aerrormsg – a buffer to store the error message if the library encountered any errors sending the
command
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This command use to set the door parameter into the controller selected. All the controller information
are able to be adjusted.
int FalcoGetDoorParameter (const char *aipaddress, int aport, int adoorid, DoorParameterStruct
& areplystruct, char *aerrormsg);
Parameters:
aipaddress – the IP address of the controller to send this command to. If Server is at a different
subnet or you wish to broadcast this message to multiple controllers, you can use the broadcast
addresses (ie global broadcast 255.255.255.255 or subnet broadcast XXX.XXX.XXX.255)
aport – always should be 2003
adoorid – a controller door id that you would like to request for controller parameters
areplystruct – door parameter to be retrieve from controller. Please refer to the table
DoorParameter above for further details.
aerrormsg – a buffer to store the error message if the library encountered any errors sending the
command
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This function allows you to get the retrieve all the information for that controller which you selected.
Page 8 of 39
FALCOIP
Sample Code
Option Explicit
Dim cmdobj As New FalcoNetworkLib.FalcoCommandClient
Page 9 of 39
FALCOIP
int PinNo 4 digit for the card accept to use card plus
pin mode.
Parameters:
aipaddress – the IP address of the controller to send this command to. If Server is at a different
subnet or you wish to broadcast this message to multiple controllers, you can use the broadcast
addresses (ie global broadcast 255.255.255.255 or subnet broadcast XXX.XXX.XXX.255)
aport – always should be 2003
acarddb – new card info to be set. Please refer to the table CardDbStruct above for further details.
aerrormsg – a buffer to store the error message if the library encountered any errors sending the
command
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This function allows you to add new card information into a controller
int FalcoQuickClearCardDb (const char *aipaddress, int aport, int adoorid, int acardno, char
*aerrormsg);
Parameters:
aipaddress – the IP address of the controller to send this command to. If Server is at a different
subnet or you wish to broadcast this message to multiple controllers, you can use the broadcast
addresses (ie global broadcast 255.255.255.255 or subnet broadcast XXX.XXX.XXX.255)
aport – always should be 2003
adoorid – a controller door id that you would like to request for card info
acarddb – card info to be delete from controller. Please refer to the table CardDbStruct above for
further details.
aerrormsg – a buffer to store the error message if the library encountered any errors sending the
command
Page 10 of 39
FALCOIP
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This command allows you to delete one card from the selected controller.
int FalcoQuickGetCardDb (const char *aipaddress, int aport, int adoorid, int acardno,
CardDbStruct &areplystruct, char *aerrormsg);
Parameters:
aipaddress – the IP address of the controller to send this command to. If Server is at a different
subnet or you wish to broadcast this message to multiple controllers, you can use the broadcast
addresses (ie global broadcast 255.255.255.255 or subnet broadcast XXX.XXX.XXX.255)
aport – always should be 2003
adoorid – a controller door id that you would like to request for card info
acardno – a card number that you would like to request from controller
acarddb – a card info to be read. Please refer to the table CardDbStruct above for further details.
aerrormsg – a buffer to store the error message if the library encountered any errors sending the
command
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This command is used to send a command to the controller to reply card information base on the card
number you passed.
int FalcoClearAllCardDb (const char *aipaddress, int aport, int adoorid char *aerrormsg);
Parameters:
aipaddress – the IP address of the controller to send this command to. If Server is at a different
subnet or you wish to broadcast this message to multiple controllers, you can use the broadcast
addresses (ie global broadcast 255.255.255.255 or subnet broadcast XXX.XXX.XXX.255)
aport – always should be 2003
adoorid – a controller door id that you want to clear card info.
aerrormsg – a buffer to store the error message if the library encountered any errors sending the
command
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This command allows you to clear all the card information in a controller that you specify.
Page 11 of 39
FALCOIP
Sample Code
Option Explicit
Dim cmdobj As New FalcoNetworkLib.FalcoCommandClient
param.CardNo = 1
param.PinNo = 0
param.AccessTimeZone = 1
param.LiftAccessLvl = 1
Page 12 of 39
FALCOIP
int PinNo 4 digit for the card accept to use card plus
pin mode.
int FalcoSetCardDb64(const char *aipaddress, int aport, int doorid, CardDb64Struct &acarddb,
char *aerrormsg);
Parameters:
aipaddress – the IP address of the controller to send this command to. If Server is at a different
subnet or you wish to broadcast this message to multiple controllers, you can use the broadcast
addresses (ie global broadcast 255.255.255.255 or subnet broadcast XXX.XXX.XXX.255)
aport – always should be 2003
doorid – 0 for first door and 1 for extension door
acarddb – new card info to be set. Please refer to the table CardDb64Struct above for further
details.
aerrormsg – a buffer to store the error message if the library encountered any errors sending the
command
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This function allows you to add new card information with expiry date into a controller
int FalcoClearCardDb64 (const char *aipaddress, int aport, int adoorid, int acardnoseg1, int
acardnoseg2, char *aerrormsg);
Parameters:
aipaddress – the IP address of the controller to send this command to. If Server is at a different
subnet or you wish to broadcast this message to multiple controllers, you can use the broadcast
addresses (ie global broadcast 255.255.255.255 or subnet broadcast XXX.XXX.XXX.255)
aport – always should be 2003
adoorid – a controller door id that you would like to request for card info
acardnoseg1 – Reserv . always put 0.
Acardnoseg2 – Card no you want to delete from controller.
aerrormsg – a buffer to store the error message if the library encountered any errors sending the
command
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This command allows you to delete one card from the selected controller.
Page 13 of 39
FALCOIP
int FalcoGetCardDb64 (const char *aipaddress, int aport, int adoorid, int acardnoSeg1, int
acardnoSeg2 CardDb64Struct &areplystruct, char *aerrormsg);
Parameters:
aipaddress – the IP address of the controller to send this command to. If Server is at a different
subnet or you wish to broadcast this message to multiple controllers, you can use the broadcast
addresses (ie global broadcast 255.255.255.255 or subnet broadcast XXX.XXX.XXX.255)
aport – always should be 2003
adoorid – a controller door id that you would like to request for card info
acardnoseg1 – Reserv field. Default 0
acardnoseg2 – the card no to be read.
acarddb – a card info to be read. Please refer to the table CardDb64Struct above for further
details.
aerrormsg – a buffer to store the error message if the library encountered any errors sending the
command
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This command is used to send a command to the controller to reply card information base on the card
number you passed.
.Sample Code
Option Explicit
Dim cmdobj As New FalcoNetworkLib.FalcoCommandClient
Param.CardType = 0
param.CardNoSeg1 = 0
param.CardNoSeg2 = 1
param.PinNo = 0
param.AccessTimeZone = 1
param.LiftAccessLvl = 1
Page 14 of 39
FALCOIP
CardDbStruct Detail
Data Member Description
byte AccessTimeZone Access time zone
int PinNo 4 digit for the card accept to use card plus
pin mode.
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This function allows you to add new visitor card information into a controller
int FalcoQuickClearVisitorCardDb (const char *aipaddress, int aport, int adoorid, int acardno,
char *aerrormsg);
Parameters:
Page 15 of 39
FALCOIP
aipaddress – the IP address of the controller to send this command to. If Server is at a different
subnet or you wish to broadcast this message to multiple controllers, you can use the broadcast
addresses (ie global broadcast 255.255.255.255 or subnet broadcast XXX.XXX.XXX.255)
aport – always should be 2003
adoorid – a controller door id that you would like to request for card info
acarddb – visitor card info to be delete from controller. Please refer to the table
VisitorCardDbStruct above for further details.
aerrormsg – a buffer to store the error message if the library encountered any errors sending the
command
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This command allows you to delete one visitor card from the selected controller.
int FalcoQuickGetVisitorCardDb (const char *aipaddress, int aport, int adoorid, int acardno,
VisitorCardDbStruct &areplystruct, char *aerrormsg);
Parameters:
aipaddress – the IP address of the controller to send this command to. If Server is at a different
subnet or you wish to broadcast this message to multiple controllers, you can use the broadcast
addresses (ie global broadcast 255.255.255.255 or subnet broadcast XXX.XXX.XXX.255)
aport – always should be 2003
adoorid – a controller door id that you would like to request for card info
acardno – a visitor card number that you would like to request from controller
acarddb – a visitor card info to be read. Please refer to the table VisitorCardDbStruct above for
further details.
aerrormsg – a buffer to store the error message if the library encountered any errors sending the
command
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This command is used to send a command to the controller to reply card information base on the card
number you passed.
int FalcoClearAllVisitorCardDb (const char *aipaddress, int aport, int adoorid char *aerrormsg);
Parameters:
aipaddress – the IP address of the controller to send this command to. If Server is at a different
subnet or you wish to broadcast this message to multiple controllers, you can use the broadcast
addresses (ie global broadcast 255.255.255.255 or subnet broadcast XXX.XXX.XXX.255)
aport – always should be 2003
adoorid – a controller door id that you want to clear card info.
aerrormsg – a buffer to store the error message if the library encountered any errors sending the
command
Return Value:
Page 16 of 39
FALCOIP
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This command allows you to clear all the card information in a controller that you specify.
Sample Code
Option Explicit
Dim cmdobj As New FalcoNetworkLib.FalcoCommandClient
param.CardNo = CardNo
param.AccessTimeZone = TimeZone
param.PinNo = PinNo
param.Year = Year(ExpiryDate)
param.Mon = Month(ExpiryDate)
param.Day = Day(ExpiryDate)
param.Hour = Hour(ExpiryDate)
param.Min = Minute(ExpiryDate)
Page 17 of 39
FALCOIP
int FalcoQuickSetTimeset (const char *aipaddress, int aport, int adoorid, TimeSetStruct
&atimeset, char *aerrormsg);
Parameters:
aipaddress – the IP address of the controller to send this command to. If Server is at a different
subnet or you wish to broadcast this message to multiple controllers, you can use the broadcast
addresses (ie global broadcast 255.255.255.255 or subnet broadcast XXX.XXX.XXX.255)
aport – always should be 2003
adoorid – a controller door id to be assign..
atimeset – time set information to be set into controller. Please refer to the table TimeSetStruct
above for further details
aerrormsg – a buffer to store the error message if the library encountered any errors sending the
command
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This command use to set the time set into the controller selected.
int FalcoQuickGetTimeset (const char *aipaddress, int aport, int adoorid, byte atimeset,
TimeSetStruct &areplystruct, char *aerrormsg);
Parameters:
Page 18 of 39
FALCOIP
aipaddress – the IP address of the controller to send this command to. If Server is at a different
subnet or you wish to broadcast this message to multiple controllers, you can use the broadcast
addresses (ie global broadcast 255.255.255.255 or subnet broadcast XXX.XXX.XXX.255)
aport – always should be 2003
adoorid – a controller door id to be assign..
atimeset – time set number to retrieve the time set information from controller
areplystruct – a time set info to be read. Please refer to the table TimeSetStruct above for further
details.
aerrormsg – a buffer to store the error message if the library encountered any errors sending the
command
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This function allow to retrieve the time set information from the selected controller
int FalcoClearTimeset (const char *aipaddress, int aport, int adoorid char *aerrormsg);
Parameters:
aipaddress – the IP address of the controller to send this command to. If Server is at a different
subnet or you wish to broadcast this message to multiple controllers, you can use the broadcast
addresses (ie global broadcast 255.255.255.255 or subnet broadcast XXX.XXX.XXX.255)
aport – always should be 2003
adoorid – a controller door id to be assign..
aerrormsg – a buffer to store the error message if the library encountered any errors sending the
command
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This command allows you to clear all the time set information in a controller that you specify.
Sample Code
Option Explicit
Dim cmdobj As New FalcoNetworkLib.FalcoCommandClient
param.TimesetNo = 1
param.StartTimeHour1 = 8
param.StartTimeMin1 = 30
param.EndTimeHour1 = 17
param.EndTimeMin1 = 30
param.StartTimeHour2 = 0
param.StartTimeMin2 = 0
param.EndTimeHour2 = 0
param.EndTimeMin2 = 0
param.StartTimeHour3 = 0
param.StartTimeMin3 = 0
param.EndTimeHour3 = 0
param.EndTimeMin3 = 0
Page 19 of 39
FALCOIP
Page 20 of 39
FALCOIP
int FalcoQuickSetTimezone (const char *aipaddress, int aport, int adoorid, TimezoneStruct &
atimezone, char *aerrormsg);
Parameters:
aipaddress – the IP address of the controller to send this command to. If Server is at a different
subnet or you wish to broadcast this message to multiple controllers, you can use the broadcast
addresses (ie global broadcast 255.255.255.255 or subnet broadcast XXX.XXX.XXX.255)
aport – always should be 2003
adoorid – a controller door id to be assign..
atimezone – time zone information to be set into controller. Please refer to the table
TimeZoneStruct above for further details
aerrormsg – a buffer to store the error message if the library encountered any errors sending the
command
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This command use to set the time zone into the controller selected.
int FalcoQuickGetTimeZone (const char *aipaddress, int aport, int adoorid, byte atimezone,
TimezoneStruct & areplystruct, char *aerrormsg);
Parameters:
aipaddress – the IP address of the controller to send this command to. If Server is at a different
subnet or you wish to broadcast this message to multiple controllers, you can use the broadcast
addresses (ie global broadcast 255.255.255.255 or subnet broadcast XXX.XXX.XXX.255)
aport – always should be 2003
adoorid – a controller door id to be assign.
atimezone – time zone number to retrieve the time zone information from controller
Page 21 of 39
FALCOIP
areplystruct – a time zone info to be read. Please refer to the table TimeZoneStruct above for
further details.
aerrormsg – a buffer to store the error message if the library encountered any errors sending the
command
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This function allow to retrieve the time zone information from the selected controller
int FalcoClearTimeZone (const char *aipaddress, int aport, int adoorid char *aerrormsg);
Parameters:
aipaddress – the IP address of the controller to send this command to. If Server is at a different
subnet or you wish to broadcast this message to multiple controllers, you can use the broadcast
addresses (ie global broadcast 255.255.255.255 or subnet broadcast XXX.XXX.XXX.255)
aport – always should be 2003
adoorid – a controller door id to be assign..
aerrormsg – a buffer to store the error message if the library encountered any errors sending the
command
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This command allows you to clear all the time zone information in a controller that you specify.
Sample Code
Option Explicit
Dim cmdobj As New FalcoNetworkLib.FalcoCommandClient
param.TimeZoneNo = 1
param.MonTimeSet = 1
param.TueTimeSet = 1
param.WedTimeSet = 1
param.ThuTimeSet = 1
param.FriTimeSet = 1
param.SatTimeSet = 0
param.SunTimeSet = 0
Page 22 of 39
FALCOIP
Page 23 of 39
FALCOIP
int FalcoSetDateTime (const char *aipaddress, int aport, int adoorid, int ayear, byte amonth, byte
aday, byte ahour, byte aminute, byte asecond, char *aerrormsg);
Parameters:
aipaddress – the IP address of the controller to send this command to. If Server is at a different
subnet or you wish to broadcast this message to multiple controllers, you can use the broadcast
addresses (ie global broadcast 255.255.255.255 or subnet broadcast XXX.XXX.XXX.255)
aport – always should be 2003
adoorid – a controller door id to be assign.
ayear – a year of date
amonth – a month of date
aday – a day of date
ahour – a hour of the time
aminute – a minute of the time
asecond – a second of the time
aerrormsg – a buffer to store the error message if the library encountered any errors sending the
command
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This function allows you to set the date time for the controller selected, or for all the controllers.
int FalcoGetDateTime (const char *aipaddress, int aport, int adoorid, DateTimeStruct &
areplystruct, char *aerrormsg);
Parameters:
aipaddress – the IP address of the controller to send this command to. If Server is at a different
subnet or you wish to broadcast this message to multiple controllers, you can use the broadcast
addresses (ie global broadcast 255.255.255.255 or subnet broadcast XXX.XXX.XXX.255)
aport – always should be 2003
adoorid – a controller door id to be assign.
areplystruct – a time info to be read. Please refer to the table DateTimeStruct above for further
details.
Page 24 of 39
FALCOIP
aerrormsg – a buffer to store the error message if the library encountered any errors sending the
command
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This function allows retrieve the date and time for the controller from the selected controller. You
only can get once in a time
Sample Code
Option Explicit
Dim cmdobj As New FalcoNetworkLib.FalcoCommandClient
nResult = CommandObj.FalcoSetDateTime ("192.168.0.23", 2003, 0, 2005, 10, 19, 12, 15, 30, msg)
If nResult <> 0 Then
MsgBox msg
End If
End Sub
Page 25 of 39
FALCOIP
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This function allows you set holiday info into the controller selected.
int FalcoQuickGetHolidayTimeSet (const char *aipaddress, int aport, int adoorid, byte
aholidaytimeset, HolidayTimesetStruct &areplystruct, char *aerrormsg);
Parameters:
aipaddress – the IP address of the controller to send this command to. If Server is at a different
subnet or you wish to broadcast this message to multiple controllers, you can use the broadcast
addresses (ie global broadcast 255.255.255.255 or subnet broadcast XXX.XXX.XXX.255)
aport – always should be 2003
adoorid – a controller door id to be assign.
aholidaytimeset – a holiday no to be retrieve from controller
areplystruct – a holiday date and time set info to be read. Please refer to the table
HolidayTimeSetStruct above for further details
aerrormsg – a buffer to store the error message if the library encountered any errors sending the
command
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
Page 26 of 39
FALCOIP
This function allows you read the holiday info from the controller selected.
int FalcoClearHolidayTimeSet (const char *aipaddress, int aport, int adoorid, char *aerrormsg);
Parameters:
aipaddress – the IP address of the controller to send this command to. If Server is at a different
subnet or you wish to broadcast this message to multiple controllers, you can use the broadcast
addresses (ie global broadcast 255.255.255.255 or subnet broadcast XXX.XXX.XXX.255)
aport – always should be 2003
adoorid – a controller door id to be assign.
aerrormsg – a buffer to store the error message if the library encountered any errors sending the
command
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This function allows you to clear the entire holiday list from the controller selected.
Sample Code
Option Explicit
Dim cmdobj As New FalcoNetworkLib.FalcoCommandClient
param.HolidayNo = 1
param.HolidayMon = 1
param.HolidayDay = 1
param.HolidayTimeSet = 0
Page 27 of 39
FALCOIP
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This function allows you to clear all the memory in the controller selected.
int FalcoResetAllCardLockOut (const char *aipaddress, int aport, int adoorid, char *aerrormsg);
Parameters:
aipaddress – the IP address of the controller to send this command to. If Server is at a different
subnet or you wish to broadcast this message to multiple controllers, you can use the broadcast
addresses (ie global broadcast 255.255.255.255 or subnet broadcast XXX.XXX.XXX.255)
aport – always should be 2003
adoorid – a controller door id that you would like to request to reset all the cards been lock out
from that controller
aerrormsg – a buffer to store the error message if the library encountered any errors sending the
command
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This function allows you to reset all the cards that already been lock out by the door controller, which
you selected.
int FalcoQuickResetCardLockOut (const char *aipaddress, int aport, int adoorid, int acardno, char
*aerrormsg);
Parameters:
aipaddress – the IP address of the controller to send this command to. If Server is at a different
subnet or you wish to broadcast this message to multiple controllers, you can use the broadcast
addresses (ie global broadcast 255.255.255.255 or subnet broadcast XXX.XXX.XXX.255)
aport – always should be 2003
adoorid – a controller door id that you would like to request to reset all the card been lock out
from that controller
acardno – a card number to be reset for the card lock out from the controller
aerrormsg – a buffer to store the error message if the library encountered any errors sending the
command
Return Value:
Page 28 of 39
FALCOIP
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This function allows you to reset a special card that already been lock out by the door controller,
which you selected.
int FalcoResetAllCardAntipass (const char *aipaddress, int aport, int adoorid, char *aerrormsg);
Parameters:
aipaddress – the IP address of the controller to send this command to. If Server is at a different
subnet or you wish to broadcast this message to multiple controllers, you can use the broadcast
addresses (ie global broadcast 255.255.255.255 or subnet broadcast XXX.XXX.XXX.255)
aport – always should be 2003
adoorid – a controller door id that you would like to request for card info
aerrormsg – a buffer to store the error message if the library encountered any errors sending the
command
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This function allows you to reset all the cards antipassback to a controller which you selected.
Sample Code
Option Explicit
Dim cmdobj As New FalcoNetworkLib.FalcoCommandClient
Page 29 of 39
FALCOIP
End If
End Sub
Page 30 of 39
FALCOIP
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This function allows you retrieve the firmware version from the controller selected.
Sample Code
Option Explicit
Dim cmdobj As New FalcoNetworkLib.FalcoCommandClient
Page 31 of 39
FALCOIP
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This function allows you to pulse door open from the PC to the controller selected.
int FalcoSetSecurityMode (const char *aipaddress, int aport, int adoorid, byte asecuritymode , char
*aerrormsg);
Parameters:
aipaddress – the IP address of the controller to send this command to. If Server is at a different
subnet or you wish to broadcast this message to multiple controllers, you can use the broadcast
addresses (ie global broadcast 255.255.255.255 or subnet broadcast XXX.XXX.XXX.255)
aport – always should be 2003
adoorid – a controller door id to be assign.
asecuritymode – a value of the mode for security on or off (0 = off; 1 = on).
aerrormsg – a buffer to store the error message if the library encountered any errors sending the
command
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This function allows you to pulse door open from the PC to the controller selected.
Sample Code
Option Explicit
Dim cmdobj As New FalcoNetworkLib.FalcoCommandClient
Page 32 of 39
FALCOIP
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This function allows you to send 3 line of message to controller, and the message will show in the
LCD.
int FalcoClearLCDMessage (const char *aipaddress, int aport, int adoorid, char *aerrormsg);
Parameters:
aipaddress – the IP address of the controller to send this command to. If Server is at a different
subnet or you wish to broadcast this message to multiple controllers, you can use the broadcast
addresses (ie global broadcast 255.255.255.255 or subnet broadcast XXX.XXX.XXX.255)
aport – always should be 2003
adoorid – a controller door id to be assign.
aerrormsg – a buffer to store the error message if the library encountered any errors sending the
command
Return Value:
0 if successful
If failed, please refer to the aerrormsg to obtain the error message.
This function allows you to clear all the LCD message for the controller selected.
Page 33 of 39
FALCOIP
bool Active;
int IdleTimeout;
Sets the idle timeout in milliseconds before assuming the controller has disconnected.
Sets the port number for the Transaction Server to listen to for connections from the controllers.
Returns whether any controller with the specified IP address is connected. This will take into account
the controller connection idle time.
Add new controller into buffer, so that the dll will only receive all the transaction from the controller
you assign.
p/s:
Firmware Version: T2.20.221SAEI and above please use mac address to replace aip.
Firmware Version: T1.20.021SAEI and above please use ip address as aip.
Sample Code
O ption Explicit
Dim TransServerObj As FalcoNetworkLib.FalcoTransactionsServer
Page 34 of 39
FALCOIP
End Sub
Page 35 of 39
FALCOIP
bool Active;
int IdleTimeout;
Sets the idle timeout in milliseconds before assuming the controller has disconnected.
Returns whether any controller with the specified IP address is connected. This will take into account
the controller connection idle time.
int GetTransaction(int &auid, char * asrcip, int &aid, int &ayear, int &amonth, int &aday, int
&ahour, int &amin, int &asec, int &aeventid, int & acode);
Retrieves the transaction record that is currently at the top of the transaction queue.
Returns -1 if there are no transactions available.
int ayear, amonth, aday, The date and time the transaction event
ahour, amin, asec took place
bool TransactionAvailable();
COM Event that is triggered whenever new transaction is available. Setting Acknowledged to True
will cause the current transaction pointer to be moved. If set to False, the current transaction pointer
will still be maintained.
Page 36 of 39
FALCOIP
Sample Code
Note: In Visual Basic, create a Form, and drop in a Timer object named PollTimer. Set the Enabled to
False, and Interval to 1.
Option Explicit
Dim WithEvents transobj As FalcoNetworkLib.FalcoTransactionsClient
PollTimer.Enabled = False
Do
idx = transobj.GetTransaction(auid, asrcip, aid, ayear, amonth, aday, ahour, _
aminute, asecond, aeventid, acode)
Dim s As String
s = "->" & asrcip & "," & auid & "," & aid & "," & ayear & "," & amonth & "," & _
aday & "," & ahour & "," & aminute & "," & asecond & "," & aeventid & "," & acode
List1.AddItem s
End Sub
Page 37 of 39
FALCOIP
Transaction Code
Transaction Code Descirption
0x30 Valid Card Entry
0x69 Valid Card Exit
0x31 ANTIPBVIOLATION
0x32 Unknow Card No
0x4A Wrong Time Zone
0x6E Valid Pin Entry
0x75 Valid Pin Exit
0x7A Invalid Pin Entry
0x6D Invalid Pin Exit
0x79 Auto Pin Disable
0x71 Wrong Pin No
0x35 Batery OK
0x36 Low Batery High Priority transaction
0x38 Batery Cut Off Mode Enable High Priority transaction
0x39 Batery Cut Off Mode Disable
0x72 Reader Tampered High Priority transaction
0x73 AC Power Main Fail High Priority transaction
0x74 AC Power Normal
Page 38 of 39
FALCOIP
Page 39 of 39