
Page 27
Terminal Setup
Wiegand Bitmask
In addition to the standard fixed decodes for reader data a configurable bit mask can be applied to create
custom decodes. Selecting ‘Wiegand bitmask’ as the decoder type will open a dialogue for the bitmask to be
entered.
The following letters are defined for bitmasks.
Mask char
Description
S
Site code (Most Significant Bit (MSB) first)
B
Badge code (MSB first)
s
Site code (Least Significant Bit (LSB) first)
b
Badge code (LSB first)
0
0 expected
1
1 expected
P
Signifies parity bit (ignored here)
.
Bit is ignored
X
Bit is ignored
The characters “P”, “.” and “X” are all ignored when parsing bitmasks.
As the length of the bitmask has to match the
number of bits, it is sometimes useful to be able
to specify more than one bitmask. Also, Wiegand
formats often contain parity information to validate
the data. The bitmask decoder supports the following
syntax for configuring multiple bitmasks with parity
checking:
Parity Mask
The parity mask must have the same length as the bitmask. If more than one parity mask is specified, all
have to pass for the decoder to be successful.
The following letters are defined for parity masks.
Mask char
Description
.
Bit is ignored
X
Bit to be counted for parity
E
Even parity bit
O
Odd parity bit
X is used to count bits that are set (e.g. 1).
E is used to specify the bit that should make the
bit count even.
O is used to specify the bit that should make the
count odd.
It does usually not make sense to have more than
one E or O per parity mask.