Gemplus GPR400 Manuale utente

Version 1.3
GPR400
Reference Manual

At press time, this guide was as thorough and correct as possible, the information
contained herein may however have been updated after this date.
GEMPLUS reserves the right to change the functions and specifications of its
products at any time without prior notice.
This document was prepared by GEMPLUS for both its clients and for its own internal
use. The information contained herein is the sole property of GEMPLUS and shall not
under any circumstances be reproduced without prior consent of the company.
© Copyright GEMPLUS, 1997.
Smartcards and Smartcard Readers are patent protected by INNOVATRON
and produced by GEMPLUS under license.
Patented by Bull CP8 -Patented by Innovatron.
Printed in France.
GEMPLUS, B.P. 100, 13881 GEMENOS CEDEX, FRANCE.
Tel: +33 (0)4.42.36.50.00 Fax: +33 (0)4.42.36.50.90
Document Reference : DPD01597A30

GEMPLUS i
ABOUT THIS GUIDE
This manual describes the GEMPLUS GPR400 Compact Smartcard
Reader/Writer.
Audience
This manual assumes that you are familiar with Smartcards and Smartcard
reader technology.
How to Use This Manual
The following paragraphs tell you where to find information when you need
it. Read this section in order to use this guide to its full potential.
Preface Read the Preface for a general description of the GPR400 and of its
environment.
GPR400 Hardware
Read the “GPR400 Hardware” section for a description of the hardware and
its connections.
Sending Commands to a Smartcard
This section describes how to send commands to a Smartcard via the
GPR400. It includes the following information:
•command format,
•a list of Smartcard commands and other commands.

GEMPLUS ii
TABLE OF CONTENTS
ABOUT THIS GUIDE i
Audience......................................................................................i
How to Use This Manual.................................................................i
PREFACE 1
THE GPR400 HARDWARE 3
The PCMCIA Connector ................................................................3
GPR400 Architecture Overview.......................................................3
The 2K byte Memory.....................................................................4
PCCard Configuration....................................................................5
SENDING COMMANDS TO THE READER 6
Sending Commands to the GPR400...............................................6
Command and Response Format ...................................................8
Description of the TLV Field....................................................8
Chaining TLV fields ................................................................9
GPR400 Commands .....................................................................9
Select Card...........................................................................9
Open Session......................................................................11
Close Session.....................................................................11
APDU Exchange..................................................................12
Activate Driver......................................................................13
Reset GPR..........................................................................14
Power Down GPR................................................................14
Load Memory ......................................................................15
Read Memory......................................................................16

TABLE OF CONTENTS
GEMPLUS iii
Exec Memory......................................................................17
Status GPR.........................................................................17
APPENDIX A -OPERATING SPECIFICATIONS 19
Maximum Operating Values.........................................................19
Standard Operating Conditions.....................................................20
AC Test Conditions.....................................................................21
AC Characteristics...............................................................21
APPENDIX B -PIN-OUT DESCRIPTION 22
APPENDIX C -SAMPLE GPR400 SCENARIOS 25
Scenario 1...........................................................................25
Scenario 2...........................................................................25
Scenario 3...........................................................................27
APPENDIX D -STATUS CODES 30

GEMPLUS 1
PREFACE
The GPR400 (GEMPLUS Pocket Reader 400) is a Smartcard reader/writer
that has approximately the same dimensions as a Smartcard, and that fits
into a standard PCMCIA slot. When fitted into the PCMCIA slot, the
GPR400 leaves enough space for a Smartcard also to be inserted into the
PCMCIA slot beneath it, with its edges touching the Smartcard’s module
as shown in Figure 1below. It therefore is an electrical adapter that is
compliant with the ISO 7816-3 Smartcard standard for PCMCIA products.
Smart Card
PCMCIA slot
Smartcard
Smartcard
Smartcard
Compact Smartcard Reader Writer
Fig 1: GPR400, PCMCIA Slot, and Smartcard Configuration
When the reader is connected to the PCMCIA interface, it is seen as an
I/O PC Card (type II) as defined by PCMCIA standard releases 2.0 and
above.
The GPR400 has 128 Kbytes of optional flash memory and 2 Kbytes of
RAM. The flash memory (if present) is used by the embedded
microcontroller with a 16 Kbyte partition and cannot be accessed directly
by the PCMCIA interface. It can be used for:
•Smartcard application executable files,
•data files, such as Smartcard blacklists or information files,
•other executable files, such as the extended memory for a
microcontroller.

PREFACE
GEMPLUS 2
The RAM manages the PCMCIA interface as follows :
•32 bytes are used for I/O data exchange,
•2016 bytes are used as the Attribute Memory (defined by the
PCMCIA Standard 2.1 or by the PC Card Standard) and can
also be used as extended executable memory for the
microcontroller.

GEMPLUS 3
THE GPR400 HARDWARE
The GPR400 Smartcard interface complies with ISO 7816-1,-2, and -3
standards and is compatible with embossed Smartcards. The GPR400 is
connected to a portable PC using a PCMCIA slot (socket).
The PCMCIA Connector
The GPR400 is compatible with all PCMCIA sockets that accept type II PC
Cards (5.0 mm in thickness). The GPR400 includes a standard 68 pin
connector.
The Smartcard module is compliant with the ISO 7816 -2 standard.
GPR400 Architecture Overview
The GPR400 is based on a microcontroller. It communicates with the
PCMCIA bus using a specific component (ASIC) containing 2 Kbytes of
RAM.
The flash memory (128 Kbytes) is mapped onto the embedded
microcontroller. Please note this memory is optional in this release.
The GPR400 has an 8-bit data I/O structure.
The GPR400's power supply is provided by the PCMCIA interface
(Vcc=5V).
Flash
Microcontroller
Smart
Card
Specific
Component PCMCIA
Fig 2: GPR400 Architecture

THE GPR400 HARDWARE
GEMPLUS 4
The 2K byte Memory
The GPR400 has 2K bytes of RAM included in the specific component.
These 2K bytes are mapped as follows:
I/O BUFFER
I/O Start Address
Attribute MEMORY
External RAM Space
and
32 Bytes
2016 Bytes
Smartcard registers
Figure 3. GPR400 2k Bytes RAM Structure
The first 2016 bytes are used to store the Card Information Structure
(C.I.S.), the specific PCMCIA defined registers for I/O PC Card
(Configuration Option Register), the registers for the Smartcard interface
and some external RAM data which are used by the embedded
microprocessor for external data space or executable programs (application
programs or Smartcard drivers). The C.I.S. is downloaded by the internal
microcontroller. The external RAM data can be loaded by the embedded
microcontroller or by the PCMCIA interface (Attribute Memory space
access).
The 32-byte I/O buffer is used to transmit application commands to the
microcontroller handling interface with the smart card.

THE GPR400 HARDWARE
GEMPLUS 5
PCCard Configuration
When inserted into the computer, the GPR400 must be configured by the
host. To accomplish this, the host must first read the C.I.S. starting at
address 000h in the Attribute Memory. Then the GPR400 can be configured
using the Configuration Option Register (address FA0h) for an I/O base
address : 0300h, 0320h, 0340h, 0200h, 220h, 0240h or any space 32-byte
long memory space.
Configuration Option Register structure (see also PCCard Standard):
bit 7: set to 1, this bit initializes the GPR400 (minimum pulse of 5
µs)
bit 6-5 : reserved (reset to 0)
bit 4-0 : these bits are defined by the I/O base address as
described in the following table:
Configuration Option
register value I/O address
18 300h-31Fh
19 320h-33Fh
1A 340h-35Fh
10 200h-21Fh
11 220h-23Fh
12 240h-25Fh
01 all 32 bytes
boundary address
The register value 01 configures the GPR400 for all I/O addresses; the
INPACK signal is then systematically transmitted (see the PCCard
Standard).
Indice
Altri manuali Gemplus Lettore di schede


















