Datasheet

Parameter Description
MOD Selected either increment (INC) or decrement (DEC)
VALUE unsigned hexadecimal value (summand/subtrahend)
Inputblock 1 decimal Byte, i.e. 0 to 63 for Mifare 1k, or 0 to 255 for Mifare 4k, but not
trailer
Outputblo
ck
1 decimal Byte, i.e. 0 to 63 for Mifare 1k, or 0 to 255 for Mifare 4k, but not
trailer
Table 12: INC and DEC mode parameter description
Response, if successful:
[VALUE]<CR> 4 bytes long result of the operation
Examples:
Increment the value from block 32d by 10d and write the result to block 32d
VAL<SPACE>INC<SPACE>10<SPACE>32<SPACE>32<CR>
Decrement the value from block 32d by 10d and write the result to block 32d
VAL<SPACE>DEC<SPACE>10<SPACE>32<SPACE>32<CR>
Increment the value from block 32d by 20d and write the result to block 33d
VAL<SPACE>INC<SPACE>20<SPACE>32<SPACE>33<CR>
Possible error codes:
UPA<CR> Unknown Parameter
TNR<CR> Tag no response, i.e. value block not incrementable
EDX<CR> In/Output block or value missing, or other character than ‘0’ to ‘9’
NDB<CR> The chosen block is no data block but a trailer
NMA<CR> No MiFare 1k or 4k chip authenticated
ONE<CR> Operation not Executed, Result smaller/bigger than ±2,147,483,647
VNI<CR> The Value block is not in the right format, use INIT comman
metraTec MiFare Protocol Guide Page 30 of 38