Reply To: Basic Tutorial for MIFARE Classic 1K using C#, C++ etc.

Forum MIFARE general topics and applications Basic Tutorial for MIFARE Classic 1K using C#, C++ etc. Reply To: Basic Tutorial for MIFARE Classic 1K using C#, C++ etc.

Re: Basic Tutorial for MIFARE Classic 1K using C#, C++ etc.

28. January 2016 at 11:00
Hi,

what you have to do depends on the card reader you want to use and the driver and the interface of this driver. When you work on Linux you can use several interfaces to communicate with the MIFARE Classic card.

Let us assume you use the PC/SC interface and you have a driver which support the PCSC-Lite interface on Linux. Then you know how to write connect to the card, find out that a card is currently connected to the reader and to write and read data packets to the card. This data packets are usually so called APDU commands. You see in the MIDARE Classic data sheet that some commands are defined, like Read Data and Write Data.

In the datasheet you see also that the MIFARE Classic also defines 16 byte data blocks you can use for writing. 4 blocks are bundled together to a sector. For each sector you have a password and access bits which defined the protection level of the sector. You have to authenticate first, before you can access to a data block of a sector.

With this information you can start your investigations into the world of Smartcards.

Kind regards
The MIFARE team

+ 0  |  - 0