Teridian Semiconductor Corporation makes no warranty for the use of its products, other than ex pressly
contained in the Company’s warranty det ai l ed i n the Teridian Semiconductor Corporation standard Terms
and Conditions. The company assumes no resp onsibility for any errors which may appear in this
document, reserves the right to change devices or specifications detailed herein at any t im e without
notice and does not make any commitment to update the information contained herein. Accordingly , the
reader is cautioned to verify that this document is current by comparing it to the latest version on
http://www.teridian.com or by checking with your sales representative.
Teridian Semiconductor Corp., 6440 Oak Canyon, Suite 100, Irvine, CA 92618
TEL (714) 508-8800, FAX (714) 508-8877, http://www.teridian.com
This user guide describes the use of the USB CCID host application (USB-CCID.exe). This software
provides users with a Windows-based GUI application to communicate to the Teridian USB CCID reader
firmware running on 73S12xxF-based smart card reader devices. This program allows the user to
interface directly to the USB CCID firmw are using a PC running Windows XP
functionality as a demonstration and test pl atform.
1.2 Setup
This software was developed in the C# programming language usi ng M i crosoft Visual Studio
software requires that the Microsoft Windows Smart Card Library (SCLib.dll), also provided by Teridian,
be in the same folder as the CCID-USB.exe program.
®
and exercise its
®
2008. This
PC
PC Host running
Windows XP and
CCID-USB.exe
USBCCID driver,
SCLib.dll, Windows
Resource Manager
USB CCID
Protocol
ReaderDevice
12XX based Smart
Card Reader
Device running
CCIDUSB-x.hex
ISO7816
Smart
Card
Figure 1: USB CCID System
The setup of the USB CCID system is shown in Figure 1. This document applies to the gray box. The
Reader Device (herein referred to as Devi ce) is connected to the host PC USB port via a standard USB
cable. When the Device is plugged into a Windows host PC, the Windows Add New Hardware Wizard
launches and prompts the user to install a driver for the newly found hardware. The CCID application
firmware operates with both the standard Microsoft CCID driver (usbccid.sys) and the Teridian enhanced
CCID driver (ccidtsc.sys). The software installation disk contains the Windows .inf file for both drivers.
Browse to the directory containing the .inf files; the Wizard displays the dialog as shown in Figure 2.
Select a driver and complete the driver installation.
Figure 2: Add New Hardware Wizard Showing TSC CCID and Microsoft Drivers
The features provided by Microsoft’s usbccid.sys are detailed in the 73S1212F, 73S1217F 80515 SoC
Family with USB, ISO-7816/EMV and PINpad CCID Application Note. The Teridian enhan ced CCID
driver provides CCID compliant APDU level transf er of data and additionally addresses many of the
shortcomings of the Microsoft driver, including:
• Support for multiple reader slots.
• PIN pad support.
• LCD support.
• Vendor/device-specific string name support in the device manager.
• Support for mechanical features.
The Device Reader should be powered up and ready t o run. The USB-CCID.exe program can be
invoked from the Windows taskbar Run button. Once the applic ation is opened, the USB-CCID window
appears as shown in Figure 3.
The application window has several different functional f rames. A transaction/text window displays all the
USB communication traffic based on the USB CCID command/response exchange. The architect ure
software is defined as a master/slave configuration where the host PC is the master and the reader
device is the slave. Communications are defined as a command/response exchange pair where the host
will send the command to the device and for each command; the devi ce will always send the response.
The C# application uses the SCLib.dll to send com mands using the Microsoft API. For more information
about the CCID protocol, PC/SC interface, Microsoft Smart Card Library APIs, PCSC APIs, and CCID
command packets, refer to the following documents:
1. Universal Serial Bus Device Class Specification for USB Chip/Smart Card Interface Devices
The Card Reader frame has a list box that displays the active smart card readers. The USB CCID host
application automatically detects any inserti on and removal of smart card readers, and updates the list
box immediately. If no available readers are displayed in the list box, the Refresh button can be used to
force a scan for any active readers. Select a reader by highlighting the desired reader in the list box and
click “Select”. This will enable the “Connect” fra m e and indicate which device was selected in the
transaction window. The “Slot Stat” button will return the status of the current slot in the transaction
window. It will indicate if a card is in the slot or not.
By Windows Resource Manager’s design, a functional Smart Card (i.e. a card with an acceptable
ATR) has to be inserted into a slot in order to use any other function. This includes the LCD and
KeyPad functions. The Windows resource manager stores the ATR in memory. The slot number
drop down box will configure the active slot on the selected reader. For this C# application, the
default slot is the slot 0, which is displayed when a reader is selected.
2.1.2 Smart Card Configuration Frames
2.1.2.1 Connect Configuration Frame
The Connect Configuration frame includes the Sha re Mode and Protocol sub frames. The parameter
selection flags are used with the ScardConnect() PC/SC command. Refer to the Mic rosoft Developer
Network for an explanation of these param eters. In most cases, these selections can be left at the default
setting. Selecting the Connect button will connect and activate the card. The card is accessible and
commands can be sent to the card. The Card Reader and Connect Configuration frames are disabled
and the remaining are enabled, as shown in Figure 4.
Rev. 1.1 7
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.