EECS 598-2 / Winter 2000
Homework Assignment #2

M-Card Scanning
1/23/2000, Naomaru Itoi (itoi@eecs.umich.edu)
Deadline: 2/8/2000
Updated, 11/4/2000, Naomaru Itoi

In this assignment, you are to learn the directory structures of smartcards, smartcard file types, and usage of APDUs. You are asked to write a program to scan the M-Card and print out the account balance. Please submit the binary so that we can test it.

Problem Description
Obtaining the account balance is done by three steps.

Your program must print out the file names of selected files as it traverses the directory tree, and the balance. The print out should look like this:
class 77
00.40 -- EF
00.80 -- EF
00.c0 -- DF
__00.f0 -- EF
01.00 -- DF
__00.ff -- record -- account $2.05

Submission
Please place the binary and source of your program in your class directory (/afs/engin.umich.edu/class/w00/eecs598/002/uniqname), and send me e-mail with where your files are, and a couple of paragraphs that explain what your program does.
Your binary must be called "mcard", and it must take one argument, which is a serial port number (1 or 2).
I welcome Solaris, Linux, and OpenBSD binaries. If it is absolutely necessary, I will accept others, e.g., Windows binary.

Reference

OK, that's it for the HW#2. Send questions to smartcards@umich.edu, or talk to us at IRC #smartcards. Obviously, doing more analysis on M-Card is welcome. If you are interested in doing much more, talk to us about potential course projects. Good luck. :)