Classifying where the even bits and odd bits are within a format is dependent on how the format was designed. In the case of 26A, the first 13 bits are even and the last 13 bits are odd.
Example:
Card number: 4095
Facility code bit set: 01100101
Card ID bit set: 0000111111111111
Wiegand calculated: 00110010100001111111111111
26A (Bit 1 = Even parity; Bits 2-9 = Site Code; Bits 10-25 = Badge ID; Bit 26 = Odd parity)
E SSSSSSSS BBBBBBBBBBBBBBBB O
0 01100101 0000111111111111 1
Parity Calculation: (Bit 1 = Even Parity; Bits 2-13 = Even bit set; Bits 14-25 = Odd bit set; Bit 26 =
Odd parity)
E SSSSSSSSBBBB BBBBBBBBBBBB O
0 011001010000 111111111111 1
Bits 2-13 has four “1” therefore the even parity bit 0, keeping the even bit set even, computes correctly over the first 13 bits.
Bits 14-25 has twelve “1” therefore the odd parity bit 1, making the odd bit set odd, computes correctly over the last 13 bits.
INFORMATION PROVIDED THROUGH THIS SITE IS PROVIDED TO YOU AS IS WITHOUT ANY EXPRESS REPRESENTATIONS OR WARRANTIES OF ANY KIND, AND WE MAKE NO REPRESENTATION OR WARRANTY THAT THIS SITE(OR ANY INFORMATION PROVIDED IN RESPONSE TO YOUR INQUIRY), WILL BE ACCURATE, COMPLETE, OR ERROR-FREE.
YOU AGREE THAT YOU MUST EVALUATE ALL INFORMATION AND RESPONSES, AND THAT YOU BEAR ALL RISKS ASSOCIATED WITH, THE USE OF THIS SITE, INCLUDING ANY RELIANCE ON THE ACCURACY,COMPLETENESS, OR USEFULNESS OF ANY INFORMATION OR MATERIALS MADE AVAILABLE THROUGH THIS SITE.