Castles Automation EZ100 PC Series User manual

EZ100 PC/SC Series
Smart Card Reader
User’s Manual
V1.3
Version: 1.3
Date: December 04, 2000
Castles Automation Co., LTD.
Tel: 886 (2) 2648-5929
Fax: 886 (2) 2648-5928
E-Mail: [email protected]
Web: www.casauto.com.tw
© Castles Automation Co., LTD. 1999-2000
All rights reserved

EZ100 PC/SC User’s Manual V1.3
1999~ Castles Automation Co., Ltd.. All rights reserved. 2/ 42
Table Of Contents
WARNING....................................................................................................................4
ABOUT THIS MANUAL............................................................................................4
1. INTRODUCTION............................................................................................5
2. FEATURES.......................................................................................................6
3. HARDWARE INSTALLATION.....................................................................7
A. CABLE CONNECTION...........................................................................................7
K-TYPE..................................................................................................................7
R-TYPE..................................................................................................................8
B. PIN ASSIGNMENT ................................................................................................9
4. IC CARD INTERFACE ................................................................................10
A. IC CARD POWER SUPPLY VCC .........................................................................10
B. PROGRAMMING VOLTAGE VPP .........................................................................10
C. CARD ACCEPTOR ..............................................................................................10
D. CARD INSERTION DETECTION............................................................................10
E. LED INDICATOR................................................................................................11
F. CARD TEARING PROTECTION ............................................................................11
G. SHORT CIRCUIT PROTECTION............................................................................11
5. SUPPORTED CARD TYPES .......................................................................12
A. SMART CARDS(ASYNCHRONOUS INTERFACE)...................................................13
6. INTERFACE ..................................................................................................14
R-TYPE....................................................................................................................14
Communication Parameters...............................................................................14
K-TYPE ...................................................................................................................14
7. SOFTWARE INSTALLTION .......................................................................15
A. EZ100PR PC/SC DRIVER INSTALLATION STEP-BY-STEP.....................................16
Windows 95/98: ...................................................................................................16
Windows NT4.0:..................................................................................................21
Windows 2000: ....................................................................................................22
B. EZ100PK PC/SC DRIVER INSTALLATION STEP-BY-STEP.....................................27
Windows 95/98: ...................................................................................................27

EZ100 PC/SC User’s Manual V1.3
1999~ Castles Automation Co., Ltd.. All rights reserved. 3/ 42
Windows NT4.0:..................................................................................................27
Windows 2000: ....................................................................................................30
Part 1:..............................................................................................................30
Part 2:..............................................................................................................36
APPENDIX A:............................................................................................................42
TECHNICAL SPECIFICATIONS...................................................................42

EZ100 PC/SC User’s Manual V1.3
1999~ Castles Automation Co., Ltd.. All rights reserved. 4/ 42
WARNING
Information in this document is subject to change without prior notice.
No part of this publication may be reproduced, transmitted, stored in a retrieval
system, nor translated into any human or computer language, in any form or by any
means, electronic, mechanical, magnetic, optical, chemical, manual, or otherwise,
without the prior written permission of Castles Automation Co., LTD.
All trademarks mentioned are proprietary of their respective owners.
ABOUT THIS MANUAL
This manual describes the features, specification and installation of PC/SC driver for
EZ100PK/PR PC/SC IC card reader.

EZ100 PC/SC User’s Manual V1.3
1999~ Castles Automation Co., Ltd.. All rights reserved. 5/ 42
1. Introduction
The EZ100PK/PR PC/SC IC card reader/writer is an interface for the
communication between a personal computer and an IC card.
EZ100PK/PR PC/SC provides a uniform and simple interface to the computer,
Through the interface, it becomes much easier for an application software
programmer to process different types of IC cards.
Users who are using the EZ100PK/PR PC/SC don’t need to know the detail of the
communication protocol and physical layer of cards. However, They do need to know
the command set of a specific smart card or the memory organization of a memory
card in order to write their particular application software.
The EZ100PR PC/SC reader is connected to the COM port of the computer
through its RS232 interface for the data communication. And it also has a cable to be
connected to the keyboard port of the computer to get its power. Whereas, the
EZ100PK PC/SC reader has only one cable connected to the keyboard port for both
data communication and power.
The PC/SC Workgroup, a joint effort of Bull CP8, Gemplus, Hewlett-Packard,
IBM Corporation, Microsoft, Schlumberger, Siemens Nixdorf, Sun Microsystems,
Toshiba and VeriFone was initiated to develop a specification that can facilitate the
interoperability necessary to allow Integrated Circuit Card (ICC) technology to be
effectively utilized in the PC environment. In addition to development of the
specification, the PC/SC Workgroup members are committed to implementation of
both hardware devices and PC system components necessary to validate the design
efforts. This is deemed a critical step in the process of moving toward accepted
standards and will provide a base of experience from which to further refine and/or
enhance this specification. For more information, please reference the PC/SC
Workgroup web site : http://www.pcscworkgroup.com/.
Note: All the EZ series IC card readers can do both read and write functions to IC
cards. However, the term “card reader” or “reader” is usually and commonly in use
for this kind of devices.

EZ100 PC/SC User’s Manual V1.3
1999~ Castles Automation Co., Ltd.. All rights reserved. 6/ 42
2. Features
nISO7816-1/2/3 compatible IC card interface
nSupport most common used memory-based IC cards
nSupport T=0 or T =1 CPU-based smart cards
nAutomatic detection for memory card or smart card
nIC card interface short circuit protection
nPush-Pull type IC card acceptor, insertion cycle >= 200,000.
nLED indicator indicates reader’s status.

EZ100 PC/SC User’s Manual V1.3
1999~ Castles Automation Co., Ltd.. All rights reserved. 7/ 42
3. Hardware Installation
A.Cable Connection
K-TYPE

EZ100 PC/SC User’s Manual V1.3
1999~ Castles Automation Co., Ltd.. All rights reserved. 8/ 42
R-TYPE

EZ100 PC/SC User’s Manual V1.3
1999~ Castles Automation Co., Ltd.. All rights reserved. 9/ 42
B.Pin Assignment

EZ100 PC/SC User’s Manual V1.3
1999~ Castles Automation Co., Ltd.. All rights reserved. 10 / 42
4. IC Card Interface
A.IC Card Power Supply VCC
The EZ100PK/PR PC/SC reader supplies power to cards. The maximum
current consumption of an IC card should not exceed 50mA.
B.Programming Voltage VPP
Since all common IC cards currently being used in the market have an
internal charge pump to supply the Vpp from the Vcc for writing/erasing internal
EEPROM. The Vpp is not needed any more. Therefore, The EZ100PK/PR PC/SC
reader connects this pin to Vcc always to avoid floating.
C.Card Acceptor
The EZ100PK/PR PC/SC reader provides a push-pull type of card acceptor. It
has guaranteed 200,000 insertion cycles.
D.Card Insertion Detection
There is a card detecting switch in the IC card acceptor to detect the card is
present or absent.

EZ100 PC/SC User’s Manual V1.3
1999~ Castles Automation Co., Ltd.. All rights reserved. 11 / 42
E. LED Indicator
Dual colors LED indicates the power On/Off status of the IC card interface
Red color:
1. Light steadily: The power supply to the IC card is switched on.
2. Blinking: Data is exchanging between the reader and card. Do not
withdraw the card at this stage.
Green color:
The power supply to the IC card is switched off. Users can insert or
remove the IC card at this stage.
F. Card Tearing Protection
To avoid any unexpected damage to the card, the card should be remained in
the reader while it is powered on (LED is red). Once the card being withdrawn
during the power-on state, the EZ100PK/PR PC/SC reader will automatically
shutdown the power supply to the card and deactivate all interface connection to
the 8 pins to protect both the card and reader itself.
It is absolutely prohibited to withdraw the card while the red LED is blinking,
Otherwise the data inside the card may be incorrect.
G.Short Circuit Protection
The EZ100PK/PR PC/SC reader provides a mechanism to protect itself from
being damaged by the short circuit caused by a bad card or other objects. The
current limit mechanism will shutdown the card interface once it detects an
over-current.

EZ100 PC/SC User’s Manual V1.3
1999~ Castles Automation Co., Ltd.. All rights reserved. 12 / 42
5. Supported Card Types
The EZ100PK/PR PC/SC reader supports most common used memory cards and CPU
based smart cards. The smart card must comply with ISO7816-3 T=0 or T=1
asynchronous transmission protocol.
The application software must send a power on card command to the reader at first
before sending any other commands related to the card. Upon receiving the power on
card command and the EZ100PK/PR PC/SC reader detects there is a card inserted, it
will reset the card according to ISO7816. While resetting the card, a smart card will
send out its ATR contents to the reader. If it is a memory card, the reader will send
clock to the card and read out its first 4 bytes of data.
Memory Cards (Synchronous interface)
uSimens SLE4404 compatible memory cards
Gemplus GPM416
uSimens SLE4406/4436/5536 compatible memory cards
Gemplus GPM103
SGS-Thomson ST1305
ATmel AT88SC06
uSimens SLE4418/4428 compatible memory cards
uSimens SLE4432/4442 compatible memory cards
Philips 2042
uI2C memory cards
ATmel AT88SC153, AT88SC1604, AT88SC1608, AT24CXX
SCS-Thomson ST14C02C, ST14C04C
Xicor X24026, X24165, X24645

EZ100 PC/SC User’s Manual V1.3
1999~ Castles Automation Co., Ltd.. All rights reserved. 13 / 42
A.Smart Cards(Asynchronous interface)
The EZ100PK/PR PC/SC READER supports ISO7816-3 T=0 or T=1 protocol
CPU-based smart cards with the following restrictions.
1. Not support Vpp. PI1 = 0 or 5, II = 00 or 01. Where PI and II are coded in
TB2 of the ATR contents.
2. Support PTS(Protocol Type Selection) communication baud rate between
the reader and card, can be up to 38,400 baud. The bit rate supported types
are as below. (FI and DI are coded in TA1 of ATR, please refer to
ISO7816-3).
F (CODED BY FI) D (CODED BY DI)
0000 Internal 1,2,4,1/2,1/4
0001-372 1,2,4,1/2,1/4
0010-558 1,2,1/2
0011-744 1,2,4,8,1/2
0100-1116 1,2,4
0101-1488 1,2,4,8,16
0110-1860 2,4,8
1001-512 1,2,1/2
1010-768 1,2,4,8,1/2
1011-1024 1,2,4
1100-1536 1,2,4,8,16
1101-2048 2,4,8

EZ100 PC/SC User’s Manual V1.3
1999~ Castles Automation Co., Ltd.. All rights reserved. 14 / 42
6. Interface
R-TYPE
The EZ100PR PC/SC is connected to a computer through a serial asynchronous
interface following the RS-232 standards
Communication Parameters
The following communication parameters are used by EZ100PR PC/SC
Transmission protocol :Serial asynchronous
Start Bits : 1
Parity :none
Data Bits :8
Stop Bits :1
Baudrate :19200bps
K-TYPE
EZ100PK PC/SC uses standard IBM®PS/2 compatible interface.

EZ100 PC/SC User’s Manual V1.3
1999~ Castles Automation Co., Ltd.. All rights reserved. 15 / 42
7. SOFTWARE INSTALLTION
Before installation (Important!):
For Windows 95/98/NT4.0:
You should install the Smart Card Base Component (filename: SCBASE.EXE) and
update the Smart Card Library (filename: SMCLIB.EXE) in windows before installing
EZ100PK/PR PC/SC driver.
Note:
The Smart Card Base Component will install the smart card library into the computer
(“smclib.vxd” in windows\system for Windows 95/98 or “smclib.sys” in
windows\system32/drivers for Windows NT4.0 ). The driver will not function correctly
without smart card library.
The Smart Card Base Component is not plug and play, so after installing the
EZ100PK/PR driver, you should restart the system to get the whole Smart Card
system work, then insert the card, the LED of reader should appear red color.
For Windows 2000:
Windows 2000 fully supports Smart Card supported. After installing the EZ100PK/PR
PC/SC driver, in order to work properly, you need to start the Smart Card Resource
Manager in Windows 2000.
To start the resource manager:
1.Login with Administrator.
2.Enter MyComputer / Control Panel / Administrator Tools / Services
3.Find“Smart Card” service and Start it.

EZ100 PC/SC User’s Manual V1.3
1999~ Castles Automation Co., Ltd.. All rights reserved. 16 / 42
A. EZ100PR PC/SC Driver Installation Step-by-Step
Windows 95/98:
Step1:
Plug the reader into a serial port.
Step2:
Start the Device Manager(right-click MyComputer, select Properties select
Device Managertab).

EZ100 PC/SC User’s Manual V1.3
1999~ Castles Automation Co., Ltd.. All rights reserved. 17 / 42
Step3:
Click <Refresh>.button
Step4:
The AddNewHardwae Wizard will appear, then click <Next>

EZ100 PC/SC User’s Manual V1.3
1999~ Castles Automation Co., Ltd.. All rights reserved. 18 / 42
Step5:
Insert the Driver-CD into a CD-ROM Drive. Select “Search for the best driver
for your device” then click <Next>.
Step6:
Specify a location for wizard to search.
Specify the path to ”(CD-Rom Drive):\Drivers\EZ100PR\Win9x”.

EZ100 PC/SC User’s Manual V1.3
1999~ Castles Automation Co., Ltd.. All rights reserved. 19 / 42
Step7:
Installation Wizard will find “ezpr_98.inf” in the location, then click <Next>.
Step8:
Installation Wizard will start the driver automatically, then click <Finish>

EZ100 PC/SC User’s Manual V1.3
1999~ Castles Automation Co., Ltd.. All rights reserved. 20 / 42
Finish:
EZ100PR-PC/SC is shown in Device Manager, in the SmartCardReader
category.
This manual suits for next models
1
Table of contents