Datasheet

Examples:
Write Key A (665544332211), Key B (112233445566) and block mode 3 (1 1 0) for block 2
STM<SPACE>SKA<SPACE>2<SPACE>1<SPACE>1<SPACE>0<SPACE>6655443322
<SPACE>
112233445566<CR>
Write Key A (000000000000), Key B (FFFFFFFFFFFF) and access mode 3 (1 0 1) for block 3
STM<SPACE>SKA<SPACE>2<SPACE>1<SPACE>0<SPACE>1<SPACE>0000000000
00<SPACE>
FFFFFFFFFFFF <CR>
Possible error codes:
UPA<CR> Unknown parameter
BAE<CR> An unauthenticated block is chosen
BNA<CR> Block not authenticated, Block No. is not in authenticated sector
BNC<CR> Parameter C1, C2 or C3 missing
AKW<CR> Access bits or Keys not Writable
UKB<CR> Use Key B for authentication (in Access-Mode 5 and 6)
UKA<CR> Use Key B for authentication (in Access-Mode 0 and 4)
TNR<CR> Tag not responding (Tag is no longer in read range)
NMA<CR> No MiFare 1k or 4k chip authenticated
5.3.2. Set Key Only (SKO)
Use this command to change only the key of a specific sector. The sector trailer has to be in
Access-Mode 6, 1 (authenticated with key B) or 4, 0 (authenticated with key A) for this
command to work.
Instruction:
STM<SPACE>SKO<SPACE>[Block No.]<SPACE>[KeyA]<SPACE>[KeyB]<CR>
Parameter Description
Block No. The data block to modify, in decimal notation
metraTec MiFare Protocol Guide Page 26 of 38