
Wiegand Camera
·
Operation Manual
9
Support up to 10-digit card number. If you enter a card number of more than 10 digits,
only the first 10 digits are kept. Currently, the maximum supported card number is
2147483647 because of the limitation of the platform int length type.
The front parity
bit (even parity
bit)
32-bit
(
To express the card
ID, if the card ID is
more than 10 digits,
the first 10 digits will
be applied.
)
The last parity
bit (odd parity
bit)
Coding Process:
1.
Convert card number A to hexadecimal format, as B.
2.
Covert number B to binary format, as C.
3.
The front parity bit is the even parity bit of the first half of C.
4.
The rear parity bit is the odd parity bit of the second half of C.
5.
The return result: front parity bit + C + rear parity bit.
Example:
Card number:1234567890
The coding process are show as below.
Convert 1234567890 to hexadecimal format, as: 0x49 0x96 0x02 0xD2.
Convert 0x49 0x96 0x02 0xD2 to binary format, as: 0100 1001 1001 0110
0000 0010 1101 0010.
Bit 1 is an even parity bit for the following 16 bits (bit 2 to bit 17), as
1
.
Bit 34 is an odd parity bit for the previous 16 bits (bit 18 to bit 33), as
0
.
According to the converting mode(even parity bit + card data + odd parity
bit), you can get a binary code as:
1
0100 1001 1001 0110 0000 0010 1101
0010
0