Return to Introduction page

Java Programming with Mifare and ACR120

Here are table of contents and list of sample progams in the "Java Programming with Mifare and ACR120" book.

Table of Contents

Introduction to this Book

Introduction to Mifare

Introduction to ACR120 and its SDK

How this Book is Oraganized

Reference Documents and What APIs are Covered

Message from the Author

Part One: Handling UIDs

Introduction to Part One

Setting Up Programming Environment

The First Sample Program - ListTags.java

Compiling and Running the First Program

Types and Length of Tags

Listing UIDs

Initializaing the Reader

Listing Cards

Using an RFID Card for Identification

Part Two: Handling Plain Data

Introduction to Part Two

Mifare 1K Sector Format

Reading Plain Block Data

Selecting a Card

Login to a Sector

Reading a Block

Notes on Block Number

Writing Plain Block Data

Introduction to Value Blocks

Writing to Value Block

Reading from Value Block

Updating Value Block

Copying Value Block

Part Three: Handling Encrypted Data

Introduction to Part Three

Introduction to Sector Keys

Key A and Key B

Access Conditions

Introducing SectorKey Class

Single-Key Configuration

Single-Key Block Reading

Single-Key Block Writing

Single-Key Value Writing

Single-Key Value Reading

Single-Key Value Updating

Single-Key Value Copying

Double-Key Configuration

Data Access using Double-Key Configuration

Double-Key Block Access

Double-Key Value Access

Thanks to the Readers

Appendices

Selecting Multiple Cards

select

listTags and multiTagSelect

Storing Master Keys on the Reader

Reader-Level APIs

Status of the Reader

Other APIs Not Covered in this Book

Notes about Types of Mifare ICs

ACR120 Supported ICs

Listing Cards and Obtaining UIDs

Reading and Writing Data

Mifare Light

Mifare 1K

Mifare 4K

Mifare Mini

DESFire

Ultralight

Mifare Plus

MF1S5009

MF1S7009

Mifare 4K Sector Format

ReadSector.java Sample Program

ReadSector4k.java Sample Program

Access Conditions Calculator - mfmod

Index

List of Sample Programs

ListTags.java

ReadBlock.java

WriteBlock.java

WriteValue.java

ReadValue.java

UpdateValue.java

CopyValue.java

SectorKey.java

ReadBlock2.java

WriteBlock2.java

WriteValue2.java

ReadValue2.java

UpdateValue2.java

CopyValue2.java

ListAndSelect.java

ReaderStatus.java

ReadSector.java

ReadSector4k.java

mfmod.c