en
│
9
4.7
Protocol types
The converter supports three protocol types for sending data packets over the Ethernet network:
□
rare protocol
: Complex protocol for system developers who are incorporating an
ekey home
system. The data is transferred in binary format. This protocol is the default setting.
□
home protocol
: Simple protocol for automation technicians who are incorporating an
ekey
home
system. The data is transferred in string format.
□
multi protocol
: Simple protocol for automation technicians who are incorporating an
ekey
multi
system. The data is transferred in string format.
The individual data fields can be separated by means of a spacer. This character is defined in the
settings. The spacer takes effect in the home and multi protocols.
4.7.1
Structure of a data packet with the rare protocol
The rare protocol can only be used in
ekey home
systems. This protocol has the following
structure:
Position Data set
Data type Values and meaning
1
nVersion
Long
3
2
nCmd
Long
0x88 = Decimal 136.. Open door with finger
0x89 = Decimal 137.. Wrong or unrecognized finger
3
nTerminalID
Long
Address of the finger scanner.
See calculation below.
4
strTerminalSerial Char[14]
0
5
nRelayID
Char[1]
0.. Relay 1
1.. Relay 2
2.. Relay 3
15.. Double relay
6
nReserved
Char[1]
Empty
7
nUserID
Long
User number according to
ekey home control panel:
1.. User 1
2.. User 2
3.. User 3
..
99.. User 99
0.. Unrecognized user
8
nFinger
Long
Finger number according to
ekey home control panel:
0.. Finger 1
1.. Finger 2
2.. Finger 3
..
8.. Finger 9
9.. Finger 0
13.. RFID
9
strEvent
Char[16]
0
10
sTime
Char[16]
0
11
strName
Unsigned
short
0
12
strPersonalID
Unsigned
short
0
Table 4: Structure of a data packet with the rare protocol