Gate/turnstile configuration
The principal purpose of the GateKeeper module is to control a turnstile. This is done through a serial connection to the turnstile controller.
There are five sections that are used for this purpose.
[Serial]
ComPort=1
BaudRate=9600
Parity=N
DataBits=8
StopBits=1
SerialGoodPause=1000
SerialBadPause=0
[SerialGood1]
Char1=010
Char2=020
Char3=010
Char4=000
Char5=000
Char6=000
[SerialGood2]
Char1=010
Char2=020
Char3=010
Char4=000
Char5=000
Char6=000
[SerialBad1]
Char1=010
Char2=060
Char3=010
Char4=000
Char5=000
Char6=000
[SerialBad2]
Char1=010
Char2=060
Char3=010
Char4=000
Char5=000
Char6=000
The serial port settings need to be specified (9600,N,8,1 are default if omitted).
There are four serial sections used for character strings:
[SerialGood1]
[SerialGood2]
[SerialBad1]
[SerialBad2]
The Char1-Char6 settings in each section are used to specify the decimal characters that are to be sent when the gate is released. The [SerialGoodx] sections are for when the scan is good, the [SerialBadx] sections represent the characters when the scan is bad. If the second section is filled out for Good or Bad, a time delay specified in milliseconds is checked:
[Serial]
SerialGoodPause=1000
SerialBadPause=0
In this case, at least one second would separate the contents of SerialGood1 being sent and SerialGood2.
Note: The actual delay before a second signal is sent may be slightly longer because the .wav file is played before the final signal is sent.