Datasheet

Response, if successful:
OK!<CR>
Examples:
Direct authentication of block 8 (sector 2) with keytype B and key FFFFFFFFFFFFh
AUT<SPACE>DRT<SPACE>FFFFFFFFFFFF<SPACE>B<SPACE>8<CR>
Possible error codes:
UPA<CR> Unknown parameter
BIH<CR> Block no. is too high (i.e. bigger than 63 at MiFare 1k)
ATE<CR> Authentication Error (i.e. wrong key)
NKS<CR> No Key Select, select a temporary or a static key (use STK or SSK)
CNS<CR> Card is Not Selected
5.2. Get Access Bit (GAB)
This function returns the access bits from MiFare 1K and 4K cards. The function is able to
return the access bits from one block, or all blocks from an authenticated sector. The access
bits must be readable for this command.
If Mifare 4K is used and the authenticated block no. is higher than 127, the first three lines
represent the first 15 Blocks (each line 5 blocks) and the fourth line the trailer.
Instruction:
GAB<SPACE>[Block Nr]<CR>
Response, if successful:
State of C1, C2 and C3
C1<SPACE>C2<SPACE>C3<CR>
Examples:
Block 5 is authenticated and only the access bits from block 5 are required
GAB<SPACE>5<CR>
Response:
0 0 1<CR> (this equals block mode 4, the standard mode)
metraTec MiFare Protocol Guide Page 23 of 38