I'm using the HID omnikey 5022 card reader The card has HID iClass DL written on it. Facility code is 147 Card number is 4511
using PySmartCard I can read the ATR = 3B8F8001804F0CA0000003060A0018000000007A UID = 7BA49412FEFF12E0 Using a smart card reader application it tells me the card is type iClass 2ks I also pretty sure it has a weigand 26 bit code.
I've followed every guide I can find on the internet on how to parse this in to card number and get nonsense results.
The common method seems to be,
1, convert ATR to binary
11101110001111100000000000000110000000010011110000110010100000000000000000000000000011000001100000101000000000
2, get rid of LSB (far right digit)
3, get next 16 digits from right and this should be Card number
0000010100000000 = 128 ?? This should be 4511
4, the next 8 from right should be the facility code.
10000011 =131 ?? This should be 147
I'm probably doing something silly here as it looks like it should be pretty straight forwards. Any help appreciated. Thanks