Reply To: How to calculate Access Bit for Mifare Classic 1k

Forum MIFARE and NFC Reader IC`s How to calculate Access Bit for Mifare Classic 1k Reply To: How to calculate Access Bit for Mifare Classic 1k

Re: How to calculate Access Bit for Mifare Classic 1k

28. November 2019 at 13:25
Hi Andres,

Unfortunately, I cannot give detailed instructions how to manage a Python library on a Raspberry Pi 3. But I can give some hints how you can start.

The ACR1252U is a USB reader and this reader supports the PC/SC standard. For Linux OS there should exist a library called “PCSC lite”. This is a reimplementation of functions of WinSCard library. You should try to use this library.

Next, you need the user manual of the reader. In the manual you will find all supported PC/SC functions. Especially, a section “PICC Commands for MIFARE Classic (1K/4K) Memory Cards”. Usually, you need to write the key in a register of the reader and refer to the key register in an authentication command to the card. The user manual explains how to manage this.

Finally, you need the datasheet of the MIFARE Classic to understand the sector/block structure of the card. You must authenticate to any block of a sector to read or write to any block of this sector. You can set dedicated permissions of each block in a sector with the “access conditions”.

The MIFARE Classic EV1 datasheet can be found here:
https://www.nxp.com/docs/en/data-sheet/MF1S70YYX_V1.pdf

The TapLinx team
+ 0  |  - 0