Datasheet
C2DF6084<CR>
Possible error codes:
UPA<CR> Unknown parameter
TNR<CR> Tag not responding (left the field since the INV command)
4.3. Read Data from Tag (RDT)
The read data command is used to retrieve the data stored in a transponder. Normally it
returns 16 bytes. For compatibility to other ISO/IEC 14443-1 to 4 transponder than MiFare
classic, it has a direct read mode, marked with the first parameter “DRT”. In this mode the
second parameter is the custom command.
Additionally, this command supports the ability to read multiple blocks with one command,
i.e. parameter “ALL” for all blocks of a sector, or “CNT” for a variable block count.
If MiFare classic is used, block has to be authenticated first (see the AUT command in the
next chapter). The command returns all blocks from a sector. If MiFare 4K is used, parameter
“All” is set and the authenticated block no. is higher than 127 it returns 16 blocks. For
Custom-Read-Commands the length of a response is maximal 64 bytes.
Instruction:
Read single Block:
RDT<SPACE>[Block No.]<CR>
Read all blocks:
RDT<SPACE>ALL<CR>
Read variable number of blocks from block No.:
RDT<SPACE>CNT<SPACE>[Block No.]< SPACE>[No. of Blocks]<CR>
Direct Read:
RDT<SPACE>DRT<SPACE>[CMD] <SPACE>[Block No.]<CR>
Parameter Description
Block No. Read-Start-Block, respectively Block to read (absolute), one decimal byte
No. of
Blocks
Number of blocks to read beginning at Block No., one decimal byte
Has to be bigger then 0
ALL Read-all-parameter, marked that all blocks from sector should be read, only
MiFare 1k and 4k
CNT
Read-Count-parameter, marked that a variable number of blocks
beginning at Block No. should be read
DRT Direct-Read-Parameter, if a Transponder needs another command than 30h
metraTec MiFare Protocol Guide Page 18 of 38