beautypg.com

Appendix a – emv level i certification test, Appendix a – Maxim Integrated 73S12xxF USB-CCID Host GUI User Manual

Page 20

background image

73S12xxF USB-CCID Host GUI Users Guide

UG_12xxF_037

20

Rev. 1.1

Appendix A – EMV Level I Certification Test

EMV compliant test suite follows its specification written for Payment System Environment. There are
several test labs, listed on EMVco.com website, qualified to perform these tests. At this writing, there are
two available Protocol test suites that either one, will/can be used to qualify for EMV Level I compliance.
In other words, passing either one of these suites will qualify as EMV Level I compliance. The USB-CCID
code is written to link to the two TSC libraries (LAPI and HAPI) that comply with both tests. However,
since each lab has its own test scripts and the test scripts are different according to the lab’s setup, the
application layer must be written, and catered, specifically for each test lab’s requirements.

EMV Test Mode

An EMV test (or session) is defined to be commands that run from Activation of the card to Deactivation
of the card. A Block Transfer may or may not happen in the session depends on the the card’s ATR
response. The host may invoke the EMV PSE test environment via the Escape command. The first
parameter byte (B1) of the Escape command needs to specifically tell whether a test mode is invoked and
if so, it should be invoked using MCI, VISA-1 or VISA-2 test environment. Review the Escape command
section for details about this test mode.

When the test starts, this host application will send a PowerOn command. Following the successful
PowerOn command, the host needs to send the Block Transfer Command. The format and content of the
APDU command, during EMV Test Mode, will be ignored by the device as it handles the Select File
Command according to each lab’s requirement. The Command loopback will be handled by the firmware
and upon finishing up one test, the firmware will respond to the host with status of whether a test session
run with successful return code or not. NOTE : an unsuccessful return code may or may not be a failed
test. The test verdict (test passed or test failed) is determined only on the card side. The following flow
chart depicts the minimal coding required on the host side to invoke EMV PSE test environment. For
detailed description of each environment’s flowcharts, see the CCIDAN_73S12xxV2.00.pdf document.