Datasheet
5.4.3. Restore
This command is used for powerful backups. If the input –and outputblock are not the same,
this command restores the result written in the outputblock to the inputblock. The
outputblock has to be in the correct value block format for this command to work.
Instruction:
VAL<SPACE>REST<SPACE>[ Outputblock] <SPACE>[ Inputblock]<CR>
Response, if successful:
OK!<CR>
Examples:
The result of an operation is saved in block 29d and should restore to 28d
VAL<SPACE>REST<SPACE>29<SPACE>28
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
BNA<CR> In- or Outputblock is not authenticated
VNI<CR> The Value block is not in the right format, use INIT command first
metraTec MiFare Protocol Guide Page 31 of 38