Commit e73f032
committed
Add reader reconnect after GET_VERSION failure to fix NTAG detection
On some readers (ACR1552 on Windows), GET_VERSION command returning
non-9000 status (e.g., 6300) corrupts the reader state. Subsequent
commands fail with "smart card removed" errors, causing CC detection
to fail and NTAG215/213 cards to be misdetected as MIFARE Ultralight.
Adding a reconnect with ResetCard disposition immediately after
GET_VERSION failure resets the reader state, allowing CC detection
to proceed correctly and identify NTAG cards by their CC size byte.1 parent 740c421 commit e73f032
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
464 | 478 | | |
465 | 479 | | |
466 | 480 | | |
| |||
0 commit comments