43 lines
936 B
Plaintext
43 lines
936 B
Plaintext
PCSC Test Program
|
|
v.0.7 (c) Andrew Whitaker
|
|
|
|
It can run in either of threemodes.
|
|
|
|
Mode 1:
|
|
Command line parameter mondex
|
|
ie: emv mondex
|
|
Automatically does
|
|
Application Selection
|
|
Purse Register
|
|
Register
|
|
Payment Register
|
|
Read Pocket Record
|
|
Currency Enquiry
|
|
|
|
Mode 2:
|
|
With a command line parameter of the name of a script. I have enclosed a sample script that does the same functions as mode 1 but in a non intelligent way, eg. Register length hard coded not read from purse register.
|
|
So: emv mondex.spt is the command line. The file extension can be anything you like.
|
|
The structure of the file is as follows:
|
|
|
|
|
|
00 a4 08 0c 02 00
|
|
2f 00
|
|
This is CLA INS P1 P2 LC LE
|
|
Then data
|
|
|
|
00 b2 01 04 00 02
|
|
No LC so no data line
|
|
|
|
80 38 00 00 03 05
|
|
55 53 44
|
|
LC and LE so data line
|
|
|
|
end
|
|
The end just shows the end of the script file.
|
|
|
|
|
|
Mode 3:
|
|
|
|
emv test
|
|
forces the pc/sc resource manager dialog to appear and connects to the reader and then disconnects.
|