Topic: Value blocks
Hello,
I'm currently working at next release of the MiCmd utility and want to finally implement value block operations as well.
However, I'm stuck at the TRANSFER command.
According to API
bool nfc_initiator_mifare_cmd(const dev_info* pdi,
const mifare_cmd mc,
const ui8 ui8Block,
mifare_param* pmp);I firstly perform INCREMENT command, which returns true(success). Then, I want to 'commit' the change with the TRANSFER command. Here I'm confused a bit, regarding it's parameters.
What should go to the mifare_param structure, passed to the ...mifare_cmd function in this case? I guess ui8block should be the block I want to commit the value in the register to. I've tried setting the pmp.mpv.abtValue to 00 00 00 00 (have also tried different possibilities) but the TRANSFER always returns false, resulting in halt.
(My AC bits allow value operations on that block, moreover, Increment and Decrement return true, and I'm obviously trying to TRANSFER to the same block that has just been incremented. I'm using key B, which has complete access over that block)