使用Mifare Ultralight C进行身份验证

时间:2014-04-01 00:29:35

标签: authentication nfc mifare

我想用Mifare Ultralight C标签进行身份验证,我已经将密钥写入了标签,密钥是0x" 000102030405060708090A0B0C0D0E0F",所以我必须像这样向后写入0x2C的页面值为0x2F

uint8_t buffer1[] = {0x07, 0x06, 0x05, 0x04};
uint8_t buffer2[] = {0x03, 0x02, 0x01, 0x00};
uint8_t buffer3[] = {0x0F, 0x0E, 0x0D, 0x0C};
uint8_t buffer4[] = {0x0B, 0x0A, 0x09, 0x08};
// write the data
success = nfc->mifareultralight_WritePage(0x2C, buffer1); 
success &= nfc->mifareultralight_WritePage(0x2D, buffer2);
success &= nfc->mifareultralight_WritePage(0x2E, buffer3);
success &= nfc->mifareultralight_WritePage(0x2F, buffer4);`

但我不知道验证命令,有人能告诉我使用此密钥进行身份验证的身份验证步骤和命令吗?

0 个答案:

没有答案