|C H A P T E R 50|
Internal I2C Smart Card Reader Test (sc2test)
The sc2test verifies the proper functioning and integrity of the internal I2C smart card reader by testing the scmi2c(7d) driver.
The sc2test consists of the following subtests:
The Register read subtest performs read access to selected scmi2c reader registers by means of ioctl().
The Walking 1s subtest performs walking 1s to selected scmi2c reader registers; registers under test are saved and restored.
The sc2test initializes the card reader. The test power manages and resets the card. After reset, the test makes multiple attempts to read the ATRs from the inserted card to verify against a list of recognized ATRs. The cards supported are the Cyberflex and Payflex cards are supported.
Based on the result of the ATR, the Application Protocol Data Unit (APDU) Unique-ID subtest exchanges selected ISO 7816 APDUs between the card and the reader to retreive the card's unique ID.
Caution - The sc2testcannot run when the ocfservsmart card server application is running, because the ocfservhas exclusive open on /dev/scmi2c0. The sc2testdetects the ocfservprocess running and prompts you to kill ocfserv. Also, the sc2testcannot run if any other third-party smart card host application has exclusive open on /dev/scmi2c0device.
To reach the following dialog box, right-click on the test name in the System Map and select Test Parameter Options. If you do not see this test in the System Map, you might need to expand the collapsed groups, or your system might not include the device appropriate to this test. Refer to the SunVTS User's Guide for more details.
/opt/SUNWvts/bin/sc2test standard-arguments -o [
[ dev=device-name ]
[ regs=Enable|disable ]
[ atr=Enable|disable ]
[ apdu=Enable|disable ] ]