05.08.2014 Views

RFID - Elektor

RFID - Elektor

RFID - Elektor

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CONTENTS<br />

11 PC/SC Readers .......................................... 419<br />

11.1 Contactless Cards .................................... 419<br />

11.1.1 Contactless Microcontroller Smartcards ............... 419<br />

11.1.2 Contactless Memory Cards ......................... 419<br />

11.1.2.1 PC/SC-Compliant APDUs. ................... 420<br />

11.1.3 Answer To Reset (ATR) ........................... 422<br />

11.1.3.1 Contact-type Card Activation Sequence ......... 422<br />

11.1.3.2 ATR Structure of a Contact-Type Smartcard ...... 424<br />

11.1.3.3 Contactless Smartcard Pseudo-ATR Structure. .... 425<br />

11.2 The Microsoft WinSCard API. ............................ 427<br />

11.2.1 WinSCard API Programming ....................... 428<br />

11.2.1.1 Programming the WinSCard API in C ........... 430<br />

11.3 Java and PC/SC. ..................................... 438<br />

11.3.1 JPC/SC Java API ................................ 438<br />

11.3.2 Java Smartcard I/O API. .......................... 440<br />

11.4 The CSharpPCSC Wrapper for .NET ........................ 441<br />

11.4.1 How Does One Create an API Wrapper? ............... 441<br />

11.4.2 The WinSCard Class ............................. 442<br />

11.4.3 The PCSCReader Class ............................ 445<br />

11.4.4 Program Examples . ............................. 447<br />

11.4.4.1 “Hello Contactless Card”. ................... 447<br />

11.4.4.2 Determine All Installed PC/SC Drivers . ......... 449<br />

11.4.4.3 Getting the Reader and Card Properties ........ 451<br />

11.4.4.4 Testing the Reading Range .................. 452<br />

11.4.4.5 Determining the Type of<br />

Contactless Memory Card. .................. 455<br />

11.4.4.6 MIFARE Classic 1K/4K and MIFARE Ultralight. ..... 456<br />

11.4.4.7 MIFARE DESFire EV1 ...................... 459<br />

copyright <strong>Elektor</strong><br />

12 List of Abbreviations ..................................... 465<br />

13 Bibliography ............................................ 469<br />

14 Index ................................................. 471<br />

11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!