From dabf6a8470ef8004c04a744f40d0e4a9bfabed3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=81=AB=E5=B1=B1=E5=A4=A7=E9=9A=8A=E9=95=B7?= Date: Sat, 5 Jul 2025 06:58:16 +0800 Subject: [PATCH] feat: more gen2 test --- armsrc/mifarecmd.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/armsrc/mifarecmd.c b/armsrc/mifarecmd.c index 564e496ce..10c62ef2f 100644 --- a/armsrc/mifarecmd.c +++ b/armsrc/mifarecmd.c @@ -3051,6 +3051,12 @@ void MifareCIdent(bool is_mfc, uint8_t keytype, uint8_t *key) { } else if (memcmp(card->ats, "\x85\x00\x00\xA0\x00\x00\x0A\xA5\x00\x04\x04\x02\x01\x00\x0F\x03\x79\x0C", 18) == 0) { // test for NTAG213 magic gen2 isGen2 = true; + } else if (memcmp(card->ats, "\x85\x00\x00\xA0\x00\x00\x0A\xAA\x00\x04\x04\x02\x01\x00\x13\x03\x60\xA6", 18) == 0) { + // test for non-standard NTAG216 magic gen2 888bytes (NT2H1611G0DU) ( USCUID-UL ) + isGen2 = true; + } else if (memcmp(card->ats, "\x85\x00\x85\xA0\x00\x00\x0A\x5A\x00\x04\x04\x02\x01\x00\x11\x03\x44\xB4", 18) == 0) { + // test for non-standard NTAG215 magic gen2 504bytes (NT2H1511G0DU) ( USCUID-UL ) + isGen2 = true; } if (isGen2) {